From 031db3538d13e765b83b658a1c6e2f0ab77104a5 Mon Sep 17 00:00:00 2001 From: SHENGXING LU Date: Mon, 10 Aug 2026 21:34:17 +0200 Subject: [PATCH] new release --- .../{981.193dea7bcbed3c10.js => 981.14a8d16b6c8a952f.js} | 2 +- portal/bae-frontend/index.html | 2 +- portal/bae-frontend/main.a14c26c075135656.js | 1 + portal/bae-frontend/main.a173bf4e6d368bba.js | 1 - portal/bae-frontend/runtime.0992c3ee06235509.js | 1 - portal/bae-frontend/runtime.8b8d73de66ef4e64.js | 1 + 6 files changed, 4 insertions(+), 4 deletions(-) rename portal/bae-frontend/{981.193dea7bcbed3c10.js => 981.14a8d16b6c8a952f.js} (98%) create mode 100644 portal/bae-frontend/main.a14c26c075135656.js delete mode 100644 portal/bae-frontend/main.a173bf4e6d368bba.js delete mode 100644 portal/bae-frontend/runtime.0992c3ee06235509.js create mode 100644 portal/bae-frontend/runtime.8b8d73de66ef4e64.js diff --git a/portal/bae-frontend/981.193dea7bcbed3c10.js b/portal/bae-frontend/981.14a8d16b6c8a952f.js similarity index 98% rename from portal/bae-frontend/981.193dea7bcbed3c10.js rename to portal/bae-frontend/981.14a8d16b6c8a952f.js index c9788105..0494ca56 100644 --- a/portal/bae-frontend/981.193dea7bcbed3c10.js +++ b/portal/bae-frontend/981.14a8d16b6c8a952f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[981],{5981:(V,h,s)=>{s.r(h),s.d(h,{BrowseComponent:()=>G});var g=s(467),v=s(177),d=s(9417),m=s(3955),b=s(60),f=s(604),M=s(7745),C=s(7005),t=s(4438),R=s(7387),O=s(1583),y=s(3077);const w=(o,i)=>i.id,E=o=>[o];function k(o,i){1&o&&(t.j41(0,"div",21),t.qSk(),t.j41(1,"svg",22),t.nrm(2,"circle",23)(3,"path",24),t.k0s()())}function B(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const r=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.onCategoryClick(r))}),t.nrm(1,"fa-icon",30),t.j41(2,"span",31),t.EFF(3),t.k0s()()}if(2&o){const e=i.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("icon",n.iconForCategory(e.name)),t.R7$(2),t.JRh(e.name)}}function T(o,i){if(1&o){const e=t.RV6();t.j41(0,"div",25),t.Z7z(1,B,4,2,"button",26,w),t.j41(3,"button",27),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.onShowAll())}),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.nrm(7,"fa-icon",28),t.k0s()()}if(2&o){const e=t.XpG();t.R7$(),t.Dyx(e.categories),t.R7$(4),t.JRh(t.bMT(6,2,"BROWSE.showAll")),t.R7$(2),t.Y8G("icon",e.faArrowRight)}}function j(o,i){1&o&&(t.j41(0,"div",21),t.qSk(),t.j41(1,"svg",22),t.nrm(2,"circle",23)(3,"path",24),t.k0s()())}function D(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",38),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.prevPopularPage())}),t.nrm(1,"fa-icon",28),t.k0s()}if(2&o){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.faChevronLeft)}}function A(o,i){if(1&o){const e=t.RV6();t.j41(0,"div",39)(1,"div",40),t.nrm(2,"div",41)(3,"img",42),t.k0s(),t.j41(4,"div",43)(5,"h3",44),t.EFF(6),t.k0s(),t.j41(7,"p",45),t.EFF(8),t.k0s(),t.j41(9,"button",46),t.bIt("click",function(){const r=t.eBV(e).$implicit,l=t.XpG(4);return t.Njj(l.goToOffer(r))}),t.j41(10,"span"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.nrm(13,"fa-icon",28),t.k0s()()()}if(2&o){const e=i.$implicit,n=t.XpG(4);t.R7$(2),t.xc7("background-image","url("+e.imageUrl+")"),t.R7$(),t.Y8G("src",e.imageUrl,t.B4B)("alt",e.name),t.R7$(3),t.JRh(e.name),t.R7$(2),t.JRh(e.description),t.R7$(3),t.JRh(t.bMT(12,8,"BROWSE.viewService")),t.R7$(2),t.Y8G("icon",n.faArrowRight)}}function I(o,i){if(1&o&&(t.j41(0,"div",35),t.Z7z(1,A,14,10,"div",39,w),t.k0s()),2&o){const e=i.$implicit,n=t.XpG(3);t.BMQ("data-direction",n.popularDirection),t.R7$(),t.Dyx(n.popularPages[e])}}function F(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.nextPopularPage())}),t.nrm(1,"fa-icon",28),t.k0s()}if(2&o){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.faChevronRight)}}function S(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",49),t.bIt("click",function(){const r=t.eBV(e).$index,l=t.XpG(4);return t.Njj(l.setPopularPage(r))}),t.k0s()}if(2&o){const e=i.$index,n=t.XpG(4);t.AVh("popular-dot-active",e===n.popularPage),t.BMQ("aria-label","Page "+(e+1))}}function $(o,i){if(1&o&&(t.j41(0,"div",37),t.Z7z(1,S,1,3,"button",48,t.Vm6),t.k0s()),2&o){const e=t.XpG(3);t.R7$(),t.Dyx(e.popularPages)}}function L(o,i){if(1&o&&(t.j41(0,"div",32),t.DNE(1,D,2,1,"button",33),t.j41(2,"div",34),t.Z7z(3,I,3,1,"div",35,t.fX1),t.k0s(),t.DNE(5,F,2,1,"button",36),t.k0s(),t.DNE(6,$,3,0,"div",37)),2&o){const e=t.XpG(2);t.R7$(),t.vxM(1,e.popularPageCount>1?1:-1),t.R7$(2),t.Dyx(t.eq3(3,E,e.popularPage)),t.R7$(2),t.vxM(5,e.popularPageCount>1?5:-1),t.R7$(),t.vxM(6,e.popularPageCount>1?6:-1)}}function U(o,i){if(1&o&&(t.j41(0,"div",17)(1,"div",18)(2,"h2",19),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",20),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,j,4,0,"div",21)(9,L,7,5),t.k0s()),2&o){const e=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,3,"BROWSE.popularTitle")," "),t.R7$(3),t.SpI(" ",t.bMT(7,5,"BROWSE.popularSubtitle")," "),t.R7$(2),t.vxM(8,e.popularLoading?8:9)}}let G=(()=>{class o{get popularOffers(){return this.popularCandidates.slice(0,this.POPULAR_TOTAL)}get popularPages(){const e=[];for(let n=0;np?.name===C.dD.primaryRootName);if(l?.id){const p=yield e.api.getCategoriesByParentId(l.id);e.categories=Array.isArray(p)?p:[]}else e.categories=[]}}catch(n){console.error("Error loading categories:",n)}finally{e.loading=!1}})()}loadPopularOffers(){var e=this;return(0,g.A)(function*(){try{const n=[0,6,12,18,24,30,36,42],r=yield Promise.all(n.map(a=>e.api.getProducts(a,void 0).catch(()=>[]))),l=new Set,p=[];for(const a of r)if(Array.isArray(a))for(const c of a){const u=c?.id;u&&!l.has(u)&&(l.add(u),p.push(c))}const W=(yield e.api.getProductsDetails(p)).map(a=>{const c=a?.attachment??[],X=c.find(x=>"Profile Picture"===x?.name)??c.find(x=>{const P=(x?.attachmentType??"").toLowerCase();return"picture"===P||P.startsWith("image/")});return{id:a.id,name:a.name??"",description:a.description??"",imageUrl:X?.url??""}}).filter(a=>!!a.id&&!!a.imageUrl),_=(yield Promise.all(W.map(function(){var a=(0,g.A)(function*(c){return(yield e.imageLoads(c.imageUrl))?c:null});return function(c){return a.apply(this,arguments)}}()))).filter(a=>null!==a);for(let a=_.length-1;a>0;a--){const c=Math.floor(Math.random()*(a+1));[_[a],_[c]]=[_[c],_[a]]}e.popularCandidates=_}catch(n){console.error("Error loading popular offers:",n),e.popularCandidates=[]}finally{e.popularLoading=!1}})()}imageLoads(e){return new Promise(n=>{const r=new Image;r.onload=()=>n(r.naturalWidth>0&&r.naturalHeight>0),r.onerror=()=>n(!1),r.src=e})}nextPopularPage(){0!==this.popularPageCount&&(this.popularDirection="next",this.popularPage=(this.popularPage+1)%this.popularPageCount)}prevPopularPage(){0!==this.popularPageCount&&(this.popularDirection="prev",this.popularPage=(this.popularPage-1+this.popularPageCount)%this.popularPageCount)}setPopularPage(e){e>=0&&ethis.popularPage?"next":"prev",this.popularPage=e)}goToOffer(e){this.router.navigate(["/search",e.id])}onSearch(e){e.preventDefault(),this.searchQuery.trim()?this.router.navigate(["/search",{keywords:this.searchQuery.trim()}]):this.router.navigate(["/search"])}onCategoryClick(e){localStorage.removeItem("selected_categories"),this.localStorage.addCategoryFilter(e),this.router.navigate(["/search"])}onShowAll(){localStorage.removeItem("selected_categories"),this.router.navigate(["/search"])}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(R.F),t.rXU(O.Ix),t.rXU(y.s))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-browse"]],standalone:!0,features:[t.aNF],decls:38,vars:24,consts:[[1,"browse-wrap","font-[Blinker]"],["aria-hidden","true",1,"browse-bg"],[1,"browse-ellipse","browse-e1"],[1,"browse-ellipse","browse-e2"],[1,"browse-ellipse","browse-e3"],[1,"browse-ellipse","browse-e4"],[1,"browse-blur"],[1,"browse-content","mx-auto","w-full","max-w-[1440px]","px-6","sm:px-10","lg:px-20","xl:px-[160px]"],[1,"flex","flex-col","items-center","text-center","gap-8","pt-[100px]","pb-16","sm:pt-[130px]","sm:pb-20","lg:pt-[150px]","lg:pb-24"],[1,"max-w-[900px]","text-[36px]","font-extrabold","leading-[1.1]","tracking-[0.5px]","text-[#0b1220]","sm:text-[48px]","lg:text-[56px]","xl:text-[64px]","xl:leading-[77px]"],[1,"text-[#3D71CC]"],[1,"w-full","max-w-[700px]","mt-4",3,"ngSubmit"],[1,"relative"],["type","search","name","searchQuery",1,"block","w-full","rounded-[16px]","border","border-gray-200","bg-white","py-4","pl-5","pr-14","text-[16px]","text-gray-900","shadow-none","placeholder:text-gray-400","hover:shadow-[0_3px_16px_rgba(0,0,0,0.25)]","focus:ring-2","focus:ring-[#00ADD3]","focus:border-[#00ADD3]","focus:shadow-none","transition-shadow","outline-none","sm:text-[17px]",3,"ngModelChange","ngModel","placeholder"],["type","submit",1,"absolute","right-3","top-1/2","-translate-y-1/2","flex","h-10","w-10","items-center","justify-center","rounded-lg","text-gray-400","hover:text-gray-600","transition-colors"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","d","m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"],[1,"pb-16","sm:pb-20","lg:pb-24"],[1,"flex","flex-col","items-center","text-center","gap-3","mb-12"],[1,"text-[28px]","font-bold","text-[#0b1220]","sm:text-[32px]","lg:text-[36px]"],[1,"text-[16px]","text-[#526179]","sm:text-[18px]"],[1,"flex","justify-center","py-12"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-8","w-8","animate-spin","text-[#1f4fbf]"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"flex","flex-col","items-center","gap-4","sm:flex-row","sm:flex-wrap","sm:justify-center"],[1,"flex","h-[72px]","items-center","gap-3","rounded-2xl","border","border-transparent","bg-white","px-6","text-left","shadow-[0_0_16px_rgba(45,88,167,0.24)]","transition","hover:border-[#2D58A7]","hover:shadow-[0_0_22px_rgba(45,88,167,0.35)]"],[1,"flex","h-[72px]","items-center","gap-2","px-4","text-[15px]","font-semibold","text-[#526179]","transition","hover:text-[#1f4fbf]","sm:text-[16px]",3,"click"],[3,"icon"],[1,"flex","h-[72px]","items-center","gap-3","rounded-2xl","border","border-transparent","bg-white","px-6","text-left","shadow-[0_0_16px_rgba(45,88,167,0.24)]","transition","hover:border-[#2D58A7]","hover:shadow-[0_0_22px_rgba(45,88,167,0.35)]",3,"click"],[1,"text-[20px]","text-[#2D58A7]",3,"icon"],[1,"text-[15px]","font-semibold","text-[#0b1220]","sm:text-[16px]"],[1,"relative","px-0","sm:px-14"],["type","button","aria-label","Previous",1,"popular-arrow","popular-arrow-left"],[1,"overflow-hidden"],[1,"grid","gap-6","sm:grid-cols-2","lg:grid-cols-3","popular-grid"],["type","button","aria-label","Next",1,"popular-arrow","popular-arrow-right"],[1,"mt-8","flex","justify-center","gap-2"],["type","button","aria-label","Previous",1,"popular-arrow","popular-arrow-left",3,"click"],[1,"popular-card","flex","h-[438px]","flex-col","rounded-[20px]","border","border-[#d5dace]","bg-white","p-2"],[1,"relative","h-[170px]","w-full","shrink-0","overflow-hidden","rounded-[14px]","bg-[#e2e9f5]","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],[1,"relative","z-10","h-full","w-full","object-contain",3,"src","alt"],[1,"flex","flex-1","flex-col","gap-3","px-4","pt-6","pb-6"],[1,"text-[20px]","font-bold","leading-[1.3]","text-[#0b1220]","line-clamp-2"],[1,"text-[15px]","leading-[1.5]","text-[#526179]","line-clamp-3"],["type","button",1,"mt-auto","inline-flex","h-12","w-full","items-center","justify-center","gap-2","rounded-lg","border","border-[#2058a7]","px-6","py-3","text-[14px]","font-semibold","text-[#2058a7]","transition-colors","hover:bg-[#f2f5fb]",3,"click"],["type","button","aria-label","Next",1,"popular-arrow","popular-arrow-right",3,"click"],["type","button",1,"popular-dot",3,"popular-dot-active"],["type","button",1,"popular-dot",3,"click"]],template:function(n,r){1&n&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),t.k0s(),t.j41(7,"div",7)(8,"div",8)(9,"h1",9),t.EFF(10),t.nI1(11,"translate"),t.j41(12,"span",10),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.j41(17,"span",10),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"form",11),t.bIt("ngSubmit",function(p){return r.onSearch(p)}),t.j41(21,"div",12)(22,"input",13),t.nI1(23,"translate"),t.mxI("ngModelChange",function(p){return t.DH7(r.searchQuery,p)||(r.searchQuery=p),p}),t.k0s(),t.j41(24,"button",14),t.qSk(),t.j41(25,"svg",15),t.nrm(26,"path",16),t.k0s()()()()(),t.joV(),t.j41(27,"div",17)(28,"div",18)(29,"h2",19),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"p",20),t.EFF(33),t.nI1(34,"translate"),t.k0s()(),t.DNE(35,k,4,0,"div",21)(36,T,8,4),t.k0s(),t.DNE(37,U,10,7,"div",17),t.k0s()()),2&n&&(t.R7$(10),t.SpI(" ",t.bMT(11,10,"BROWSE.heroTitle1")," "),t.R7$(3),t.JRh(t.bMT(14,12,"BROWSE.heroAccent1")),t.R7$(2),t.SpI(" ",t.bMT(16,14,"BROWSE.heroTitle2")," "),t.R7$(3),t.JRh(t.bMT(19,16,"BROWSE.heroAccent2")),t.R7$(4),t.FS9("placeholder",t.bMT(23,18,"BROWSE.searchPlaceholder")),t.R50("ngModel",r.searchQuery),t.R7$(8),t.SpI(" ",t.bMT(31,20,"BROWSE.categoriesTitle")," "),t.R7$(3),t.SpI(" ",t.bMT(34,22,"BROWSE.categoriesSubtitle")," "),t.R7$(2),t.vxM(35,r.loading?35:36),t.R7$(2),t.vxM(37,r.popularLoading||r.popularOffers.length>0?37:-1))},dependencies:[v.MD,d.YN,d.qT,d.me,d.BC,d.cb,d.vS,d.cV,m.h,m.D9,b.dX,b.aY],styles:[".browse-wrap[_ngcontent-%COMP%]{position:relative;width:100%;isolation:isolate}.browse-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#f3f6ff}.browse-content[_ngcontent-%COMP%]{position:relative;z-index:1}.browse-ellipse[_ngcontent-%COMP%]{position:absolute;width:720px;height:720px;border-radius:9999px;transform:rotate(180deg);opacity:1;background:radial-gradient(circle at 35% 35%,#b6caecf2,#b6caeca6 38%,#b6caec00 72%);filter:blur(10px)}.browse-e1[_ngcontent-%COMP%]{left:-220px;top:-190px}.browse-e2[_ngcontent-%COMP%]{right:-260px;top:60px}.browse-e3[_ngcontent-%COMP%]{left:50%;top:-240px;transform:translate(-50%) rotate(180deg)}.browse-e4[_ngcontent-%COMP%]{left:140px;bottom:-360px}.browse-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f22e 25.7%,#fffafa47 94.73%);backdrop-filter:blur(90px);-webkit-backdrop-filter:blur(90px);transform:rotate(180deg)}@media (max-width: 1024px){.browse-ellipse[_ngcontent-%COMP%]{width:620px;height:620px;filter:blur(9px)}.browse-e2[_ngcontent-%COMP%]{right:-300px}}.popular-card[_ngcontent-%COMP%]{transition:border-color .2s ease,box-shadow .2s ease}.popular-card[_ngcontent-%COMP%]:hover{border-color:#3d71cc;box-shadow:0 6px 20px #2d58a71f}.popular-grid[data-direction=init][_ngcontent-%COMP%], .popular-grid[data-direction=next][_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popularSlideInRight .6s cubic-bezier(.22,1,.36,1) both}.popular-grid[data-direction=prev][_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popularSlideInLeft .6s cubic-bezier(.22,1,.36,1) both}@keyframes _ngcontent-%COMP%_popularSlideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_popularSlideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}.popular-arrow[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9999px;background:#fff;color:#0b1220;box-shadow:0 4px 16px #2d58a733;transition:color .2s ease,box-shadow .2s ease,opacity .2s ease}.popular-arrow[_ngcontent-%COMP%]:hover:not(:disabled){color:#1f4fbf;box-shadow:0 4px 18px #2d58a752}.popular-arrow[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.popular-arrow-left[_ngcontent-%COMP%]{left:0}.popular-arrow-right[_ngcontent-%COMP%]{right:0}.popular-dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:9999px;background:#d8dade;transition:background .2s ease,width .2s ease}.popular-dot[_ngcontent-%COMP%]:hover{background:#b8babf}.popular-dot-active[_ngcontent-%COMP%]{background:#3d71cc;width:28px}@media (max-width: 640px){.popular-arrow[_ngcontent-%COMP%]{display:none}.browse-ellipse[_ngcontent-%COMP%]{width:520px;height:520px;filter:blur(8px)}.browse-e1[_ngcontent-%COMP%]{left:-280px;top:-230px}.browse-e2[_ngcontent-%COMP%]{right:-320px;top:10px}.browse-e4[_ngcontent-%COMP%]{left:40px;bottom:-380px}}"]})}}return o})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[981],{5981:(V,h,s)=>{s.r(h),s.d(h,{BrowseComponent:()=>G});var g=s(467),v=s(177),d=s(9417),m=s(3955),b=s(60),f=s(604),M=s(7745),C=s(7005),t=s(4438),O=s(7387),R=s(1583),y=s(3077);const w=(o,i)=>i.id,E=o=>[o];function k(o,i){1&o&&(t.j41(0,"div",21),t.qSk(),t.j41(1,"svg",22),t.nrm(2,"circle",23)(3,"path",24),t.k0s()())}function B(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const r=t.eBV(e).$implicit,l=t.XpG(2);return t.Njj(l.onCategoryClick(r))}),t.nrm(1,"fa-icon",30),t.j41(2,"span",31),t.EFF(3),t.k0s()()}if(2&o){const e=i.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("icon",n.iconForCategory(e.name)),t.R7$(2),t.JRh(e.name)}}function T(o,i){if(1&o){const e=t.RV6();t.j41(0,"div",25),t.Z7z(1,B,4,2,"button",26,w),t.j41(3,"button",27),t.bIt("click",function(){t.eBV(e);const r=t.XpG();return t.Njj(r.onShowAll())}),t.j41(4,"span"),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.nrm(7,"fa-icon",28),t.k0s()()}if(2&o){const e=t.XpG();t.R7$(),t.Dyx(e.categories),t.R7$(4),t.JRh(t.bMT(6,2,"BROWSE.showAll")),t.R7$(2),t.Y8G("icon",e.faArrowRight)}}function j(o,i){1&o&&(t.j41(0,"div",21),t.qSk(),t.j41(1,"svg",22),t.nrm(2,"circle",23)(3,"path",24),t.k0s()())}function D(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",38),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.prevPopularPage())}),t.nrm(1,"fa-icon",28),t.k0s()}if(2&o){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.faChevronLeft)}}function A(o,i){if(1&o){const e=t.RV6();t.j41(0,"div",39)(1,"div",40),t.nrm(2,"div",41)(3,"img",42),t.k0s(),t.j41(4,"div",43)(5,"h3",44),t.EFF(6),t.k0s(),t.j41(7,"p",45),t.EFF(8),t.k0s(),t.j41(9,"button",46),t.bIt("click",function(){const r=t.eBV(e).$implicit,l=t.XpG(4);return t.Njj(l.goToOffer(r))}),t.j41(10,"span"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.nrm(13,"fa-icon",28),t.k0s()()()}if(2&o){const e=i.$implicit,n=t.XpG(4);t.R7$(2),t.xc7("background-image","url("+e.imageUrl+")"),t.R7$(),t.Y8G("src",e.imageUrl,t.B4B)("alt",e.name),t.R7$(3),t.JRh(e.name),t.R7$(2),t.JRh(e.description),t.R7$(3),t.JRh(t.bMT(12,8,"BROWSE.viewService")),t.R7$(2),t.Y8G("icon",n.faArrowRight)}}function I(o,i){if(1&o&&(t.j41(0,"div",35),t.Z7z(1,A,14,10,"div",39,w),t.k0s()),2&o){const e=i.$implicit,n=t.XpG(3);t.BMQ("data-direction",n.popularDirection),t.R7$(),t.Dyx(n.popularPages[e])}}function F(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",47),t.bIt("click",function(){t.eBV(e);const r=t.XpG(3);return t.Njj(r.nextPopularPage())}),t.nrm(1,"fa-icon",28),t.k0s()}if(2&o){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.faChevronRight)}}function S(o,i){if(1&o){const e=t.RV6();t.j41(0,"button",49),t.bIt("click",function(){const r=t.eBV(e).$index,l=t.XpG(4);return t.Njj(l.setPopularPage(r))}),t.k0s()}if(2&o){const e=i.$index,n=t.XpG(4);t.AVh("popular-dot-active",e===n.popularPage),t.BMQ("aria-label","Page "+(e+1))}}function $(o,i){if(1&o&&(t.j41(0,"div",37),t.Z7z(1,S,1,3,"button",48,t.Vm6),t.k0s()),2&o){const e=t.XpG(3);t.R7$(),t.Dyx(e.popularPages)}}function L(o,i){if(1&o&&(t.j41(0,"div",32),t.DNE(1,D,2,1,"button",33),t.j41(2,"div",34),t.Z7z(3,I,3,1,"div",35,t.fX1),t.k0s(),t.DNE(5,F,2,1,"button",36),t.k0s(),t.DNE(6,$,3,0,"div",37)),2&o){const e=t.XpG(2);t.R7$(),t.vxM(1,e.popularPageCount>1?1:-1),t.R7$(2),t.Dyx(t.eq3(3,E,e.popularPage)),t.R7$(2),t.vxM(5,e.popularPageCount>1?5:-1),t.R7$(),t.vxM(6,e.popularPageCount>1?6:-1)}}function U(o,i){if(1&o&&(t.j41(0,"div",17)(1,"div",18)(2,"h2",19),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p",20),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.DNE(8,j,4,0,"div",21)(9,L,7,5),t.k0s()),2&o){const e=t.XpG();t.R7$(3),t.SpI(" ",t.bMT(4,3,"BROWSE.popularTitle")," "),t.R7$(3),t.SpI(" ",t.bMT(7,5,"BROWSE.popularSubtitle")," "),t.R7$(2),t.vxM(8,e.popularLoading?8:9)}}let G=(()=>{class o{get popularOffers(){return this.popularCandidates.slice(0,this.POPULAR_TOTAL)}get popularPages(){const e=[];for(let n=0;np?.name===C.dD.primaryRootName);if(l?.id){const p=yield e.api.getCategoriesByParentId(l.id);e.categories=Array.isArray(p)?p:[]}else e.categories=[]}}catch(n){console.error("Error loading categories:",n)}finally{e.loading=!1}})()}loadPopularOffers(){var e=this;return(0,g.A)(function*(){try{const n=[0,6,12,18,24,30,36,42],r=yield Promise.all(n.map(a=>e.api.getProducts(a,void 0).catch(()=>[]))),l=new Set,p=[];for(const a of r)if(Array.isArray(a))for(const c of a){const u=c?.id;u&&!l.has(u)&&(l.add(u),p.push(c))}const W=(yield e.api.getProductsDetails(p)).map(a=>{const c=a?.attachment??[],X=c.find(x=>"Profile Picture"===x?.name)??c.find(x=>{const P=(x?.attachmentType??"").toLowerCase();return"picture"===P||P.startsWith("image/")});return{id:a.id,name:a.name??"",description:a.description??"",imageUrl:X?.url??""}}).filter(a=>!!a.id&&!!a.imageUrl),_=(yield Promise.all(W.map(function(){var a=(0,g.A)(function*(c){return(yield e.imageLoads(c.imageUrl))?c:null});return function(c){return a.apply(this,arguments)}}()))).filter(a=>null!==a);for(let a=_.length-1;a>0;a--){const c=Math.floor(Math.random()*(a+1));[_[a],_[c]]=[_[c],_[a]]}e.popularCandidates=_}catch(n){console.error("Error loading popular offers:",n),e.popularCandidates=[]}finally{e.popularLoading=!1}})()}imageLoads(e){return new Promise(n=>{const r=new Image;r.onload=()=>n(r.naturalWidth>0&&r.naturalHeight>0),r.onerror=()=>n(!1),r.src=e})}nextPopularPage(){0!==this.popularPageCount&&(this.popularDirection="next",this.popularPage=(this.popularPage+1)%this.popularPageCount)}prevPopularPage(){0!==this.popularPageCount&&(this.popularDirection="prev",this.popularPage=(this.popularPage-1+this.popularPageCount)%this.popularPageCount)}setPopularPage(e){e>=0&&ethis.popularPage?"next":"prev",this.popularPage=e)}goToOffer(e){this.router.navigate(["/search",e.id])}onSearch(e){e.preventDefault(),this.searchQuery.trim()?this.router.navigate(["/search",{keywords:this.searchQuery.trim()}]):this.router.navigate(["/search"])}onCategoryClick(e){localStorage.removeItem("selected_categories"),this.localStorage.addCategoryFilter(e),this.router.navigate(["/search"])}onShowAll(){localStorage.removeItem("selected_categories"),this.router.navigate(["/search"])}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(O.F),t.rXU(R.Ix),t.rXU(y.s))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["app-browse"]],standalone:!0,features:[t.aNF],decls:38,vars:24,consts:[[1,"browse-wrap","font-[Blinker]"],["aria-hidden","true",1,"browse-bg"],[1,"browse-ellipse","browse-e1"],[1,"browse-ellipse","browse-e2"],[1,"browse-ellipse","browse-e3"],[1,"browse-ellipse","browse-e4"],[1,"browse-blur"],[1,"browse-content","mx-auto","w-full","max-w-[1440px]","px-6","sm:px-10","lg:px-20","xl:px-[160px]"],[1,"flex","flex-col","items-center","text-center","gap-8","pt-[100px]","pb-16","sm:pt-[130px]","sm:pb-20","lg:pt-[150px]","lg:pb-24"],[1,"max-w-[900px]","text-[36px]","font-extrabold","leading-[1.1]","tracking-[0.5px]","text-[#0b1220]","sm:text-[48px]","lg:text-[56px]","xl:text-[64px]","xl:leading-[77px]"],[1,"text-[#3D71CC]"],[1,"w-full","max-w-[700px]","mt-4",3,"ngSubmit"],[1,"relative"],["type","search","name","searchQuery",1,"block","w-full","rounded-[16px]","border","border-gray-200","bg-white","py-4","pl-5","pr-14","text-[16px]","text-gray-900","shadow-none","placeholder:text-gray-400","hover:shadow-[0_3px_16px_rgba(0,0,0,0.25)]","focus:ring-2","focus:ring-[#00ADD3]","focus:border-[#00ADD3]","focus:shadow-none","transition-shadow","outline-none","sm:text-[17px]",3,"ngModelChange","ngModel","placeholder"],["type","submit",1,"absolute","right-3","top-1/2","-translate-y-1/2","flex","h-10","w-10","items-center","justify-center","rounded-lg","text-gray-400","hover:text-gray-600","transition-colors"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","d","m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"],[1,"pb-16","sm:pb-20","lg:pb-24"],[1,"flex","flex-col","items-center","text-center","gap-3","mb-12"],[1,"text-[28px]","font-bold","text-[#0b1220]","sm:text-[32px]","lg:text-[36px]"],[1,"text-[16px]","text-[#526179]","sm:text-[18px]"],[1,"flex","justify-center","py-12"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-8","w-8","animate-spin","text-[#1f4fbf]"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],[1,"flex","flex-col","items-center","gap-4","sm:flex-row","sm:flex-wrap","sm:justify-center"],[1,"flex","h-[72px]","items-center","gap-3","rounded-2xl","border","border-transparent","bg-white","px-6","text-left","shadow-[0_0_16px_rgba(45,88,167,0.24)]","transition","hover:border-[#2D58A7]","hover:shadow-[0_0_22px_rgba(45,88,167,0.35)]"],[1,"flex","h-[72px]","items-center","gap-2","px-4","text-[15px]","font-semibold","text-[#526179]","transition","hover:text-[#1f4fbf]","sm:text-[16px]",3,"click"],[3,"icon"],[1,"flex","h-[72px]","items-center","gap-3","rounded-2xl","border","border-transparent","bg-white","px-6","text-left","shadow-[0_0_16px_rgba(45,88,167,0.24)]","transition","hover:border-[#2D58A7]","hover:shadow-[0_0_22px_rgba(45,88,167,0.35)]",3,"click"],[1,"text-[20px]","text-[#2D58A7]",3,"icon"],[1,"text-[15px]","font-semibold","text-[#0b1220]","sm:text-[16px]"],[1,"relative","px-0","sm:px-14"],["type","button","aria-label","Previous",1,"popular-arrow","popular-arrow-left"],[1,"overflow-hidden"],[1,"grid","gap-6","sm:grid-cols-2","lg:grid-cols-3","popular-grid"],["type","button","aria-label","Next",1,"popular-arrow","popular-arrow-right"],[1,"mt-8","flex","justify-center","gap-2"],["type","button","aria-label","Previous",1,"popular-arrow","popular-arrow-left",3,"click"],[1,"popular-card","flex","h-[438px]","flex-col","rounded-[20px]","border","border-[#d5dace]","bg-white","p-2"],[1,"relative","h-[170px]","w-full","shrink-0","overflow-hidden","rounded-[14px]","bg-[#e2e9f5]","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],[1,"relative","z-10","h-full","w-full","object-contain",3,"src","alt"],[1,"flex","flex-1","flex-col","gap-3","px-4","pt-6","pb-6"],[1,"text-[20px]","font-bold","leading-[1.3]","text-[#0b1220]","line-clamp-2"],[1,"text-[15px]","leading-[1.5]","text-[#526179]","line-clamp-3"],["type","button",1,"mt-auto","inline-flex","h-12","w-full","items-center","justify-center","gap-2","rounded-lg","border","border-[#2058a7]","px-6","py-3","text-[14px]","font-semibold","text-[#2058a7]","transition-colors","hover:bg-[#f2f5fb]",3,"click"],["type","button","aria-label","Next",1,"popular-arrow","popular-arrow-right",3,"click"],["type","button",1,"popular-dot",3,"popular-dot-active"],["type","button",1,"popular-dot",3,"click"]],template:function(n,r){1&n&&(t.j41(0,"section",0)(1,"div",1),t.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),t.k0s(),t.j41(7,"div",7)(8,"div",8)(9,"h1",9),t.EFF(10),t.nI1(11,"translate"),t.j41(12,"span",10),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.EFF(15),t.nI1(16,"translate"),t.j41(17,"span",10),t.EFF(18),t.nI1(19,"translate"),t.k0s()(),t.j41(20,"form",11),t.bIt("ngSubmit",function(p){return r.onSearch(p)}),t.j41(21,"div",12)(22,"input",13),t.nI1(23,"translate"),t.mxI("ngModelChange",function(p){return t.DH7(r.searchQuery,p)||(r.searchQuery=p),p}),t.k0s(),t.j41(24,"button",14),t.qSk(),t.j41(25,"svg",15),t.nrm(26,"path",16),t.k0s()()()()(),t.joV(),t.j41(27,"div",17)(28,"div",18)(29,"h2",19),t.EFF(30),t.nI1(31,"translate"),t.k0s(),t.j41(32,"p",20),t.EFF(33),t.nI1(34,"translate"),t.k0s()(),t.DNE(35,k,4,0,"div",21)(36,T,8,4),t.k0s(),t.DNE(37,U,10,7,"div",17),t.k0s()()),2&n&&(t.R7$(10),t.SpI(" ",t.bMT(11,10,"BROWSE.heroTitle1")," "),t.R7$(3),t.JRh(t.bMT(14,12,"BROWSE.heroAccent1")),t.R7$(2),t.SpI(" ",t.bMT(16,14,"BROWSE.heroTitle2")," "),t.R7$(3),t.JRh(t.bMT(19,16,"BROWSE.heroAccent2")),t.R7$(4),t.FS9("placeholder",t.bMT(23,18,"BROWSE.searchPlaceholder")),t.R50("ngModel",r.searchQuery),t.R7$(8),t.SpI(" ",t.bMT(31,20,"BROWSE.categoriesTitle")," "),t.R7$(3),t.SpI(" ",t.bMT(34,22,"BROWSE.categoriesSubtitle")," "),t.R7$(2),t.vxM(35,r.loading?35:36),t.R7$(2),t.vxM(37,r.popularLoading||r.popularOffers.length>0?37:-1))},dependencies:[v.MD,d.YN,d.qT,d.me,d.BC,d.cb,d.vS,d.cV,m.h,m.D9,b.dX,b.aY],styles:[".browse-wrap[_ngcontent-%COMP%]{position:relative;width:100%;isolation:isolate}.browse-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#f3f6ff}.browse-content[_ngcontent-%COMP%]{position:relative;z-index:1}.browse-ellipse[_ngcontent-%COMP%]{position:absolute;width:720px;height:720px;border-radius:9999px;transform:rotate(180deg);opacity:1;background:radial-gradient(circle at 35% 35%,#b6caecf2,#b6caeca6 38%,#b6caec00 72%);filter:blur(10px)}.browse-e1[_ngcontent-%COMP%]{left:-220px;top:-190px}.browse-e2[_ngcontent-%COMP%]{right:-260px;top:60px}.browse-e3[_ngcontent-%COMP%]{left:50%;top:-240px;transform:translate(-50%) rotate(180deg)}.browse-e4[_ngcontent-%COMP%]{left:140px;bottom:-360px}.browse-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f22e 25.7%,#fffafa47 94.73%);backdrop-filter:blur(90px);-webkit-backdrop-filter:blur(90px);transform:rotate(180deg)}@media (max-width: 1024px){.browse-ellipse[_ngcontent-%COMP%]{width:620px;height:620px;filter:blur(9px)}.browse-e2[_ngcontent-%COMP%]{right:-300px}}.popular-card[_ngcontent-%COMP%]{transition:border-color .2s ease,box-shadow .2s ease}.popular-card[_ngcontent-%COMP%]:hover{border-color:#3d71cc;box-shadow:0 6px 20px #2d58a71f}.popular-grid[data-direction=init][_ngcontent-%COMP%], .popular-grid[data-direction=next][_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popularSlideInRight .6s cubic-bezier(.22,1,.36,1) both}.popular-grid[data-direction=prev][_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_popularSlideInLeft .6s cubic-bezier(.22,1,.36,1) both}@keyframes _ngcontent-%COMP%_popularSlideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_popularSlideInLeft{0%{transform:translate(-100%)}to{transform:translate(0)}}.popular-arrow[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:9999px;background:#fff;color:#0b1220;box-shadow:0 4px 16px #2d58a733;transition:color .2s ease,box-shadow .2s ease,opacity .2s ease}.popular-arrow[_ngcontent-%COMP%]:hover:not(:disabled){color:#1f4fbf;box-shadow:0 4px 18px #2d58a752}.popular-arrow[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.popular-arrow-left[_ngcontent-%COMP%]{left:0}.popular-arrow-right[_ngcontent-%COMP%]{right:0}.popular-dot[_ngcontent-%COMP%]{width:10px;height:10px;border-radius:9999px;background:#d8dade;transition:background .2s ease,width .2s ease}.popular-dot[_ngcontent-%COMP%]:hover{background:#b8babf}.popular-dot-active[_ngcontent-%COMP%]{background:#3d71cc;width:28px}@media (max-width: 640px){.popular-arrow[_ngcontent-%COMP%]{display:none}.browse-ellipse[_ngcontent-%COMP%]{width:520px;height:520px;filter:blur(8px)}.browse-e1[_ngcontent-%COMP%]{left:-280px;top:-230px}.browse-e2[_ngcontent-%COMP%]{right:-320px;top:10px}.browse-e4[_ngcontent-%COMP%]{left:40px;bottom:-380px}}"]})}}return o})()}}]); \ No newline at end of file diff --git a/portal/bae-frontend/index.html b/portal/bae-frontend/index.html index 6ab511e7..b03071b4 100644 --- a/portal/bae-frontend/index.html +++ b/portal/bae-frontend/index.html @@ -20,5 +20,5 @@ - + diff --git a/portal/bae-frontend/main.a14c26c075135656.js b/portal/bae-frontend/main.a14c26c075135656.js new file mode 100644 index 00000000..b3f7248e --- /dev/null +++ b/portal/bae-frontend/main.a14c26c075135656.js @@ -0,0 +1 @@ +(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[792],{7005:(y1,d1,y)=>{"use strict";y.d(d1,{Ay:()=>K,Tw:()=>p,Wh:()=>Z,dD:()=>m});const m={primaryCategoriesMode:"catalogFirstLevel",primaryRootName:""},g={primaryCategoriesMode:"catalogFirstLevel",primaryRootName:""},e=[],p=_(e);function _(p1){return(p1||[]).map(Y=>({...Y,children:Y.children?Y.children.map(h1=>({name:h1.name,label:h1.label})):void 0}))}function S(p1){return p1&&"object"==typeof p1&&"string"==typeof p1.name&&""!==p1.name.trim()?{name:p1.name.trim(),label:"string"==typeof p1.label?p1.label:void 0}:null}function A(p1){if(!p1||"object"!=typeof p1||"string"!=typeof p1.name||""===p1.name.trim())return null;const Y="categoryRoot"===p1.source?"categoryRoot":"configured";return{name:p1.name.trim(),label:"string"==typeof p1.label?p1.label:void 0,source:Y,rootName:"categoryRoot"===Y&&"string"==typeof p1.rootName?p1.rootName:void 0,children:"configured"===Y&&Array.isArray(p1.children)?p1.children.map(S).filter(e1=>!!e1):void 0}}function Z(p1){const Y=function $(p1){if(p1&&"object"==typeof p1)return p1.searchFilters}(p1);if("catalogFirstLevel"==("rooted"===Y?.primaryCategoriesMode?"rooted":"catalogFirstLevel"))return m.primaryCategoriesMode="catalogFirstLevel",m.primaryRootName="",void p.splice(0,p.length,..._(e));const e1="string"==typeof Y?.primaryRootName?Y.primaryRootName.trim():g.primaryRootName;m.primaryCategoriesMode="rooted",m.primaryRootName=e1;const r1=Y?.filters,M1=Array.isArray(r1)?r1.map(A).filter($1=>!!$1):[];p.splice(0,p.length,..._(M1.length>0?M1:e))}const K=p},7745:(y1,d1,y)=>{"use strict";y.d(d1,{nc:()=>p});var m=y(604);const g=m.qIE,e={Security:m.fLc,Infrastructure:m.D6w,Productivity:m.zm_,DevOps:m.jTw,Professional:m.BzA,Specific:m.qIE,"Data and AI":m.GQu,Integration:m.QtJ};function p(_){return _?e[_]??g:g}},8508:(y1,d1,y)=>{"use strict";y.d(d1,{K:()=>p1});var m=y(1626),g=y(1985),e=y(8810),p=y(7673),_=y(6354),S=y(7468),A=y(2087),$=y(8058),Z=y(5312),K=y(4438);let p1=(()=>{class Y{get apiUrl(){const e1=Z.c.quoteApi;return e1.startsWith("http://")||e1.startsWith("https://")?e1:`${Z.c.BASE_URL}${e1}`}get documentApiUrl(){const e1=Z.c.documentApi;return(e1.startsWith("http://")||e1.startsWith("https://")?e1:`${Z.c.BASE_URL}${e1}`).replace(/\/$/,"")}get httpOptions(){return{headers:new m.Lr({"Content-Type":"application/json"})}}constructor(e1){this.http=e1}createQuote(e1){return this.http.post(`${this.apiUrl}/quote`,e1,this.httpOptions)}createQuoteFromRequest(e1){return this.http.post(`${this.apiUrl}${Z.c.quoteEndpoints.createQuote}`,e1,this.httpOptions)}listQuotes(e1,r1,M1){let f1=new m.Nl;return e1&&(f1=f1.set("fields",e1)),void 0!==r1&&(f1=f1.set("offset",r1.toString())),void 0!==M1&&(f1=f1.set("limit",M1.toString())),this.http.get(`${this.apiUrl}/quote`,{params:f1,...this.httpOptions})}retrieveQuote(e1,r1){let M1=new m.Nl;r1&&(M1=M1.set("fields",r1));const f1=encodeURIComponent(e1);return console.log("Retrieving quote with URL:",`${this.apiUrl}/quoteById/${f1}`),this.http.get(`${this.apiUrl}/quoteById/${f1}`,{params:M1,...this.httpOptions})}patchQuote(e1,r1){const M1=encodeURIComponent(e1);return console.log("Updating quote with URL:",`${this.apiUrl}/updateQuoteStatus/${M1}`),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${M1}`,r1,this.httpOptions)}deleteQuote(e1){const r1=encodeURIComponent(e1);return console.log("Deleting quote with URL:",`${this.apiUrl}/quote/${r1}`),this.http.delete(`${this.apiUrl}/quote/${r1}`,this.httpOptions)}getAllQuotes(){return this.listQuotes()}getQuoteById(e1){return this.retrieveQuote(e1)}updateQuoteState(e1,r1){return this.patchQuote(e1,{state:r1})}updateQuoteDescription(e1,r1){return this.patchQuote(e1,{description:r1})}addNoteToQuote(e1,r1,M1){let f1=new m.Nl;f1=f1.set("userId",M1||""),f1=f1.set("messageContent",r1);const $1=encodeURIComponent(e1);return console.log("Adding note to quote with URL:",`${this.apiUrl}/addNoteToQuote/${$1}`),this.http.patch(`${this.apiUrl}/addNoteToQuote/${$1}`,null,{params:f1,...this.httpOptions})}updateQuoteCompletionDates(e1,r1,M1){const f1={};return r1&&(f1.expectedQuoteCompletionDate=r1),M1&&(f1.requestedQuoteCompletionDate=M1),this.patchQuote(e1,f1)}getQuotesByUserAndRole(e1,r1){let M1=new m.Nl;M1=M1.set("role","customer"===r1?Z.c.BUYER_ROLE:Z.c.SELLER_ROLE);const $1=encodeURIComponent(e1);return console.log("Getting quotes by user with URL:",`${this.apiUrl}/quoteByUser/${$1}`),this.http.get(`${this.apiUrl}/quoteByUser/${$1}`,{params:M1,...this.httpOptions})}searchQuotes(e1){return new g.c(r1=>{this.listQuotes().subscribe({next:M1=>{let f1=M1;e1.state&&(f1=f1.filter($1=>$1.state===e1.state)),e1.category&&(f1=f1.filter($1=>$1.category===e1.category)),e1.externalId&&(f1=f1.filter($1=>$1.externalId===e1.externalId)),e1.description&&(f1=f1.filter($1=>$1.description?.toLowerCase().includes(e1.description.toLowerCase()))),r1.next(f1)},error:M1=>r1.error(M1)})})}updateQuoteStatus(e1,r1){let M1=new m.Nl;M1=M1.set("statusValue",r1);const f1=encodeURIComponent(e1);return console.log("Updating quote status with URL:",`${this.apiUrl}/updateQuoteStatus/${f1}`),console.log("Status value:",r1),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${f1}`,null,{params:M1,...this.httpOptions})}updateQuoteDate(e1,r1,M1){let f1=new m.Nl;f1=f1.set("date",r1),f1=f1.set("dateType",M1);const $1=encodeURIComponent(e1);return console.log("Updating quote date with URL:",`${this.apiUrl}/updateQuoteDate/${$1}`),console.log("Date:",r1,"DateType:",M1),this.http.patch(`${this.apiUrl}/updateQuoteDate/${$1}`,null,{params:f1,...this.httpOptions})}addNoteToQuoteOld(e1,r1){return this.addNoteToQuote(e1,r1)}addAttachmentToQuote(e1,r1,M1){const f1=new FormData;f1.append("file",r1),M1&&f1.append("description",M1);const $1=encodeURIComponent(e1);return this.http.patch(`${this.apiUrl}/addAttachmentToQuote/${$1}`,f1)}downloadAttachment(e1){const r1=this.getFirstQuoteAttachment(e1);if(!r1)return(0,e.$)(()=>new Error("No attachment found for this quote."));const M1=this.getQuoteAttachmentFilename(e1,r1),f1=this.getAttachmentDownloadUrl(r1);if(f1)return this.startAttachmentDownload(f1,M1),console.log(`Started attachment download: ${M1}`),(0,p.of)(void 0);const $1=this.getDocumentSpecificationId(r1);return $1?this.http.get(this.getDocumentSpecificationUrl($1),this.httpOptions).pipe((0,_.T)(o2=>{const S2=o2.attachment?.[0];if(!S2?.content)throw new Error("Document attachment content not found.");const c2=S2.name||o2.name||M1;this.downloadBase64Attachment(S2.content,S2.mimeType||r1.mimeType||"application/octet-stream",c2),console.log(`Downloaded document attachment: ${c2}`)})):(0,e.$)(()=>new Error("Attachment link not available for this attachment."))}getAttachmentDownloadUrl(e1){return[e1.url,e1.href,e1.path,e1.content].find(M1=>this.isDownloadableAttachmentLink(M1))||null}getDocumentSpecificationUrl(e1){return`${this.documentApiUrl}/documentSpecification/${encodeURIComponent(e1.trim())}`}getFirstQuoteAttachment(e1){if(!Array.isArray(e1.quoteItem))return null;for(const r1 of e1.quoteItem)if(r1.attachment&&r1.attachment.length>0)return r1.attachment[0];return null}getQuoteAttachmentFilename(e1,r1){const M1=e1.id?.length&&e1.id.length>8?e1.id.slice(-8):e1.id||"unknown";return r1.name||`quote-${M1}-attachment.pdf`}startAttachmentDownload(e1,r1){const M1=document.createElement("a");M1.href=e1,M1.download=r1,M1.target="_blank",M1.rel="noopener noreferrer",document.body.appendChild(M1),M1.click(),document.body.removeChild(M1)}downloadBase64Attachment(e1,r1,M1){const f1=e1.includes(",")?e1.substring(e1.indexOf(",")+1):e1,$1=atob(f1),o2=new Uint8Array($1.length);for(let G1=0;G1<$1.length;G1++)o2[G1]=$1.charCodeAt(G1);const S2=new Blob([o2],{type:r1}),c2=URL.createObjectURL(S2);this.startAttachmentDownload(c2,M1),URL.revokeObjectURL(c2)}getDocumentSpecificationId(e1){return[e1.content,e1.id,e1.href].find(M1=>this.isDocumentSpecificationReference(M1))||null}isDownloadableAttachmentLink(e1){const r1=e1?.trim();return!(!r1||!(/^https?:\/\//i.test(r1)||r1.startsWith("/")||r1.startsWith("blob:")))}isDocumentSpecificationReference(e1){return/^urn:ngsi-ld:(document-specification|documentspecification):/i.test(e1?.trim()||"")}getQuotesByUser(e1){return new g.c(r1=>{this.listQuotes().subscribe({next:M1=>{const f1=M1.filter($1=>$1.relatedParty?.some(o2=>o2.id===e1));r1.next(f1)},error:M1=>r1.error(M1)})})}isQuoteCancelled(e1){return e1.quoteItem?.some(r1=>r1.state===$.yz.CANCELLED)||!1}isQuoteAccepted(e1){return e1.quoteItem?.some(r1=>r1.state===$.yz.ACCEPTED)||!1}isQuoteFinalized(e1){return this.isQuoteCancelled(e1)||this.isQuoteAccepted(e1)}updateQuote(e1,r1){return this.patchQuote(e1,r1)}createCoordinatorQuote(e1,r1){return this.http.post(`${this.apiUrl}/tendering/createCoordinatorQuote`,{customerMessage:r1,customerIdRef:e1},this.httpOptions).pipe((0,_.T)(f1=>this.mapQuoteToTender(f1)))}createTenderingQuote(e1,r1,M1,f1){return this.http.post(`${this.apiUrl}/tendering/createQuote`,{customerMessage:f1||"",customerIdRef:e1,providerIdRef:r1,externalId:M1},this.httpOptions).pipe((0,_.T)(o2=>this.mapQuoteToTender(o2)))}createMultipleTenderingQuotes(e1,r1,M1,f1){const $1=r1.map(o2=>this.createTenderingQuote(e1,o2,M1,f1));return(0,S.p)($1)}getCoordinatorQuotesByUser(e1){const r1=encodeURIComponent(e1);return console.log("Getting coordinator quotes for user:",r1),this.http.get(`${this.apiUrl}/tendering/coordinatorQuotes/${r1}`,this.httpOptions).pipe((0,_.T)(M1=>M1.map(f1=>this.mapQuoteToTender(f1))))}getTenderingQuotesByUser(e1,r1=A.XZ.SELLER,M1){const f1=encodeURIComponent(e1);let $1=(new m.Nl).set("role",r1);return M1&&($1=$1.set("externalId",M1)),console.log("Getting tendering quotes for user:",f1,"role:",r1,"externalId:",M1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions}).pipe((0,_.T)(o2=>o2.map(S2=>this.mapQuoteToTender(S2))))}getTenderingQuotesByExternalId(e1,r1,M1){const f1=encodeURIComponent(e1);let $1=(new m.Nl).set("role",M1).set("externalId",r1);return console.log("Getting tendering quotes by external ID:",r1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions})}broadcastMessage(e1,r1,M1){const f1={externalId:e1,userId:r1,messageContent:M1};return console.log("Broadcasting message to external ID:",e1),this.http.post(`${this.apiUrl}/tendering/broadcastMessage`,f1,this.httpOptions)}updateTenderStatus(e1,r1){return this.updateQuoteStatus(e1,r1).pipe((0,_.T)(M1=>this.mapQuoteToTender(M1)))}mapQuoteToTender(e1){const r1=e1.expectedFulfillmentStartDate||e1.effectiveQuoteCompletionDate||(new Date).toISOString(),M1=e1.description||void 0;let f1;if(e1.quoteItem&&e1.quoteItem.length>0){const d2=e1.quoteItem[0];if(d2.attachment&&d2.attachment.length>0){const _2=d2.attachment[0];f1={name:_2.name||"attachment.pdf",mimeType:_2.mimeType||"application/pdf",content:_2.content,url:_2.url,href:_2.href,path:_2.path,size:_2.size?.amount}}}const $1=e1.relatedParty?.filter(d2=>d2.role?.toLowerCase()===A.XZ.SELLER.toLowerCase()).map(d2=>d2.id)||[];let o2="coordinator";e1.category===$.K0.TENDER?o2="tendering":e1.category===$.K0.COORDINATOR&&(o2="coordinator");let S2="pending";e1.quoteItem&&e1.quoteItem.length>0?S2=e1.quoteItem[0].state||e1.state||"pending":e1.state&&(S2=e1.state);let c2="draft";S2===$.yz.PENDING?c2="draft":S2===$.yz.IN_PROGRESS?c2="pre-launched":S2===$.yz.APPROVED?c2="sent":S2===$.yz.ACCEPTED?c2="closed":S2===$.yz.CANCELLED?c2="cancelled":S2===$.yz.REJECTED&&(c2="rejected");const G1=e1.externalId,O1=e1.relatedParty?.find(d2=>d2.role?.toLowerCase()===A.XZ.SELLER.toLowerCase())?.name,d0=e1.relatedParty?.find(d2=>d2.role?.toLowerCase()===A.XZ.BUYER.toLowerCase())?.id;return{id:e1.id,category:o2,state:c2,responseDeadline:r1,tenderNote:M1,attachment:f1,selectedProviders:$1,external_id:G1,provider:O1,buyerPartyId:d0,createdAt:e1.quoteDate,updatedAt:e1.quoteDate,effectiveQuoteCompletionDate:e1.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:e1.expectedFulfillmentStartDate,expectedQuoteCompletionDate:e1.expectedQuoteCompletionDate,requestedQuoteCompletionDate:e1.requestedQuoteCompletionDate}}static{this.\u0275fac=function(r1){return new(r1||Y)(K.KVO(m.Qq))}}static{this.\u0275prov=K.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})()},8058:(y1,d1,y)=>{"use strict";y.d(d1,{D5:()=>S,Ft:()=>p1,K0:()=>m,L9:()=>Z,NT:()=>_,R4:()=>e,Wc:()=>A,ZR:()=>$,ak:()=>h1,bJ:()=>K,kU:()=>p,te:()=>Y,yz:()=>g});const m={TAILORED:"tailored",TENDER:"tender",COORDINATOR:"coordinator"},g={PENDING:"pending",IN_PROGRESS:"inProgress",APPROVED:"approved",ACCEPTED:"accepted",CANCELLED:"cancelled",REJECTED:"rejected"},e={PENDING:"Not Yet Submitted",IN_PROGRESS:"Invites Sent, Waiting Acceptance",APPROVED:"Tender Started",ACCEPTED:"Tender Closed",CANCELLED:"Cancelled",REJECTED:"Rejected"},p={PENDING:"Invite Sent",IN_PROGRESS:"Invite Accepted by Provider",APPROVED:"Offer Submitted by Provider",ACCEPTED:"Offering Accepted",CANCELLED:"Request Cancelled",REJECTED:"Offering Rejected"},_={PENDING:"Invite Received",IN_PROGRESS:"Invitation Accepted",APPROVED:"Offering Submitted",ACCEPTED:"Offering Accepted by Customer",CANCELLED:"Request Cancelled",REJECTED:"Offering Rejected"},S={PENDING:"request-sent-awaiting-feedback",IN_PROGRESS:"request-accepted-and-being-worked-on",APPROVED:"offering-submitted-by-provider",ACCEPTED:"offering-accepted",CANCELLED:"request-canceled",REJECTED:"rejected"},A={PENDING:"request-received-pending-feedback",IN_PROGRESS:"request-accepted",APPROVED:"offering-submitted",ACCEPTED:"offering-accepted-by-customer",CANCELLED:"request-canceled",REJECTED:"rejected"},$={pending:{provider:{explanation:"At this stage you can decide whether to accept or reject the quote request.",availableActions:"Send messages to customer (chat), accept or decline the quote."},buyer:{explanation:"The quote is created and sent to the provider. At this stage the provider must either accept or decline the request.",availableActions:"Send messages to provider (chat), view quote request details or cancel the request."}},inProgress:{provider:{explanation:"At this point you need to provide a proposal in the form of a PDF attachment.",availableActions:"Send messages to customer (chat), upload attachment or decline the quote."},buyer:{explanation:"Your quote request is being processed. The provider is currently building the proposal based on your specifications. You will be notified once the quote is ready for review and a PDF is uploaded.",availableActions:"Send messages to provider (chat), view quote details or cancel the request."}},approved:{provider:{explanation:"The quote details are now locked and cannot be modified. The quote has been sent to the customer. You should wait for the customer to review the proposal and use the chat to get in touch with them.",availableActions:"Send messages to customer (chat) or cancel the quote."},buyer:{explanation:"The provider has approved and sent you a quote proposal. Please review the details and attached documents. You can accept, reject, or request updates through the chat.",availableActions:"Send messages to provider (chat), accept the proposal or reject the proposal or cancel the quote."}},accepted:{provider:{explanation:"The customer has accepted your quote proposal. You should now create a customized version of the offering that will be visible only to the customer. The chat remains open for further communication.",availableActions:"Send messages to customer (chat), create customized offering."},buyer:{explanation:"You have accepted the quote proposal. The provider will now create a customized offering based on this agreement. Once available, you can proceed with the normal order process to subscribe to the service.",availableActions:"Send messages to provider (chat)."}},rejected:{provider:{explanation:"The customer has rejected this quote proposal. The negotiation process has ended. You can reach out to the customer through the chat and consider submitting a new proposal.",availableActions:"View quote details and chat history."},buyer:{explanation:"You have rejected this quote proposal. The negotiation process has been closed. If you wish, you can submit a new quote request with updated requirements.",availableActions:"View quote details and chat history."}},cancelled:{provider:{explanation:"This quote has been cancelled.",availableActions:"View quote details and chat history. No further actions available."},buyer:{explanation:"This quote has been cancelled.",availableActions:"View quote details and chat history. No further actions available."}}},Z={pending:{provider:{explanation:"The tender request has been sent to you. At this stage you can decide whether to participate or not in this tender.",availableActions:"Send messages to buyer (chat), accept or decline the tender request or withdraw from the tender."},buyer:{explanation:"The tender is created and sent to the provider. Waiting for the provider to accept or decline participation.",availableActions:"Send messages to provider (chat), view tender request details or cancel the request."}},inProgress:{provider:{explanation:"You are participating in this tender. Provide your offer as a PDF document to attach with all required details.",availableActions:"Send messages to buyer (chat), upload tender response documents or withdraw from tender."},buyer:{explanation:"The provider is preparing their tender response. You will be notified once they submit their proposal.",availableActions:"Send messages to provider (chat), view tender details or cancel the tender."}},approved:{provider:{explanation:"Your offer has been submitted and is under review by the buyer.",availableActions:"Send messages to buyer (chat) or withdraw your tender response."},buyer:{explanation:"The provider has submitted their tender response. Please review the submission and all attached documents.",availableActions:"Send messages to provider (chat), accept the tender response, reject it, or request clarifications."}},accepted:{provider:{explanation:"Congratulations! Your tender response has been accepted. You must now proceed with creating the customized offering.",availableActions:"Send messages to buyer (chat)."},buyer:{explanation:"You have accepted this offer. The provider must now proceed with creating the customized offering.",availableActions:"Send messages to provider (chat)."}},rejected:{provider:{explanation:"Your offer was not selected for this tender.",availableActions:"View tender details and chat history."},buyer:{explanation:"You have rejected this offer.",availableActions:"View tender details and chat history."}},cancelled:{provider:{explanation:"This offering has been cancelled.",availableActions:"View tender details and chat history. No further actions available."},buyer:{explanation:"This offering has been cancelled.",availableActions:"View tender details and chat history. No further actions available."}}},K={pending:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"Tender is still in draft",availableActions:"Finish draft details"}},inProgress:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The invited providers now have time to accept or decline the invite to the tender",availableActions:"View provider responses, send messages, monitor progress, or start the tender"}},approved:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The tendering is launched, the providers that have accepted the invitation must now provide an offer by attaching a PDF document. You must review and compare the offerings provided and will be able to accept the winning one once the End tender date has been reached and the tendering process is closed",availableActions:"Review responses, compare proposals, or request additional information."}},accepted:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The tender is now closed. You can select the winning proposal and accept it",availableActions:"View tender details, communicate with winning provider"}},rejected:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"...",availableActions:"..."}},cancelled:{provider:{explanation:"This tender has been cancelled.",availableActions:"View tender details. No further actions available."},buyer:{explanation:"This tender has been cancelled.",availableActions:"View tender details. No further actions available."}}},p1={STATUS_CHANGE:e1=>`Status changed to: ${e1}`,ATTACHMENT_UPLOADED:e1=>`Attachment uploaded: ${e1}`},Y="You must decide and select a date for the start and the end of the tender, also you must provide a PDF document with the description of your request. Fill all of this information before going to the next step.",h1={ACCEPT_QUOTE_PROVIDER:"Accept the request of the customer. Set an expected delivery Date first to proceed.",ACCEPT_PROPOSAL_CUSTOMER:"Accept the proposal that has been sent to you by the provider.",CANCEL_QUOTE_PROVIDER:"Cancel the quote request.",REJECT_PROPOSAL_CUSTOMER:"Reject the proposal.",CREATE_OFFER:"Create a customized offering based on this accepted quote.",EXPECTED_DATE_REQUIRED:"Set an expected date for the delivery of the proposal first",ACCEPT_TENDER_INVITE:"Accept the invitation to the tender.",DECLINE_TENDER_INVITE:"Decline the invitation to the tender."}},2087:(y1,d1,y)=>{"use strict";y.d(d1,{E9:()=>e,XZ:()=>m,Zk:()=>g});const m={BUYER:"Buyer",SELLER:"Seller"},g={BUYER:"buyer",SELLER:"seller"};function e(_){return _===g.BUYER?m.BUYER:m.SELLER}},452:(y1,d1,y)=>{"use strict";y.d(d1,{O:()=>S});var m=y(3207),g=y(5312),e=y(4438),p=y(1626),_=y(3077);class S{static{this.BASE_URL=g.c.BASE_URL}static{this.API_ACCOUNT=g.c.ACCOUNT}constructor($,Z){this.http=$,this.localStorage=Z}getBillingAccount(){return(0,m.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`))}getBillingAccountById($){return(0,m.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`))}postBillingAccount($){return this.http.post(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`,$)}updateBillingAccount($,Z){return this.http.patch(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`,Z)}deleteBillingAccount($){return this.http.delete(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`)}getUserInfo($){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/individual/${$}`))}getOrgInfo($){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/organization/${$}`))}getOrgList(){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/organization`))}updateUserInfo($,Z){return this.http.patch(`${S.BASE_URL}/party/individual/${$}`,Z)}updateOrgInfo($,Z){return this.http.patch(`${S.BASE_URL}/party/organization/${$}`,Z)}static{this.\u0275fac=function(Z){return new(Z||S)(e.KVO(p.Qq),e.KVO(_.s))}}static{this.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}},3077:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>g});var m=y(4438);let g=(()=>{class e{constructor(){}setItem(_,S){localStorage.setItem(_,S)}getItem(_){return localStorage.getItem(_)}setObject(_,S){localStorage.setItem(_,JSON.stringify(S))}getObject(_){return JSON.parse(localStorage.getItem(_)||"{}")}removeItem(_){localStorage.removeItem(_)}clear(){localStorage.clear()}addCategoryFilter(_){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]");-1===S.findIndex($=>$.id===_.id)&&(S.push(_),localStorage.setItem("selected_categories",JSON.stringify(S)))}removeCategoryFilter(_){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]"),A=S.findIndex($=>$.id===_.id);A>-1&&(S.splice(A,1),localStorage.setItem("selected_categories",JSON.stringify(S)))}addCartItem(_){const S=JSON.parse(localStorage.getItem("cart_items")||"[]");-1===S.findIndex($=>$.id===_.id)&&(S.push(_),localStorage.setItem("cart_items",JSON.stringify(S)))}removeCartItem(_){const S=JSON.parse(localStorage.getItem("cart_items")||"[]"),A=S.findIndex($=>$.id===_.id);A>-1&&(S.splice(A,1),localStorage.setItem("cart_items",JSON.stringify(S)))}addLoginInfo(_){localStorage.setItem("login_items",JSON.stringify(_))}removeLoginInfo(){localStorage.setItem("login_items",JSON.stringify({}))}static{this.\u0275fac=function(S){return new(S||e)}}static{this.\u0275prov=m.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()},7473:(y1,d1,y)=>{"use strict";y.d(d1,{J:()=>e});var m=y(4412),g=y(4438);let e=(()=>{class p{constructor(){this.notificationSubject=new m.t(null),this.notification$=this.notificationSubject.asObservable()}showSuccess(S){this.show({type:"success",message:S})}showError(S){this.show({type:"error",message:S})}showInfo(S){this.show({type:"info",message:S})}show(S){this.notificationSubject.next(S),setTimeout(()=>this.clear(),3e3)}clear(){this.notificationSubject.next(null)}static{this.\u0275fac=function(A){return new(A||p)}}static{this.\u0275prov=g.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},7387:(y1,d1,y)=>{"use strict";y.d(d1,{F:()=>K});var m=y(467),g=y(8866),e=y(3207),p=y(9437),_=y(7673),S=y(5312),A=y(4438),$=y(1626),Z=y(3077);class K{static{this.BASE_URL=S.c.BASE_URL}static{this.API_PRODUCT=S.c.PRODUCT_CATALOG}static{this.PRODUCT_LIMIT=S.c.PRODUCT_LIMIT}static{this.CATALOG_LIMIT=S.c.CATALOG_LIMIT}static{this.CATEGORY_LIMIT=S.c.CATEGORY_LIMIT}constructor(Y,h1){this.http=Y,this.localStorage=h1}getAllProducts(){return this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/productOffering?lifecycleStatus=Launched&limit=100`)}getProducts(Y,h1,e1){let r1=`${K.BASE_URL}${K.API_PRODUCT}/productOffering?limit=${K.PRODUCT_LIMIT}&offset=${Y}&lifecycleStatus=Launched`;return null!=h1&&(r1=r1+"&keyword="+h1),null!=e1&&(r1=r1+"&sort="+e1),(0,e.s)(this.http.get(r1))}getProductsDetails(Y){var h1=this;return(0,m.A)(function*(){let e1=[];return Array.isArray(Y)?e1=Y:Y&&"object"==typeof Y&&(e1=[Y]),yield Promise.all(e1.map(function(){var r1=(0,m.A)(function*(M1){try{const[f1,$1]=yield Promise.all([M1.productSpecification?.id?h1.getProductSpecification(M1.productSpecification.id):Promise.resolve(void 0),M1.productOfferingPrice?.length?h1.getProductPrices(M1.productOfferingPrice.map(o2=>o2.id)):Promise.resolve([])]);return{id:M1.id,href:M1.href,name:M1.name,description:M1.description,isBundle:M1.isBundle,isSellable:M1.isSellable,lastUpdate:M1.lastUpdate,lifecycleStatus:M1.lifecycleStatus,statusReason:M1.statusReason,version:M1.version,agreement:M1.agreement??[],attachment:f1?.attachment??[],bundledProductOffering:M1.bundledProductOffering??[],category:M1.category??[],channel:M1.channel??[],marketSegment:M1.marketSegment??[],place:M1.place??[],prodSpecCharValueUse:M1.prodSpecCharValueUse??[],productOfferingPrice:$1??[],productOfferingRelationship:M1.productOfferingRelationship??[],productOfferingTerm:M1.productOfferingTerm??[],productSpecification:f1??M1.productSpecification,resourceCandidate:M1.resourceCandidate,serviceCandidate:M1.serviceCandidate,serviceLevelAgreement:M1.serviceLevelAgreement,validFor:M1.validFor,"@baseType":M1["@baseType"],"@schemaLocation":M1["@schemaLocation"],"@type":M1["@type"]}}catch(f1){return console.error(`Error processing product ${M1.id}:`,f1),M1}});return function(M1){return r1.apply(this,arguments)}}()))})()}getProductsByCategory(Y,h1,e1,r1){let M1="";for(let S2=0;S20){for(let o2=0;o2{const r1=new Map((e1??[]).map(M1=>[M1.id,M1]));return Y.map(M1=>r1.get(M1)).filter(M1=>null!=M1)})}getLaunchedCategories(){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}&lifecycleStatus=Launched`).pipe((0,p.W)(h1=>(console.error("Error getting categories:",h1),(0,_.of)([])))))}getCategories(Y){let h1=`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}`,e1="";if(Y.length>0){for(let r1=0;r1(console.error("Error getting categories:",r1),(0,_.of)([])))))}getDefaultCategories(){var Y=this;return(0,m.A)(function*(){let h1=[];if(S.c.DFT_CATALOG_ID&&""!==S.c.DFT_CATALOG_ID){const e1=yield Y.getCatalog(S.c.DFT_CATALOG_ID);e1.category&&(h1=yield Promise.all(e1.category.map(function(){var r1=(0,m.A)(function*(M1){return Y.getCategoryById(M1.id)});return function(M1){return r1.apply(this,arguments)}}())))}else h1=yield Y.getLaunchedCategories();return h1})()}getCategoryById(Y){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category/${Y}`))}getCategoriesByParentId(Y){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?parentId=${Y}`))}postCategory(Y){return this.http.post(`${K.BASE_URL}${K.API_PRODUCT}/category`,Y)}updateCategory(Y,h1){return this.http.patch(`${K.BASE_URL}${K.API_PRODUCT}/category/${h1}`,Y)}getCatalogs(Y,h1){let e1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&lifecycleStatus=Launched`;return null!=h1&&(e1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&lifecycleStatus=Launched&body=${h1}`),console.log("getcatalogs"),console.log(this),(0,e.s)(this.http.get(e1))}getCatalogsByUser(Y,h1,e1,r1){let M1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&relatedParty.id=${r1}`,f1="";if(e1&&e1.length>0){for(let $1=0;$1"Compliance:VC"===r1.name);if(e1){const r1=e1.productSpecCharacteristicValue?.at(0)?.value,M1=(0,g.s)(r1);let f1=null;if("verifiableCredential"in M1?f1=M1.verifiableCredential:"vc"in M1&&(f1=M1.vc),null!=f1){const $1=f1.credentialSubject;"gx:labelLevel"in $1&&(h1=$1["gx:labelLevel"])}}}return h1}static{this.\u0275fac=function(h1){return new(h1||K)(A.KVO($.Qq),A.KVO(Z.s))}}static{this.\u0275prov=A.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}},3636:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>Z});var m=y(467),g=y(4438),e=y(177),p=y(9417),_=y(8508),S=y(7473);function A(K,p1){1&K&&(g.j41(0,"div",14)(1,"div",15)(2,"div",16),g.qSk(),g.j41(3,"svg",17),g.nrm(4,"path",18),g.k0s()(),g.joV(),g.j41(5,"div",19)(6,"h3",20),g.EFF(7,"Warning: Existing Attachment"),g.k0s(),g.j41(8,"div",21)(9,"p"),g.EFF(10,"This quote already has an attachment. Uploading a new file will overwrite the existing PDF."),g.k0s()()()()())}function $(K,p1){if(1&K){const Y=g.RV6();g.j41(0,"div",2),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.j41(1,"div",3),g.bIt("click",function(e1){return g.eBV(Y),g.Njj(e1.stopPropagation())}),g.j41(2,"button",4),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.EFF(3," \xd7 "),g.k0s(),g.j41(4,"h3",5),g.EFF(5),g.k0s(),g.DNE(6,A,11,0,"div",6),g.j41(7,"div",7)(8,"label",8),g.EFF(9," Select PDF File "),g.k0s(),g.j41(10,"input",9,0),g.bIt("change",function(e1){g.eBV(Y);const r1=g.XpG();return g.Njj(r1.onFileSelected(e1))}),g.k0s(),g.j41(12,"p",10),g.EFF(13,"Only PDF files are allowed"),g.k0s()(),g.j41(14,"div",11)(15,"button",12),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.uploadAttachment())}),g.EFF(16),g.k0s(),g.j41(17,"button",13),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.EFF(18," Cancel "),g.k0s()()()()}if(2&K){const Y=g.XpG();g.R7$(5),g.SpI(" Add Attachment to Quote ",Y.getShortQuoteId()," "),g.R7$(),g.Y8G("ngIf",Y.hasExistingAttachment),g.R7$(9),g.Y8G("disabled",!Y.selectedFile||Y.isUploading),g.R7$(),g.SpI(" ",Y.isUploading?"Uploading...":"Upload"," ")}}let Z=(()=>{class K{constructor(Y,h1){this.quoteService=Y,this.notificationService=h1,this.isOpen=!1,this.quote=null,this.close=new g.bkB,this.uploadSuccess=new g.bkB,this.selectedFile=null,this.isUploading=!1,this.hasExistingAttachment=!1}ngOnInit(){this.quote&&this.checkForExistingAttachment()}ngOnChanges(){this.isOpen&&this.quote&&(this.checkForExistingAttachment(),this.resetForm())}checkForExistingAttachment(){this.quote&&(this.hasExistingAttachment=Array.isArray(this.quote.quoteItem)&&this.quote.quoteItem.some(Y=>Y.attachment&&Y.attachment.length>0))}onFileSelected(Y){const h1=Y.target.files[0];if(h1){if("application/pdf"!==h1.type)return this.notificationService.showError("Please select a valid PDF file."),this.selectedFile=null,void(Y.target.value="");this.selectedFile=h1}else this.selectedFile=null}uploadAttachment(){var Y=this;return(0,m.A)(function*(){if(Y.selectedFile&&Y.quote?.id&&!Y.isUploading){Y.isUploading=!0;try{const h1=yield Y.quoteService.addAttachmentToQuote(Y.quote.id,Y.selectedFile,"").toPromise();Y.notificationService.showSuccess("Attachment uploaded successfully!"),Y.uploadSuccess.emit(h1),Y.closeModal()}catch(h1){console.error("Error uploading attachment:",h1),Y.notificationService.showError("Error uploading attachment. Please try again.")}finally{Y.isUploading=!1}}})()}getShortQuoteId(){return this.quote?.id?this.quote.id.length>8?this.quote.id.slice(-8):this.quote.id:""}closeModal(){this.resetForm(),this.close.emit()}resetForm(){this.selectedFile=null,this.isUploading=!1}static{this.\u0275fac=function(h1){return new(h1||K)(g.rXU(_.K),g.rXU(S.J))}}static{this.\u0275cmp=g.VBU({type:K,selectors:[["app-attachment-modal"]],inputs:{isOpen:"isOpen",quote:"quote"},outputs:{close:"close",uploadSuccess:"uploadSuccess"},standalone:!0,features:[g.OA$,g.aNF],decls:1,vars:1,consts:[["fileInput",""],["class","fixed inset-0 bg-black bg-opacity-30 flex items-center justify-center z-50",3,"click",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","flex","items-center","justify-center","z-50",3,"click"],[1,"bg-white","rounded-lg","shadow-lg","w-full","max-w-lg","p-8","relative",3,"click"],["aria-label","Close",1,"absolute","top-2","right-2","text-gray-400","hover:text-gray-700","text-xl","font-bold","w-8","h-8","flex","items-center","justify-center",3,"click"],[1,"text-lg","font-semibold","mb-4"],["class","mb-4 p-4 bg-yellow-50 border border-yellow-200 rounded-md",4,"ngIf"],[1,"mb-4"],["for","file-input",1,"block","text-sm","font-medium","text-gray-700","mb-2"],["type","file","accept",".pdf",1,"w-full","border","border-gray-300","rounded-md","px-3","py-2","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"change"],[1,"text-xs","text-gray-500","mt-1"],[1,"flex","justify-between","pt-6","mt-6","border-t","border-gray-200"],["type","button",1,"px-6","py-2","bg-green-600","text-white","rounded","hover:bg-green-700","focus:outline-none","focus:ring-2","focus:ring-green-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],[1,"mb-4","p-4","bg-yellow-50","border","border-yellow-200","rounded-md"],[1,"flex"],[1,"flex-shrink-0"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor",1,"h-5","w-5","text-yellow-400"],["fill-rule","evenodd","d","M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"ml-3"],[1,"text-sm","font-medium","text-yellow-800"],[1,"mt-2","text-sm","text-yellow-700"]],template:function(h1,e1){1&h1&&g.DNE(0,$,19,4,"div",1),2&h1&&g.Y8G("ngIf",e1.isOpen)},dependencies:[e.MD,e.bT,p.YN],encapsulation:2})}}return K})()},8338:(y1,d1,y)=>{"use strict";y.d(d1,{g:()=>$});var m=y(60),g=y(604),e=y(4438);const p=["*"],_=()=>[];function S(Z,K){if(1&Z){const p1=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const h1=e.eBV(p1).$index,e1=e.XpG(2);return e.Njj(e1.goTo(h1))}),e.k0s()}if(2&Z){const p1=K.$index,Y=e.XpG(2);e.HbH(Y.dotClass(Y.index===p1))}}function A(Z,K){if(1&Z&&(e.j41(0,"div",4),e.Z7z(1,S,1,2,"button",5,e.Vm6),e.k0s()),2&Z){const p1=e.XpG();e.R7$(),e.Dyx(e.lJ4(0,_).constructor(p1.pages))}}let $=(()=>{class Z{constructor(){this.visible=3,this.arrowTheme="light",this.dotsTheme="light",this.sidePadding=!0,this.loop=!1,this.index=0,this.faChevronRight=g.XkK,this.faChevronLeft=g.Wzs}get maxIndex(){return Math.max(0,this.items.length-this.visible)}get pages(){return this.maxIndex+1}get trackTransform(){return`translateX(-${this.index*(100/this.visible)}%)`}get wrapperClass(){return this.sidePadding?"relative px-0 sm:px-4 md:px-12 lg:px-16 xl:px-20":"relative"}get leftButtonClass(){return"dark"===this.arrowTheme?"absolute left-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-white/90 bg-transparent text-white transition hover:bg-white/10 disabled:opacity-40":"absolute left-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-900 shadow-md transition disabled:opacity-40"}get rightButtonClass(){return"dark"===this.arrowTheme?"absolute right-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-white/90 bg-transparent text-white transition hover:bg-white/10 disabled:opacity-40":"absolute right-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-900 shadow-md transition disabled:opacity-40"}dotClass(p1){return"accent"===this.dotsTheme?p1?"bg-[#00ADD3]":"bg-[#D1F7FF]":p1?"bg-blue-700":"bg-slate-300"}next(){this.index=this.loop&&this.index>=this.maxIndex?0:Math.min(this.index+1,this.maxIndex)}prev(){this.index=this.loop&&this.index<=0?this.maxIndex:Math.max(this.index-1,0)}goTo(p1){this.index=Math.max(0,Math.min(p1,this.maxIndex))}ngOnChanges(p1){this.index=Math.min(this.index,this.maxIndex)}onResize(){this.index=Math.min(this.index,this.maxIndex)}static{this.\u0275fac=function(Y){return new(Y||Z)}}static{this.\u0275cmp=e.VBU({type:Z,selectors:[["app-carousel"]],hostBindings:function(Y,h1){1&Y&&e.bIt("resize",function(){return h1.onResize()},!1,e.tSv)},inputs:{items:"items",visible:"visible",arrowTheme:"arrowTheme",dotsTheme:"dotsTheme",sidePadding:"sidePadding",loop:"loop"},standalone:!0,features:[e.OA$,e.aNF],ngContentSelectors:p,decls:9,vars:13,consts:[[3,"click","disabled"],[3,"icon"],[1,"overflow-hidden"],[1,"flex","transition-transform","duration-500","ease-out"],[1,"mt-6","flex","justify-center","gap-2","sm:mt-8","md:mt-10","lg:mt-12"],[1,"h-3","w-3","rounded-full","transition",3,"class"],[1,"h-3","w-3","rounded-full","transition",3,"click"]],template:function(Y,h1){1&Y&&(e.NAR(),e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return h1.prev()}),e.nrm(2,"fa-icon",1),e.k0s(),e.j41(3,"div",2)(4,"div",3),e.SdG(5),e.k0s()(),e.j41(6,"button",0),e.bIt("click",function(){return h1.next()}),e.nrm(7,"fa-icon",1),e.k0s()(),e.DNE(8,A,3,1,"div",4)),2&Y&&(e.HbH(h1.wrapperClass),e.R7$(),e.HbH(h1.leftButtonClass),e.Y8G("disabled",!h1.loop&&0===h1.index),e.R7$(),e.Y8G("icon",h1.faChevronLeft),e.R7$(2),e.xc7("transform",h1.trackTransform),e.R7$(2),e.HbH(h1.rightButtonClass),e.Y8G("disabled",!h1.loop&&h1.index===h1.maxIndex),e.R7$(),e.Y8G("icon",h1.faChevronRight),e.R7$(),e.vxM(8,h1.pages>1?8:-1))},dependencies:[m.dX,m.aY],encapsulation:2})}}return Z})()},5586:(y1,d1,y)=>{"use strict";y.d(d1,{d:()=>e1});var m=y(467),g=y(4438),e=y(177),p=y(9417),_=y(8508),S=y(3077),A=y(7473);function $(r1,M1){1&r1&&(g.j41(0,"div",19),g.EFF(1," Loading messages... "),g.k0s())}function Z(r1,M1){1&r1&&(g.j41(0,"div",20),g.EFF(1," Error loading messages "),g.k0s())}function K(r1,M1){1&r1&&(g.j41(0,"div",19),g.EFF(1," No messages yet. "),g.k0s())}function p1(r1,M1){if(1&r1&&(g.j41(0,"div",22)(1,"div",23)(2,"div",24),g.EFF(3),g.k0s(),g.j41(4,"div",25),g.EFF(5),g.k0s()()()),2&r1){const f1=M1.$implicit,$1=g.XpG(3);g.Y8G("ngClass",$1.isMyMessage(f1)?"justify-end":"justify-start"),g.R7$(),g.Y8G("ngClass",$1.isMyMessage(f1)?"bg-blue-100 text-blue-900":"bg-gray-200 text-gray-800"),g.R7$(2),g.JRh(f1.text),g.R7$(),g.Y8G("ngClass",$1.isMyMessage(f1)?"text-right":"text-left"),g.R7$(),g.SpI(" ",$1.formatMessageDate(f1.date)," ")}}function Y(r1,M1){if(1&r1&&(g.j41(0,"div"),g.DNE(1,p1,6,5,"div",21),g.k0s()),2&r1){const f1=g.XpG(2);g.R7$(),g.Y8G("ngForOf",f1.messages)}}function h1(r1,M1){if(1&r1){const f1=g.RV6();g.j41(0,"div",3),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.j41(1,"div",4),g.bIt("click",function(o2){return g.eBV(f1),g.Njj(o2.stopPropagation())}),g.j41(2,"div",5)(3,"h2",6),g.EFF(4),g.k0s(),g.j41(5,"button",7),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.qSk(),g.j41(6,"svg",8),g.nrm(7,"path",9),g.k0s()()(),g.joV(),g.j41(8,"div",10,0),g.DNE(10,$,2,0,"div",11)(11,Z,2,0,"div",12)(12,K,2,0,"div",11)(13,Y,2,1,"div",13),g.k0s(),g.j41(14,"form",14,1),g.bIt("ngSubmit",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.sendMessage())}),g.j41(16,"input",15),g.mxI("ngModelChange",function(o2){g.eBV(f1);const S2=g.XpG();return g.DH7(S2.newMessage,o2)||(S2.newMessage=o2),g.Njj(o2)}),g.bIt("keydown.enter",function(o2){g.eBV(f1);const S2=g.XpG();return g.Njj(S2.onEnterKey(o2))}),g.k0s(),g.j41(17,"div",16)(18,"button",17),g.EFF(19),g.k0s(),g.j41(20,"button",18),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.EFF(21," Close "),g.k0s()()()()()}if(2&r1){const f1=g.XpG();g.R7$(4),g.SpI(" Chat for Quote ",f1.getShortQuoteId()," "),g.R7$(6),g.Y8G("ngIf",f1.isLoading),g.R7$(),g.Y8G("ngIf",f1.error),g.R7$(),g.Y8G("ngIf",!f1.isLoading&&!f1.error&&0===f1.messages.length),g.R7$(),g.Y8G("ngIf",!f1.isLoading&&!f1.error&&f1.messages.length>0),g.R7$(3),g.R50("ngModel",f1.newMessage),g.Y8G("disabled",f1.isSending),g.R7$(2),g.Y8G("disabled",f1.isSending||!f1.newMessage.trim()),g.R7$(),g.SpI(" ",f1.isSending?"Sending...":"Send"," ")}}let e1=(()=>{class r1{constructor(f1,$1,o2){this.quoteService=f1,this.localStorage=$1,this.notificationService=o2,this.isOpen=!1,this.quoteId=null,this.close=new g.bkB,this.messages=[],this.newMessage="",this.isLoading=!1,this.error=!1,this.isSending=!1,this.currentUserId=null}ngOnInit(){let f1=this.localStorage.getObject("login_items");if(f1.logged_as==f1.id)this.currentUserId=f1.partyId;else{let $1=f1.organizations.find(o2=>o2.id==f1.logged_as);this.currentUserId=$1.partyId}this.isOpen&&this.quoteId&&(this.loadMessages(),this.startPolling())}ngOnChanges(){if(this.isOpen&&this.quoteId){let f1=this.localStorage.getObject("login_items");if(f1.logged_as==f1.id)this.currentUserId=f1.partyId;else{let $1=f1.organizations.find(o2=>o2.id==f1.logged_as);this.currentUserId=$1.partyId}this.loadMessages(),this.startPolling()}else this.isOpen||(this.stopPolling(),this.resetState())}ngOnDestroy(){this.stopPolling()}loadMessages(){var f1=this;return(0,m.A)(function*(){if(f1.quoteId){f1.isLoading=!0,f1.error=!1;try{const $1=yield f1.quoteService.getQuoteById(f1.quoteId).toPromise();$1&&(f1.messages=Array.isArray($1?.note)?$1.note:[]),f1.scrollToBottom()}catch($1){console.error("Error loading messages:",$1),f1.error=!0}finally{f1.isLoading=!1}}})()}sendMessage(){var f1=this;return(0,m.A)(function*(){if(console.log("sendMessage called"),console.log("newMessage:",f1.newMessage),console.log("quoteId:",f1.quoteId),console.log("currentUserId:",f1.currentUserId),console.log("isSending:",f1.isSending),f1.newMessage.trim()&&f1.quoteId&&f1.currentUserId&&!f1.isSending){console.log("Starting to send message..."),f1.isSending=!0;try{console.log("Calling addNoteToQuote API..."),yield f1.quoteService.addNoteToQuote(f1.quoteId,f1.newMessage.trim(),f1.currentUserId).toPromise(),console.log("Message sent successfully"),f1.newMessage="",yield f1.loadMessages()}catch($1){console.error("Error sending message:",$1),f1.notificationService.showError("Error sending message. Please try again.")}finally{f1.isSending=!1}}else console.log("Validation failed, returning early")})()}onEnterKey(f1){f1.preventDefault(),this.sendMessage()}isMyMessage(f1){return f1.author===this.currentUserId}formatMessageDate(f1){if(!f1)return"";try{const $1=new Date(f1),o2=$1.getDate().toString().padStart(2,"0"),S2=($1.getMonth()+1).toString().padStart(2,"0"),c2=$1.getFullYear();return`${o2}/${S2}/${c2} ${$1.getHours().toString().padStart(2,"0")}:${$1.getMinutes().toString().padStart(2,"0")}`}catch{return f1}}getShortQuoteId(){return this.quoteId?this.quoteId.length>8?this.quoteId.slice(-8):this.quoteId:""}closeModal(){this.close.emit()}startPolling(){this.stopPolling(),this.pollingInterval=setInterval(()=>{this.isOpen&&this.quoteId&&this.loadMessages()},3e5)}stopPolling(){this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=null)}resetState(){this.messages=[],this.newMessage="",this.isLoading=!1,this.error=!1,this.isSending=!1}scrollToBottom(){setTimeout(()=>{const f1=document.querySelector(".overflow-y-auto");f1&&(f1.scrollTop=f1.scrollHeight)},100)}static{this.\u0275fac=function($1){return new($1||r1)(g.rXU(_.K),g.rXU(S.s),g.rXU(A.J))}}static{this.\u0275cmp=g.VBU({type:r1,selectors:[["app-chat-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId"},outputs:{close:"close"},standalone:!0,features:[g.OA$,g.aNF],decls:1,vars:1,consts:[["messagesContainer",""],["chatForm","ngForm"],["class","fixed inset-0 bg-black bg-opacity-30 flex items-center justify-center z-50",3,"click",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","flex","items-center","justify-center","z-50",3,"click"],[1,"bg-white","rounded-lg","shadow-lg","w-full","max-w-4xl","p-8","relative",3,"click"],[1,"flex","justify-between","items-center","mb-4"],[1,"text-lg","font-semibold","text-gray-900"],[1,"text-gray-400","hover:text-gray-600","focus:outline-none",3,"click"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"border","rounded","p-4","h-96","overflow-y-auto","mb-6","bg-gray-50"],["class","text-gray-400 text-center",4,"ngIf"],["class","text-red-500 text-center",4,"ngIf"],[4,"ngIf"],[3,"ngSubmit"],["name","message","type","text","placeholder","Type a message...","required","",1,"w-full","border","rounded","px-3","py-2","mb-4","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"ngModelChange","keydown.enter","ngModel","disabled"],[1,"flex","justify-between","pt-4","border-t","border-gray-200"],["type","submit",1,"px-4","py-2","bg-blue-600","text-white","rounded","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"disabled"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],[1,"text-gray-400","text-center"],[1,"text-red-500","text-center"],["class","mb-3 flex",3,"ngClass",4,"ngFor","ngForOf"],[1,"mb-3","flex",3,"ngClass"],[1,"max-w-xs","px-3","py-2","rounded-lg","text-sm",3,"ngClass"],[1,"whitespace-pre-wrap"],[1,"text-xs","mt-1","opacity-60",3,"ngClass"]],template:function($1,o2){1&$1&&g.DNE(0,h1,22,9,"div",2),2&$1&&g.Y8G("ngIf",o2.isOpen)},dependencies:[e.MD,e.YU,e.Sq,e.bT,p.YN,p.qT,p.me,p.BC,p.cb,p.YS,p.vS,p.cV],encapsulation:2})}}return r1})()},3836:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>p});var m=y(4438),g=y(177);function e(_,S){if(1&_){const A=m.RV6();m.j41(0,"div",1)(1,"div",2)(2,"h3",3),m.EFF(3),m.k0s(),m.j41(4,"p",4),m.EFF(5),m.k0s(),m.j41(6,"div",5)(7,"button",6),m.bIt("click",function(){m.eBV(A);const Z=m.XpG();return m.Njj(Z.onCancel())}),m.EFF(8," Cancel "),m.k0s(),m.j41(9,"button",7),m.bIt("click",function(){m.eBV(A);const Z=m.XpG();return m.Njj(Z.onConfirm())}),m.EFF(10),m.k0s()()()()}if(2&_){const A=m.XpG();m.R7$(3),m.JRh(A.title),m.R7$(2),m.JRh(A.message),m.R7$(4),m.HbH(A.confirmButtonClass),m.R7$(),m.SpI(" ",A.confirmText," ")}}let p=(()=>{class _{constructor(){this.isOpen=!1,this.title="Confirm Action",this.message="Are you sure you want to proceed?",this.confirmText="Confirm",this.confirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",this.confirm=new m.bkB,this.cancel=new m.bkB}onConfirm(){this.confirm.emit()}onCancel(){this.cancel.emit()}static{this.\u0275fac=function($){return new($||_)}}static{this.\u0275cmp=m.VBU({type:_,selectors:[["app-confirm-dialog"]],inputs:{isOpen:"isOpen",title:"title",message:"message",confirmText:"confirmText",confirmButtonClass:"confirmButtonClass"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[m.aNF],decls:1,vars:1,consts:[["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[70]",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center","z-[70]"],[1,"bg-white","rounded-lg","p-6","max-w-md","w-full","mx-4"],[1,"text-lg","font-semibold","mb-4"],[1,"text-gray-600","mb-6"],[1,"flex","justify-end","space-x-3"],[1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500",3,"click"],[3,"click"]],template:function($,Z){1&$&&m.DNE(0,e,11,5,"div",0),2&$&&m.Y8G("ngIf",Z.isOpen)},dependencies:[g.MD,g.bT],encapsulation:2})}}return _})()},8944:(y1,d1,y)=>{"use strict";y.d(d1,{z:()=>S});var m=y(177),g=y(4438),e=y(7473);const p=(A,$,Z)=>({"fixed top-4 right-4 z-[200] p-4 rounded-lg shadow-lg":!0,"bg-green-100 text-green-800":A,"bg-red-100 text-red-800":$,"bg-blue-100 text-blue-800":Z});function _(A,$){if(1&A&&(g.j41(0,"div",1),g.EFF(1),g.k0s()),2&A){const Z=$.ngIf;g.Y8G("ngClass",g.sMw(2,p,"success"===Z.type,"error"===Z.type,"info"===Z.type)),g.R7$(),g.SpI(" ",Z.message," ")}}let S=(()=>{class A{constructor(Z){this.notificationService=Z}ngOnInit(){}static{this.\u0275fac=function(K){return new(K||A)(g.rXU(e.J))}}static{this.\u0275cmp=g.VBU({type:A,selectors:[["app-notification"]],standalone:!0,features:[g.aNF],decls:2,vars:3,consts:[["class","transition-all duration-300 ease-in-out",3,"ngClass",4,"ngIf"],[1,"transition-all","duration-300","ease-in-out",3,"ngClass"]],template:function(K,p1){1&K&&(g.DNE(0,_,2,6,"div",0),g.nI1(1,"async")),2&K&&g.Y8G("ngIf",g.bMT(1,1,p1.notificationService.notification$))},dependencies:[m.MD,m.YU,m.bT,m.Jj],encapsulation:2})}}return A})()},6964:(y1,d1,y)=>{"use strict";y.d(d1,{h:()=>H1});var m=y(4438),g=y(177),e=y(9417),p=y(1583),_=y(5558),S=y(7468),A=y(7673),$=y(8508),Z=y(7473),K=y(452),p1=y(7387),Y=y(8058),h1=y(2087),e1=y(5586),r1=y(3836);function M1(P1,K1){1&P1&&(m.j41(0,"div",17),m.nrm(1,"div",18),m.k0s())}function f1(P1,K1){if(1&P1&&(m.j41(0,"div",19),m.EFF(1),m.k0s()),2&P1){const Q=m.XpG(2);m.R7$(),m.SpI(" ",Q.error," ")}}function $1(P1,K1){if(1&P1&&(m.j41(0,"div",34)(1,"p",35),m.EFF(2,"Buyer Information"),m.k0s(),m.j41(3,"div",36)(4,"div")(5,"p",37),m.EFF(6,"Buyer:"),m.k0s(),m.j41(7,"p",38),m.EFF(8),m.k0s(),m.j41(9,"p",39),m.EFF(10),m.k0s()(),m.j41(11,"div")(12,"p",37),m.EFF(13,"Buyer Operator:"),m.k0s(),m.j41(14,"p",38),m.EFF(15),m.k0s(),m.j41(16,"p",39),m.EFF(17),m.k0s()()()()),2&P1){const Q=m.XpG(3);m.R7$(8),m.JRh(Q.buyerName),m.R7$(2),m.SpI("VAT ID: ",Q.buyerVatId,""),m.R7$(5),m.JRh(Q.buyerOperatorName),m.R7$(2),m.SpI("VAT ID: ",Q.buyerOperatorVatId,"")}}function o2(P1,K1){if(1&P1&&(m.j41(0,"div",34)(1,"p",35),m.EFF(2,"Seller Information"),m.k0s(),m.j41(3,"div",36)(4,"div")(5,"p",37),m.EFF(6,"Seller:"),m.k0s(),m.j41(7,"p",38),m.EFF(8),m.k0s(),m.j41(9,"p",39),m.EFF(10),m.k0s()(),m.j41(11,"div")(12,"p",37),m.EFF(13,"Seller Operator:"),m.k0s(),m.j41(14,"p",38),m.EFF(15),m.k0s(),m.j41(16,"p",39),m.EFF(17),m.k0s()()()()),2&P1){const Q=m.XpG(3);m.R7$(8),m.JRh(Q.sellerName),m.R7$(2),m.SpI("VAT ID: ",Q.sellerVatId,""),m.R7$(5),m.JRh(Q.sellerOperatorName),m.R7$(2),m.SpI("VAT ID: ",Q.sellerOperatorVatId,"")}}function S2(P1,K1){if(1&P1&&(m.j41(0,"div")(1,"p",40),m.EFF(2,"Product:"),m.k0s(),m.j41(3,"p",41),m.EFF(4),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(4),m.JRh(Q.productName)}}function c2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"button",44),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.showExpectedDatePicker=!0)}),m.qSk(),m.j41(1,"svg",45),m.nrm(2,"path",46),m.k0s()()}}function G1(P1,K1){if(1&P1&&(m.j41(0,"div",36)(1,"div")(2,"p",40),m.EFF(3,"Requested Date:"),m.k0s(),m.j41(4,"p",41),m.EFF(5),m.nI1(6,"date"),m.k0s()(),m.j41(7,"div")(8,"p",40),m.EFF(9,"Expected Date:"),m.k0s(),m.j41(10,"div",42)(11,"p",41),m.EFF(12),m.nI1(13,"date"),m.k0s(),m.DNE(14,c2,3,0,"button",43),m.k0s()()()),2&P1){const Q=m.XpG(3);m.R7$(5),m.SpI(" ",Q.quote.requestedQuoteCompletionDate?m.i5U(6,3,Q.quote.requestedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),m.R7$(7),m.SpI(" ",Q.quote.expectedQuoteCompletionDate?m.i5U(13,6,Q.quote.expectedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),m.R7$(2),m.Y8G("ngIf",Q.canEditExpectedDate())}}function O1(P1,K1){if(1&P1&&(m.j41(0,"div",36)(1,"div")(2,"p",40),m.EFF(3,"Tender Start Date:"),m.k0s(),m.j41(4,"p",41),m.EFF(5),m.k0s()(),m.j41(6,"div")(7,"p",40),m.EFF(8,"Tender End Date:"),m.k0s(),m.j41(9,"p",41),m.EFF(10),m.k0s()()()),2&P1){const Q=m.XpG(3);m.R7$(5),m.SpI(" ",Q.getTenderStartDate()," "),m.R7$(5),m.SpI(" ",Q.getTenderEndDate()," ")}}function d0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",49),m.qSk(),m.j41(1,"svg",50),m.nrm(2,"path",51),m.k0s(),m.joV(),m.j41(3,"span",29),m.EFF(4),m.k0s(),m.j41(5,"button",52),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.downloadCoordinatorAttachment())}),m.EFF(6," Download "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(4),m.SpI("Customer Request: ",Q.getCoordinatorAttachmentName(),"")}}function d2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",49),m.qSk(),m.j41(1,"svg",53),m.nrm(2,"path",51),m.k0s(),m.joV(),m.j41(3,"span",29),m.EFF(4),m.k0s(),m.j41(5,"button",52),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.downloadAttachment())}),m.EFF(6," Download "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(4),m.JRh(Q.getAttachmentName())}}function _2(P1,K1){1&P1&&(m.j41(0,"p",61),m.EFF(1,"Uploading..."),m.k0s())}function w2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",54)(1,"label",55),m.qSk(),m.j41(2,"svg",56),m.nrm(3,"path",57),m.k0s(),m.joV(),m.j41(4,"span"),m.EFF(5,"Upload PDF attachment"),m.k0s(),m.j41(6,"input",58),m.bIt("change",function(s2){m.eBV(Q);const p2=m.XpG(4);return m.Njj(p2.onFileSelected(s2))}),m.k0s()(),m.j41(7,"p",59),m.EFF(8,"Maximum file size: 10MB"),m.k0s(),m.DNE(9,_2,2,0,"p",60),m.k0s()}if(2&P1){const Q=m.XpG(4);m.R7$(9),m.Y8G("ngIf",Q.isUploading)}}function v2(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"p",35),m.EFF(2,"Attachments"),m.k0s(),m.DNE(3,d0,7,1,"div",47)(4,d2,7,1,"div",47)(5,w2,10,1,"div",48),m.k0s()),2&P1){const Q=m.XpG(3);m.R7$(3),m.Y8G("ngIf",Q.hasCoordinatorAttachment()),m.R7$(),m.Y8G("ngIf",Q.hasAttachment()),m.R7$(),m.Y8G("ngIf",Q.canUploadAttachment())}}function t0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2),m.k0s(),m.j41(3,"button",65),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.acceptQuote())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",66),m.k0s(),m.EFF(6),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(2),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER?Q.ACTION_TEXTS.ACCEPT_TENDER_INVITE:Q.ACTION_TEXTS.ACCEPT_QUOTE_PROVIDER," "),m.R7$(),m.Y8G("disabled",Q.isProcessing||!Q.canAcceptQuote())("title",Q.getAcceptButtonTooltip()),m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER?"Accept Invite":"Accept Quote"," ")}}function X0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2),m.k0s(),m.j41(3,"button",67),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.acceptProposal())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",66),m.k0s(),m.EFF(6," Accept Quote "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(2),m.JRh(Q.ACTION_TEXTS.ACCEPT_PROPOSAL_CUSTOMER),m.R7$(),m.Y8G("disabled",Q.isProcessing)}}function Z0(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"div",62),m.DNE(2,t0,7,4,"div",63)(3,X0,7,2,"div",63),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(2),m.Y8G("ngIf","seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.PENDING&&(Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.TENDER||Q.getCoordinatorState()===Q.QUOTE_STATUSES.IN_PROGRESS)),m.R7$(),m.Y8G("ngIf","customer"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.APPROVED&&(Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.TENDER||Q.getCoordinatorState()===Q.QUOTE_STATUSES.ACCEPTED))}}function B4(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2,"Send a message to all invited providers in this tender"),m.k0s(),m.j41(3,"button",68),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.openBroadcastMessage())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",69),m.k0s(),m.EFF(6," Broadcast Message "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(3),m.Y8G("disabled",Q.isProcessing)}}function x2(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"div",62),m.DNE(2,B4,7,1,"div",63),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(2),m.Y8G("ngIf","customer"===Q.currentUserRole&&Q.getPrimaryState()!==Q.QUOTE_STATUSES.PENDING)}}function w0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",27)(1,"div",64)(2,"p",40),m.EFF(3),m.k0s(),m.j41(4,"button",70),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(3);return m.Njj(s2.cancelQuote())}),m.qSk(),m.j41(5,"svg",56),m.nrm(6,"path",10),m.k0s(),m.EFF(7),m.k0s()()()}if(2&P1){const Q=m.XpG(3);m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR?"Cancel this tender and all the related quotes / invites":Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER&&"seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.PENDING?Q.ACTION_TEXTS.DECLINE_TENDER_INVITE:Q.ACTION_TEXTS.CANCEL_QUOTE_PROVIDER," "),m.R7$(),m.Y8G("disabled",Q.isProcessing),m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR?"Cancel Tender":"Cancel Quote"," ")}}function v1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",27)(1,"div",64)(2,"p",40),m.EFF(3),m.k0s(),m.j41(4,"button",71),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(3);return m.Njj(s2.createOffer())}),m.qSk(),m.j41(5,"svg",56),m.nrm(6,"path",57),m.k0s(),m.EFF(7," Create Offer "),m.k0s()()()}if(2&P1){const Q=m.XpG(3);m.R7$(3),m.JRh(Q.ACTION_TEXTS.CREATE_OFFER)}}function e2(P1,K1){if(1&P1&&(m.j41(0,"div",20),m.DNE(1,$1,18,4,"div",21)(2,o2,18,4,"div",21)(3,S2,5,1,"div",22),m.j41(4,"div")(5,"p",23),m.EFF(6,"Request:"),m.k0s(),m.j41(7,"div",24)(8,"p",25),m.EFF(9),m.k0s()()(),m.DNE(10,G1,15,9,"div",26)(11,O1,11,2,"div",26),m.j41(12,"div",27)(13,"div",28)(14,"p",29),m.EFF(15,"The quote is in status:"),m.k0s(),m.j41(16,"span",30),m.EFF(17),m.k0s()(),m.j41(18,"p",31),m.EFF(19),m.k0s(),m.j41(20,"p",32),m.EFF(21),m.k0s()(),m.DNE(22,v2,6,3,"div",33)(23,Z0,4,2,"div",33)(24,x2,3,1,"div",33)(25,w0,8,3,"div",33)(26,v1,8,1,"div",33),m.k0s()),2&P1){const Q=m.XpG(2);m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TAILORED),m.R7$(6),m.JRh(Q.quote.description||"No message provided"),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TAILORED),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER||Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(5),m.Y8G("ngClass",Q.getStatusBadgeClass()),m.R7$(),m.SpI(" ",Q.getStatusLabel()," "),m.R7$(2),m.JRh(Q.getStatusExplanation()),m.R7$(2),m.JRh(Q.getAvailableActionsText()),m.R7$(),m.Y8G("ngIf",Q.hasAttachment()||Q.canUploadAttachment()||Q.hasCoordinatorAttachment()),m.R7$(),m.Y8G("ngIf",Q.hasActionButtons()&&Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getPrimaryState()!==Q.QUOTE_STATUSES.ACCEPTED&&Q.getPrimaryState()!==Q.QUOTE_STATUSES.CANCELLED),m.R7$(),m.Y8G("ngIf","seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.ACCEPTED)}}function C2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"button",71),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(2);return m.Njj(s2.openChat())}),m.qSk(),m.j41(1,"svg",56),m.nrm(2,"path",72),m.k0s(),m.EFF(3," Chat "),m.k0s()}}function E1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",4),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.j41(1,"div",5),m.bIt("click",function(s2){return m.eBV(Q),m.Njj(s2.stopPropagation())}),m.j41(2,"div",6)(3,"h2",7),m.EFF(4),m.k0s(),m.j41(5,"button",8),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.qSk(),m.j41(6,"svg",9),m.nrm(7,"path",10),m.k0s()()(),m.DNE(8,M1,2,0,"div",11)(9,f1,2,1,"div",12)(10,e2,27,15,"div",13),m.joV(),m.j41(11,"div",14),m.DNE(12,C2,4,0,"button",15),m.j41(13,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.EFF(14," Close "),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(4),m.JRh(Q.getModalTitle()),m.R7$(4),m.Y8G("ngIf",Q.isLoading),m.R7$(),m.Y8G("ngIf",Q.error),m.R7$(),m.Y8G("ngIf",!Q.isLoading&&!Q.error&&Q.quote),m.R7$(2),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR)}}function j1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",73)(1,"div",74)(2,"h3",75),m.EFF(3,"Set Expected Completion Date"),m.k0s(),m.j41(4,"p",76),m.EFF(5,"Select when you expect to complete this quote:"),m.k0s(),m.j41(6,"input",77),m.mxI("ngModelChange",function(s2){m.eBV(Q);const p2=m.XpG();return m.DH7(p2.selectedExpectedDate,s2)||(p2.selectedExpectedDate=s2),m.Njj(s2)}),m.k0s(),m.j41(7,"div",78)(8,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.showExpectedDatePicker=!1)}),m.EFF(9," Cancel "),m.k0s(),m.j41(10,"button",79),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.saveExpectedDate())}),m.EFF(11," Save "),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(6),m.R50("ngModel",Q.selectedExpectedDate),m.Y8G("min",Q.minDate),m.R7$(4),m.Y8G("disabled",!Q.selectedExpectedDate)}}function A1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",73)(1,"div",80)(2,"h3",75),m.EFF(3,"Broadcast Message"),m.k0s(),m.j41(4,"p",76),m.EFF(5,"This message will be sent to all invited providers in this tender:"),m.k0s(),m.j41(6,"textarea",81),m.mxI("ngModelChange",function(s2){m.eBV(Q);const p2=m.XpG();return m.DH7(p2.broadcastMessage,s2)||(p2.broadcastMessage=s2),m.Njj(s2)}),m.k0s(),m.j41(7,"div",78)(8,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeBroadcastModal())}),m.EFF(9," Cancel "),m.k0s(),m.j41(10,"button",79),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.sendBroadcastMessage())}),m.EFF(11),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(6),m.R50("ngModel",Q.broadcastMessage),m.R7$(4),m.Y8G("disabled",!Q.broadcastMessage||Q.isBroadcastSending),m.R7$(),m.SpI(" ",Q.isBroadcastSending?"Sending...":"Send"," ")}}let H1=(()=>{class P1{constructor(){this.isOpen=!1,this.quoteId=null,this.currentUserRole="customer",this.currentUserId="",this.close=new m.bkB,this.quoteUpdated=new m.bkB,this.quote=null,this.coordinatorQuote=null,this.isLoading=!1,this.error=null,this.isProcessing=!1,this.isUploading=!1,this.showConfirmDialog=!1,this.confirmDialogTitle="",this.confirmDialogMessage="",this.confirmDialogCallback=null,this.confirmDialogButtonText="Confirm",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:cursor-not-allowed disabled:opacity-50",this.buyerName="Loading...",this.buyerVatId="N/A",this.buyerOperatorName="Loading...",this.buyerOperatorVatId="N/A",this.sellerName="Loading...",this.sellerVatId="N/A",this.sellerOperatorName="Loading...",this.sellerOperatorVatId="N/A",this.productName="Loading...",this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.showChatModal=!1,this.showBroadcastModal=!1,this.broadcastMessage="",this.isBroadcastSending=!1,this.ACTION_TEXTS=Y.ak,this.QUOTE_CATEGORIES=Y.K0,this.QUOTE_STATUSES=Y.yz,this.quoteService=(0,m.WQX)($.K),this.notificationService=(0,m.WQX)(Z.J),this.accountService=(0,m.WQX)(K.O),this.productService=(0,m.WQX)(p1.F),this.router=(0,m.WQX)(p.Ix)}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){this.isOpen&&this.quoteId&&this.loadQuote(this.quoteId)}ngOnChanges(Q){this.isOpen&&this.quoteId?this.loadQuote(this.quoteId):this.isOpen||this.resetState()}resetState(){this.quote=null,this.coordinatorQuote=null,this.error=null,this.buyerName="Loading...",this.buyerVatId="N/A",this.buyerOperatorName="Loading...",this.buyerOperatorVatId="N/A",this.sellerName="Loading...",this.sellerVatId="N/A",this.sellerOperatorName="Loading...",this.sellerOperatorVatId="N/A",this.productName="Loading...",this.showExpectedDatePicker=!1,this.selectedExpectedDate=""}loadQuote(Q){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(Q).subscribe({next:t2=>{this.quote=t2,t2.category===Y.K0.TENDER&&t2.externalId?this.quoteService.getQuoteById(t2.externalId).subscribe({next:s2=>{this.coordinatorQuote=s2,console.log("Loaded coordinator quote:",s2),this.isLoading=!1,this.enrichQuoteData()},error:s2=>{console.error("Failed to load coordinator quote:",s2),this.isLoading=!1,this.enrichQuoteData()}}):(this.isLoading=!1,this.enrichQuoteData())},error:t2=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}isOrganizationId(Q){return!!Q&&Q.startsWith("urn:ngsi-ld:organization:")}fetchPartyName(Q,t2,s2="N/A"){Q?this.isOrganizationId(Q)?this.accountService.getOrgInfo(Q).then(p2=>{t2(p2?.tradingName||p2?.name||Q)},()=>{t2(Q)}):t2(Q):t2(s2)}enrichQuoteData(){if(!this.quote)return;const Q=this.quote.relatedParty?.find(K2=>"buyer"===K2.role?.toLowerCase()),t2=this.quote.relatedParty?.find(K2=>"buyeroperator"===K2.role?.toLowerCase()),s2=this.quote.relatedParty?.find(K2=>"seller"===K2.role?.toLowerCase()),p2=this.quote.relatedParty?.find(K2=>"selleroperator"===K2.role?.toLowerCase()),s0=K2=>K2?K2.replace(/^did:elsi:/,""):"N/A";this.buyerVatId=s0(Q?.name),this.buyerOperatorVatId=s0(t2?.name),this.sellerVatId=s0(s2?.name),this.sellerOperatorVatId=s0(p2?.name),this.fetchPartyName(Q?.id,K2=>this.buyerName=K2,"N/A"),this.isOrganizationId(t2?.id)&&this.fetchPartyName(t2?.id,K2=>this.buyerOperatorName=K2,"N/A"),this.fetchPartyName(s2?.id,K2=>this.sellerName=K2,"N/A"),this.isOrganizationId(p2?.id)&&this.fetchPartyName(p2?.id,K2=>this.sellerOperatorName=K2,"N/A");const D0=this.quote.quoteItem?.[0]?.productOffering?.id;if(D0){const K2=this.quote.quoteItem?.[0]?.productOffering?.name;K2?this.productName=K2:this.productService.getProductById(D0).then(y0=>{this.productName=y0?.name||D0},()=>{this.productName=D0})}}getPrimaryState(){return this.quote?Array.isArray(this.quote.quoteItem)&&this.quote.quoteItem.length>0?this.quote.quoteItem[0].state||"unknown":this.quote.state||"unknown":"unknown"}getStatusLabel(){const Q=this.getPrimaryState();if(!this.quote)return Q;let t2;switch(t2=this.getQuoteCategory()===Y.K0.COORDINATOR?Y.R4:this.getQuoteCategory()===Y.K0.TENDER?"customer"===this.currentUserRole?Y.kU:Y.NT:"customer"===this.currentUserRole?Y.D5:Y.Wc,Q){case Y.yz.PENDING:return t2.PENDING;case Y.yz.IN_PROGRESS:return t2.IN_PROGRESS;case Y.yz.APPROVED:return t2.APPROVED;case Y.yz.ACCEPTED:return t2.ACCEPTED;case Y.yz.CANCELLED:return t2.CANCELLED;case Y.yz.REJECTED:return t2.REJECTED;default:return Q}}getCoordinatorState(){return this.coordinatorQuote?Array.isArray(this.coordinatorQuote.quoteItem)&&this.coordinatorQuote.quoteItem.length>0?this.coordinatorQuote.quoteItem[0].state||null:this.coordinatorQuote.state||null:null}getStatusBadgeClass(){const Q=this.getPrimaryState();return this.getQuoteCategory()===Y.K0.COORDINATOR&&Q===Y.yz.ACCEPTED?"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]":{[Y.yz.PENDING]:"border border-[#F2D28A] bg-[#FFF8E6] text-[#7A4D00]",[Y.yz.IN_PROGRESS]:"border border-[#B6CAEC] bg-[#EBF0F7] text-[#1f4fbf]",[Y.yz.APPROVED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[Y.yz.ACCEPTED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[Y.yz.REJECTED]:"border border-[#F4C7C7] bg-[#FFF1F1] text-[#B42318]",[Y.yz.CANCELLED]:"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]"}[Q]||"border border-[#CBD3DF] bg-[#F2F4F8] text-[#526179]"}getQuoteCategory(){return this.quote?.category||"tailored"}getModalTitle(){return this.getQuoteCategory()===Y.K0.COORDINATOR?"Tender Details":"Quote Details"}getStatusExplanation(){const Q=this.getPrimaryState(),t2="customer"===this.currentUserRole?"buyer":"provider",s2=this.getQuoteCategory();let p2;return p2=s2===Y.K0.COORDINATOR?Y.bJ:s2===Y.K0.TENDER?Y.L9:Y.ZR,p2[Q]?.[t2]?.explanation||"Status information unavailable."}getAvailableActionsText(){const Q=this.getPrimaryState(),t2="customer"===this.currentUserRole?"buyer":"provider",s2=this.getQuoteCategory();let p2;return p2=s2===Y.K0.COORDINATOR?Y.bJ:s2===Y.K0.TENDER?Y.L9:Y.ZR,p2[Q]?.[t2]?.availableActions||""}isQuoteFinalized(){const Q=this.getPrimaryState();return Q===Y.yz.CANCELLED||Q===Y.yz.ACCEPTED||Q===Y.yz.REJECTED}hasAttachment(){return this.quote?.quoteItem?.some(Q=>Q.attachment&&Q.attachment.length>0)||!1}getAttachmentName(){return this.quote?.quoteItem?.[0]?.attachment?.[0]?.name||"attachment.pdf"}hasCoordinatorAttachment(){return this.getQuoteCategory()===Y.K0.TENDER&&(this.coordinatorQuote?.quoteItem?.some(Q=>Q.attachment&&Q.attachment.length>0)||!1)}getCoordinatorAttachmentName(){return this.coordinatorQuote?.quoteItem?.[0]?.attachment?.[0]?.name||"tender-request.pdf"}getTenderStartDate(){if(this.getQuoteCategory()===Y.K0.TENDER&&this.coordinatorQuote){const t2=this.coordinatorQuote.expectedFulfillmentStartDate;return t2?new Date(t2).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Q=this.quote?.expectedFulfillmentStartDate;return Q?new Date(Q).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}getTenderEndDate(){if(this.getQuoteCategory()===Y.K0.TENDER&&this.coordinatorQuote){const t2=this.coordinatorQuote.effectiveQuoteCompletionDate;return t2?new Date(t2).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Q=this.quote?.effectiveQuoteCompletionDate;return Q?new Date(Q).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}canUploadAttachment(){if("seller"!==this.currentUserRole)return!1;if(this.getQuoteCategory()===Y.K0.TENDER)return this.getCoordinatorState()===Y.yz.APPROVED;const Q=this.getPrimaryState();return Q===Y.yz.IN_PROGRESS||Q===Y.yz.APPROVED}canEditExpectedDate(){if("seller"!==this.currentUserRole)return!1;const Q=this.getPrimaryState();return!this.isQuoteFinalized()&&(Q===Y.yz.PENDING||Q===Y.yz.IN_PROGRESS||Q===Y.yz.APPROVED)}canRejectOrCancel(){const Q=this.getPrimaryState();return"seller"===this.currentUserRole&&(Q===Y.yz.PENDING||Q===Y.yz.IN_PROGRESS)||Q===Y.yz.APPROVED}canAcceptQuote(){return"seller"!==this.currentUserRole||!!this.quote?.expectedQuoteCompletionDate}getAcceptButtonTooltip(){return"seller"!==this.currentUserRole||this.quote?.expectedQuoteCompletionDate?"":this.ACTION_TEXTS.EXPECTED_DATE_REQUIRED}hasActionButtons(){const Q=this.getPrimaryState();return"seller"===this.currentUserRole&&Q===Y.yz.PENDING||"customer"===this.currentUserRole&&Q===Y.yz.APPROVED}downloadAttachment(){this.quote&&this.quoteService.downloadAttachment(this.quote).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:Q=>this.notificationService.showError(Q.message||"Error downloading attachment")})}downloadCoordinatorAttachment(){this.coordinatorQuote&&this.quoteService.downloadAttachment(this.coordinatorQuote).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:Q=>this.notificationService.showError(Q.message||"Error downloading customer request")})}onFileSelected(Q){const t2=Q.target;if(!t2.files?.length||!this.quote?.id)return;const s2=t2.files[0];if("application/pdf"!==s2.type)return void this.notificationService.showError("Only PDF files are allowed");if(s2.size>10485760)return void this.notificationService.showError("File size exceeds the maximum limit of 10MB");this.isUploading=!0;const l0=s2.name,s0=this.quote.id;this.quoteService.addAttachmentToQuote(s0,s2).pipe((0,_.n)(D0=>(this.quote=D0,this.quoteService.addNoteToQuote(s0,Y.Ft.ATTACHMENT_UPLOADED(l0),this.currentUserId).pipe((0,_.n)(()=>this.getPrimaryState()===Y.yz.IN_PROGRESS?this.quoteService.updateQuoteStatus(s0,Y.yz.APPROVED).pipe((0,_.n)(K2=>(this.quote=K2,this.quoteService.addNoteToQuote(s0,Y.Ft.STATUS_CHANGE(Y.yz.APPROVED),this.currentUserId)))):[D0]))))).subscribe({next:()=>{this.isUploading=!1,this.notificationService.showSuccess("Attachment uploaded successfully"),this.getPrimaryState()===Y.yz.APPROVED&&this.notificationService.showSuccess("Quote has been approved and sent to customer"),this.quoteUpdated.emit(this.quote)},error:D0=>{this.isUploading=!1,this.notificationService.showError("Failed to upload attachment")}})}acceptQuote(){!this.quote?.id||this.isProcessing||(this.confirmDialogTitle="Accept Quote Request",this.confirmDialogMessage="Are you sure you want to accept this quote request?",this.confirmDialogButtonText="Accept",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00533A] focus:outline-none focus:ring-2 focus:ring-[#A8DDC8] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0;const Q=this.quote.id;this.quoteService.updateQuoteStatus(Q,Y.yz.IN_PROGRESS).pipe((0,_.n)(t2=>(this.quote=t2,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(Y.yz.IN_PROGRESS),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote request accepted"),this.quoteUpdated.emit(this.quote)},error:t2=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept quote")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}acceptProposal(){if(!this.quote?.id||this.isProcessing)return;const Q=this.getQuoteCategory()===Y.K0.TENDER;this.confirmDialogTitle=Q?"Accept Tender Offer":"Accept Quote Proposal",this.confirmDialogMessage=Q?"Are you sure you want to accept this offer? All other provider offers in this tender will be rejected.":"Are you sure you want to accept this quote proposal?",this.confirmDialogButtonText="Accept",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00533A] focus:outline-none focus:ring-2 focus:ring-[#A8DDC8] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0;const t2=this.quote.id,s2=this.quote.externalId;this.quoteService.updateQuoteStatus(t2,Y.yz.ACCEPTED).pipe((0,_.n)(p2=>(this.quote=p2,this.quoteService.addNoteToQuote(t2,Y.Ft.STATUS_CHANGE(Y.yz.ACCEPTED),this.currentUserId)))).subscribe({next:()=>{Q&&s2?this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,s2,h1.XZ.BUYER).subscribe({next:p2=>{const l0=p2.filter(s0=>{if(s0.id===t2)return!1;const D0=s0.quoteItem?.[0]?.state??s0.state;return D0!==Y.yz.ACCEPTED&&D0!==Y.yz.CANCELLED&&D0!==Y.yz.REJECTED});l0.length>0?(0,S.p)(l0.map(s0=>this.quoteService.updateQuoteStatus(s0.id,Y.yz.REJECTED))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Offer accepted. ${l0.length} other offer(s) have been rejected.`),this.quoteUpdated.emit(this.quote)},error:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted, but failed to reject other offers."),this.quoteUpdated.emit(this.quote)}}):(this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted."),this.quoteUpdated.emit(this.quote))},error:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted, but failed to fetch other offers to reject."),this.quoteUpdated.emit(this.quote)}}):(this.isProcessing=!1,this.notificationService.showSuccess("Quote proposal accepted"),this.quoteUpdated.emit(this.quote))},error:p2=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept proposal")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0}cancelQuote(){if(!this.quote?.id||this.isProcessing)return;const Q=this.getQuoteCategory()===Y.K0.COORDINATOR;this.confirmDialogTitle=Q?"Cancel Tender":"Cancel Quote",this.confirmDialogMessage=Q?"Are you sure you want to cancel this tender? This will also cancel all related provider invites.":"Are you sure you want to cancel this quote?",this.confirmDialogButtonText=Q?"Cancel Tender":"Cancel Quote",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg border border-[#F4C7C7] bg-white px-4 text-sm font-semibold text-[#B42318] transition-colors hover:bg-[#FFF1F1] focus:outline-none focus:ring-2 focus:ring-[#F4C7C7] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0,this.showConfirmDialog=!1,Q?this.cancelCoordinatorWithCascade():this.cancelSingleQuote(this.quote.id)},this.showConfirmDialog=!0}cancelSingleQuote(Q){const t2=Y.yz.CANCELLED;this.quoteService.updateQuoteStatus(Q,t2).pipe((0,_.n)(s2=>(this.quote=s2,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(t2),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote cancelled"),this.quoteUpdated.emit(this.quote),this.closeModal()},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to cancel quote")}})}cancelCoordinatorWithCascade(){const Q=this.quote.id,t2=Y.yz.CANCELLED;this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,Q,h1.XZ.BUYER).subscribe({next:s2=>{console.log(`Found ${s2.length} related tendering quotes to cancel`);const p2=s2.map(s0=>this.quoteService.updateQuoteStatus(s0.id,t2));(p2.length>0?(0,S.p)(p2):(0,A.of)([])).pipe((0,_.n)(()=>this.quoteService.updateQuoteStatus(Q,t2)),(0,_.n)(s0=>(this.quote=s0,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(t2),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Tender and ${s2.length} related quote(s) cancelled`),this.quoteUpdated.emit(this.quote),this.closeModal()},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to cancel tender. Some quotes may not have been cancelled.")}})},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to fetch related quotes for cancellation")}})}saveExpectedDate(){if(!this.quote?.id||!this.selectedExpectedDate)return;const Q=new Date(this.selectedExpectedDate),t2=`${Q.getDate().toString().padStart(2,"0")}-${(Q.getMonth()+1).toString().padStart(2,"0")}-${Q.getFullYear()}`;this.quoteService.updateQuoteDate(this.quote.id,t2,"expected").subscribe({next:s2=>{this.quote=s2,this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.notificationService.showSuccess("Expected date updated"),this.quoteUpdated.emit(s2)},error:s2=>{this.notificationService.showError("Failed to update expected date")}})}createOffer(){this.quote?.id&&(this.closeModal(),this.router.navigate(["/my-offerings"],{state:{quoteId:this.quote.id}}))}openBroadcastMessage(){this.quote?.id&&(this.broadcastMessage="",this.showBroadcastModal=!0)}closeBroadcastModal(){this.showBroadcastModal=!1,this.broadcastMessage="",this.isBroadcastSending=!1}sendBroadcastMessage(){!this.quote?.id||!this.currentUserId||!this.broadcastMessage||(this.confirmDialogTitle="Broadcast Message",this.confirmDialogMessage="Are you sure you want to broadcast this message to all the invited providers?",this.confirmDialogButtonText="Send",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.executeBroadcastMessage(),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}executeBroadcastMessage(){!this.quote?.id||!this.currentUserId||!this.broadcastMessage||(this.isBroadcastSending=!0,this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,this.quote.id,h1.XZ.BUYER).pipe((0,_.n)(Q=>{const t2=Q.filter(p2=>p2.category===Y.K0.TENDER&&p2.id);if(0===t2.length)return this.notificationService.showError("No related provider quotes found to broadcast to."),this.isBroadcastSending=!1,(0,A.of)(null);const s2=t2.map(p2=>this.quoteService.addNoteToQuote(p2.id,this.broadcastMessage,this.currentUserId));return(0,S.p)(s2)})).subscribe({next:Q=>{Q&&(this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal())},error:Q=>{console.error("Failed to broadcast message:",Q),this.notificationService.showError("Failed to broadcast message."),this.isBroadcastSending=!1}}))}closeModal(){this.close.emit()}openChat(){this.showChatModal=!0}closeChatModal(){this.showChatModal=!1}static{this.\u0275fac=function(t2){return new(t2||P1)}}static{this.\u0275cmp=m.VBU({type:P1,selectors:[["app-quote-details-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId",currentUserRole:"currentUserRole",currentUserId:"currentUserId"},outputs:{close:"close",quoteUpdated:"quoteUpdated"},standalone:!0,features:[m.OA$,m.aNF],decls:5,vars:10,consts:[["class","fixed inset-0 z-50 h-full w-full overflow-y-auto bg-[#0b1220]/45 px-4 py-8",3,"click",4,"ngIf"],[3,"close","isOpen","quoteId"],["class","fixed inset-0 z-[60] flex h-full w-full items-center justify-center overflow-y-auto bg-[#0b1220]/45 px-4 py-8",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"fixed","inset-0","z-50","h-full","w-full","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8",3,"click"],[1,"relative","mx-auto","mt-6","w-full","max-w-5xl","overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-white","shadow-[0_20px_50px_rgba(11,18,32,0.24)]",3,"click"],[1,"flex","items-center","justify-between","border-b","border-[#EBECEE]","px-8","py-6"],[1,"text-2xl","font-bold","text-[#0b1220]"],[1,"inline-flex","h-10","w-10","items-center","justify-center","rounded-lg","text-[#526179]","transition-colors","hover:bg-[#F2F4F8]","hover:text-[#0b1220]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["class","flex items-center justify-center px-8 py-12",4,"ngIf"],["class","relative mx-8 mt-6 rounded-lg border border-[#F4C7C7] bg-[#FFF1F1] px-4 py-3 text-[#B42318]",4,"ngIf"],["class","max-h-[70vh] space-y-5 overflow-y-auto px-8 py-6",4,"ngIf"],[1,"flex","justify-between","border-t","border-[#EBECEE]","px-8","py-6"],["class","inline-flex h-10 items-center gap-2 rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99]",3,"click",4,"ngIf"],[1,"inline-flex","h-10","items-center","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-sm","font-semibold","text-[#324153]","transition-colors","hover:border-[#1f4fbf]","hover:text-[#1f4fbf]",3,"click"],[1,"flex","items-center","justify-center","px-8","py-12"],[1,"h-10","w-10","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"relative","mx-8","mt-6","rounded-lg","border","border-[#F4C7C7]","bg-[#FFF1F1]","px-4","py-3","text-[#B42318]"],[1,"max-h-[70vh]","space-y-5","overflow-y-auto","px-8","py-6"],["class","rounded-xl border border-[#EBECEE] bg-[#F8FAFD] p-4",4,"ngIf"],[4,"ngIf"],[1,"mb-2","text-sm","font-medium","text-[#526179]"],[1,"overflow-hidden","rounded-lg","border","border-[#EBECEE]","border-l-4","border-l-[#F2C94C]","bg-[#F8FAFD]","p-4"],[1,"whitespace-pre-wrap","break-words","text-[#0b1220]","overflow-wrap-anywhere"],["class","grid grid-cols-2 gap-4",4,"ngIf"],[1,"border-t","border-[#EBECEE]","pt-5"],[1,"flex","items-center","gap-2","mb-3"],[1,"text-sm","text-[#324153]"],[1,"rounded-full","px-3","py-1","text-sm","font-semibold",3,"ngClass"],[1,"mb-2","text-sm","text-[#526179]"],[1,"text-sm","italic","text-[#6B7890]"],["class","border-t border-[#EBECEE] pt-5",4,"ngIf"],[1,"rounded-xl","border","border-[#EBECEE]","bg-[#F8FAFD]","p-4"],[1,"mb-3","text-sm","font-semibold","text-[#324153]"],[1,"grid","grid-cols-2","gap-4"],[1,"text-xs","text-[#526179]"],[1,"text-sm","font-semibold","text-[#0b1220]"],[1,"text-xs","text-[#6B7890]"],[1,"text-sm","text-[#526179]"],[1,"text-base","font-semibold","text-[#0b1220]"],[1,"flex","items-center","gap-2"],["class","rounded-md p-1 text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Set expected date",3,"click",4,"ngIf"],["title","Set expected date",1,"rounded-md","p-1","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],["class","flex items-center gap-3 mb-3",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"flex","items-center","gap-3","mb-3"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"],[1,"text-sm","font-semibold","text-[#1f4fbf]","hover:text-[#183f99]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5","text-red-500"],[1,"mt-3"],[1,"flex","cursor-pointer","items-center","gap-2","text-sm","font-semibold","text-[#006B4A]","hover:text-[#00533A]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 4v16m8-8H4"],["type","file","accept",".pdf",1,"hidden",3,"change"],[1,"mt-1","text-xs","text-[#6B7890]"],["class","mt-2 text-sm text-[#526179]",4,"ngIf"],[1,"mt-2","text-sm","text-[#526179]"],[1,"space-y-3"],["class","flex items-center justify-between",4,"ngIf"],[1,"flex","items-center","justify-between"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00533A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled","title"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00533A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","border","border-[#F4C7C7]","bg-white","px-4","text-sm","font-semibold","text-[#B42318]","transition-colors","hover:bg-[#FFF1F1]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.77 9.77 0 01-4-.8L3 21l1.8-4A7.96 7.96 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"fixed","inset-0","z-[60]","flex","h-full","w-full","items-center","justify-center","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8"],[1,"mx-4","w-full","max-w-sm","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],[1,"mb-4","text-lg","font-bold","text-[#0b1220]"],[1,"mb-4","text-sm","text-[#526179]"],["type","date",1,"mb-4","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-3","py-2","text-[#0b1220]","outline-none","transition-colors","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel","min"],[1,"flex","justify-end","gap-3"],[1,"inline-flex","h-10","items-center","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"mx-4","w-full","max-w-md","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],["rows","4","placeholder","Type your message to all invited providers...",1,"mb-4","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-3","py-2","text-sm","text-[#0b1220]","outline-none","transition-colors","placeholder:text-[#9AA6B8]","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel"]],template:function(t2,s2){1&t2&&(m.DNE(0,E1,15,5,"div",0),m.j41(1,"app-chat-modal",1),m.bIt("close",function(){return s2.closeChatModal()}),m.k0s(),m.DNE(2,j1,12,3,"div",2)(3,A1,12,3,"div",2),m.j41(4,"app-confirm-dialog",3),m.bIt("confirm",function(){return s2.confirmDialogCallback&&s2.confirmDialogCallback()})("cancel",function(){return s2.showConfirmDialog=!1}),m.k0s()),2&t2&&(m.Y8G("ngIf",s2.isOpen),m.R7$(),m.Y8G("isOpen",s2.showChatModal)("quoteId",s2.quoteId),m.R7$(),m.Y8G("ngIf",s2.showExpectedDatePicker),m.R7$(),m.Y8G("ngIf",s2.showBroadcastModal),m.R7$(),m.Y8G("isOpen",s2.showConfirmDialog)("title",s2.confirmDialogTitle)("message",s2.confirmDialogMessage)("confirmText",s2.confirmDialogButtonText)("confirmButtonClass",s2.confirmDialogButtonClass))},dependencies:[g.MD,g.YU,g.bT,g.vh,e.YN,e.me,e.BC,e.vS,e1.d,r1.w],encapsulation:2})}}return P1})()},5312:(y1,d1,y)=>{"use strict";y.d(d1,{c:()=>m});const m={BASE_URL:"",isProduction:!0,PAYMENT_URL:"/revenue",LEGACY_PREFIX:"/ux",PRODUCT_CATALOG:"/catalog",SERVICE:"/service",RESOURCE:"/resource",PRODUCT_SPEC:"/productSpecification",SERVICE_SPEC:"/serviceSpecification",RESOURCE_SPEC:"/resourceSpecification",CUSTOMER_BILLING:"/customerBill",ACCOUNT:"/account",SHOPPING_CART:"/shoppingCart",INVENTORY:"/inventory",PRODUCT_ORDER:"/ordering",BILLING:"/billing",CHARGING:"/charging",searchOrganizationsEndpoint:"/search-bck/api/searchOrganizations",providerCountriesUrl:"https://raw.githubusercontent.com/DOME-Marketplace/eu-eea-countries/refs/heads/main/countries.json",CONSUMER_BILLING_URL:"http://localhost:8640",INVOICE_LIMIT:100,PRODUCT_LIMIT:6,CATALOG_LIMIT:8,INVENTORY_LIMIT:6,INVENTORY_RES_LIMIT:8,INVENTORY_SERV_LIMIT:8,PROD_SPEC_LIMIT:6,SERV_SPEC_LIMIT:6,RES_SPEC_LIMIT:6,USAGE_SPEC_LIMIT:6,ORDER_LIMIT:1e3,CATEGORY_LIMIT:100,SIOP:!0,TAX_RATE:20,CHAT_API:"https://eng-gpt.dome-marketplace-dev.org/predict",SIOP_INFO:{enabled:!1,isRedirection:!1,pollPath:"",pollCertPath:"",clientID:"",callbackURL:"",verifierHost:"",verifierQRCodePath:"",requestUri:""},MATOMO_TRACKER_URL:"",MATOMO_SITE_ID:"",TICKETING_SYSTEM_URL:"",KNOWLEDGE_BASE_URL:"",KB_ONBOARDING_GUIDELINES_URL:"https://knowledgebase.dome-marketplace-prd.org/books/company-onboarding-process-guide-for-cloud-service-providers-csp",KB_GUIDELNES_URL:"https://knowledgebase.dome-marketplace-prd.org/books/managing-orders-products-and-subscriptions",REGISTRATION_FORM_URL:"https://onboarding.dome-marketplace.eu/",SEARCH_ENABLED:!0,PURCHASE_ENABLED:!1,DOME_TRUST_LINK:"https://dome-certification.dome-marketplace.org",DOME_ABOUT_LINK:"",DOME_REGISTER_LINK:"",DOME_CUSTOMER_REGISTER_LINK:"",DOME_PUBLISH_LINK:"",DOME_LINKEDIN:"https://www.linkedin.com/company/dome-marketplace/",DOME_YOUTUBE:"https://www.youtube.com/channel/UC8UiL59S0JiaYYr14w5eOzA",DOME_X:"https://x.com/DomeMarketplace",BUNDLE_ENABLED:!1,DATA_SPACE_ENABLED:!1,DFT_CATALOG_ID:"",MAX_FILE_SIZE:3145728,providerThemeName:"default",quoteApi:"http://localhost:8080/quoteManagement",documentApi:"/document",quoteEndpoints:{createQuote:"/createQuote",listAllQuotes:"/listAllQuotes",getQuoteById:"/quoteById",getQuotesByUser:"/quoteByUser",updateQuoteStatus:"/updateQuoteStatus",updateQuoteDate:"/updateQuoteDate",addNoteToQuote:"/addNoteToQuote",addAttachmentToQuote:"/addAttachmentToQuote",deleteQuote:"/quote"},QUOTES_ENABLED:!0,TENDER_ENABLED:!0,analyticsEnabled:!1,googleTagManagerId:"",analytics:"",analyticsGuestTokenEndpoint:"/analytics/guest-token",feedbackCampaign:!1,feedbackCampaignExpiration:0,SELLER_ROLE:"Seller",BUYER_ROLE:"Buyer",ADMIN_ROLE:"Admin",ORG_ADMIN_ROLE:"orgAdmin",CERTIFIER_ROLE:"certifier",AI_SEARCH_ENABLED:!0,AI_SEARCH_API_KEY:"28791420a51be86495cab108f32221fa458469e29a04b33567b057c95878bd72",AI_SEARCH_API_URL:"https://dome.expertcustomers.ai/rag/",AI_SEARCH_SCORE_THRESHOLD:.3,AI_SEARCH_ANSWER_MAX_ITEMS:5,AI_SEARCH_PROFILE:"dome_dev2",LEAR_URL:"",LAUNCH_VALIDATION_ENABLED:!1,TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED:!1,DSP_ENABLED:!1,DSP_CONTRACT_DEFINITION_SCHEMA:"https://raw.githubusercontent.com/wistefan/edc-dsc/refs/heads/init/schemas/contract-definition.json",DSP_SCHEMA:"https://raw.githubusercontent.com/wistefan/edc-dsc/refs/heads/init/schemas/external-id.json"}},3449:(y1,d1,y)=>{"use strict";var m=y(345),g=y(1626),e=y(4438),p=y(9417),_=y(177),S=y(1413),A=y(5558),$=y(8750),Z=y(1985),K=y(3028),p1=y(7441),Y=y(8071),h1=y(6450);const e1=["addListener","removeListener"],r1=["addEventListener","removeEventListener"],M1=["on","off"];function f1(n,a,c,t){if((0,Y.T)(c)&&(t=c,c=void 0),t)return f1(n,a,c).pipe((0,h1.I)(t));const[l,i]=function c2(n){return(0,Y.T)(n.addEventListener)&&(0,Y.T)(n.removeEventListener)}(n)?r1.map(u=>C=>n[u](a,C,c)):function o2(n){return(0,Y.T)(n.addListener)&&(0,Y.T)(n.removeListener)}(n)?e1.map($1(n,a)):function S2(n){return(0,Y.T)(n.on)&&(0,Y.T)(n.off)}(n)?M1.map($1(n,a)):[];if(!l&&(0,p1.X)(n))return(0,K.Z)(u=>f1(u,a,c))((0,$.Tg)(n));if(!l)throw new TypeError("Invalid event target");return new Z.c(u=>{const C=(...b)=>u.next(1i(C)})}function $1(n,a){return c=>t=>n[c](a,t)}var G1=y(983),O1=y(6977);const d0=["button"],d2=["*","*"];function _2(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3);e.JRh(c.unified)}}function w2(n,a){if(1&n&&(e.j41(0,"button",4,1)(2,"span",5),e.DNE(3,_2,1,1,"ng-template",2),e.SdG(4),e.k0s()()),2&n){const c=e.XpG(2);e.AVh("emoji-mart-emoji-native",c.isNative)("emoji-mart-emoji-custom",c.custom),e.BMQ("title",c.title)("aria-label",c.label),e.R7$(2),e.Y8G("ngStyle",c.style),e.R7$(),e.Y8G("ngIf",c.isNative)}}function v2(n,a){if(1&n&&e.DNE(0,w2,5,8,"button",3),2&n){const c=e.XpG(),t=e.sdS(2);e.Y8G("ngIf",c.useButton)("ngIfElse",t)}}function t0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2);e.JRh(c.unified)}}function X0(n,a){if(1&n&&(e.j41(0,"span",6,1)(2,"span",5),e.DNE(3,t0,1,1,"ng-template",2),e.SdG(4,1),e.k0s()()),2&n){const c=e.XpG();e.AVh("emoji-mart-emoji-native",c.isNative)("emoji-mart-emoji-custom",c.custom),e.BMQ("title",c.title)("aria-label",c.label),e.R7$(2),e.Y8G("ngStyle",c.style),e.R7$(),e.Y8G("ngIf",c.isNative)}}const Z0=[{id:"people",name:"Smileys & People",emojis:["1F600","1F603","1F604","1F601","1F606","1F605","1F923","1F602","1F642","1F643","1FAE0","1F609","1F60A","1F607","1F970","1F60D","1F929","1F618","1F617","263A-FE0F","1F61A","1F619","1F972","1F60B","1F61B","1F61C","1F92A","1F61D","1F911","1F917","1F92D","1FAE2","1FAE3","1F92B","1F914","1FAE1","1F910","1F928","1F610","1F611","1F636","1FAE5","1F636-200D-1F32B-FE0F","1F60F","1F612","1F644","1F62C","1F62E-200D-1F4A8","1F925","1F60C","1F614","1F62A","1F924","1F634","1F637","1F912","1F915","1F922","1F92E","1F927","1F975","1F976","1F974","1F635","1F635-200D-1F4AB","1F92F","1F920","1F973","1F978","1F60E","1F913","1F9D0","1F615","1FAE4","1F61F","1F641","2639-FE0F","1F62E","1F62F","1F632","1F633","1F97A","1F979","1F626","1F627","1F628","1F630","1F625","1F622","1F62D","1F631","1F616","1F623","1F61E","1F613","1F629","1F62B","1F971","1F624","1F621","1F620","1F92C","1F608","1F47F","1F480","2620-FE0F","1F4A9","1F921","1F479","1F47A","1F47B","1F47D","1F47E","1F916","1F44B","1F91A","1F590-FE0F","270B","1F596","1FAF1","1FAF2","1FAF3","1FAF4","1F44C","1F90C","1F90F","270C-FE0F","1F91E","1FAF0","1F91F","1F918","1F919","1F448","1F449","1F446","1F595","1F447","261D-FE0F","1FAF5","1F44D","1F44E","270A","1F44A","1F91B","1F91C","1F44F","1F64C","1FAF6","1F450","1F932","1F91D","1F64F","270D-FE0F","1F485","1F933","1F4AA","1F9BE","1F9BF","1F9B5","1F9B6","1F442","1F9BB","1F443","1F9E0","1FAC0","1FAC1","1F9B7","1F9B4","1F440","1F441-FE0F","1F445","1F444","1FAE6","1F476","1F9D2","1F466","1F467","1F9D1","1F471","1F468","1F9D4","1F9D4-200D-2642-FE0F","1F9D4-200D-2640-FE0F","1F468-200D-1F9B0","1F468-200D-1F9B1","1F468-200D-1F9B3","1F468-200D-1F9B2","1F469","1F469-200D-1F9B0","1F9D1-200D-1F9B0","1F469-200D-1F9B1","1F9D1-200D-1F9B1","1F469-200D-1F9B3","1F9D1-200D-1F9B3","1F469-200D-1F9B2","1F9D1-200D-1F9B2","1F471-200D-2640-FE0F","1F471-200D-2642-FE0F","1F9D3","1F474","1F475","1F64D","1F64D-200D-2642-FE0F","1F64D-200D-2640-FE0F","1F64E","1F64E-200D-2642-FE0F","1F64E-200D-2640-FE0F","1F645","1F645-200D-2642-FE0F","1F645-200D-2640-FE0F","1F646","1F646-200D-2642-FE0F","1F646-200D-2640-FE0F","1F481","1F481-200D-2642-FE0F","1F481-200D-2640-FE0F","1F64B","1F64B-200D-2642-FE0F","1F64B-200D-2640-FE0F","1F9CF","1F9CF-200D-2642-FE0F","1F9CF-200D-2640-FE0F","1F647","1F647-200D-2642-FE0F","1F647-200D-2640-FE0F","1F926","1F926-200D-2642-FE0F","1F926-200D-2640-FE0F","1F937","1F937-200D-2642-FE0F","1F937-200D-2640-FE0F","1F9D1-200D-2695-FE0F","1F468-200D-2695-FE0F","1F469-200D-2695-FE0F","1F9D1-200D-1F393","1F468-200D-1F393","1F469-200D-1F393","1F9D1-200D-1F3EB","1F468-200D-1F3EB","1F469-200D-1F3EB","1F9D1-200D-2696-FE0F","1F468-200D-2696-FE0F","1F469-200D-2696-FE0F","1F9D1-200D-1F33E","1F468-200D-1F33E","1F469-200D-1F33E","1F9D1-200D-1F373","1F468-200D-1F373","1F469-200D-1F373","1F9D1-200D-1F527","1F468-200D-1F527","1F469-200D-1F527","1F9D1-200D-1F3ED","1F468-200D-1F3ED","1F469-200D-1F3ED","1F9D1-200D-1F4BC","1F468-200D-1F4BC","1F469-200D-1F4BC","1F9D1-200D-1F52C","1F468-200D-1F52C","1F469-200D-1F52C","1F9D1-200D-1F4BB","1F468-200D-1F4BB","1F469-200D-1F4BB","1F9D1-200D-1F3A4","1F468-200D-1F3A4","1F469-200D-1F3A4","1F9D1-200D-1F3A8","1F468-200D-1F3A8","1F469-200D-1F3A8","1F9D1-200D-2708-FE0F","1F468-200D-2708-FE0F","1F469-200D-2708-FE0F","1F9D1-200D-1F680","1F468-200D-1F680","1F469-200D-1F680","1F9D1-200D-1F692","1F468-200D-1F692","1F469-200D-1F692","1F46E","1F46E-200D-2642-FE0F","1F46E-200D-2640-FE0F","1F575-FE0F","1F575-FE0F-200D-2642-FE0F","1F575-FE0F-200D-2640-FE0F","1F482","1F482-200D-2642-FE0F","1F482-200D-2640-FE0F","1F977","1F477","1F477-200D-2642-FE0F","1F477-200D-2640-FE0F","1FAC5","1F934","1F478","1F473","1F473-200D-2642-FE0F","1F473-200D-2640-FE0F","1F472","1F9D5","1F935","1F935-200D-2642-FE0F","1F935-200D-2640-FE0F","1F470","1F470-200D-2642-FE0F","1F470-200D-2640-FE0F","1F930","1FAC3","1FAC4","1F931","1F469-200D-1F37C","1F468-200D-1F37C","1F9D1-200D-1F37C","1F47C","1F385","1F936","1F9D1-200D-1F384","1F9B8","1F9B8-200D-2642-FE0F","1F9B8-200D-2640-FE0F","1F9B9","1F9B9-200D-2642-FE0F","1F9B9-200D-2640-FE0F","1F9D9","1F9D9-200D-2642-FE0F","1F9D9-200D-2640-FE0F","1F9DA","1F9DA-200D-2642-FE0F","1F9DA-200D-2640-FE0F","1F9DB","1F9DB-200D-2642-FE0F","1F9DB-200D-2640-FE0F","1F9DC","1F9DC-200D-2642-FE0F","1F9DC-200D-2640-FE0F","1F9DD","1F9DD-200D-2642-FE0F","1F9DD-200D-2640-FE0F","1F9DE","1F9DE-200D-2642-FE0F","1F9DE-200D-2640-FE0F","1F9DF","1F9DF-200D-2642-FE0F","1F9DF-200D-2640-FE0F","1F9CC","1F486","1F486-200D-2642-FE0F","1F486-200D-2640-FE0F","1F487","1F487-200D-2642-FE0F","1F487-200D-2640-FE0F","1F6B6","1F6B6-200D-2642-FE0F","1F6B6-200D-2640-FE0F","1F9CD","1F9CD-200D-2642-FE0F","1F9CD-200D-2640-FE0F","1F9CE","1F9CE-200D-2642-FE0F","1F9CE-200D-2640-FE0F","1F9D1-200D-1F9AF","1F468-200D-1F9AF","1F469-200D-1F9AF","1F9D1-200D-1F9BC","1F468-200D-1F9BC","1F469-200D-1F9BC","1F9D1-200D-1F9BD","1F468-200D-1F9BD","1F469-200D-1F9BD","1F3C3","1F3C3-200D-2642-FE0F","1F3C3-200D-2640-FE0F","1F483","1F57A","1F574-FE0F","1F46F","1F46F-200D-2642-FE0F","1F46F-200D-2640-FE0F","1F9D6","1F9D6-200D-2642-FE0F","1F9D6-200D-2640-FE0F","1F9D7","1F9D7-200D-2642-FE0F","1F9D7-200D-2640-FE0F","1F93A","1F3C7","26F7-FE0F","1F3C2","1F3CC-FE0F","1F3CC-FE0F-200D-2642-FE0F","1F3CC-FE0F-200D-2640-FE0F","1F3C4","1F3C4-200D-2642-FE0F","1F3C4-200D-2640-FE0F","1F6A3","1F6A3-200D-2642-FE0F","1F6A3-200D-2640-FE0F","1F3CA","1F3CA-200D-2642-FE0F","1F3CA-200D-2640-FE0F","26F9-FE0F","26F9-FE0F-200D-2642-FE0F","26F9-FE0F-200D-2640-FE0F","1F3CB-FE0F","1F3CB-FE0F-200D-2642-FE0F","1F3CB-FE0F-200D-2640-FE0F","1F6B4","1F6B4-200D-2642-FE0F","1F6B4-200D-2640-FE0F","1F6B5","1F6B5-200D-2642-FE0F","1F6B5-200D-2640-FE0F","1F938","1F938-200D-2642-FE0F","1F938-200D-2640-FE0F","1F93C","1F93C-200D-2642-FE0F","1F93C-200D-2640-FE0F","1F93D","1F93D-200D-2642-FE0F","1F93D-200D-2640-FE0F","1F93E","1F93E-200D-2642-FE0F","1F93E-200D-2640-FE0F","1F939","1F939-200D-2642-FE0F","1F939-200D-2640-FE0F","1F9D8","1F9D8-200D-2642-FE0F","1F9D8-200D-2640-FE0F","1F6C0","1F6CC","1F9D1-200D-1F91D-200D-1F9D1","1F46D","1F46B","1F46C","1F48F","1F469-200D-2764-FE0F-200D-1F48B-200D-1F468","1F468-200D-2764-FE0F-200D-1F48B-200D-1F468","1F469-200D-2764-FE0F-200D-1F48B-200D-1F469","1F491","1F469-200D-2764-FE0F-200D-1F468","1F468-200D-2764-FE0F-200D-1F468","1F469-200D-2764-FE0F-200D-1F469","1F46A","1F468-200D-1F469-200D-1F466","1F468-200D-1F469-200D-1F467","1F468-200D-1F469-200D-1F467-200D-1F466","1F468-200D-1F469-200D-1F466-200D-1F466","1F468-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F468-200D-1F466","1F468-200D-1F468-200D-1F467","1F468-200D-1F468-200D-1F467-200D-1F466","1F468-200D-1F468-200D-1F466-200D-1F466","1F468-200D-1F468-200D-1F467-200D-1F467","1F469-200D-1F469-200D-1F466","1F469-200D-1F469-200D-1F467","1F469-200D-1F469-200D-1F467-200D-1F466","1F469-200D-1F469-200D-1F466-200D-1F466","1F469-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F466","1F468-200D-1F466-200D-1F466","1F468-200D-1F467","1F468-200D-1F467-200D-1F466","1F468-200D-1F467-200D-1F467","1F469-200D-1F466","1F469-200D-1F466-200D-1F466","1F469-200D-1F467","1F469-200D-1F467-200D-1F466","1F469-200D-1F467-200D-1F467","1F5E3-FE0F","1F464","1F465","1FAC2","1F463","1F63A","1F638","1F639","1F63B","1F63C","1F63D","1F640","1F63F","1F63E","1F648","1F649","1F64A","1F48B","1F48C","1F498","1F49D","1F496","1F497","1F493","1F49E","1F495","1F49F","2763-FE0F","1F494","2764-FE0F-200D-1F525","2764-FE0F-200D-1FA79","2764-FE0F","1F9E1","1F49B","1F49A","1F499","1F49C","1F90E","1F5A4","1F90D","1F4AF","1F4A2","1F4A5","1F4AB","1F4A6","1F4A8","1F573-FE0F","1F4A3","1F4AC","1F441-FE0F-200D-1F5E8-FE0F","1F5E8-FE0F","1F5EF-FE0F","1F4AD","1F4A4"]},{id:"nature",name:"Animals & Nature",emojis:["1F435","1F412","1F98D","1F9A7","1F436","1F415","1F9AE","1F415-200D-1F9BA","1F429","1F43A","1F98A","1F99D","1F431","1F408","1F408-200D-2B1B","1F981","1F42F","1F405","1F406","1F434","1F40E","1F984","1F993","1F98C","1F9AC","1F42E","1F402","1F403","1F404","1F437","1F416","1F417","1F43D","1F40F","1F411","1F410","1F42A","1F42B","1F999","1F992","1F418","1F9A3","1F98F","1F99B","1F42D","1F401","1F400","1F439","1F430","1F407","1F43F-FE0F","1F9AB","1F994","1F987","1F43B","1F43B-200D-2744-FE0F","1F428","1F43C","1F9A5","1F9A6","1F9A8","1F998","1F9A1","1F43E","1F983","1F414","1F413","1F423","1F424","1F425","1F426","1F427","1F54A-FE0F","1F985","1F986","1F9A2","1F989","1F9A4","1FAB6","1F9A9","1F99A","1F99C","1F438","1F40A","1F422","1F98E","1F40D","1F432","1F409","1F995","1F996","1F433","1F40B","1F42C","1F9AD","1F41F","1F420","1F421","1F988","1F419","1F41A","1FAB8","1F40C","1F98B","1F41B","1F41C","1F41D","1FAB2","1F41E","1F997","1FAB3","1F577-FE0F","1F578-FE0F","1F982","1F99F","1FAB0","1FAB1","1F9A0","1F490","1F338","1F4AE","1FAB7","1F3F5-FE0F","1F339","1F940","1F33A","1F33B","1F33C","1F337","1F331","1FAB4","1F332","1F333","1F334","1F335","1F33E","1F33F","2618-FE0F","1F340","1F341","1F342","1F343","1FAB9","1FABA"]},{id:"foods",name:"Food & Drink",emojis:["1F347","1F348","1F349","1F34A","1F34B","1F34C","1F34D","1F96D","1F34E","1F34F","1F350","1F351","1F352","1F353","1FAD0","1F95D","1F345","1FAD2","1F965","1F951","1F346","1F954","1F955","1F33D","1F336-FE0F","1FAD1","1F952","1F96C","1F966","1F9C4","1F9C5","1F344","1F95C","1FAD8","1F330","1F35E","1F950","1F956","1FAD3","1F968","1F96F","1F95E","1F9C7","1F9C0","1F356","1F357","1F969","1F953","1F354","1F35F","1F355","1F32D","1F96A","1F32E","1F32F","1FAD4","1F959","1F9C6","1F95A","1F373","1F958","1F372","1FAD5","1F963","1F957","1F37F","1F9C8","1F9C2","1F96B","1F371","1F358","1F359","1F35A","1F35B","1F35C","1F35D","1F360","1F362","1F363","1F364","1F365","1F96E","1F361","1F95F","1F960","1F961","1F980","1F99E","1F990","1F991","1F9AA","1F366","1F367","1F368","1F369","1F36A","1F382","1F370","1F9C1","1F967","1F36B","1F36C","1F36D","1F36E","1F36F","1F37C","1F95B","2615","1FAD6","1F375","1F376","1F37E","1F377","1F378","1F379","1F37A","1F37B","1F942","1F943","1FAD7","1F964","1F9CB","1F9C3","1F9C9","1F9CA","1F962","1F37D-FE0F","1F374","1F944","1F52A","1FAD9","1F3FA"]},{id:"activity",name:"Activities",emojis:["1F383","1F384","1F386","1F387","1F9E8","2728","1F388","1F389","1F38A","1F38B","1F38D","1F38E","1F38F","1F390","1F391","1F9E7","1F380","1F381","1F397-FE0F","1F39F-FE0F","1F3AB","1F396-FE0F","1F3C6","1F3C5","1F947","1F948","1F949","26BD","26BE","1F94E","1F3C0","1F3D0","1F3C8","1F3C9","1F3BE","1F94F","1F3B3","1F3CF","1F3D1","1F3D2","1F94D","1F3D3","1F3F8","1F94A","1F94B","1F945","26F3","26F8-FE0F","1F3A3","1F93F","1F3BD","1F3BF","1F6F7","1F94C","1F3AF","1FA80","1FA81","1F3B1","1F52E","1FA84","1F9FF","1FAAC","1F3AE","1F579-FE0F","1F3B0","1F3B2","1F9E9","1F9F8","1FA85","1FAA9","1FA86","2660-FE0F","2665-FE0F","2666-FE0F","2663-FE0F","265F-FE0F","1F0CF","1F004","1F3B4","1F3AD","1F5BC-FE0F","1F3A8","1F9F5","1FAA1","1F9F6","1FAA2"]},{id:"places",name:"Travel & Places",emojis:["1F30D","1F30E","1F30F","1F310","1F5FA-FE0F","1F5FE","1F9ED","1F3D4-FE0F","26F0-FE0F","1F30B","1F5FB","1F3D5-FE0F","1F3D6-FE0F","1F3DC-FE0F","1F3DD-FE0F","1F3DE-FE0F","1F3DF-FE0F","1F3DB-FE0F","1F3D7-FE0F","1F9F1","1FAA8","1FAB5","1F6D6","1F3D8-FE0F","1F3DA-FE0F","1F3E0","1F3E1","1F3E2","1F3E3","1F3E4","1F3E5","1F3E6","1F3E8","1F3E9","1F3EA","1F3EB","1F3EC","1F3ED","1F3EF","1F3F0","1F492","1F5FC","1F5FD","26EA","1F54C","1F6D5","1F54D","26E9-FE0F","1F54B","26F2","26FA","1F301","1F303","1F3D9-FE0F","1F304","1F305","1F306","1F307","1F309","2668-FE0F","1F3A0","1F6DD","1F3A1","1F3A2","1F488","1F3AA","1F682","1F683","1F684","1F685","1F686","1F687","1F688","1F689","1F68A","1F69D","1F69E","1F68B","1F68C","1F68D","1F68E","1F690","1F691","1F692","1F693","1F694","1F695","1F696","1F697","1F698","1F699","1F6FB","1F69A","1F69B","1F69C","1F3CE-FE0F","1F3CD-FE0F","1F6F5","1F9BD","1F9BC","1F6FA","1F6B2","1F6F4","1F6F9","1F6FC","1F68F","1F6E3-FE0F","1F6E4-FE0F","1F6E2-FE0F","26FD","1F6DE","1F6A8","1F6A5","1F6A6","1F6D1","1F6A7","2693","1F6DF","26F5","1F6F6","1F6A4","1F6F3-FE0F","26F4-FE0F","1F6E5-FE0F","1F6A2","2708-FE0F","1F6E9-FE0F","1F6EB","1F6EC","1FA82","1F4BA","1F681","1F69F","1F6A0","1F6A1","1F6F0-FE0F","1F680","1F6F8","1F6CE-FE0F","1F9F3","231B","23F3","231A","23F0","23F1-FE0F","23F2-FE0F","1F570-FE0F","1F55B","1F567","1F550","1F55C","1F551","1F55D","1F552","1F55E","1F553","1F55F","1F554","1F560","1F555","1F561","1F556","1F562","1F557","1F563","1F558","1F564","1F559","1F565","1F55A","1F566","1F311","1F312","1F313","1F314","1F315","1F316","1F317","1F318","1F319","1F31A","1F31B","1F31C","1F321-FE0F","2600-FE0F","1F31D","1F31E","1FA90","2B50","1F31F","1F320","1F30C","2601-FE0F","26C5","26C8-FE0F","1F324-FE0F","1F325-FE0F","1F326-FE0F","1F327-FE0F","1F328-FE0F","1F329-FE0F","1F32A-FE0F","1F32B-FE0F","1F32C-FE0F","1F300","1F308","1F302","2602-FE0F","2614","26F1-FE0F","26A1","2744-FE0F","2603-FE0F","26C4","2604-FE0F","1F525","1F4A7","1F30A"]},{id:"objects",name:"Objects",emojis:["1F453","1F576-FE0F","1F97D","1F97C","1F9BA","1F454","1F455","1F456","1F9E3","1F9E4","1F9E5","1F9E6","1F457","1F458","1F97B","1FA71","1FA72","1FA73","1F459","1F45A","1F45B","1F45C","1F45D","1F6CD-FE0F","1F392","1FA74","1F45E","1F45F","1F97E","1F97F","1F460","1F461","1FA70","1F462","1F451","1F452","1F3A9","1F393","1F9E2","1FA96","26D1-FE0F","1F4FF","1F484","1F48D","1F48E","1F507","1F508","1F509","1F50A","1F4E2","1F4E3","1F4EF","1F514","1F515","1F3BC","1F3B5","1F3B6","1F399-FE0F","1F39A-FE0F","1F39B-FE0F","1F3A4","1F3A7","1F4FB","1F3B7","1FA97","1F3B8","1F3B9","1F3BA","1F3BB","1FA95","1F941","1FA98","1F4F1","1F4F2","260E-FE0F","1F4DE","1F4DF","1F4E0","1F50B","1FAAB","1F50C","1F4BB","1F5A5-FE0F","1F5A8-FE0F","2328-FE0F","1F5B1-FE0F","1F5B2-FE0F","1F4BD","1F4BE","1F4BF","1F4C0","1F9EE","1F3A5","1F39E-FE0F","1F4FD-FE0F","1F3AC","1F4FA","1F4F7","1F4F8","1F4F9","1F4FC","1F50D","1F50E","1F56F-FE0F","1F4A1","1F526","1F3EE","1FA94","1F4D4","1F4D5","1F4D6","1F4D7","1F4D8","1F4D9","1F4DA","1F4D3","1F4D2","1F4C3","1F4DC","1F4C4","1F4F0","1F5DE-FE0F","1F4D1","1F516","1F3F7-FE0F","1F4B0","1FA99","1F4B4","1F4B5","1F4B6","1F4B7","1F4B8","1F4B3","1F9FE","1F4B9","2709-FE0F","1F4E7","1F4E8","1F4E9","1F4E4","1F4E5","1F4E6","1F4EB","1F4EA","1F4EC","1F4ED","1F4EE","1F5F3-FE0F","270F-FE0F","2712-FE0F","1F58B-FE0F","1F58A-FE0F","1F58C-FE0F","1F58D-FE0F","1F4DD","1F4BC","1F4C1","1F4C2","1F5C2-FE0F","1F4C5","1F4C6","1F5D2-FE0F","1F5D3-FE0F","1F4C7","1F4C8","1F4C9","1F4CA","1F4CB","1F4CC","1F4CD","1F4CE","1F587-FE0F","1F4CF","1F4D0","2702-FE0F","1F5C3-FE0F","1F5C4-FE0F","1F5D1-FE0F","1F512","1F513","1F50F","1F510","1F511","1F5DD-FE0F","1F528","1FA93","26CF-FE0F","2692-FE0F","1F6E0-FE0F","1F5E1-FE0F","2694-FE0F","1F52B","1FA83","1F3F9","1F6E1-FE0F","1FA9A","1F527","1FA9B","1F529","2699-FE0F","1F5DC-FE0F","2696-FE0F","1F9AF","1F517","26D3-FE0F","1FA9D","1F9F0","1F9F2","1FA9C","2697-FE0F","1F9EA","1F9EB","1F9EC","1F52C","1F52D","1F4E1","1F489","1FA78","1F48A","1FA79","1FA7C","1FA7A","1FA7B","1F6AA","1F6D7","1FA9E","1FA9F","1F6CF-FE0F","1F6CB-FE0F","1FA91","1F6BD","1FAA0","1F6BF","1F6C1","1FAA4","1FA92","1F9F4","1F9F7","1F9F9","1F9FA","1F9FB","1FAA3","1F9FC","1FAE7","1FAA5","1F9FD","1F9EF","1F6D2","1F6AC","26B0-FE0F","1FAA6","26B1-FE0F","1F5FF","1FAA7","1FAAA"]},{id:"symbols",name:"Symbols",emojis:["1F3E7","1F6AE","1F6B0","267F","1F6B9","1F6BA","1F6BB","1F6BC","1F6BE","1F6C2","1F6C3","1F6C4","1F6C5","26A0-FE0F","1F6B8","26D4","1F6AB","1F6B3","1F6AD","1F6AF","1F6B1","1F6B7","1F4F5","1F51E","2622-FE0F","2623-FE0F","2B06-FE0F","2197-FE0F","27A1-FE0F","2198-FE0F","2B07-FE0F","2199-FE0F","2B05-FE0F","2196-FE0F","2195-FE0F","2194-FE0F","21A9-FE0F","21AA-FE0F","2934-FE0F","2935-FE0F","1F503","1F504","1F519","1F51A","1F51B","1F51C","1F51D","1F6D0","269B-FE0F","1F549-FE0F","2721-FE0F","2638-FE0F","262F-FE0F","271D-FE0F","2626-FE0F","262A-FE0F","262E-FE0F","1F54E","1F52F","2648","2649","264A","264B","264C","264D","264E","264F","2650","2651","2652","2653","26CE","1F500","1F501","1F502","25B6-FE0F","23E9","23ED-FE0F","23EF-FE0F","25C0-FE0F","23EA","23EE-FE0F","1F53C","23EB","1F53D","23EC","23F8-FE0F","23F9-FE0F","23FA-FE0F","23CF-FE0F","1F3A6","1F505","1F506","1F4F6","1F4F3","1F4F4","2640-FE0F","2642-FE0F","26A7-FE0F","2716-FE0F","2795","2796","2797","1F7F0","267E-FE0F","203C-FE0F","2049-FE0F","2753","2754","2755","2757","3030-FE0F","1F4B1","1F4B2","2695-FE0F","267B-FE0F","269C-FE0F","1F531","1F4DB","1F530","2B55","2705","2611-FE0F","2714-FE0F","274C","274E","27B0","27BF","303D-FE0F","2733-FE0F","2734-FE0F","2747-FE0F","00A9-FE0F","00AE-FE0F","2122-FE0F","0023-FE0F-20E3","002A-FE0F-20E3","0030-FE0F-20E3","0031-FE0F-20E3","0032-FE0F-20E3","0033-FE0F-20E3","0034-FE0F-20E3","0035-FE0F-20E3","0036-FE0F-20E3","0037-FE0F-20E3","0038-FE0F-20E3","0039-FE0F-20E3","1F51F","1F520","1F521","1F522","1F523","1F524","1F170-FE0F","1F18E","1F171-FE0F","1F191","1F192","1F193","2139-FE0F","1F194","24C2-FE0F","1F195","1F196","1F17E-FE0F","1F197","1F17F-FE0F","1F198","1F199","1F19A","1F201","1F202-FE0F","1F237-FE0F","1F236","1F22F","1F250","1F239","1F21A","1F232","1F251","1F238","1F234","1F233","3297-FE0F","3299-FE0F","1F23A","1F235","1F534","1F7E0","1F7E1","1F7E2","1F535","1F7E3","1F7E4","26AB","26AA","1F7E5","1F7E7","1F7E8","1F7E9","1F7E6","1F7EA","1F7EB","2B1B","2B1C","25FC-FE0F","25FB-FE0F","25FE","25FD","25AA-FE0F","25AB-FE0F","1F536","1F537","1F538","1F539","1F53A","1F53B","1F4A0","1F518","1F533","1F532"]},{id:"flags",name:"Flags",emojis:["1F1E6-1F1E8","1F1E6-1F1E9","1F1E6-1F1EA","1F1E6-1F1EB","1F1E6-1F1EC","1F1E6-1F1EE","1F1E6-1F1F1","1F1E6-1F1F2","1F1E6-1F1F4","1F1E6-1F1F6","1F1E6-1F1F7","1F1E6-1F1F8","1F1E6-1F1F9","1F1E6-1F1FA","1F1E6-1F1FC","1F1E6-1F1FD","1F1E6-1F1FF","1F1E7-1F1E6","1F1E7-1F1E7","1F1E7-1F1E9","1F1E7-1F1EA","1F1E7-1F1EB","1F1E7-1F1EC","1F1E7-1F1ED","1F1E7-1F1EE","1F1E7-1F1EF","1F1E7-1F1F1","1F1E7-1F1F2","1F1E7-1F1F3","1F1E7-1F1F4","1F1E7-1F1F6","1F1E7-1F1F7","1F1E7-1F1F8","1F1E7-1F1F9","1F1E7-1F1FB","1F1E7-1F1FC","1F1E7-1F1FE","1F1E7-1F1FF","1F1E8-1F1E6","1F1E8-1F1E8","1F1E8-1F1E9","1F1E8-1F1EB","1F1E8-1F1EC","1F1E8-1F1ED","1F1E8-1F1EE","1F1E8-1F1F0","1F1E8-1F1F1","1F1E8-1F1F2","1F1E8-1F1F3","1F1E8-1F1F4","1F1E8-1F1F5","1F1E8-1F1F7","1F1E8-1F1FA","1F1E8-1F1FB","1F1E8-1F1FC","1F1E8-1F1FD","1F1E8-1F1FE","1F1E8-1F1FF","1F1E9-1F1EA","1F1E9-1F1EC","1F1E9-1F1EF","1F1E9-1F1F0","1F1E9-1F1F2","1F1E9-1F1F4","1F1E9-1F1FF","1F1EA-1F1E6","1F1EA-1F1E8","1F1EA-1F1EA","1F1EA-1F1EC","1F1EA-1F1ED","1F1EA-1F1F7","1F1EA-1F1F8","1F1EA-1F1F9","1F1EA-1F1FA","1F1EB-1F1EE","1F1EB-1F1EF","1F1EB-1F1F0","1F1EB-1F1F2","1F1EB-1F1F4","1F1EB-1F1F7","1F1EC-1F1E6","1F1EC-1F1E7","1F1EC-1F1E9","1F1EC-1F1EA","1F1EC-1F1EB","1F1EC-1F1EC","1F1EC-1F1ED","1F1EC-1F1EE","1F1EC-1F1F1","1F1EC-1F1F2","1F1EC-1F1F3","1F1EC-1F1F5","1F1EC-1F1F6","1F1EC-1F1F7","1F1EC-1F1F8","1F1EC-1F1F9","1F1EC-1F1FA","1F1EC-1F1FC","1F1EC-1F1FE","1F1ED-1F1F0","1F1ED-1F1F2","1F1ED-1F1F3","1F1ED-1F1F7","1F1ED-1F1F9","1F1ED-1F1FA","1F1EE-1F1E8","1F1EE-1F1E9","1F1EE-1F1EA","1F1EE-1F1F1","1F1EE-1F1F2","1F1EE-1F1F3","1F1EE-1F1F4","1F1EE-1F1F6","1F1EE-1F1F7","1F1EE-1F1F8","1F1EE-1F1F9","1F1EF-1F1EA","1F1EF-1F1F2","1F1EF-1F1F4","1F1EF-1F1F5","1F1F0-1F1EA","1F1F0-1F1EC","1F1F0-1F1ED","1F1F0-1F1EE","1F1F0-1F1F2","1F1F0-1F1F3","1F1F0-1F1F5","1F1F0-1F1F7","1F1F0-1F1FC","1F1F0-1F1FE","1F1F0-1F1FF","1F1F1-1F1E6","1F1F1-1F1E7","1F1F1-1F1E8","1F1F1-1F1EE","1F1F1-1F1F0","1F1F1-1F1F7","1F1F1-1F1F8","1F1F1-1F1F9","1F1F1-1F1FA","1F1F1-1F1FB","1F1F1-1F1FE","1F1F2-1F1E6","1F1F2-1F1E8","1F1F2-1F1E9","1F1F2-1F1EA","1F1F2-1F1EB","1F1F2-1F1EC","1F1F2-1F1ED","1F1F2-1F1F0","1F1F2-1F1F1","1F1F2-1F1F2","1F1F2-1F1F3","1F1F2-1F1F4","1F1F2-1F1F5","1F1F2-1F1F6","1F1F2-1F1F7","1F1F2-1F1F8","1F1F2-1F1F9","1F1F2-1F1FA","1F1F2-1F1FB","1F1F2-1F1FC","1F1F2-1F1FD","1F1F2-1F1FE","1F1F2-1F1FF","1F1F3-1F1E6","1F1F3-1F1E8","1F1F3-1F1EA","1F1F3-1F1EB","1F1F3-1F1EC","1F1F3-1F1EE","1F1F3-1F1F1","1F1F3-1F1F4","1F1F3-1F1F5","1F1F3-1F1F7","1F1F3-1F1FA","1F1F3-1F1FF","1F1F4-1F1F2","1F1F5-1F1E6","1F1F5-1F1EA","1F1F5-1F1EB","1F1F5-1F1EC","1F1F5-1F1ED","1F1F5-1F1F0","1F1F5-1F1F1","1F1F5-1F1F2","1F1F5-1F1F3","1F1F5-1F1F7","1F1F5-1F1F8","1F1F5-1F1F9","1F1F5-1F1FC","1F1F5-1F1FE","1F1F6-1F1E6","1F1F7-1F1EA","1F1F7-1F1F4","1F1F7-1F1F8","1F1F7-1F1FA","1F1F7-1F1FC","1F1F8-1F1E6","1F1F8-1F1E7","1F1F8-1F1E8","1F1F8-1F1E9","1F1F8-1F1EA","1F1F8-1F1EC","1F1F8-1F1ED","1F1F8-1F1EE","1F1F8-1F1EF","1F1F8-1F1F0","1F1F8-1F1F1","1F1F8-1F1F2","1F1F8-1F1F3","1F1F8-1F1F4","1F1F8-1F1F7","1F1F8-1F1F8","1F1F8-1F1F9","1F1F8-1F1FB","1F1F8-1F1FD","1F1F8-1F1FE","1F1F8-1F1FF","1F1F9-1F1E6","1F1F9-1F1E8","1F1F9-1F1E9","1F1F9-1F1EB","1F1F9-1F1EC","1F1F9-1F1ED","1F1F9-1F1EF","1F1F9-1F1F0","1F1F9-1F1F1","1F1F9-1F1F2","1F1F9-1F1F3","1F1F9-1F1F4","1F1F9-1F1F7","1F1F9-1F1F9","1F1F9-1F1FB","1F1F9-1F1FC","1F1F9-1F1FF","1F1FA-1F1E6","1F1FA-1F1EC","1F1FA-1F1F2","1F1FA-1F1F3","1F1FA-1F1F8","1F1FA-1F1FE","1F1FA-1F1FF","1F1FB-1F1E6","1F1FB-1F1E8","1F1FB-1F1EA","1F1FB-1F1EC","1F1FB-1F1EE","1F1FB-1F1F3","1F1FB-1F1FA","1F1FC-1F1EB","1F1FC-1F1F8","1F1FD-1F1F0","1F1FE-1F1EA","1F1FE-1F1F9","1F1FF-1F1E6","1F1FF-1F1F2","1F1FF-1F1FC","1F38C","1F3C1","1F3F3-FE0F","1F3F3-FE0F-200D-1F308","1F3F3-FE0F-200D-26A7-FE0F","1F3F4","1F3F4-200D-2620-FE0F","1F3F4-E0067-E0062-E0065-E006E-E0067-E007F","1F3F4-E0067-E0062-E0073-E0063-E0074-E007F","1F3F4-E0067-E0062-E0077-E006C-E0073-E007F","1F6A9"]}],B4=[{name:"Grinning Face",unified:"1F600",text:":D",keywords:["grinning_face","face","smile","happy","joy",":D","grin"],sheet:[32,20],shortName:"grinning"},{name:"Smiling Face with Open Mouth",unified:"1F603",text:":)",emoticons:["=)","=-)"],keywords:["grinning_face_with_big_eyes","face","happy","joy","haha",":D",":)","smile","funny"],sheet:[32,23],shortName:"smiley"},{name:"Smiling Face with Open Mouth and Smiling Eyes",unified:"1F604",text:":)",emoticons:["C:","c:",":D",":-D"],keywords:["grinning_face_with_smiling_eyes","face","happy","joy","funny","haha","laugh","like",":D",":)","smile"],sheet:[32,24],shortName:"smile"},{name:"Grinning Face with Smiling Eyes",unified:"1F601",keywords:["beaming_face_with_smiling_eyes","face","happy","smile","joy","kawaii"],sheet:[32,21],shortName:"grin"},{name:"Smiling Face with Open Mouth and Tightly-Closed Eyes",unified:"1F606",emoticons:[":>",":->"],keywords:["grinning_squinting_face","happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],sheet:[32,26],shortNames:["satisfied"],shortName:"laughing"},{name:"Smiling Face with Open Mouth and Cold Sweat",unified:"1F605",keywords:["grinning_face_with_sweat","face","hot","happy","laugh","sweat","smile","relief"],sheet:[32,25],shortName:"sweat_smile"},{name:"Rolling on the Floor Laughing",unified:"1F923",keywords:["rolling_on_the_floor_laughing","face","rolling","floor","laughing","lol","haha","rofl"],sheet:[40,15],shortName:"rolling_on_the_floor_laughing"},{name:"Face with Tears of Joy",unified:"1F602",keywords:["face_with_tears_of_joy","face","cry","tears","weep","happy","happytears","haha"],sheet:[32,22],shortName:"joy"},{name:"Slightly Smiling Face",unified:"1F642",emoticons:[":)","(:",":-)"],keywords:["slightly_smiling_face","face","smile"],sheet:[33,28],shortName:"slightly_smiling_face"},{name:"Upside-Down Face",unified:"1F643",keywords:["upside_down_face","face","flipped","silly","smile"],sheet:[33,29],shortName:"upside_down_face"},{name:"Melting Face",unified:"1FAE0",keywords:["melting face","hot","heat"],sheet:[55,12],hidden:["facebook"],shortName:"melting_face"},{name:"Winking Face",unified:"1F609",text:";)",emoticons:[";)",";-)"],keywords:["winking_face","face","happy","mischievous","secret",";)","smile","eye"],sheet:[32,29],shortName:"wink"},{name:"Smiling Face with Smiling Eyes",unified:"1F60A",text:":)",keywords:["smiling_face_with_smiling_eyes","face","smile","happy","flushed","crush","embarrassed","shy","joy"],sheet:[32,30],shortName:"blush"},{name:"Smiling Face with Halo",unified:"1F607",keywords:["smiling_face_with_halo","face","angel","heaven","halo","innocent"],sheet:[32,27],shortName:"innocent"},{name:"Smiling Face with Smiling Eyes and Three Hearts",unified:"1F970",keywords:["smiling_face_with_hearts","face","love","like","affection","valentines","infatuation","crush","hearts","adore"],sheet:[43,58],shortName:"smiling_face_with_3_hearts"},{name:"Smiling Face with Heart-Shaped Eyes",unified:"1F60D",keywords:["smiling_face_with_heart_eyes","face","love","like","affection","valentines","infatuation","crush","heart"],sheet:[32,33],shortName:"heart_eyes"},{name:"Grinning Face with Star Eyes",unified:"1F929",keywords:["star_struck","face","smile","starry","eyes","grinning"],sheet:[40,38],shortNames:["grinning_face_with_star_eyes"],shortName:"star-struck"},{name:"Face Throwing a Kiss",unified:"1F618",emoticons:[":*",":-*"],keywords:["face_blowing_a_kiss","face","love","like","affection","valentines","infatuation","kiss"],sheet:[32,44],shortName:"kissing_heart"},{name:"Kissing Face",unified:"1F617",keywords:["kissing_face","love","like","face","3","valentines","infatuation","kiss"],sheet:[32,43],shortName:"kissing"},{name:"White Smiling Face",unified:"263A-FE0F",keywords:["smiling_face","face","blush","massage","happiness"],sheet:[57,4],shortName:"relaxed"},{name:"Kissing Face with Closed Eyes",unified:"1F61A",keywords:["kissing_face_with_closed_eyes","face","love","like","affection","valentines","infatuation","kiss"],sheet:[32,46],shortName:"kissing_closed_eyes"},{name:"Kissing Face with Smiling Eyes",unified:"1F619",keywords:["kissing_face_with_smiling_eyes","face","affection","valentines","infatuation","kiss"],sheet:[32,45],shortName:"kissing_smiling_eyes"},{name:"Smiling Face with Tear",unified:"1F972",keywords:["smiling face with tear","sad","cry","pretend"],sheet:[43,60],shortName:"smiling_face_with_tear"},{name:"Face Savouring Delicious Food",unified:"1F60B",keywords:["face_savoring_food","happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],sheet:[32,31],shortName:"yum"},{name:"Face with Stuck-out Tongue",unified:"1F61B",text:":p",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["face_with_tongue","face","prank","childish","playful","mischievous","smile","tongue"],sheet:[32,47],shortName:"stuck_out_tongue"},{name:"Face with Stuck-out Tongue and Winking Eye",unified:"1F61C",text:";p",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["winking_face_with_tongue","face","prank","childish","playful","mischievous","smile","wink","tongue"],sheet:[32,48],shortName:"stuck_out_tongue_winking_eye"},{name:"Grinning Face with One Large and One Small Eye",unified:"1F92A",keywords:["zany_face","face","goofy","crazy"],sheet:[40,39],shortNames:["grinning_face_with_one_large_and_one_small_eye"],shortName:"zany_face"},{name:"Face with Stuck-out Tongue and Tightly-Closed Eyes",unified:"1F61D",keywords:["squinting_face_with_tongue","face","prank","playful","mischievous","smile","tongue"],sheet:[32,49],shortName:"stuck_out_tongue_closed_eyes"},{name:"Money-Mouth Face",unified:"1F911",keywords:["money_mouth_face","face","rich","dollar","money"],sheet:[38,59],shortName:"money_mouth_face"},{name:"Hugging Face",unified:"1F917",keywords:["hugging_face","face","smile","hug"],sheet:[39,4],shortName:"hugging_face"},{name:"Smiling Face with Smiling Eyes and Hand Covering Mouth",unified:"1F92D",keywords:["face_with_hand_over_mouth","face","whoops","shock","surprise"],sheet:[40,42],shortNames:["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],shortName:"face_with_hand_over_mouth"},{name:"Face with Open Eyes and Hand over Mouth",unified:"1FAE2",keywords:["face with open eyes and hand over mouth","silence","secret","shock","surprise"],sheet:[55,14],hidden:["facebook"],shortName:"face_with_open_eyes_and_hand_over_mouth"},{name:"Face with Peeking Eye",unified:"1FAE3",keywords:["face with peeking eye","scared","frightening","embarrassing","shy"],sheet:[55,15],hidden:["facebook"],shortName:"face_with_peeking_eye"},{name:"Face with Finger Covering Closed Lips",unified:"1F92B",keywords:["shushing_face","face","quiet","shhh"],sheet:[40,40],shortNames:["face_with_finger_covering_closed_lips"],shortName:"shushing_face"},{name:"Thinking Face",unified:"1F914",keywords:["thinking_face","face","hmmm","think","consider"],sheet:[39,1],shortName:"thinking_face"},{name:"Saluting Face",unified:"1FAE1",keywords:["saluting face","respect","salute"],sheet:[55,13],hidden:["facebook"],shortName:"saluting_face"},{name:"Zipper-Mouth Face",unified:"1F910",keywords:["zipper_mouth_face","face","sealed","zipper","secret"],sheet:[38,58],shortName:"zipper_mouth_face"},{name:"Face with One Eyebrow Raised",unified:"1F928",keywords:["face_with_raised_eyebrow","face","distrust","scepticism","disapproval","disbelief","surprise"],sheet:[40,37],shortNames:["face_with_one_eyebrow_raised"],shortName:"face_with_raised_eyebrow"},{name:"Neutral Face",unified:"1F610",emoticons:[":|",":-|"],keywords:["neutral_face","indifference","meh",":|","neutral"],sheet:[32,36],shortName:"neutral_face"},{name:"Expressionless Face",unified:"1F611",keywords:["expressionless_face","face","indifferent","-_-","meh","deadpan"],sheet:[32,37],shortName:"expressionless"},{name:"Face Without Mouth",unified:"1F636",keywords:["face_without_mouth","face","hellokitty"],sheet:[33,16],shortName:"no_mouth"},{name:"Dotted Line Face",unified:"1FAE5",keywords:["dotted line face","invisible","lonely","isolation","depression"],sheet:[55,17],hidden:["facebook"],shortName:"dotted_line_face"},{name:"Face in Clouds",unified:"1F636-200D-1F32B-FE0F",keywords:["face in clouds","shower","steam","dream"],sheet:[33,15],hidden:["facebook"],shortName:"face_in_clouds"},{name:"Smirking Face",unified:"1F60F",keywords:["smirking_face","face","smile","mean","prank","smug","sarcasm"],sheet:[32,35],shortName:"smirk"},{name:"Unamused Face",unified:"1F612",text:":(",keywords:["unamused_face","indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],sheet:[32,38],shortName:"unamused"},{name:"Face with Rolling Eyes",unified:"1F644",keywords:["face_with_rolling_eyes","face","eyeroll","frustrated"],sheet:[33,30],shortName:"face_with_rolling_eyes"},{name:"Grimacing Face",unified:"1F62C",keywords:["grimacing_face","face","grimace","teeth"],sheet:[33,3],shortName:"grimacing"},{name:"Face Exhaling",unified:"1F62E-200D-1F4A8",keywords:["face exhaling","relieve","relief","tired","sigh"],sheet:[33,5],hidden:["facebook"],shortName:"face_exhaling"},{name:"Lying Face",unified:"1F925",keywords:["lying_face","face","lie","pinocchio"],sheet:[40,17],shortName:"lying_face"},{name:"Relieved Face",unified:"1F60C",keywords:["relieved_face","face","relaxed","phew","massage","happiness"],sheet:[32,32],shortName:"relieved"},{name:"Pensive Face",unified:"1F614",keywords:["pensive_face","face","sad","depressed","upset"],sheet:[32,40],shortName:"pensive"},{name:"Sleepy Face",unified:"1F62A",keywords:["sleepy_face","face","tired","rest","nap"],sheet:[33,1],shortName:"sleepy"},{name:"Drooling Face",unified:"1F924",keywords:["drooling_face","face"],sheet:[40,16],shortName:"drooling_face"},{name:"Sleeping Face",unified:"1F634",keywords:["sleeping_face","face","tired","sleepy","night","zzz"],sheet:[33,12],shortName:"sleeping"},{name:"Face with Medical Mask",unified:"1F637",keywords:["face_with_medical_mask","face","sick","ill","disease","covid"],sheet:[33,17],shortName:"mask"},{name:"Face with Thermometer",unified:"1F912",keywords:["face_with_thermometer","sick","temperature","thermometer","cold","fever","covid"],sheet:[38,60],shortName:"face_with_thermometer"},{name:"Face with Head-Bandage",unified:"1F915",keywords:["face_with_head_bandage","injured","clumsy","bandage","hurt"],sheet:[39,2],shortName:"face_with_head_bandage"},{name:"Nauseated Face",unified:"1F922",keywords:["nauseated_face","face","vomit","gross","green","sick","throw up","ill"],sheet:[40,14],shortName:"nauseated_face"},{name:"Face with Open Mouth Vomiting",unified:"1F92E",keywords:["face_vomiting","face","sick"],sheet:[40,43],shortNames:["face_with_open_mouth_vomiting"],shortName:"face_vomiting"},{name:"Sneezing Face",unified:"1F927",keywords:["sneezing_face","face","gesundheit","sneeze","sick","allergy"],sheet:[40,36],shortName:"sneezing_face"},{name:"Overheated Face",unified:"1F975",keywords:["hot_face","face","feverish","heat","red","sweating"],sheet:[44,2],shortName:"hot_face"},{name:"Freezing Face",unified:"1F976",keywords:["cold_face","face","blue","freezing","frozen","frostbite","icicles"],sheet:[44,3],shortName:"cold_face"},{name:"Face with Uneven Eyes and Wavy Mouth",unified:"1F974",keywords:["woozy_face","face","dizzy","intoxicated","tipsy","wavy"],sheet:[44,1],shortName:"woozy_face"},{name:"Dizzy Face",unified:"1F635",keywords:["dizzy_face","spent","unconscious","xox","dizzy"],sheet:[33,14],shortName:"dizzy_face"},{name:"Face with Spiral Eyes",unified:"1F635-200D-1F4AB",keywords:["face with spiral eyes","sick","ill","confused","nauseous","nausea"],sheet:[33,13],hidden:["facebook"],shortName:"face_with_spiral_eyes"},{name:"Shocked Face with Exploding Head",unified:"1F92F",keywords:["exploding_head","face","shocked","mind","blown"],sheet:[40,44],shortNames:["shocked_face_with_exploding_head"],shortName:"exploding_head"},{name:"Face with Cowboy Hat",unified:"1F920",keywords:["cowboy_hat_face","face","cowgirl","hat"],sheet:[40,12],shortName:"face_with_cowboy_hat"},{name:"Face with Party Horn and Party Hat",unified:"1F973",keywords:["partying_face","face","celebration","woohoo"],sheet:[44,0],shortName:"partying_face"},{name:"Disguised Face",unified:"1F978",keywords:["disguised face","pretent","brows","glasses","moustache"],sheet:[44,10],shortName:"disguised_face"},{name:"Smiling Face with Sunglasses",unified:"1F60E",emoticons:["8)"],keywords:["smiling_face_with_sunglasses","face","cool","smile","summer","beach","sunglass"],sheet:[32,34],shortName:"sunglasses"},{name:"Nerd Face",unified:"1F913",keywords:["nerd_face","face","nerdy","geek","dork"],sheet:[39,0],shortName:"nerd_face"},{name:"Face with Monocle",unified:"1F9D0",keywords:["face_with_monocle","face","stuffy","wealthy"],sheet:[47,11],shortName:"face_with_monocle"},{name:"Confused Face",unified:"1F615",emoticons:[":\\\\",":-\\\\",":/",":-/"],keywords:["confused_face","face","indifference","huh","weird","hmmm",":/"],sheet:[32,41],shortName:"confused"},{name:"Face with Diagonal Mouth",unified:"1FAE4",keywords:["face with diagonal mouth","skeptic","confuse","frustrated","indifferent"],sheet:[55,16],hidden:["facebook"],shortName:"face_with_diagonal_mouth"},{name:"Worried Face",unified:"1F61F",keywords:["worried_face","face","concern","nervous",":("],sheet:[32,51],shortName:"worried"},{name:"Slightly Frowning Face",unified:"1F641",keywords:["slightly_frowning_face","face","frowning","disappointed","sad","upset"],sheet:[33,27],shortName:"slightly_frowning_face"},{name:"Frowning Face",unified:"2639-FE0F",keywords:["frowning_face","face","sad","upset","frown"],sheet:[57,3],shortName:"white_frowning_face"},{name:"Face with Open Mouth",unified:"1F62E",emoticons:[":o",":-o",":O",":-O"],keywords:["face_with_open_mouth","face","surprise","impressed","wow","whoa",":O"],sheet:[33,6],shortName:"open_mouth"},{name:"Hushed Face",unified:"1F62F",keywords:["hushed_face","face","woo","shh"],sheet:[33,7],shortName:"hushed"},{name:"Astonished Face",unified:"1F632",keywords:["astonished_face","face","xox","surprised","poisoned"],sheet:[33,10],shortName:"astonished"},{name:"Flushed Face",unified:"1F633",keywords:["flushed_face","face","blush","shy","flattered"],sheet:[33,11],shortName:"flushed"},{name:"Face with Pleading Eyes",unified:"1F97A",keywords:["pleading_face","face","begging","mercy","cry","tears","sad","grievance"],sheet:[44,12],shortName:"pleading_face"},{name:"Face Holding Back Tears",unified:"1F979",keywords:["face holding back tears","touched","gratitude","cry"],sheet:[44,11],hidden:["facebook"],shortName:"face_holding_back_tears"},{name:"Frowning Face with Open Mouth",unified:"1F626",keywords:["frowning_face_with_open_mouth","face","aw","what"],sheet:[32,58],shortName:"frowning"},{name:"Anguished Face",unified:"1F627",emoticons:["D:"],keywords:["anguished_face","face","stunned","nervous"],sheet:[32,59],shortName:"anguished"},{name:"Fearful Face",unified:"1F628",keywords:["fearful_face","face","scared","terrified","nervous"],sheet:[32,60],shortName:"fearful"},{name:"Face with Open Mouth and Cold Sweat",unified:"1F630",keywords:["anxious_face_with_sweat","face","nervous","sweat"],sheet:[33,8],shortName:"cold_sweat"},{name:"Disappointed but Relieved Face",unified:"1F625",keywords:["sad_but_relieved_face","face","phew","sweat","nervous"],sheet:[32,57],shortName:"disappointed_relieved"},{name:"Crying Face",unified:"1F622",text:":'(",emoticons:[":'("],keywords:["crying_face","face","tears","sad","depressed","upset",":'("],sheet:[32,54],shortName:"cry"},{name:"Loudly Crying Face",unified:"1F62D",text:":'(",keywords:["loudly_crying_face","face","cry","tears","sad","upset","depressed"],sheet:[33,4],shortName:"sob"},{name:"Face Screaming in Fear",unified:"1F631",keywords:["face_screaming_in_fear","face","munch","scared","omg"],sheet:[33,9],shortName:"scream"},{name:"Confounded Face",unified:"1F616",keywords:["confounded_face","face","confused","sick","unwell","oops",":S"],sheet:[32,42],shortName:"confounded"},{name:"Persevering Face",unified:"1F623",keywords:["persevering_face","face","sick","no","upset","oops"],sheet:[32,55],shortName:"persevere"},{name:"Disappointed Face",unified:"1F61E",text:":(",emoticons:["):",":(",":-("],keywords:["disappointed_face","face","sad","upset","depressed",":("],sheet:[32,50],shortName:"disappointed"},{name:"Face with Cold Sweat",unified:"1F613",keywords:["downcast_face_with_sweat","face","hot","sad","tired","exercise"],sheet:[32,39],shortName:"sweat"},{name:"Weary Face",unified:"1F629",keywords:["weary_face","face","tired","sleepy","sad","frustrated","upset"],sheet:[33,0],shortName:"weary"},{name:"Tired Face",unified:"1F62B",keywords:["tired_face","sick","whine","upset","frustrated"],sheet:[33,2],shortName:"tired_face"},{name:"Yawning Face",unified:"1F971",keywords:["yawning_face","tired","sleepy"],sheet:[43,59],shortName:"yawning_face"},{name:"Face with Look of Triumph",unified:"1F624",keywords:["face_with_steam_from_nose","face","gas","phew","proud","pride"],sheet:[32,56],shortName:"triumph"},{name:"Pouting Face",unified:"1F621",keywords:["pouting_face","angry","mad","hate","despise"],sheet:[32,53],shortName:"rage"},{name:"Angry Face",unified:"1F620",emoticons:[">:(",">:-("],keywords:["angry_face","mad","face","annoyed","frustrated"],sheet:[32,52],shortName:"angry"},{name:"Serious Face with Symbols Covering Mouth",unified:"1F92C",keywords:["face_with_symbols_on_mouth","face","swearing","cursing","cussing","profanity","expletive"],sheet:[40,41],shortNames:["serious_face_with_symbols_covering_mouth"],shortName:"face_with_symbols_on_mouth"},{name:"Smiling Face with Horns",unified:"1F608",keywords:["smiling_face_with_horns","devil","horns"],sheet:[32,28],shortName:"smiling_imp"},{name:"Imp",unified:"1F47F",keywords:["angry_face_with_horns","devil","angry","horns"],sheet:[25,8],shortName:"imp"},{name:"Skull",unified:"1F480",keywords:["skull","dead","skeleton","creepy","death"],sheet:[25,9],shortName:"skull"},{name:"Skull and Crossbones",unified:"2620-FE0F",keywords:["skull_and_crossbones","poison","danger","deadly","scary","death","pirate","evil"],sheet:[56,56],shortName:"skull_and_crossbones"},{name:"Pile of Poo",unified:"1F4A9",keywords:["pile_of_poo","hankey","shitface","fail","turd","shit"],sheet:[27,56],shortNames:["poop","shit"],shortName:"hankey"},{name:"Clown Face",unified:"1F921",keywords:["clown_face","face"],sheet:[40,13],shortName:"clown_face"},{name:"Japanese Ogre",unified:"1F479",keywords:["ogre","monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],sheet:[24,58],shortName:"japanese_ogre"},{name:"Japanese Goblin",unified:"1F47A",keywords:["goblin","red","evil","mask","monster","scary","creepy","japanese","goblin"],sheet:[24,59],shortName:"japanese_goblin"},{name:"Ghost",unified:"1F47B",keywords:["ghost","halloween","spooky","scary"],sheet:[24,60],shortName:"ghost"},{name:"Extraterrestrial Alien",unified:"1F47D",keywords:["alien","UFO","paul","weird","outer_space"],sheet:[25,6],shortName:"alien"},{name:"Alien Monster",unified:"1F47E",keywords:["alien_monster","game","arcade","play"],sheet:[25,7],shortName:"space_invader"},{name:"Robot Face",unified:"1F916",keywords:["robot","computer","machine","bot"],sheet:[39,3],shortName:"robot_face"},{name:"Smiling Cat Face with Open Mouth",unified:"1F63A",keywords:["grinning_cat","animal","cats","happy","smile"],sheet:[33,20],shortName:"smiley_cat"},{name:"Grinning Cat Face with Smiling Eyes",unified:"1F638",keywords:["grinning_cat_with_smiling_eyes","animal","cats","smile"],sheet:[33,18],shortName:"smile_cat"},{name:"Cat Face with Tears of Joy",unified:"1F639",keywords:["cat_with_tears_of_joy","animal","cats","haha","happy","tears"],sheet:[33,19],shortName:"joy_cat"},{name:"Smiling Cat Face with Heart-Shaped Eyes",unified:"1F63B",keywords:["smiling_cat_with_heart_eyes","animal","love","like","affection","cats","valentines","heart"],sheet:[33,21],shortName:"heart_eyes_cat"},{name:"Cat Face with Wry Smile",unified:"1F63C",keywords:["cat_with_wry_smile","animal","cats","smirk"],sheet:[33,22],shortName:"smirk_cat"},{name:"Kissing Cat Face with Closed Eyes",unified:"1F63D",keywords:["kissing_cat","animal","cats","kiss"],sheet:[33,23],shortName:"kissing_cat"},{name:"Weary Cat Face",unified:"1F640",keywords:["weary_cat","animal","cats","munch","scared","scream"],sheet:[33,26],shortName:"scream_cat"},{name:"Crying Cat Face",unified:"1F63F",keywords:["crying_cat","animal","tears","weep","sad","cats","upset","cry"],sheet:[33,25],shortName:"crying_cat_face"},{name:"Pouting Cat Face",unified:"1F63E",keywords:["pouting_cat","animal","cats"],sheet:[33,24],shortName:"pouting_cat"},{name:"See-No-Evil Monkey",unified:"1F648",keywords:["see_no_evil_monkey","monkey","animal","nature","haha"],sheet:[34,24],shortName:"see_no_evil"},{name:"Hear-No-Evil Monkey",unified:"1F649",keywords:["hear_no_evil_monkey","animal","monkey","nature"],sheet:[34,25],shortName:"hear_no_evil"},{name:"Speak-No-Evil Monkey",unified:"1F64A",keywords:["speak_no_evil_monkey","monkey","animal","nature","omg"],sheet:[34,26],shortName:"speak_no_evil"},{name:"Kiss Mark",unified:"1F48B",keywords:["kiss_mark","face","lips","love","like","affection","valentines"],sheet:[26,37],shortName:"kiss"},{name:"Love Letter",unified:"1F48C",keywords:["love_letter","email","like","affection","envelope","valentines"],sheet:[26,38],shortName:"love_letter"},{name:"Heart with Arrow",unified:"1F498",keywords:["heart_with_arrow","love","like","heart","affection","valentines"],sheet:[27,39],shortName:"cupid"},{name:"Heart with Ribbon",unified:"1F49D",keywords:["heart_with_ribbon","love","valentines"],sheet:[27,44],shortName:"gift_heart"},{name:"Sparkling Heart",unified:"1F496",keywords:["sparkling_heart","love","like","affection","valentines"],sheet:[27,37],shortName:"sparkling_heart"},{name:"Growing Heart",unified:"1F497",keywords:["growing_heart","like","love","affection","valentines","pink"],sheet:[27,38],shortName:"heartpulse"},{name:"Beating Heart",unified:"1F493",keywords:["beating_heart","love","like","affection","valentines","pink","heart"],sheet:[27,34],shortName:"heartbeat"},{name:"Revolving Hearts",unified:"1F49E",keywords:["revolving_hearts","love","like","affection","valentines"],sheet:[27,45],shortName:"revolving_hearts"},{name:"Two Hearts",unified:"1F495",keywords:["two_hearts","love","like","affection","valentines","heart"],sheet:[27,36],shortName:"two_hearts"},{name:"Heart Decoration",unified:"1F49F",keywords:["heart_decoration","purple-square","love","like"],sheet:[27,46],shortName:"heart_decoration"},{name:"Heart Exclamation",unified:"2763-FE0F",keywords:["heart_exclamation","decoration","love"],sheet:[59,7],shortName:"heavy_heart_exclamation_mark_ornament"},{name:"Broken Heart",unified:"1F494",text:"`https://cdn.jsdelivr.net/npm/emoji-datasource-${n}@14.0.0/img/${n}/sheets-256/${a}.png`;let C2=(()=>{class n{uncompressed=!1;names={};emojis=[];constructor(){this.uncompressed||(this.uncompress(B4),this.uncompressed=!0)}uncompress(c){this.emojis=c.map(t=>{const l={...t};if(l.shortNames||(l.shortNames=[]),l.shortNames.unshift(l.shortName),l.id=l.shortName,l.native=this.unifiedToNative(l.unified),l.skinVariations||(l.skinVariations=[]),l.keywords||(l.keywords=[]),l.emoticons||(l.emoticons=[]),l.hidden||(l.hidden=[]),l.text||(l.text=""),l.obsoletes){const i=c.find(u=>u.unified===l.obsoletes);i&&(l.keywords=i.keywords?[...l.keywords,...i.keywords,i.shortName]:[...l.keywords,i.shortName])}this.names[l.unified]=l;for(const i of l.shortNames)this.names[i]=l;return l})}getData(c,t,l){let i;if("string"==typeof c){const C=c.match(w0);if(C&&(c=C[1],C[2]&&(t=parseInt(C[2],10))),!this.names.hasOwnProperty(c))return null;i=this.names[c]}else c.id?i=this.names[c.id]:c.unified&&(i=this.names[c.unified.toUpperCase()]);if(i||(i=c,i.custom=!0),i.skinVariations&&i.skinVariations.length&&t&&t>1&&l){i={...i};const C=v1[t-1],b=i.skinVariations.find(T=>T.unified.includes(C));(!b.hidden||!b.hidden.includes(l))&&(i.skinTone=t,i={...i,...b}),i.native=this.unifiedToNative(i.unified)}return i.set=l||"",i}unifiedToNative(c){const t=c.split("-").map(l=>parseInt(`0x${l}`,16));return String.fromCodePoint(...t)}emojiSpriteStyles(c,t="apple",l=24,i=64,u=60,C=e2,b=61,T){const W=!!T;return{width:`${l}px`,height:`${l}px`,display:"inline-block","background-image":`url(${T=T||C(t,i)})`,"background-size":W?"100% 100%":`${100*b}% ${100*u}%`,"background-position":W?void 0:this.getSpritePosition(c,b)}}getSpritePosition(c,t){const[l,i]=c,u=100/(t-1);return`${u*l}% ${u*i}%`}sanitize(c){if(null===c)return null;let l=`:${c.id||c.shortNames[0]}:`;return c.skinTone&&(l+=`:skin-tone-${c.skinTone}:`),c.colons=l,{...c}}getSanitizedData(c,t,l){return this.sanitize(this.getData(c,t,l))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),E1=(()=>{class n{skin=1;set="apple";sheetSize=64;isNative=!1;forceSize=!1;tooltip=!1;size=24;emoji="";fallback;hideObsolete=!1;sheetRows;sheetColumns;useButton;emojiOver=new e.bkB;emojiOverOutsideAngular=new e.bkB;emojiLeave=new e.bkB;emojiLeaveOutsideAngular=new e.bkB;emojiClick=new e.bkB;emojiClickOutsideAngular=new e.bkB;style;title=void 0;label="";unified;custom=!1;isVisible=!0;backgroundImageFn=e2;imageUrlFn;set button(c){this.ngZone.runOutsideAngular(()=>this.button$.next(c?.nativeElement))}button$=new S.B;destroy$=new S.B;ngZone=(0,e.WQX)(e.SKi);emojiService=(0,e.WQX)(C2);constructor(){this.setupMouseListeners()}ngOnChanges(){if(!this.emoji)return this.isVisible=!1;const c=this.getData();if(!c)return this.isVisible=!1;if(this.unified=c.native||null,c.custom&&(this.custom=c.custom),!c.unified&&!c.custom)return this.isVisible=!1;if(this.tooltip&&(this.title=c.shortNames[0]),c.obsoletedBy&&this.hideObsolete)return this.isVisible=!1;if(this.label=[c.native].concat(c.shortNames).filter(Boolean).join(", "),this.isNative&&c.unified&&c.native)this.style={fontSize:`${this.size}px`},this.forceSize&&(this.style.display="inline-block",this.style.width=`${this.size}px`,this.style.height=`${this.size}px`,this.style["word-break"]="keep-all");else if(c.custom)this.style={width:`${this.size}px`,height:`${this.size}px`,display:"inline-block"},this.style=c.spriteUrl&&this.sheetRows&&this.sheetColumns?{...this.style,backgroundImage:`url(${c.spriteUrl})`,backgroundSize:`${100*this.sheetColumns}% ${100*this.sheetRows}%`,backgroundPosition:this.emojiService.getSpritePosition(c.sheet,this.sheetColumns)}:{...this.style,backgroundImage:`url(${c.imageUrl})`,backgroundSize:"contain"};else if(c.hidden.length&&c.hidden.includes(this.set)){if(!this.fallback)return this.isVisible=!1;this.style={fontSize:`${this.size}px`},this.unified=this.fallback(c,this)}else this.style=this.emojiService.emojiSpriteStyles(c.sheet,this.set,this.size,this.sheetSize,this.sheetRows,this.backgroundImageFn,this.sheetColumns,this.imageUrlFn?.(this.getData()));return this.isVisible=!0}ngOnDestroy(){this.destroy$.next()}getData(){return this.emojiService.getData(this.emoji,this.skin,this.set)}getSanitizedData(){return this.emojiService.getSanitizedData(this.emoji,this.skin,this.set)}setupMouseListeners(){const c=t=>this.button$.pipe((0,A.n)(l=>l?f1(l,t):G1.w),(0,O1.Q)(this.destroy$));c("click").subscribe(t=>{const l=this.getSanitizedData();this.emojiClickOutsideAngular.emit({emoji:l,$event:t}),this.emojiClick.observed&&this.ngZone.run(()=>this.emojiClick.emit({emoji:l,$event:t}))}),c("mouseenter").subscribe(t=>{const l=this.getSanitizedData();this.emojiOverOutsideAngular.emit({emoji:l,$event:t}),this.emojiOver.observed&&this.ngZone.run(()=>this.emojiOver.emit({emoji:l,$event:t}))}),c("mouseleave").subscribe(t=>{const l=this.getSanitizedData();this.emojiLeaveOutsideAngular.emit({emoji:l,$event:t}),this.emojiLeave.observed&&this.ngZone.run(()=>this.emojiLeave.emit({emoji:l,$event:t}))})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["ngx-emoji"]],viewQuery:function(t,l){if(1&t&&e.GBs(d0,5),2&t){let i;e.mGM(i=e.lsd())&&(l.button=i.first)}},inputs:{skin:"skin",set:"set",sheetSize:"sheetSize",isNative:"isNative",forceSize:"forceSize",tooltip:"tooltip",size:"size",emoji:"emoji",fallback:"fallback",hideObsolete:"hideObsolete",sheetRows:"sheetRows",sheetColumns:"sheetColumns",useButton:"useButton",backgroundImageFn:"backgroundImageFn",imageUrlFn:"imageUrlFn"},outputs:{emojiOver:"emojiOver",emojiOverOutsideAngular:"emojiOverOutsideAngular",emojiLeave:"emojiLeave",emojiLeaveOutsideAngular:"emojiLeaveOutsideAngular",emojiClick:"emojiClick",emojiClickOutsideAngular:"emojiClickOutsideAngular"},standalone:!0,features:[e.OA$,e.aNF],ngContentSelectors:d2,decls:3,vars:1,consts:[["spanTpl",""],["button",""],[3,"ngIf"],["type","button","class","emoji-mart-emoji",3,"emoji-mart-emoji-native","emoji-mart-emoji-custom",4,"ngIf","ngIfElse"],["type","button",1,"emoji-mart-emoji"],[3,"ngStyle"],[1,"emoji-mart-emoji"]],template:function(t,l){1&t&&(e.NAR(d2),e.DNE(0,v2,1,2,"ng-template",2)(1,X0,5,8,"ng-template",null,0,e.C5r)),2&t&&e.Y8G("ngIf",l.isVisible)},dependencies:[_.MD,_.bT,_.B3],encapsulation:2,changeDetection:0})}return n})();function A1(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",3),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().index,u=e.XpG();return e.Njj(u.handleClick(l,i))}),e.j41(1,"div"),e.qSk(),e.j41(2,"svg",4),e.nrm(3,"path"),e.k0s()(),e.joV(),e.nrm(4,"span",5),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.xc7("color",c.name===t.selected?t.color:null),e.AVh("emoji-mart-anchor-selected",c.name===t.selected),e.BMQ("title",t.i18n.categories[c.id]),e.R7$(3),e.BMQ("d",t.icons[c.id]),e.R7$(),e.xc7("background-color",t.color)}}function H1(n,a){1&n&&e.DNE(0,A1,5,8,"span",2),2&n&&e.Y8G("ngIf",!1!==a.$implicit.anchor)}const P1=["container"],K1=["label"];function Q(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("emoji",c)("size",t.emojiSize)("skin",t.emojiSkin)("isNative",t.emojiIsNative)("set",t.emojiSet)("sheetSize",t.emojiSheetSize)("forceSize",t.emojiForceSize)("tooltip",t.emojiTooltip)("backgroundImageFn",t.emojiBackgroundImageFn)("imageUrlFn",t.emojiImageUrlFn)("hideObsolete",t.hideObsolete)("useButton",t.emojiUseButton)}}function t2(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,Q,1,12,"ngx-emoji",8),e.k0s()),2&n){const c=a.ngIf,t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c)("ngForTrackBy",t.trackById)}}function s2(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,t2,2,2,"div",7),e.nI1(2,"async"),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,c.filteredEmojis$))}}function p2(n,a){if(1&n&&(e.j41(0,"div")(1,"div"),e.nrm(2,"ngx-emoji",10),e.k0s(),e.j41(3,"div",11),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.Y8G("emoji",c.notFoundEmoji)("size",38)("skin",c.emojiSkin)("isNative",c.emojiIsNative)("set",c.emojiSet)("sheetSize",c.emojiSheetSize)("forceSize",c.emojiForceSize)("tooltip",c.emojiTooltip)("backgroundImageFn",c.emojiBackgroundImageFn)("useButton",c.emojiUseButton),e.R7$(2),e.SpI(" ",c.i18n.notfound," ")}}function l0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("emoji",c)("size",t.emojiSize)("skin",t.emojiSkin)("isNative",t.emojiIsNative)("set",t.emojiSet)("sheetSize",t.emojiSheetSize)("forceSize",t.emojiForceSize)("tooltip",t.emojiTooltip)("backgroundImageFn",t.emojiBackgroundImageFn)("imageUrlFn",t.emojiImageUrlFn)("hideObsolete",t.hideObsolete)("useButton",t.emojiUseButton)}}function s0(n,a){if(1&n&&e.DNE(0,l0,1,12,"ngx-emoji",8),2&n){const c=e.XpG();e.Y8G("ngForOf",c.emojisToDisplay)("ngForTrackBy",c.trackById)}}function D0(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",2)(1,"span",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))})("keyup.enter",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))})("keyup.space",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))}),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG();e.AVh("selected",c===t.skin),e.R7$(),e.ZvI("emoji-mart-skin emoji-mart-skin-tone-",c,""),e.Y8G("tabIndex",t.tabIndex(c)),e.BMQ("aria-hidden",!t.isVisible(c))("aria-pressed",t.pressed(c))("aria-haspopup",!!t.isSelected(c))("aria-expanded",t.expanded(c))("aria-label",t.i18n.skintones[c])("title",t.i18n.skintones[c])}}function K2(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" :",c,": ")}}function y0(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function C4(n,a){if(1&n&&(e.j41(0,"div",8)(1,"div",2),e.nrm(2,"ngx-emoji",9),e.k0s(),e.j41(3,"div",4)(4,"div",10),e.EFF(5),e.k0s(),e.j41(6,"div",11),e.DNE(7,K2,2,1,"span",12),e.k0s(),e.j41(8,"div",13),e.DNE(9,y0,2,1,"span",14),e.k0s()()()),2&n){const c=e.XpG();e.R7$(2),e.Y8G("emoji",c.emoji)("size",38)("isNative",c.emojiIsNative)("skin",c.emojiSkin)("size",c.emojiSize)("set",c.emojiSet)("sheetSize",c.emojiSheetSize)("backgroundImageFn",c.emojiBackgroundImageFn)("imageUrlFn",c.emojiImageUrlFn),e.R7$(3),e.JRh(c.emojiData.name),e.R7$(2),e.Y8G("ngForOf",c.emojiData.shortNames),e.R7$(2),e.Y8G("ngForOf",c.listedEmoticons)}}function m2(n,a){if(1&n&&e.nrm(0,"ngx-emoji",16),2&n){const c=e.XpG();e.Y8G("isNative",c.emojiIsNative)("skin",c.emojiSkin)("set",c.emojiSet)("emoji",c.idleEmoji)("backgroundImageFn",c.emojiBackgroundImageFn)("size",38)("imageUrlFn",c.emojiImageUrlFn)}}const N4=["inputRef"],m4=["scrollRef"];function B3(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-search",8),e.bIt("searchResults",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleSearch(l))})("enterKeyOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEnterKey(l))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("i18n",c.i18n)("include",c.include)("exclude",c.exclude)("custom",c.custom)("autoFocus",c.autoFocus)("icons",c.searchIcons)("emojisToShowFilter",c.emojisToShowFilter)}}function t3(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-category",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEmojiOver(l))})("emojiLeaveOutsideAngular",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.handleEmojiLeave())})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEmojiClick(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG();e.Y8G("id",c.id)("name",c.name)("emojis",c.emojis)("perLine",t.perLine)("totalFrequentLines",t.totalFrequentLines)("hasStickyPosition",t.isNative)("i18n",t.i18n)("hideObsolete",t.hideObsolete)("notFoundEmoji",t.notFoundEmoji)("custom",c.id===t.RECENT_CATEGORY.id?t.CUSTOM_CATEGORY.emojis:void 0)("recent",c.id===t.RECENT_CATEGORY.id?t.recent:void 0)("virtualize",t.virtualize)("virtualizeOffset",t.virtualizeOffset)("emojiIsNative",t.isNative)("emojiSkin",t.skin)("emojiSize",t.emojiSize)("emojiSet",t.set)("emojiSheetSize",t.sheetSize)("emojiForceSize",t.isNative)("emojiTooltip",t.emojiTooltip)("emojiBackgroundImageFn",t.backgroundImageFn)("emojiImageUrlFn",t.imageUrlFn)("emojiUseButton",t.useButton)}}function E6(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"emoji-preview",10),e.bIt("skinChange",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleSkinChange(l))}),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("emoji",c.previewEmoji)("idleEmoji",c.emoji)("emojiIsNative",c.isNative)("emojiSize",38)("emojiSkin",c.skin)("emojiSet",c.set)("i18n",c.i18n)("emojiSheetSize",c.sheetSize)("emojiBackgroundImageFn",c.backgroundImageFn)("emojiImageUrlFn",c.imageUrlFn),e.BMQ("title",c.title)}}let q4=(()=>{class n{categories=[];color;selected;i18n;icons={};anchorClick=new e.bkB;trackByFn(c,t){return t.id}handleClick(c,t){this.anchorClick.emit({category:this.categories[t],index:t})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-mart-anchors"]],inputs:{categories:"categories",color:"color",selected:"selected",i18n:"i18n",icons:"icons"},outputs:{anchorClick:"anchorClick"},standalone:!0,features:[e.aNF],decls:2,vars:2,consts:[[1,"emoji-mart-anchors"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","emoji-mart-anchor",3,"emoji-mart-anchor-selected","color","click",4,"ngIf"],[1,"emoji-mart-anchor",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","24","height","24"],[1,"emoji-mart-anchor-bar"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,H1,1,1,"ng-template",1),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngForOf",l.categories)("ngForTrackBy",l.trackByFn))},dependencies:[_.MD,_.Sq,_.bT],encapsulation:2,changeDetection:0})}return n})(),c0=(()=>{class n{platformId;NAMESPACE="emoji-mart";frequently=null;defaults={};initialized=!1;DEFAULTS=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","poop"];constructor(c){this.platformId=c}init(){this.frequently=JSON.parse((0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.frequently`)||"null"),this.initialized=!0}add(c){this.initialized||this.init(),this.frequently||(this.frequently=this.defaults),this.frequently[c.id]||(this.frequently[c.id]=0),this.frequently[c.id]+=1,(0,_.UE)(this.platformId)&&(localStorage.setItem(`${this.NAMESPACE}.last`,c.id),localStorage.setItem(`${this.NAMESPACE}.frequently`,JSON.stringify(this.frequently)))}get(c,t){if(this.initialized||this.init(),null===this.frequently){this.defaults={};const T=[];for(let W=0;Wthis.frequently[T]-this.frequently[W]).reverse().slice(0,l),b=(0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.last`);return b&&!C.includes(b)&&(C.pop(),C.push(b)),C}static \u0275fac=function(t){return new(t||n)(e.KVO(e.Agw))};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),f0=(()=>{class n{ref;emojiService;frequently;emojis=null;hasStickyPosition=!0;name="";perLine=9;totalFrequentLines=4;recent=[];custom=[];i18n;id;hideObsolete=!0;notFoundEmoji;virtualize=!1;virtualizeOffset=0;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiForceSize;emojiTooltip;emojiBackgroundImageFn;emojiImageUrlFn;emojiUseButton;emojiOverOutsideAngular=new e.bkB;emojiLeaveOutsideAngular=new e.bkB;emojiClickOutsideAngular=new e.bkB;container;label;containerStyles={};emojisToDisplay=[];filteredEmojisSubject=new S.B;filteredEmojis$=this.filteredEmojisSubject.asObservable();labelStyles={};labelSpanStyles={};margin=0;minMargin=0;maxMargin=0;top=0;rows=0;constructor(c,t,l){this.ref=c,this.emojiService=t,this.frequently=l}ngOnInit(){this.updateRecentEmojis(),this.emojisToDisplay=this.filterEmojis(),this.noEmojiToDisplay&&(this.containerStyles={display:"none"}),this.hasStickyPosition||(this.labelStyles={height:28})}ngOnChanges(c){c.emojis?.currentValue?.length!==c.emojis?.previousValue?.length&&(this.emojisToDisplay=this.filterEmojis(),this.ngAfterViewInit())}ngAfterViewInit(){if(!this.virtualize)return;const{width:c}=this.container.nativeElement.getBoundingClientRect(),t=Math.floor(c/(this.emojiSize+12));this.rows=Math.ceil(this.emojisToDisplay.length/t),this.containerStyles={...this.containerStyles,minHeight:this.rows*(this.emojiSize+12)+28+"px"},this.ref.detectChanges(),this.handleScroll(this.container.nativeElement.parentNode.parentNode.scrollTop)}get noEmojiToDisplay(){return 0===this.emojisToDisplay.length}memoizeSize(){const c=this.container.nativeElement.parentNode.parentNode,{top:t,height:l}=this.container.nativeElement.getBoundingClientRect(),i=c.getBoundingClientRect().top,u=this.label.nativeElement.getBoundingClientRect().height;this.top=t-i+c.scrollTop,this.maxMargin=0===l?0:l-u}handleScroll(c){let t=c-this.top;if(t=tthis.maxMargin?this.maxMargin:t,this.virtualize){const{top:l,height:i}=this.container.nativeElement.getBoundingClientRect(),u=this.container.nativeElement.parentNode.parentNode.clientHeight;this.filteredEmojisSubject.next(u+(u+this.virtualizeOffset)>=l&&-i-(u+this.virtualizeOffset)<=l?this.emojisToDisplay:[])}return t===this.margin?(this.ref.detectChanges(),!1):(this.hasStickyPosition||(this.label.nativeElement.style.top=`${t}px`),this.margin=t,this.ref.detectChanges(),!0)}updateRecentEmojis(){if("Recent"!==this.name)return;let c=this.recent||this.frequently.get(this.perLine,this.totalFrequentLines);(!c||!c.length)&&(c=this.frequently.get(this.perLine,this.totalFrequentLines)),c.length&&(this.emojis=c.map(t=>this.custom.filter(i=>i.id===t)[0]||t).filter(t=>!!this.emojiService.getData(t)))}updateDisplay(c){this.containerStyles.display=c,this.updateRecentEmojis(),this.ref.detectChanges()}trackById(c,t){return t}filterEmojis(){const c=[];for(const t of this.emojis||[]){if(!t)continue;const l=this.emojiService.getData(t);!l||l.obsoletedBy&&this.hideObsolete||!l.unified&&!l.custom||c.push(t)}return c}static \u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(C2),e.rXU(c0))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-category"]],viewQuery:function(t,l){if(1&t&&(e.GBs(P1,7),e.GBs(K1,7)),2&t){let i;e.mGM(i=e.lsd())&&(l.container=i.first),e.mGM(i=e.lsd())&&(l.label=i.first)}},inputs:{emojis:"emojis",hasStickyPosition:"hasStickyPosition",name:"name",perLine:"perLine",totalFrequentLines:"totalFrequentLines",recent:"recent",custom:"custom",i18n:"i18n",id:"id",hideObsolete:"hideObsolete",notFoundEmoji:"notFoundEmoji",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiForceSize:"emojiForceSize",emojiTooltip:"emojiTooltip",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn",emojiUseButton:"emojiUseButton"},outputs:{emojiOverOutsideAngular:"emojiOverOutsideAngular",emojiLeaveOutsideAngular:"emojiLeaveOutsideAngular",emojiClickOutsideAngular:"emojiClickOutsideAngular"},standalone:!0,features:[e.OA$,e.aNF],decls:10,vars:11,consts:[["container",""],["label",""],["normalRenderTemplate",""],[1,"emoji-mart-category",3,"ngStyle"],[1,"emoji-mart-category-label",3,"ngStyle"],["aria-hidden","true",3,"ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton","emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular",4,"ngFor","ngForOf","ngForTrackBy"],[3,"emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular","emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","useButton"],[1,"emoji-mart-no-results-label"]],template:function(t,l){if(1&t&&(e.j41(0,"section",3,0)(2,"div",4)(3,"span",5,1),e.EFF(5),e.k0s()(),e.DNE(6,s2,3,3,"div",6)(7,p2,5,11,"div",7),e.k0s(),e.DNE(8,s0,1,2,"ng-template",null,2,e.C5r)),2&t){const i=e.sdS(9);e.AVh("emoji-mart-no-results",l.noEmojiToDisplay),e.Y8G("ngStyle",l.containerStyles),e.BMQ("aria-label",l.i18n.categories[l.id]),e.R7$(2),e.Y8G("ngStyle",l.labelStyles),e.BMQ("data-name",l.name),e.R7$(),e.Y8G("ngStyle",l.labelSpanStyles),e.R7$(2),e.SpI(" ",l.i18n.categories[l.id]," "),e.R7$(),e.Y8G("ngIf",l.virtualize)("ngIfElse",i),e.R7$(),e.Y8G("ngIf",l.noEmojiToDisplay)}},dependencies:[_.MD,_.Sq,_.bT,_.B3,_.Jj,E1],encapsulation:2,changeDetection:0})}return n})();function X4(n){return n.reduce((a,c)=>(a.includes(c)||a.push(c),a),[])}function T4(n,a){const c=X4(n),t=X4(a);return c.filter(l=>t.indexOf(l)>=0)}let n3=(()=>{class n{emojiService;originalPool={};index={};emojisList={};emoticonsList={};emojiSearch={};constructor(c){this.emojiService=c;for(const t of this.emojiService.emojis){const{shortNames:l,emoticons:i}=t,u=l[0];for(const C of i)this.emoticonsList[C]||(this.emoticonsList[C]=u);this.emojisList[u]=this.emojiService.getSanitizedData(u),this.originalPool[u]=t}}addCustomToPool(c,t){for(const l of c){const i=l.id||l.shortNames[0];i&&!t[i]&&(t[i]=this.emojiService.getData(l),this.emojisList[i]=this.emojiService.getSanitizedData(l))}}search(c,t,l=75,i=[],u=[],C=[]){this.addCustomToPool(C,this.originalPool);let b,T=this.originalPool;if(c.length){if("-"===c||"-1"===c)return[this.emojisList[-1]];if("+"===c||"+1"===c)return[this.emojisList["+1"]];let W=c.toLowerCase().split(/[\s|,|\-|_]+/),u1=[];if(W.length>2&&(W=[W[0],W[1]]),i.length||u.length){T={};for(const a1 of Z0||[]){const T1=!i||!i.length||i.indexOf(a1.id)>-1,Y1=!(!u||!u.length)&&u.indexOf(a1.id)>-1;if(T1&&!Y1)for(const f2 of a1.emojis||[]){const M2=this.emojiService.getData(f2);T[M2?.id??""]=M2}}if(C.length){const a1=!i||!i.length||i.indexOf("custom")>-1,T1=!(!u||!u.length)&&u.indexOf("custom")>-1;a1&&!T1&&this.addCustomToPool(C,T)}}u1=W.map(a1=>{let T1=T,Y1=this.index,f2=0;for(let M2=0;M2N2[a4.id]-N2[B0.id])}T1=Y1.pool}return Y1.results}).filter(a1=>a1),b=u1.length>1?T4.apply(null,u1):u1.length?u1[0]:[]}return b&&(t&&(b=b.filter(W=>!(!W||!W.id)&&t(this.emojiService.names[W.id]))),b&&b.length>l&&(b=b.slice(0,l))),b||null}buildSearch(c,t,l,i,u){const C=[],b=(T,W)=>{if(!T)return;const u1=Array.isArray(T)?T:[T];for(const a1 of u1){const T1=W?a1.split(/[-|_|\s]+/):[a1];for(let Y1 of T1)Y1=Y1.toLowerCase(),C.includes(Y1)||C.push(Y1)}};return b(c,!0),b(t,!0),b(l,!0),b(i,!0),b(u,!1),C.join(",")}static \u0275fac=function(t){return new(t||n)(e.KVO(C2))};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),y4=(()=>{class n{skin;i18n;changeSkin=new e.bkB;opened=!1;skinTones=[1,2,3,4,5,6];toggleOpen(){this.opened=!this.opened}isSelected(c){return c===this.skin}isVisible(c){return this.opened||this.isSelected(c)}pressed(c){return this.opened?!!this.isSelected(c):""}tabIndex(c){return this.isVisible(c)?"0":""}expanded(c){return this.isSelected(c)?this.opened:""}handleClick(c){this.opened?(this.opened=!1,c!==this.skin&&this.changeSkin.emit(c)):this.opened=!0}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-skins"]],inputs:{skin:"skin",i18n:"i18n"},outputs:{changeSkin:"changeSkin"},standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[[1,"emoji-mart-skin-swatches"],["class","emoji-mart-skin-swatch",3,"selected",4,"ngFor","ngForOf"],[1,"emoji-mart-skin-swatch"],["role","button",3,"click","keyup.enter","keyup.space","tabIndex"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.DNE(1,D0,2,12,"span",1),e.k0s()),2&t&&(e.AVh("opened",l.opened),e.R7$(),e.Y8G("ngForOf",l.skinTones))},dependencies:[_.MD,_.Sq],encapsulation:2,changeDetection:0})}return n})(),H4=(()=>{class n{ref;emojiService;title;emoji;idleEmoji;i18n;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiBackgroundImageFn;emojiImageUrlFn;skinChange=new e.bkB;emojiData={};listedEmoticons;constructor(c,t){this.ref=c,this.emojiService=t}ngOnChanges(){if(!this.emoji)return;this.emojiData=this.emojiService.getData(this.emoji,this.emojiSkin,this.emojiSet);const c=[],t=[];(this.emojiData.emoticons||[]).forEach(i=>{c.indexOf(i.toLowerCase())>=0||(c.push(i.toLowerCase()),t.push(i))}),this.listedEmoticons=t,this.ref?.detectChanges()}static \u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(C2))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-preview"]],inputs:{title:"title",emoji:"emoji",idleEmoji:"idleEmoji",i18n:"i18n",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn"},outputs:{skinChange:"skinChange"},standalone:!0,features:[e.OA$,e.aNF],decls:9,vars:6,consts:[["class","emoji-mart-preview",4,"ngIf"],[1,"emoji-mart-preview",3,"hidden"],[1,"emoji-mart-preview-emoji"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn",4,"ngIf"],[1,"emoji-mart-preview-data"],[1,"emoji-mart-title-label"],[1,"emoji-mart-preview-skins"],[3,"changeSkin","skin","i18n"],[1,"emoji-mart-preview"],[3,"emoji","size","isNative","skin","set","sheetSize","backgroundImageFn","imageUrlFn"],[1,"emoji-mart-preview-name"],[1,"emoji-mart-preview-shortname"],["class","emoji-mart-preview-shortname",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticons"],["class","emoji-mart-preview-emoticon",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticon"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn"]],template:function(t,l){1&t&&(e.DNE(0,C4,10,12,"div",0),e.j41(1,"div",1)(2,"div",2),e.DNE(3,m2,1,7,"ngx-emoji",3),e.k0s(),e.j41(4,"div",4)(5,"span",5),e.EFF(6),e.k0s()(),e.j41(7,"div",6)(8,"emoji-skins",7),e.bIt("changeSkin",function(u){return l.skinChange.emit(u)}),e.k0s()()()),2&t&&(e.Y8G("ngIf",l.emoji&&l.emojiData),e.R7$(),e.Y8G("hidden",l.emoji),e.R7$(2),e.Y8G("ngIf",l.idleEmoji&&l.idleEmoji.length),e.R7$(3),e.JRh(l.title),e.R7$(2),e.Y8G("skin",l.emojiSkin)("i18n",l.i18n))},dependencies:[_.MD,_.Sq,_.bT,E1,y4],encapsulation:2,changeDetection:0})}return n})(),u0=0,$4=(()=>{class n{ngZone;emojiSearch;maxResults=75;autoFocus=!1;i18n;include=[];exclude=[];custom=[];icons;emojisToShowFilter;searchResults=new e.bkB;enterKeyOutsideAngular=new e.bkB;inputRef;isSearching=!1;icon;query="";inputId="emoji-mart-search-"+ ++u0;destroy$=new S.B;constructor(c,t){this.ngZone=c,this.emojiSearch=t}ngOnInit(){this.icon=this.icons.search,this.setupKeyupListener()}ngAfterViewInit(){this.autoFocus&&this.inputRef.nativeElement.focus()}ngOnDestroy(){this.destroy$.next()}clear(){this.query="",this.handleSearch(""),this.inputRef.nativeElement.focus()}handleSearch(c){""===c?(this.icon=this.icons.search,this.isSearching=!1):(this.icon=this.icons.delete,this.isSearching=!0);const t=this.emojiSearch.search(this.query,this.emojisToShowFilter,this.maxResults,this.include,this.exclude,this.custom);this.searchResults.emit(t)}handleChange(){this.handleSearch(this.query)}setupKeyupListener(){this.ngZone.runOutsideAngular(()=>f1(this.inputRef.nativeElement,"keyup").pipe((0,O1.Q)(this.destroy$)).subscribe(c=>{!this.query||"Enter"!==c.key||(this.enterKeyOutsideAngular.emit(c),c.preventDefault())}))}static \u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(n3))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-search"]],viewQuery:function(t,l){if(1&t&&e.GBs(N4,7),2&t){let i;e.mGM(i=e.lsd())&&(l.inputRef=i.first)}},inputs:{maxResults:"maxResults",autoFocus:"autoFocus",i18n:"i18n",include:"include",exclude:"exclude",custom:"custom",icons:"icons",emojisToShowFilter:"emojisToShowFilter"},outputs:{searchResults:"searchResults",enterKeyOutsideAngular:"enterKeyOutsideAngular"},standalone:!0,features:[e.aNF],decls:8,vars:9,consts:[["inputRef",""],[1,"emoji-mart-search"],["type","search",3,"ngModelChange","id","placeholder","autofocus","ngModel"],[1,"emoji-mart-sr-only",3,"htmlFor"],["type","button",1,"emoji-mart-search-icon",3,"click","keyup.enter","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","width","13","height","13","opacity","0.5"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.mxI("ngModelChange",function(C){return e.eBV(i),e.DH7(l.query,C)||(l.query=C),e.Njj(C)}),e.bIt("ngModelChange",function(){return e.eBV(i),e.Njj(l.handleChange())}),e.k0s(),e.j41(3,"label",3),e.EFF(4),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return e.eBV(i),e.Njj(l.clear())})("keyup.enter",function(){return e.eBV(i),e.Njj(l.clear())}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path"),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("id",l.inputId)("placeholder",l.i18n.search)("autofocus",l.autoFocus),e.R50("ngModel",l.query),e.R7$(2),e.Y8G("htmlFor",l.inputId),e.R7$(),e.SpI(" ",l.i18n.search," "),e.R7$(),e.Y8G("disabled",!l.isSearching),e.BMQ("aria-label",l.i18n.clear),e.R7$(2),e.BMQ("d",l.icon))},dependencies:[p.YN,p.me,p.BC,p.vS],encapsulation:2})}return n})();const L0={activity:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m10 11h-5c.3-2.5 1.3-4.8 2-6.1a10 10 0 0 1 3 6.1m-9 0V2a10 10 0 0 1 4.4 1.6A18 18 0 0 0 15 11h-2zm-2 0H9a18 18 0 0 0-2.4-7.4A10 10 0 0 1 11 2.1V11zm0 2v9a10 10 0 0 1-4.4-1.6A18 18 0 0 0 9 13h2zm4 0a18 18 0 0 0 2.4 7.4 10 10 0 0 1-4.4 1.5V13h2zM5 4.9c.7 1.3 1.7 3.6 2 6.1H2a10 10 0 0 1 3-6.1M2 13h5c-.3 2.5-1.3 4.8-2 6.1A10 10 0 0 1 2 13m17 6.1c-.7-1.3-1.7-3.6-2-6.1h5a10 10 0 0 1-3 6.1",custom:"M10 1h3v21h-3zm10.186 4l1.5 2.598L3.5 18.098 2 15.5zM2 7.598L3.5 5l18.186 10.5-1.5 2.598z",flags:"M0 0l6 24h2L2 0zm21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.6 3h7.8l2 8H8.6l-2-8zm8.8 10l-2.9 1.9-.4-1.9h3.3zm3.6 0l-1.5-6h2l2 8H16l3-2z",foods:"M17 5c-1.8 0-2.9.4-3.7 1 .5-1.3 1.8-3 4.7-3a1 1 0 0 0 0-2c-3 0-4.6 1.3-5.5 2.5l-.2.2c-.6-1.9-1.5-3.7-3-3.7C8.5 0 7.7.3 7 1c-2 1.5-1.7 2.9-.5 4C3.6 5.2 0 7.4 0 13c0 4.6 5 11 9 11 2 0 2.4-.5 3-1 .6.5 1 1 3 1 4 0 9-6.4 9-11 0-6-4-8-7-8M8.2 2.5c.7-.5 1-.5 1-.5.4.2 1 1.4 1.4 3-1.6-.6-2.8-1.3-3-1.8l.6-.7M15 22c-1 0-1.2-.1-1.6-.4l-.1-.2a2 2 0 0 0-2.6 0l-.1.2c-.4.3-.5.4-1.6.4-2.8 0-7-5.4-7-9 0-6 4.5-6 5-6 2 0 2.5.4 3.4 1.2l.3.3a2 2 0 0 0 2.6 0l.3-.3c1-.8 1.5-1.2 3.4-1.2.5 0 5 .1 5 6 0 3.6-4.2 9-7 9",nature:"M15.5 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-7 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m10.43-8h-.02c-.97 0-2.14.79-3.02 1.5A13.88 13.88 0 0 0 12 .99c-1.28 0-2.62.13-3.87.51C7.24.8 6.07 0 5.09 0h-.02C3.35 0 .07 2.67 0 7.03c-.04 2.47.28 4.23 1.04 5 .26.27.88.69 1.3.9.19 3.17.92 5.23 2.53 6.37.9.64 2.19.95 3.2 1.1-.03.2-.07.4-.07.6 0 1.77 2.35 3 4 3s4-1.23 4-3c0-.2-.04-.4-.07-.59 2.57-.38 5.43-1.87 5.92-7.58.4-.22.89-.57 1.1-.8.77-.76 1.09-2.52 1.05-5C23.93 2.67 20.65 0 18.93 0M3.23 9.13c-.24.29-.84 1.16-.9 1.24A9.67 9.67 0 0 1 2 7.08c.05-3.28 2.48-4.97 3.1-5.03.25.02.72.27 1.26.65A7.95 7.95 0 0 0 4 7.82c-.14.55-.4.86-.79 1.31M12 22c-.9 0-1.95-.7-2-1 0-.65.47-1.24 1-1.6v.6a1 1 0 1 0 2 0v-.6c.52.36 1 .95 1 1.6-.05.3-1.1 1-2 1m3-3.48v.02a4.75 4.75 0 0 0-1.26-1.02c1.09-.52 2.24-1.33 2.24-2.22 0-1.84-1.78-2.2-3.98-2.2s-3.98.36-3.98 2.2c0 .89 1.15 1.7 2.24 2.22A4.8 4.8 0 0 0 9 18.54v-.03a6.1 6.1 0 0 1-2.97-.84c-1.3-.92-1.84-3.04-1.86-6.48l.03-.04c.5-.82 1.49-1.45 1.8-3.1C6 6 7.36 4.42 8.36 3.53c1.01-.35 2.2-.53 3.59-.53 1.45 0 2.68.2 3.73.57 1 .9 2.32 2.46 2.32 4.48.31 1.65 1.3 2.27 1.8 3.1l.1.18c-.06 5.97-1.95 7.01-4.9 7.19m6.63-8.2l-.11-.2a7.59 7.59 0 0 0-.74-.98 3.02 3.02 0 0 1-.79-1.32 7.93 7.93 0 0 0-2.35-5.12c.53-.38 1-.63 1.26-.65.64.07 3.05 1.77 3.1 5.03.02 1.81-.35 3.22-.37 3.24",objects:"M12 0a9 9 0 0 0-5 16.5V21s2 3 5 3 5-3 5-3v-4.5A9 9 0 0 0 12 0zm0 2a7 7 0 1 1 0 14 7 7 0 0 1 0-14zM9 17.5a9 9 0 0 0 6 0v.8a7 7 0 0 1-3 .7 7 7 0 0 1-3-.7v-.8zm.2 3a8.9 8.9 0 0 0 2.8.5c1 0 1.9-.2 2.8-.5-.6.7-1.6 1.5-2.8 1.5-1.1 0-2.1-.8-2.8-1.5zm5.5-8.1c-.8 0-1.1-.8-1.5-1.8-.5-1-.7-1.5-1.2-1.5s-.8.5-1.3 1.5c-.4 1-.8 1.8-1.6 1.8h-.3c-.5-.2-.8-.7-1.3-1.8l-.2-1A3 3 0 0 0 7 9a1 1 0 0 1 0-2c1.7 0 2 1.4 2.2 2.1.5-1 1.3-2 2.8-2 1.5 0 2.3 1.1 2.7 2.1.2-.8.6-2.2 2.3-2.2a1 1 0 1 1 0 2c-.2 0-.3.5-.3.7a6.5 6.5 0 0 1-.3 1c-.5 1-.8 1.7-1.7 1.7",people:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20M8 7a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-.8 8c-.7 1.2-1.8 2-3.3 2-1.5 0-2.7-.8-3.4-2H15m3-2H6a6 6 0 1 0 12 0",places:"M6.5 12a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m11-3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m5-5.5l-1-.4-.1-.1h.6c.6 0 1-.4 1-1 0-1-.9-2-2-2h-.6l-.8-1.7A3 3 0 0 0 16.8 2H7.2a3 3 0 0 0-2.8 2.3L3.6 6H3a2 2 0 0 0-2 2c0 .6.4 1 1 1h.6v.1l-1 .4a2 2 0 0 0-1.4 2l.7 7.6a1 1 0 0 0 1 .9H3v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h6v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h1.1a1 1 0 0 0 1-.9l.7-7.5a2 2 0 0 0-1.3-2.1M6.3 4.9c.1-.5.5-.9 1-.9h9.5c.4 0 .8.4 1 .9L19.2 9H4.7l1.6-4.1zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.2-3H2.8l-.7-6.6.9-.4h18l.9.4-.7 6.6z",recent:"M13 4h-2v7H9v2h2v2h2v-2h4v-2h-4zm-1-4a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20",symbols:"M0 0h11v2H0zm4 11h3V6h4V4H0v2h4zm11.5 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5m0-2.99a.5.5 0 0 1 0 .99c-.28 0-.5-.22-.5-.5s.22-.49.5-.49m6 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 2.99a.5.5 0 0 1-.5-.5.5.5 0 0 1 1 .01.5.5 0 0 1-.5.49m.5-9l-9 9 1.51 1.5 9-9zm-5-2c2.2 0 4-1.12 4-2.5V2s.98-.16 1.5.95C23 4.05 23 6 23 6s1-1.12 1-3.13C24-.02 21 0 21 0h-2v6.35A5.85 5.85 0 0 0 17 6c-2.2 0-4 1.12-4 2.5s1.8 2.5 4 2.5m-6.7 9.48L8.82 18.9a47.54 47.54 0 0 1-1.44 1.13c-.3-.3-.99-1.02-2.04-2.19.9-.83 1.47-1.46 1.72-1.89s.38-.87.38-1.33c0-.6-.27-1.18-.82-1.76-.54-.58-1.33-.87-2.35-.87-1 0-1.79.29-2.34.87-.56.6-.83 1.18-.83 1.79 0 .81.42 1.75 1.25 2.8a6.57 6.57 0 0 0-1.8 1.79 3.46 3.46 0 0 0-.51 1.83c0 .86.3 1.56.92 2.1a3.5 3.5 0 0 0 2.42.83c1.17 0 2.44-.38 3.81-1.14L8.23 24h2.82l-2.09-2.38 1.34-1.14zM3.56 14.1a1.02 1.02 0 0 1 .73-.28c.31 0 .56.08.75.25a.85.85 0 0 1 .28.66c0 .52-.42 1.11-1.26 1.78-.53-.65-.8-1.23-.8-1.74a.9.9 0 0 1 .3-.67m.18 7.9c-.43 0-.78-.12-1.06-.35-.28-.23-.41-.49-.41-.76 0-.6.5-1.3 1.52-2.09a31.23 31.23 0 0 0 2.25 2.44c-.92.5-1.69.76-2.3.76"},S0={search:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z",delete:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"},l3={search:"Search",emojilist:"List of emoji",notfound:"No Emoji Found",clear:"Clear",categories:{search:"Search Results",recent:"Frequently Used",people:"Smileys & People",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"},skintones:{1:"Default Skin Tone",2:"Light Skin Tone",3:"Medium-Light Skin Tone",4:"Medium Skin Tone",5:"Medium-Dark Skin Tone",6:"Dark Skin Tone"}};let T0=(()=>{class n{ngZone;renderer;ref;frequently;platformId;perLine=9;totalFrequentLines=4;i18n={};style={};title="Emoji Mart\u2122";emoji="department_store";darkMode=!("function"!=typeof matchMedia||!matchMedia("(prefers-color-scheme: dark)").matches);color="#ae65c5";hideObsolete=!0;categories=[];activeCategories=[];set="apple";skin=1;isNative=!1;emojiSize=24;sheetSize=64;emojisToShowFilter;showPreview=!0;emojiTooltip=!1;autoFocus=!1;custom=[];hideRecent=!0;imageUrlFn;include;exclude;notFoundEmoji="sleuth_or_spy";categoriesIcons=L0;searchIcons=S0;useButton=!1;enableFrequentEmojiSort=!1;enableSearch=!0;showSingleCategory=!1;virtualize=!1;virtualizeOffset=0;recent;emojiClick=new e.bkB;emojiSelect=new e.bkB;skinChange=new e.bkB;scrollRef;previewRef;searchRef;categoryRefs;scrollHeight=0;clientHeight=0;clientWidth=0;selected;nextScroll;scrollTop;firstRender=!0;previewEmoji=null;animationFrameRequestId=null;NAMESPACE="emoji-mart";measureScrollbar=0;RECENT_CATEGORY={id:"recent",name:"Recent",emojis:null};SEARCH_CATEGORY={id:"search",name:"Search",emojis:null,anchor:!1};CUSTOM_CATEGORY={id:"custom",name:"Custom",emojis:[]};scrollListener;backgroundImageFn=(c,t)=>`https://cdn.jsdelivr.net/npm/emoji-datasource-${c}@14.0.0/img/${c}/sheets-256/${t}.png`;constructor(c,t,l,i,u){this.ngZone=c,this.renderer=t,this.ref=l,this.frequently=i,this.platformId=u}ngOnInit(){this.measureScrollbar=function Y2(){if(typeof document>"u")return 0;const n=document.createElement("div");n.style.width="100px",n.style.height="100px",n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),a}(),this.i18n={...l3,...this.i18n},this.i18n.categories={...l3.categories,...this.i18n.categories},this.skin=JSON.parse((0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.skin`)||"null")||this.skin;const c=[...Z0];this.custom.length>0&&(this.CUSTOM_CATEGORY.emojis=this.custom.map(C=>({...C,id:C.shortNames[0],custom:!0})),c.push(this.CUSTOM_CATEGORY)),void 0!==this.include&&c.sort((C,b)=>this.include.indexOf(C.id)>this.include.indexOf(b.id)?1:-1);for(const C of c){const b=!this.include||!this.include.length||this.include.indexOf(C.id)>-1,T=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(C.id)>-1;if(b&&!T){if(this.emojisToShowFilter){const W=[],{emojis:u1}=C;for(let a1=0;a1-1,l=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(this.RECENT_CATEGORY.id)>-1;t&&!l&&(this.hideRecent=!1,this.categories.unshift(this.RECENT_CATEGORY)),this.categories[0]&&(this.categories[0].first=!0),this.categories.unshift(this.SEARCH_CATEGORY),this.selected=this.categories.filter(C=>C.first)[0].name;const i=Math.min(this.categories.length,3);this.setActiveCategories(this.activeCategories=this.categories.slice(0,i));const u=this.categories[i-1].emojis.slice();this.categories[i-1].emojis=u.slice(0,60),setTimeout(()=>{this.categories[i-1].emojis=u,this.setActiveCategories(this.categories),this.ref.detectChanges(),(0,_.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.updateCategoriesSize()})})}),this.ngZone.runOutsideAngular(()=>{this.scrollListener=this.renderer.listen(this.scrollRef.nativeElement,"scroll",()=>{this.handleScroll()})})}ngOnDestroy(){this.scrollListener?.(),this.cancelAnimationFrame()}setActiveCategories(c){this.activeCategories=this.showSingleCategory?c.filter(t=>t.name===this.selected||t===this.SEARCH_CATEGORY):c}updateCategoriesSize(){if(this.categoryRefs.forEach(c=>c.memoizeSize()),this.scrollRef){const c=this.scrollRef.nativeElement;this.scrollHeight=c.scrollHeight,this.clientHeight=c.clientHeight,this.clientWidth=c.clientWidth}}handleAnchorClick(c){if(this.updateCategoriesSize(),this.selected=c.category.name,this.setActiveCategories(this.categories),this.SEARCH_CATEGORY.emojis)return this.handleSearch(null),this.searchRef?.clear(),void this.handleAnchorClick(c);const t=this.categoryRefs.find(l=>l.id===c.category.id);if(t){let{top:l}=t;c.category.first?l=0:l+=1,this.scrollRef.nativeElement.scrollTop=l}this.nextScroll=c.category.name;for(const l of this.categories)this.categoryRefs.find(({id:u})=>u===l.id)?.handleScroll(this.scrollRef.nativeElement.scrollTop)}categoryTrack(c,t){return t.id}handleScroll(c=!1){if(this.nextScroll)return this.selected=this.nextScroll,this.nextScroll=void 0,void this.ref.detectChanges();if(!this.scrollRef||this.showSingleCategory)return;let t;if(this.SEARCH_CATEGORY.emojis)t=this.SEARCH_CATEGORY;else{const l=this.scrollRef.nativeElement;if(0===l.scrollTop)t=this.categories.find(i=>!0===i.first);else if(l.scrollHeight-l.scrollTop===this.clientHeight)t=this.categories[this.categories.length-1];else for(const i of this.categories)this.categoryRefs.find(({id:b})=>b===i.id)?.handleScroll(l.scrollTop)&&(t=i);this.scrollTop=l.scrollTop}!c&&t&&t.name!==this.selected?(this.selected=t.name,this.ref.detectChanges()):c&&this.ref.detectChanges()}handleSearch(c){this.SEARCH_CATEGORY.emojis=c;for(const t of this.categoryRefs.toArray())"Search"===t.name?(t.emojis=c,t.updateDisplay(c?"block":"none")):t.updateDisplay(c?"none":"block");this.scrollRef.nativeElement.scrollTop=0,this.handleScroll()}handleEnterKey(c,t){if(!t&&null!==this.SEARCH_CATEGORY.emojis&&this.SEARCH_CATEGORY.emojis.length){if(!(t=this.SEARCH_CATEGORY.emojis[0]))return;V4(this.emojiSelect,this.ngZone,{$event:c,emoji:t})}!this.hideRecent&&!this.recent&&t&&this.frequently.add(t);const l=this.categoryRefs.toArray()[1];l&&this.enableFrequentEmojiSort&&this.ngZone.run(()=>{l.updateRecentEmojis(),l.ref.markForCheck()})}handleEmojiOver(c){if(!this.showPreview||!this.previewRef)return;const t=this.CUSTOM_CATEGORY.emojis.find(l=>l.id===c.emoji.id);t&&(c.emoji={...t}),this.previewEmoji=c.emoji,this.cancelAnimationFrame(),this.ref.detectChanges()}handleEmojiLeave(){!this.showPreview||!this.previewRef||(this.animationFrameRequestId=requestAnimationFrame(()=>{this.previewEmoji=null,this.ref.detectChanges()}))}handleEmojiClick(c){V4(this.emojiClick,this.ngZone,c),V4(this.emojiSelect,this.ngZone,c),this.handleEnterKey(c.$event,c.emoji)}handleSkinChange(c){this.skin=c,localStorage.setItem(`${this.NAMESPACE}.skin`,String(c)),this.skinChange.emit(c)}getWidth(){return this.style&&this.style.width?this.style.width:this.perLine*(this.emojiSize+12)+12+2+this.measureScrollbar+"px"}cancelAnimationFrame(){null!==this.animationFrameRequestId&&(cancelAnimationFrame(this.animationFrameRequestId),this.animationFrameRequestId=null)}static \u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(c0),e.rXU(e.Agw))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-mart"]],viewQuery:function(t,l){if(1&t&&(e.GBs(m4,7),e.GBs(H4,5),e.GBs($4,5),e.GBs(f0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.scrollRef=i.first),e.mGM(i=e.lsd())&&(l.previewRef=i.first),e.mGM(i=e.lsd())&&(l.searchRef=i.first),e.mGM(i=e.lsd())&&(l.categoryRefs=i)}},inputs:{perLine:"perLine",totalFrequentLines:"totalFrequentLines",i18n:"i18n",style:"style",title:"title",emoji:"emoji",darkMode:"darkMode",color:"color",hideObsolete:"hideObsolete",categories:"categories",activeCategories:"activeCategories",set:"set",skin:"skin",isNative:"isNative",emojiSize:"emojiSize",sheetSize:"sheetSize",emojisToShowFilter:"emojisToShowFilter",showPreview:"showPreview",emojiTooltip:"emojiTooltip",autoFocus:"autoFocus",custom:"custom",hideRecent:"hideRecent",imageUrlFn:"imageUrlFn",include:"include",exclude:"exclude",notFoundEmoji:"notFoundEmoji",categoriesIcons:"categoriesIcons",searchIcons:"searchIcons",useButton:"useButton",enableFrequentEmojiSort:"enableFrequentEmojiSort",enableSearch:"enableSearch",showSingleCategory:"showSingleCategory",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",recent:"recent",backgroundImageFn:"backgroundImageFn"},outputs:{emojiClick:"emojiClick",emojiSelect:"emojiSelect",skinChange:"skinChange"},standalone:!0,features:[e.aNF],decls:8,vars:16,consts:[["scrollRef",""],[3,"ngStyle"],[1,"emoji-mart-bar"],[3,"anchorClick","categories","color","selected","i18n","icons"],[3,"i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter","searchResults","enterKeyOutsideAngular",4,"ngIf"],[1,"emoji-mart-scroll"],[3,"id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton","emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular",4,"ngFor","ngForOf","ngForTrackBy"],["class","emoji-mart-bar",4,"ngIf"],[3,"searchResults","enterKeyOutsideAngular","i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter"],[3,"emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular","id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton"],[3,"skinChange","emoji","idleEmoji","emojiIsNative","emojiSize","emojiSkin","emojiSet","i18n","emojiSheetSize","emojiBackgroundImageFn","emojiImageUrlFn"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"section",1)(1,"div",2)(2,"emoji-mart-anchors",3),e.bIt("anchorClick",function(C){return e.eBV(i),e.Njj(l.handleAnchorClick(C))}),e.k0s()(),e.DNE(3,B3,1,7,"emoji-search",4),e.j41(4,"section",5,0),e.DNE(6,t3,1,23,"emoji-category",6),e.k0s(),e.DNE(7,E6,2,11,"div",7),e.k0s()}2&t&&(e.ZvI("emoji-mart ",l.darkMode?"emoji-mart-dark":"",""),e.xc7("width",l.getWidth()),e.Y8G("ngStyle",l.style),e.R7$(2),e.Y8G("categories",l.categories)("color",l.color)("selected",l.selected)("i18n",l.i18n)("icons",l.categoriesIcons),e.R7$(),e.Y8G("ngIf",l.enableSearch),e.R7$(),e.BMQ("aria-label",l.i18n.emojilist),e.R7$(2),e.Y8G("ngForOf",l.activeCategories)("ngForTrackBy",l.categoryTrack),e.R7$(),e.Y8G("ngIf",l.showPreview))},dependencies:[_.MD,_.Sq,_.bT,_.B3,q4,$4,H4,f0],encapsulation:2,changeDetection:0})}return n})();function V4(n,a,c){n.observed&&a.run(()=>n.emit(c))}var J2=y(60),s1=y(3955),x1=y(8359);class m1 extends x1.yU{constructor(a,c){super()}schedule(a,c=0){return this}}const D1={setInterval(n,a,...c){const{delegate:t}=D1;return t?.setInterval?t.setInterval(n,a,...c):setInterval(n,a,...c)},clearInterval(n){const{delegate:a}=D1;return(a?.clearInterval||clearInterval)(n)},delegate:void 0};var Z1=y(7908),b2=y(6129);class U0{constructor(a,c=U0.now){this.schedulerActionCtor=a,this.now=c}schedule(a,c=0,t){return new this.schedulerActionCtor(this,a).schedule(t,c)}}U0.now=b2.U.now;const t4=new class m0 extends U0{constructor(a,c=U0.now){super(a,c),this.actions=[],this._active=!1}flush(a){const{actions:c}=this;if(this._active)return void c.push(a);let t;this._active=!0;do{if(t=a.execute(a.state,a.delay))break}while(a=c.shift());if(this._active=!1,t){for(;a=c.shift();)a.unsubscribe();throw t}}}(class F2 extends m1{constructor(a,c){super(a,c),this.scheduler=a,this.work=c,this.pending=!1}schedule(a,c=0){var t;if(this.closed)return this;this.state=a;const l=this.id,i=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(i,l,c)),this.pending=!0,this.delay=c,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(i,this.id,c),this}requestAsyncId(a,c,t=0){return D1.setInterval(a.flush.bind(a,this),t)}recycleAsyncId(a,c,t=0){if(null!=t&&this.delay===t&&!1===this.pending)return c;null!=c&&D1.clearInterval(c)}execute(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const t=this._execute(a,c);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,c){let l,t=!1;try{this.work(a)}catch(i){t=!0,l=i||new Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:a,scheduler:c}=this,{actions:t}=c;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Z1.o)(t,this),null!=a&&(this.id=this.recycleAsyncId(c,a,null)),this.delay=null,super.unsubscribe()}}}),N3=t4;var z4=y(9470);function F4(n=0,a,c=N3){let t=-1;return null!=a&&((0,z4.m)(a)?c=a:t=a),new Z.c(l=>{let i=function r4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-c.now():n;i<0&&(i=0);let u=0;return c.schedule(function(){l.closed||(l.next(u++),0<=t?this.schedule(void 0,t):l.complete())},i)})}const I2=["fileSelector"],C0=n=>({openFileSelector:n});function B2(n,a){if(1&n&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.dropZoneLabel)}}function p4(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"input",9),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.openFileSelector(l))}),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("value",c.browseBtnLabel),e.Y8G("className",c.browseBtnClassName)}}function M4(n,a){if(1&n&&e.DNE(0,B2,2,1,"div",6)(1,p4,2,2,"div",7),2&n){const c=e.XpG();e.Y8G("ngIf",c.dropZoneLabel),e.R7$(),e.Y8G("ngIf",c.showBrowseBtn)}}function u6(n,a){}class c6{constructor(a,c){this.relativePath=a,this.fileEntry=c}}let R4=(()=>{class n{constructor(c){this.template=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:n,selectors:[["","ngx-file-drop-content-tmp",""]]})}}return n})(),z0=(()=>{class n{get disabled(){return this._disabled}set disabled(c){this._disabled=null!=c&&"false"!=`${c}`}constructor(c,t){this.zone=c,this.renderer=t,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new e.bkB,this.onFileOver=new e.bkB,this.onFileLeave=new e.bkB,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=l=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",l=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",l=>{this.globalDraggingInProgress=!1})}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(c){this.useDragEnter?(this.preventAndStop(c),c.dataTransfer&&(c.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&c.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(c)),this.preventAndStop(c),c.dataTransfer.dropEffect="copy")}onDragEnter(c){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(c)),this.preventAndStop(c))}onDragLeave(c){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(c)),this.preventAndStop(c))}dropFiles(c){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,c.dataTransfer)){let t;t=c.dataTransfer.items?c.dataTransfer.items:c.dataTransfer.files,this.preventAndStop(c),this.checkFiles(t)}}uploadFiles(c){!this.isDropzoneDisabled()&&c.target&&(this.checkFiles(c.target.files||[]),this.resetFileInput())}getFakeDropEntry(c){const t={name:c.name,isDirectory:!1,isFile:!0,file:l=>l(c)};return new c6(t.name,t)}checkFile(c){if(c){if("webkitGetAsEntry"in c){let t=c.webkitGetAsEntry();if(t){if(t.isFile){const l=new c6(t.name,t);this.addToQueue(l)}else t.isDirectory&&this.traverseFileTree(t,t.name);return}}this.addToQueue(this.getFakeDropEntry(c))}}checkFiles(c){for(let t=0;t{if(this.files.length>0&&0===this.numOfActiveReadEntries){const t=this.files;this.files=[],this.onFileDrop.emit(t)}})}traverseFileTree(c,t){if(c.isFile){const l=new c6(t,c);this.files.push(l)}else{t+="/";const l=c.createReader();let i=[];const u=()=>{this.numOfActiveReadEntries++,l.readEntries(C=>{if(C.length)i=i.concat(C),u();else if(0===i.length){const b=new c6(t,c);this.zone.run(()=>{this.addToQueue(b)})}else for(let b=0;b{this.traverseFileTree(i[b],t+i[b].name)});this.numOfActiveReadEntries--})};u()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const c=this.fileSelector.nativeElement,t=c.parentElement,l=this.getHelperFormElement(),i=this.getFileInputPlaceholderElement();t!==l&&(this.renderer.insertBefore(t,i,c),this.renderer.appendChild(l,c),l.reset(),this.renderer.insertBefore(t,c,i),this.renderer.removeChild(t,i))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(c){this.files.push(c)}preventAndStop(c){c.stopPropagation(),c.preventDefault()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-file-drop"]],contentQueries:function(t,l,i){if(1&t&&e.wni(i,R4,5,e.C4Q),2&t){let u;e.mGM(u=e.lsd())&&(l.contentTemplate=u.first)}},viewQuery:function(t,l){if(1&t&&e.GBs(I2,7),2&t){let i;e.mGM(i=e.lsd())&&(l.fileSelector=i.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[["fileSelector",""],["defaultContentTemplate",""],[3,"drop","dragover","dragenter","dragleave","className"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"change","accept","multiple"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"click","className","value"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2),e.bIt("drop",function(C){return e.eBV(i),e.Njj(l.dropFiles(C))})("dragover",function(C){return e.eBV(i),e.Njj(l.onDragOver(C))})("dragenter",function(C){return e.eBV(i),e.Njj(l.onDragEnter(C))})("dragleave",function(C){return e.eBV(i),e.Njj(l.onDragLeave(C))}),e.j41(1,"div",3)(2,"input",4,0),e.bIt("change",function(C){return e.eBV(i),e.Njj(l.uploadFiles(C))}),e.k0s(),e.DNE(4,M4,2,2,"ng-template",null,1,e.C5r)(6,u6,0,0,"ng-template",5),e.k0s()()}if(2&t){const i=e.sdS(5);e.AVh("ngx-file-drop__drop-zone--over",l.isDraggingOverDropZone),e.Y8G("className",l.dropZoneClassName),e.R7$(),e.Y8G("className",l.contentClassName),e.R7$(),e.Y8G("accept",l.accept)("multiple",l.multiple),e.BMQ("directory",l.directory||void 0)("webkitdirectory",l.directory||void 0)("mozdirectory",l.directory||void 0)("msdirectory",l.directory||void 0)("odirectory",l.directory||void 0),e.R7$(4),e.Y8G("ngTemplateOutlet",l.contentTemplate||i)("ngTemplateOutletContext",e.eq3(13,C0,l.openFileSelector))}},dependencies:[_.bT,_.T3],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{height:100px;margin:auto;border:2px dotted #0782d0;border-radius:30px}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:#93939380}.ngx-file-drop__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;color:#0782d0}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]})}}return n})(),m6=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n,bootstrap:[z0]})}static{this.\u0275inj=e.G2t({imports:[_.MD]})}}return n})();var Y4=y(8944),C1=y(467),E3=y(6365),z3=y(9326),p6=y(6648);var o1=y(7673),b1=y(3703),F1=y(3669),J1=y(9974),q1=y(4360);function u2(n,a=F1.D){return n=n??h2,(0,J1.N)((c,t)=>{let l,i=!0;c.subscribe((0,q1._)(t,u=>{const C=a(u);(i||!n(l,C))&&(i=!1,l=C,t.next(u))}))})}function h2(n,a){return n===a}var M0=y(253),X2=y(9172),P2=y(6354);y(1594);let P0={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function o4(n){P0=n}const v4=/[&<>"']/,R0=new RegExp(v4.source,"g"),A0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,A4=new RegExp(A0.source,"g"),W4={"&":"&","<":"<",">":">",'"':""","'":"'"},d4=n=>W4[n];function c4(n,a){if(a){if(v4.test(n))return n.replace(R0,d4)}else if(A0.test(n))return n.replace(A4,d4);return n}const I4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,a0=/(^|[^\[])\^/g;function H2(n,a){n="string"==typeof n?n:n.source,a=a||"";const c={replace:(t,l)=>(l=(l="object"==typeof l&&"source"in l?l.source:l).replace(a0,"$1"),n=n.replace(t,l),c),getRegex:()=>new RegExp(n,a)};return c}function p8(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const a3={exec:()=>null};function h6(n,a){const t=n.replace(/\|/g,(i,u,C)=>{let b=!1,T=u;for(;--T>=0&&"\\"===C[T];)b=!b;return b?"|":" |"}).split(/ \|/);let l=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),a)if(t.length>a)t.splice(a);else for(;t.length0)return{type:"space",raw:c[0]}}code(a){const c=this.rules.block.code.exec(a);if(c){const t=c[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:c[0],codeBlockStyle:"indented",text:this.options.pedantic?t:T6(t,"\n")}}}fences(a){const c=this.rules.block.fences.exec(a);if(c){const t=c[0],l=function b0(n,a){const c=n.match(/^(\s+)(?:```)/);if(null===c)return a;const t=c[1];return a.split("\n").map(l=>{const i=l.match(/^\s+/);if(null===i)return l;const[u]=i;return u.length>=t.length?l.slice(t.length):l}).join("\n")}(t,c[3]||"");return{type:"code",raw:t,lang:c[2]?c[2].trim().replace(this.rules.inline._escapes,"$1"):c[2],text:l}}}heading(a){const c=this.rules.block.heading.exec(a);if(c){let t=c[2].trim();if(/#$/.test(t)){const l=T6(t,"#");(this.options.pedantic||!l||/ $/.test(l))&&(t=l.trim())}return{type:"heading",raw:c[0],depth:c[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(a){const c=this.rules.block.hr.exec(a);if(c)return{type:"hr",raw:c[0]}}blockquote(a){const c=this.rules.block.blockquote.exec(a);if(c){const t=T6(c[0].replace(/^ *>[ \t]?/gm,""),"\n"),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=l,{type:"blockquote",raw:c[0],tokens:i,text:t}}}list(a){let c=this.rules.block.list.exec(a);if(c){let t=c[1].trim();const l=t.length>1,i={type:"list",raw:"",ordered:l,start:l?+t.slice(0,-1):"",loose:!1,items:[]};t=l?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=l?t:"[*+-]");const u=new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`);let C="",b="",T=!1;for(;a;){let W=!1;if(!(c=u.exec(a))||this.rules.block.hr.test(a))break;C=c[0],a=a.substring(C.length);let u1=c[2].split("\n",1)[0].replace(/^\t+/,G2=>" ".repeat(3*G2.length)),a1=a.split("\n",1)[0],T1=0;this.options.pedantic?(T1=2,b=u1.trimStart()):(T1=c[2].search(/[^ ]/),T1=T1>4?1:T1,b=u1.slice(T1),T1+=c[1].length);let Y1=!1;if(!u1&&/^ *$/.test(a1)&&(C+=a1+"\n",a=a.substring(a1.length+1),W=!0),!W){const G2=new RegExp(`^ {0,${Math.min(3,T1-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),N2=new RegExp(`^ {0,${Math.min(3,T1-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a4=new RegExp(`^ {0,${Math.min(3,T1-1)}}(?:\`\`\`|~~~)`),B0=new RegExp(`^ {0,${Math.min(3,T1-1)}}#`);for(;a;){const K0=a.split("\n",1)[0];if(a1=K0,this.options.pedantic&&(a1=a1.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),a4.test(a1)||B0.test(a1)||G2.test(a1)||N2.test(a))break;if(a1.search(/[^ ]/)>=T1||!a1.trim())b+="\n"+a1.slice(T1);else{if(Y1||u1.search(/[^ ]/)>=4||a4.test(u1)||B0.test(u1)||N2.test(u1))break;b+="\n"+a1}!Y1&&!a1.trim()&&(Y1=!0),C+=K0+"\n",a=a.substring(K0.length+1),u1=a1.slice(T1)}}i.loose||(T?i.loose=!0:/\n *\n *$/.test(C)&&(T=!0));let M2,f2=null;this.options.gfm&&(f2=/^\[[ xX]\] /.exec(b),f2&&(M2="[ ] "!==f2[0],b=b.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:C,task:!!f2,checked:M2,loose:!1,text:b,tokens:[]}),i.raw+=C}i.items[i.items.length-1].raw=C.trimEnd(),i.items[i.items.length-1].text=b.trimEnd(),i.raw=i.raw.trimEnd();for(let W=0;W"space"===T1.type),a1=u1.length>0&&u1.some(T1=>/\n.*\n/.test(T1.raw));i.loose=a1}if(i.loose)for(let W=0;W$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline._escapes,"$1"):c[3];return{type:"def",tag:t,raw:c[0],href:l,title:i}}}table(a){const c=this.rules.block.table.exec(a);if(c){if(!/[:|]/.test(c[2]))return;const t={type:"table",raw:c[0],header:h6(c[1]).map(l=>({text:l,tokens:[]})),align:c[2].replace(/^\||\| *$/g,"").split("|"),rows:c[3]&&c[3].trim()?c[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){let i,u,C,b,l=t.align.length;for(i=0;i({text:T,tokens:[]}));for(l=t.header.length,u=0;u/i.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(a){const c=this.rules.inline.link.exec(a);if(c){const t=c[2].trim();if(!this.options.pedantic&&/^$/.test(t))return;const u=T6(t.slice(0,-1),"\\");if((t.length-u.length)%2==0)return}else{const u=function R8(n,a){if(-1===n.indexOf(a[1]))return-1;let c=0;for(let t=0;t-1){const b=(0===c[0].indexOf("!")?5:4)+c[1].length+u;c[2]=c[2].substring(0,u),c[0]=c[0].substring(0,b).trim(),c[3]=""}}let l=c[2],i="";if(this.options.pedantic){const u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);u&&(l=u[1],i=u[3])}else i=c[3]?c[3].slice(1,-1):"";return l=l.trim(),/^$/.test(t)?l.slice(1):l.slice(1,-1)),t6(c,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},c[0],this.lexer)}}reflink(a,c){let t;if((t=this.rules.inline.reflink.exec(a))||(t=this.rules.inline.nolink.exec(a))){let l=(t[2]||t[1]).replace(/\s+/g," ");if(l=c[l.toLowerCase()],!l){const i=t[0].charAt(0);return{type:"text",raw:i,text:i}}return t6(t,l,t[0],this.lexer)}}emStrong(a,c,t=""){let l=this.rules.inline.emStrong.lDelim.exec(a);if(!(!l||l[3]&&t.match(/[\p{L}\p{N}]/u))&&(!l[1]&&!l[2]||!t||this.rules.inline.punctuation.exec(t))){const u=[...l[0]].length-1;let C,b,T=u,W=0;const u1="*"===l[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u1.lastIndex=0,c=c.slice(-1*a.length+u);null!=(l=u1.exec(c));){if(C=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!C)continue;if(b=[...C].length,l[3]||l[4]){T+=b;continue}if((l[5]||l[6])&&u%3&&!((u+b)%3)){W+=b;continue}if(T-=b,T>0)continue;b=Math.min(b,b+T+W);const a1=[...l[0]][0].length,T1=a.slice(0,u+l.index+a1+b);if(Math.min(u,b)%2){const f2=T1.slice(1,-1);return{type:"em",raw:T1,text:f2,tokens:this.lexer.inlineTokens(f2)}}const Y1=T1.slice(2,-2);return{type:"strong",raw:T1,text:Y1,tokens:this.lexer.inlineTokens(Y1)}}}}codespan(a){const c=this.rules.inline.code.exec(a);if(c){let t=c[2].replace(/\n/g," ");const l=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return l&&i&&(t=t.substring(1,t.length-1)),t=c4(t,!0),{type:"codespan",raw:c[0],text:t}}}br(a){const c=this.rules.inline.br.exec(a);if(c)return{type:"br",raw:c[0]}}del(a){const c=this.rules.inline.del.exec(a);if(c)return{type:"del",raw:c[0],text:c[2],tokens:this.lexer.inlineTokens(c[2])}}autolink(a){const c=this.rules.inline.autolink.exec(a);if(c){let t,l;return"@"===c[2]?(t=c4(c[1]),l="mailto:"+t):(t=c4(c[1]),l=t),{type:"link",raw:c[0],text:t,href:l,tokens:[{type:"text",raw:t,text:t}]}}}url(a){let c;if(c=this.rules.inline.url.exec(a)){let t,l;if("@"===c[2])t=c4(c[0]),l="mailto:"+t;else{let i;do{i=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])[0]}while(i!==c[0]);t=c4(c[0]),l="www."===c[1]?"http://"+c[0]:c[0]}return{type:"link",raw:c[0],text:t,href:l,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(a){const c=this.rules.inline.text.exec(a);if(c){let t;return t=this.lexer.state.inRawBlock?c[0]:c4(c[0]),{type:"text",raw:c[0],text:t}}}}const Q2={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:a3,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Q2.def=H2(Q2.def).replace("label",Q2._label).replace("title",Q2._title).getRegex(),Q2.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q2.listItemStart=H2(/^( *)(bull) */).replace("bull",Q2.bullet).getRegex(),Q2.list=H2(Q2.list).replace(/bull/g,Q2.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q2.def.source+")").getRegex(),Q2._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q2._comment=/|$)/,Q2.html=H2(Q2.html,"i").replace("comment",Q2._comment).replace("tag",Q2._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q2.lheading=H2(Q2.lheading).replace(/bull/g,Q2.bullet).getRegex(),Q2.paragraph=H2(Q2._paragraph).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.blockquote=H2(Q2.blockquote).replace("paragraph",Q2.paragraph).getRegex(),Q2.normal={...Q2},Q2.gfm={...Q2.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Q2.gfm.table=H2(Q2.gfm.table).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.gfm.paragraph=H2(Q2._paragraph).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Q2.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.pedantic={...Q2.normal,html:H2("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Q2._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a3,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:H2(Q2.normal._paragraph).replace("hr",Q2.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Q2.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const g2={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:a3,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:a3,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~"};g2.punctuation=H2(g2.punctuation,"u").replace(/punctuation/g,g2._punctuation).getRegex(),g2.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,g2.anyPunctuation=/\\[punct]/g,g2._escapes=/\\([punct])/g,g2._comment=H2(Q2._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),g2.emStrong.lDelim=H2(g2.emStrong.lDelim,"u").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimAst=H2(g2.emStrong.rDelimAst,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimUnd=H2(g2.emStrong.rDelimUnd,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.anyPunctuation=H2(g2.anyPunctuation,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2._escapes=H2(g2._escapes,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,g2._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,g2.autolink=H2(g2.autolink).replace("scheme",g2._scheme).replace("email",g2._email).getRegex(),g2._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,g2.tag=H2(g2.tag).replace("comment",g2._comment).replace("attribute",g2._attribute).getRegex(),g2._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,g2._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,g2._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,g2.link=H2(g2.link).replace("label",g2._label).replace("href",g2._href).replace("title",g2._title).getRegex(),g2.reflink=H2(g2.reflink).replace("label",g2._label).replace("ref",Q2._label).getRegex(),g2.nolink=H2(g2.nolink).replace("ref",Q2._label).getRegex(),g2.reflinkSearch=H2(g2.reflinkSearch,"g").replace("reflink",g2.reflink).replace("nolink",g2.nolink).getRegex(),g2.normal={...g2},g2.pedantic={...g2.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:H2(/^!?\[(label)\]\((.*?)\)/).replace("label",g2._label).getRegex(),reflink:H2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",g2._label).getRegex()},g2.gfm={...g2.normal,escape:H2(g2.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\b+" ".repeat(T.length));a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(C=>!!(t=C.call({lexer:this},a,c))&&(a=a.substring(t.raw.length),c.push(t),!0)))){if(t=this.tokenizer.space(a)){a=a.substring(t.raw.length),1===t.raw.length&&c.length>0?c[c.length-1].raw+="\n":c.push(t);continue}if(t=this.tokenizer.code(a)){a=a.substring(t.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?c.push(t):(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(t=this.tokenizer.fences(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.heading(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.hr(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.blockquote(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.list(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.html(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.def(a)){a=a.substring(t.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(l.raw+="\n"+t.raw,l.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(t=this.tokenizer.table(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.lheading(a)){a=a.substring(t.raw.length),c.push(t);continue}if(i=a,this.options.extensions&&this.options.extensions.startBlock){let C=1/0;const b=a.slice(1);let T;this.options.extensions.startBlock.forEach(W=>{T=W.call({lexer:this},b),"number"==typeof T&&T>=0&&(C=Math.min(C,T))}),C<1/0&&C>=0&&(i=a.substring(0,C+1))}if(this.state.top&&(t=this.tokenizer.paragraph(i))){l=c[c.length-1],u&&"paragraph"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(t),u=i.length!==a.length,a=a.substring(t.raw.length);continue}if(t=this.tokenizer.text(a)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(t);continue}if(a){const C="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(C);break}throw new Error(C)}}return this.state.top=!0,c}inline(a,c=[]){return this.inlineQueue.push({src:a,tokens:c}),c}inlineTokens(a,c=[]){let t,l,i,C,b,T,u=a;if(this.tokens.links){const W=Object.keys(this.tokens.links);if(W.length>0)for(;null!=(C=this.tokenizer.rules.inline.reflinkSearch.exec(u));)W.includes(C[0].slice(C[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,C.index)+"["+"a".repeat(C[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(C=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,C.index)+"["+"a".repeat(C[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(C=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,C.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;a;)if(b||(T=""),b=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(W=>!!(t=W.call({lexer:this},a,c))&&(a=a.substring(t.raw.length),c.push(t),!0)))){if(t=this.tokenizer.escape(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.tag(a)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(t=this.tokenizer.link(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(t=this.tokenizer.emStrong(a,u,T)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.codespan(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.br(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.del(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.autolink(a)){a=a.substring(t.raw.length),c.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(a))){a=a.substring(t.raw.length),c.push(t);continue}if(i=a,this.options.extensions&&this.options.extensions.startInline){let W=1/0;const u1=a.slice(1);let a1;this.options.extensions.startInline.forEach(T1=>{a1=T1.call({lexer:this},u1),"number"==typeof a1&&a1>=0&&(W=Math.min(W,a1))}),W<1/0&&W>=0&&(i=a.substring(0,W+1))}if(t=this.tokenizer.inlineText(i)){a=a.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(T=t.raw.slice(-1)),b=!0,l=c[c.length-1],l&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(a){const W="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(W);break}throw new Error(W)}}return c}}class J4{options;constructor(a){this.options=a||P0}code(a,c,t){const l=(c||"").match(/^\S*/)?.[0];return a=a.replace(/\n$/,"")+"\n",l?'
'+(t?a:c4(a,!0))+"
\n":"
"+(t?a:c4(a,!0))+"
\n"}blockquote(a){return`
\n${a}
\n`}html(a,c){return a}heading(a,c,t){return`${a}\n`}hr(){return"
\n"}list(a,c,t){const l=c?"ol":"ul";return"<"+l+(c&&1!==t?' start="'+t+'"':"")+">\n"+a+"\n"}listitem(a,c,t){return`
  • ${a}
  • \n`}checkbox(a){return"'}paragraph(a){return`

    ${a}

    \n`}table(a,c){return c&&(c=`${c}`),"\n\n"+a+"\n"+c+"
    \n"}tablerow(a){return`\n${a}\n`}tablecell(a,c){const t=c.header?"th":"td";return(c.align?`<${t} align="${c.align}">`:`<${t}>`)+a+`\n`}strong(a){return`${a}`}em(a){return`${a}`}codespan(a){return`${a}`}br(){return"
    "}del(a){return`${a}`}link(a,c,t){const l=p8(a);if(null===l)return t;let i='",i}image(a,c,t){const l=p8(a);if(null===l)return t;let i=`${t}"colon"===(c=c.toLowerCase())?":":"#"===c.charAt(0)?"x"===c.charAt(1)?String.fromCharCode(parseInt(c.substring(2),16)):String.fromCharCode(+c.substring(1)):""));continue}case"code":t+=this.renderer.code(i.text,i.lang,!!i.escaped);continue;case"table":{const u=i;let C="",b="";for(let W=0;W0&&"paragraph"===a1.tokens[0].type?(a1.tokens[0].text=M2+" "+a1.tokens[0].text,a1.tokens[0].tokens&&a1.tokens[0].tokens.length>0&&"text"===a1.tokens[0].tokens[0].type&&(a1.tokens[0].tokens[0].text=M2+" "+a1.tokens[0].tokens[0].text)):a1.tokens.unshift({type:"text",text:M2+" "}):f2+=M2+" "}f2+=this.parse(a1.tokens,T),W+=this.renderer.listitem(f2,Y1,!!T1)}t+=this.renderer.list(W,C,b);continue}case"html":t+=this.renderer.html(i.text,i.block);continue;case"paragraph":t+=this.renderer.paragraph(this.parseInline(i.tokens));continue;case"text":{let u=i,C=u.tokens?this.parseInline(u.tokens):u.text;for(;l+1{t=t.concat(this.walkTokens(i[u],c))}):i.tokens&&(t=t.concat(this.walkTokens(i.tokens,c)))}}return t}use(...a){const c=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(t=>{const l={...t};if(l.async=this.defaults.async||l.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const u=c.renderers[i.name];c.renderers[i.name]=u?function(...C){let b=i.renderer.apply(this,C);return!1===b&&(b=u.apply(this,C)),b}:i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");const u=c[i.level];u?u.unshift(i.tokenizer):c[i.level]=[i.tokenizer],i.start&&("block"===i.level?c.startBlock?c.startBlock.push(i.start):c.startBlock=[i.start]:"inline"===i.level&&(c.startInline?c.startInline.push(i.start):c.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(c.childTokens[i.name]=i.childTokens)}),l.extensions=c),t.renderer){const i=this.defaults.renderer||new J4(this.defaults);for(const u in t.renderer){const C=t.renderer[u],T=i[u];i[u]=(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1||""}}l.renderer=i}if(t.tokenizer){const i=this.defaults.tokenizer||new y6(this.defaults);for(const u in t.tokenizer){const C=t.tokenizer[u],T=i[u];i[u]=(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1}}l.tokenizer=i}if(t.hooks){const i=this.defaults.hooks||new P4;for(const u in t.hooks){const C=t.hooks[u],T=i[u];i[u]=P4.passThroughHooks.has(u)?W=>{if(this.defaults.async)return Promise.resolve(C.call(i,W)).then(a1=>T.call(i,a1));const u1=C.call(i,W);return T.call(i,u1)}:(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1}}l.hooks=i}if(t.walkTokens){const i=this.defaults.walkTokens,u=t.walkTokens;l.walkTokens=function(C){let b=[];return b.push(u.call(this,C)),i&&(b=b.concat(i.call(this,C))),b}}this.defaults={...this.defaults,...l}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,c){return h3.lex(a,c??this.defaults)}parser(a,c){return n4.parse(a,c??this.defaults)}#e(a,c){return(t,l)=>{const i={...l},u={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(u.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),u.async=!0);const C=this.#c(!!u.silent,!!u.async);if(typeof t>"u"||null===t)return C(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return C(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(u.hooks&&(u.hooks.options=u),u.async)return Promise.resolve(u.hooks?u.hooks.preprocess(t):t).then(b=>a(b,u)).then(b=>u.walkTokens?Promise.all(this.walkTokens(b,u.walkTokens)).then(()=>b):b).then(b=>c(b,u)).then(b=>u.hooks?u.hooks.postprocess(b):b).catch(C);try{u.hooks&&(t=u.hooks.preprocess(t));const b=a(t,u);u.walkTokens&&this.walkTokens(b,u.walkTokens);let T=c(b,u);return u.hooks&&(T=u.hooks.postprocess(T)),T}catch(b){return C(b)}}}#c(a,c){return t=>{if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",a){const l="

    An error occurred:

    "+c4(t.message+"",!0)+"
    ";return c?Promise.resolve(l):l}if(c)return Promise.reject(t);throw t}}};function V0(n,a){return n6.parse(n,a)}V0.options=V0.setOptions=function(n){return n6.setOptions(n),o4(V0.defaults=n6.defaults),V0},V0.getDefaults=function F0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},V0.defaults=P0,V0.use=function(...n){return n6.use(...n),o4(V0.defaults=n6.defaults),V0},V0.walkTokens=function(n,a){return n6.walkTokens(n,a)},V0.parseInline=n6.parseInline,V0.Parser=n4,V0.parser=n4.parse,V0.Renderer=J4,V0.TextRenderer=R6,V0.Lexer=h3,V0.lexer=h3.lex,V0.Tokenizer=y6,V0.Hooks=P4,V0.parse=V0;const p0=["*"];let U3=(()=>{class n{constructor(){this._buttonClick$=new S.B,this.copied$=this._buttonClick$.pipe((0,A.n)(()=>function D6(...n){const a=(0,z3.lI)(n),c=(0,z3.R0)(n,1/0),t=n;return t.length?1===t.length?(0,$.Tg)(t[0]):(0,E3.U)(c)((0,p6.H)(t,a)):G1.w}((0,o1.of)(!0),F4(3e3).pipe((0,b1.u)(!1)))),u2(),(0,M0.t)(1)),this.copiedText$=this.copied$.pipe((0,X2.Z)(!1),(0,P2.T)(c=>c?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["markdown-clipboard"]],standalone:!0,features:[e.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"button",0),e.nI1(1,"async"),e.bIt("click",function(){return l.onCopyToClipboardClick()}),e.EFF(2),e.nI1(3,"async"),e.k0s()),2&t&&(e.AVh("copied",e.bMT(1,3,l.copied$)),e.R7$(2),e.JRh(e.bMT(3,5,l.copiedText$)))},dependencies:[_.Jj],encapsulation:2,changeDetection:0})}}return n})();const I6=new e.nKC("CLIPBOARD_OPTIONS");var d3=function(n){return n.CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",n}(d3||{});const G0=new e.nKC("MARKED_EXTENSIONS"),l6=new e.nKC("MARKED_OPTIONS"),R3=new e.nKC("SECURITY_CONTEXT");let k3=(()=>{class n{get options(){return this._options}set options(c){this._options={...this.DEFAULT_MARKED_OPTIONS,...c}}get renderer(){return this.options.renderer}set renderer(c){this.options.renderer=c}constructor(c,t,l,i,u,C,b){this.clipboardOptions=c,this.extensions=t,this.platform=i,this.securityContext=u,this.http=C,this.sanitizer=b,this.DEFAULT_MARKED_OPTIONS={renderer:new J4},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new S.B,this.reload$=this._reload$.asObservable(),this.options=l}parse(c,t=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:l,inline:i,emoji:u,mermaid:C,disableSanitizer:b}=t,T={...this.options,...t.markedOptions},W=T.renderer||this.renderer||new J4;this.extensions&&(this.renderer=this.extendsRendererForExtensions(W)),C&&(this.renderer=this.extendsRendererForMermaid(W));const u1=this.trimIndentation(c),a1=l?this.decodeHtml(u1):u1,T1=u?this.parseEmoji(a1):a1,Y1=this.parseMarked(T1,T,i);return(b?Y1:this.sanitizer.sanitize(this.securityContext,Y1))||""}render(c,t=this.DEFAULT_RENDER_OPTIONS,l){const{clipboard:i,clipboardOptions:u,katex:C,katexOptions:b,mermaid:T,mermaidOptions:W}=t;C&&this.renderKatex(c,{...this.DEFAULT_KATEX_OPTIONS,...b}),T&&this.renderMermaid(c,{...this.DEFAULT_MERMAID_OPTIONS,...W}),i&&this.renderClipboard(c,l,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...u}),this.highlight(c)}reload(){this._reload$.next()}getSource(c){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(c,{responseType:"text"}).pipe((0,P2.T)(t=>this.handleExtension(c,t)))}highlight(c){if(!(0,_.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;c||(c=document);const t=c.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,l=>l.classList.add("language-none")),Prism.highlightAllUnder(c)}decodeHtml(c){if(!(0,_.UE)(this.platform))return c;const t=document.createElement("textarea");return t.innerHTML=c,t.value}extendsRendererForExtensions(c){const t=c;return!0===t.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&V0.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),c}extendsRendererForMermaid(c){const t=c;if(!0===t.\u0275NgxMarkdownRendererExtendedForMermaid)return c;const l=c.code;return c.code=function(i,u,C){return"mermaid"===u?`
    ${i}
    `:l.call(this,i,u,C)},t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,c}handleExtension(c,t){const l=c.lastIndexOf("://"),i=l>-1?c.substring(l+4):c,u=i.lastIndexOf("/"),C=u>-1?i.substring(u+1).split("?")[0]:"",b=C.lastIndexOf("."),T=b>-1?C.substring(b+1):"";return T&&"md"!==T?"```"+T+"\n"+t+"\n```":t}parseMarked(c,t,l=!1){if(t.renderer){const i={...t.renderer};delete i.\u0275NgxMarkdownRendererExtendedForExtensions,delete i.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,V0.use({renderer:i})}return l?V0.parseInline(c,t):V0.parse(c,t)}parseEmoji(c){if(!(0,_.UE)(this.platform))return c;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(c)}renderKatex(c,t){if((0,_.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(c,t)}}renderClipboard(c,t,l){if(!(0,_.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!t)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:u}=l,C=c.querySelectorAll("pre");for(let b=0;bu1.style.opacity="1",T.onmouseout=()=>u1.style.opacity="0",i){const Y1=t.createComponent(i);a1=Y1.hostView,Y1.changeDetectorRef.markForCheck()}else if(u)a1=t.createEmbeddedView(u);else{const Y1=t.createComponent(U3);a1=Y1.hostView,Y1.changeDetectorRef.markForCheck()}a1.rootNodes.forEach(Y1=>{Y1.onmouseover=()=>u1.style.opacity="1",u1.appendChild(Y1),T1=new ClipboardJS(Y1,{text:()=>T.innerText})}),a1.onDestroy(()=>T1.destroy())}}renderMermaid(c,t=this.DEFAULT_MERMAID_OPTIONS){if(!(0,_.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const l=c.querySelectorAll(".mermaid");0!==l.length&&(mermaid.initialize(t),mermaid.run({nodes:l}))}trimIndentation(c){if(!c)return"";let t;return c.split("\n").map(l=>{let i=t;return l.length>0&&(i=isNaN(i)?l.search(/\S|$/):Math.min(l.search(/\S|$/),i)),isNaN(t)&&(t=i),i?l.substring(i):l}).join("\n")}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(I6,8),e.KVO(G0,8),e.KVO(l6,8),e.KVO(e.Agw),e.KVO(R3),e.KVO(g.Qq,8),e.KVO(m.up))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),N0=(()=>{class n{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(c){this._disableSanitizer=this.coerceBooleanProperty(c)}get inline(){return this._inline}set inline(c){this._inline=this.coerceBooleanProperty(c)}get clipboard(){return this._clipboard}set clipboard(c){this._clipboard=this.coerceBooleanProperty(c)}get emoji(){return this._emoji}set emoji(c){this._emoji=this.coerceBooleanProperty(c)}get katex(){return this._katex}set katex(c){this._katex=this.coerceBooleanProperty(c)}get mermaid(){return this._mermaid}set mermaid(c){this._mermaid=this.coerceBooleanProperty(c)}get lineHighlight(){return this._lineHighlight}set lineHighlight(c){this._lineHighlight=this.coerceBooleanProperty(c)}get lineNumbers(){return this._lineNumbers}set lineNumbers(c){this._lineNumbers=this.coerceBooleanProperty(c)}get commandLine(){return this._commandLine}set commandLine(c){this._commandLine=this.coerceBooleanProperty(c)}constructor(c,t,l){this.element=c,this.markdownService=t,this.viewContainerRef=l,this.error=new e.bkB,this.load=new e.bkB,this.ready=new e.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new S.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,O1.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(c){var t=this;return(0,C1.A)(function*(l,i=!1){const u={decodeHtml:i,inline:t.inline,emoji:t.emoji,mermaid:t.mermaid,disableSanitizer:t.disableSanitizer},C={clipboard:t.clipboard,clipboardOptions:{buttonComponent:t.clipboardButtonComponent,buttonTemplate:t.clipboardButtonTemplate},katex:t.katex,katexOptions:t.katexOptions,mermaid:t.mermaid,mermaidOptions:t.mermaidOptions},b=yield t.markdownService.parse(l,u);t.element.nativeElement.innerHTML=b,t.handlePlugins(),t.markdownService.render(t.element.nativeElement,C,t.viewContainerRef),t.ready.emit()}).apply(this,arguments)}coerceBooleanProperty(c){return null!=c&&"false"!=`${String(c)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:c=>{this.render(c).then(()=>{this.load.emit(c)})},error:c=>this.error.emit(c)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,d3.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,d3.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(c,t){const l=c.querySelectorAll("pre");for(let i=0;i{const C=t[u];if(C){const b=this.toLispCase(u);l.item(i).setAttribute(b,C.toString())}})}toLispCase(c){const t=c.match(/([A-Z])/g);if(!t)return c;let l=c.toString();for(let i=0,u=t.length;i{class n{static forRoot(c){return{ngModule:n,providers:[e8(c)]}}static forChild(){return{ngModule:n}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD]})}}return n})();var s6;function P6(n,a){const c=a?function x4(n){return"string"==typeof n?()=>{throw new Error(n)}:n}(a):()=>{};let t=!1;return(...l)=>t?c(...l):(t=!0,n(...l))}function a6(n){return n.endsWith("/")?n:`${n}/`}!function(n){let a;var l;let c,t;(l=a=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",l.Loose="loose",l.Antiscript="antiscript",l.Sandbox="sandbox",function(l){l.Base="base",l.Forest="forest",l.Dark="dark",l.Default="default",l.Neutral="neutral"}(c=n.Theme||(n.Theme={})),function(l){l[l.Debug=1]="Debug",l[l.Info=2]="Info",l[l.Warn=3]="Warn",l[l.Error=4]="Error",l[l.Fatal=5]="Fatal"}(t=n.LogLevel||(n.LogLevel={}))}(s6||(s6={}));const u3=(n,a)=>{const c=a.createElement("script");return c.type="text/javascript",c.defer=!0,c.async=!0,c.src=n,c},H0=new e.nKC("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>u3});function m3(n,a){if(null==n)throw new Error("Unexpected "+n+" value: "+a);return n}let w3=(()=>{class n{constructor(){this.scriptFactory=(0,e.WQX)(H0),this.injector=(0,e.WQX)(e.duS),this.document=(0,e.WQX)(_.qQ)}injectDOMScript(c){const t=(0,e.N4e)(this.injector,()=>this.scriptFactory(c,this.document)),l=m3(this.document.getElementsByTagName("script")[0],"no existing script found");m3(l.parentNode,"no script's parent node found").insertBefore(t,l)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const $6=new e.nKC("MATOMO_ROUTER_ENABLED",{factory:()=>!1}),_3=new e.nKC("MATOMO_CONFIGURATION"),Z4=new e.nKC("INTERNAL_MATOMO_CONFIGURATION",{factory(){const{mode:n,requireConsent:a,...c}=m3((0,e.WQX)(_3,{optional:!0}),"No Matomo configuration found! Have you included Matomo module using MatomoModule.forRoot() or provideMatomo()?");return{mode:n?G(n):void 0,disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!(0,e.WQX)($6),requireConsent:a?t1(a):"none",enableJSErrorTracking:!1,runOutsideAngularZone:!1,disableCampaignParameters:!1,acceptDoNotTrack:!1,...c}}}),O6=new e.nKC("DEFERRED_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>{const n=(0,e.WQX)(Z4);let a;return{configuration:new Promise(t=>a=t),markReady(t){m3(a,"resolveFn")({...n,...t})}}}});new e.nKC("ASYNC_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>(0,e.WQX)(O6).configuration});var B=function(n){return n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n[n.AUTO_DEFERRED=2]="AUTO_DEFERRED",n}(B||{});function G(n){switch(n){case B.AUTO:return"auto";case B.MANUAL:return"manual";case B.AUTO_DEFERRED:return"deferred";default:return n}}var D=function(n){return n[n.NONE=0]="NONE",n[n.COOKIE=1]="COOKIE",n[n.TRACKING=2]="TRACKING",n}(D||{});function t1(n){switch(n){case D.NONE:return"none";case D.COOKIE:return"cookie";case D.TRACKING:return"tracking";default:return n}}function V2(n){return null!=n.siteId&&null!=n.trackerUrl}function A3(n){return Array.isArray(n.trackers)}function F6(){window._paq=window._paq||[]}function h4(n){const a=[...n];for(;a.length>0&&void 0===a[a.length-1];)a.pop();return a}let _e=(()=>{class n{constructor(){this.ngZone=(0,e.WQX)(e.SKi),this.config=(0,e.WQX)(Z4),F6()}get(c){return this.pushFn(t=>t[c]())}pushFn(c){return new Promise(t=>{this.push([function(){t(c(this))}])})}push(c){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(h4(c))}):window._paq.push(h4(c))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:()=>function ge(){const n=(0,e.WQX)(Z4).disabled,a=(0,_.UE)((0,e.WQX)(e.Agw));return n||!a?new i4:new _e}(),providedIn:"root"})}}return n})();class i4{get(a){return(0,C1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}push(a){}pushFn(a){return(0,C1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}}let L8=(()=>{class n{constructor(){this.delegate=(0,e.WQX)(_e),this._pageViewTracked=new S.B,this.pageViewTracked=this._pageViewTracked.asObservable(),(0,e.WQX)(e.abz).onDestroy(()=>this._pageViewTracked.complete())}trackPageView(c){this.delegate.push(["trackPageView",c]),this._pageViewTracked.next()}trackEvent(c,t,l,i,u){this.delegate.push(["trackEvent",c,t,l,i,u])}trackSiteSearch(c,t,l,i){this.delegate.push(["trackSiteSearch",c,t,l,i])}trackGoal(c,t,l){this.delegate.push(["trackGoal",c,t,l])}trackLink(c,t,l){this.delegate.push(["trackLink",c,t,l])}trackAllContentImpressions(){this.delegate.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(c,t){this.delegate.push(["trackVisibleContentImpressions",c,t])}trackContentImpressionsWithinNode(c){this.delegate.push(["trackContentImpressionsWithinNode",c])}trackContentInteractionNode(c,t){this.delegate.push(["trackContentInteractionNode",c,t])}trackContentImpression(c,t,l){this.delegate.push(["trackContentImpression",c,t,l])}trackContentInteraction(c,t,l,i){this.delegate.push(["trackContentInteraction",c,t,l,i])}logAllContentBlocksOnPage(){this.delegate.push(["logAllContentBlocksOnPage"])}ping(){this.delegate.push(["ping"])}enableHeartBeatTimer(c){this.delegate.push(["enableHeartBeatTimer",c])}enableLinkTracking(c=!1){this.delegate.push(["enableLinkTracking",c])}disablePerformanceTracking(){this.delegate.push(["disablePerformanceTracking"])}enableCrossDomainLinking(){this.delegate.push(["enableCrossDomainLinking"])}setCrossDomainLinkingTimeout(c){this.delegate.push(["setCrossDomainLinkingTimeout",c])}getCrossDomainLinkingUrlParameter(){return this.delegate.get("getCrossDomainLinkingUrlParameter")}setDocumentTitle(c){this.delegate.push(["setDocumentTitle",c])}setDomains(c){this.delegate.push(["setDomains",c])}setCustomUrl(c){this.delegate.push(["setCustomUrl",c])}setReferrerUrl(c){this.delegate.push(["setReferrerUrl",c])}setSiteId(c){this.delegate.push(["setSiteId",c])}setApiUrl(c){this.delegate.push(["setApiUrl",c])}setTrackerUrl(c){this.delegate.push(["setTrackerUrl",c])}addTracker(c,t){this.delegate.push(["addTracker",c,t])}getMatomoUrl(){return this.delegate.get("getMatomoUrl")}getPiwikUrl(){return this.delegate.get("getPiwikUrl")}getCurrentUrl(){return this.delegate.get("getCurrentUrl")}setDownloadClasses(c){this.delegate.push(["setDownloadClasses",c])}setDownloadExtensions(c){this.delegate.push(["setDownloadExtensions",c])}addDownloadExtensions(c){this.delegate.push(["addDownloadExtensions",c])}removeDownloadExtensions(c){this.delegate.push(["removeDownloadExtensions",c])}setIgnoreClasses(c){this.delegate.push(["setIgnoreClasses",c])}setLinkClasses(c){this.delegate.push(["setLinkClasses",c])}setLinkTrackingTimer(c){this.delegate.push(["setLinkTrackingTimer",c])}getLinkTrackingTimer(){return this.delegate.get("getLinkTrackingTimer")}discardHashTag(c){this.delegate.push(["discardHashTag",c])}setGenerationTimeMs(c){this.delegate.push(["setGenerationTimeMs",c])}setPagePerformanceTiming(c,t,l,i,u,C){let b;"object"==typeof c&&c?(b=c.networkTimeInMs,t=c.serverTimeInMs,l=c.transferTimeInMs,i=c.domProcessingTimeInMs,u=c.domCompletionTimeInMs,C=c.onloadTimeInMs):b=c,this.delegate.push(["setPagePerformanceTiming",b,t,l,i,u,C])}getCustomPagePerformanceTiming(){return this.delegate.get("getCustomPagePerformanceTiming")}appendToTrackingUrl(c){this.delegate.push(["appendToTrackingUrl",c])}setDoNotTrack(c){this.delegate.push(["setDoNotTrack",c])}killFrame(){this.delegate.push(["killFrame"])}redirectFile(c){this.delegate.push(["redirectFile",c])}setHeartBeatTimer(c,t){this.delegate.push(["setHeartBeatTimer",c,t])}getVisitorId(){return this.delegate.get("getVisitorId")}setVisitorId(c){this.delegate.push(["setVisitorId",c])}getVisitorInfo(){return this.delegate.get("getVisitorInfo")}getAttributionInfo(){return this.delegate.get("getAttributionInfo")}getAttributionCampaignName(){return this.delegate.get("getAttributionCampaignName")}getAttributionCampaignKeyword(){return this.delegate.get("getAttributionCampaignKeyword")}getAttributionReferrerTimestamp(){return this.delegate.get("getAttributionReferrerTimestamp")}getAttributionReferrerUrl(){return this.delegate.get("getAttributionReferrerUrl")}getUserId(){return this.delegate.get("getUserId")}setUserId(c){this.delegate.push(["setUserId",c])}resetUserId(){this.delegate.push(["resetUserId"])}setPageViewId(c){this.delegate.push(["setPageViewId",c])}getPageViewId(){return this.delegate.get("getPageViewId")}setCustomData(...c){this.delegate.push(["setCustomData",...c])}getCustomData(){return this.delegate.get("getCustomData")}setCustomVariable(c,t,l,i){this.delegate.push(["setCustomVariable",c,t,l,i])}deleteCustomVariable(c,t){this.delegate.push(["deleteCustomVariable",c,t])}deleteCustomVariables(c){this.delegate.push(["deleteCustomVariables",c])}getCustomVariable(c,t){return this.delegate.pushFn(l=>l.getCustomVariable(c,t))}storeCustomVariablesInCookie(){this.delegate.push(["storeCustomVariablesInCookie"])}setCustomDimension(c,t){this.delegate.push(["setCustomDimension",c,t])}deleteCustomDimension(c){this.delegate.push(["deleteCustomDimension",c])}getCustomDimension(c){return this.delegate.pushFn(t=>t.getCustomDimension(c))}setCampaignNameKey(c){this.delegate.push(["setCampaignNameKey",c])}setCampaignKeywordKey(c){this.delegate.push(["setCampaignKeywordKey",c])}setConversionAttributionFirstReferrer(c){this.delegate.push(["setConversionAttributionFirstReferrer",c])}setEcommerceView(c,t,l,i){!function Le(n){return"object"==typeof n&&1===Object.keys(n).length&&null!=n.productCategory}(c)?function _8(n){return"object"==typeof n&&"productSKU"in n}(c)?this.delegate.push(["setEcommerceView",c.productSKU,c.productName,c.productCategory,c.price]):this.delegate.push(["setEcommerceView",c,t,l,i]):this.delegate.push(["setEcommerceView",!1,!1,c.productCategory])}addEcommerceItem(c,t,l,i,u){this.delegate.push("string"==typeof c?["addEcommerceItem",c,t,l,i,u]:["addEcommerceItem",c.productSKU,c.productName,c.productCategory,c.price,c.quantity])}removeEcommerceItem(c){this.delegate.push(["removeEcommerceItem",c])}clearEcommerceCart(){this.delegate.push(["clearEcommerceCart"])}getEcommerceItems(){return this.delegate.get("getEcommerceItems")}trackEcommerceCartUpdate(c){this.delegate.push(["trackEcommerceCartUpdate",c])}trackEcommerceOrder(c,t,l,i,u,C){this.delegate.push(["trackEcommerceOrder",c,t,l,i,u,C])}requireConsent(){this.delegate.push(["requireConsent"])}setConsentGiven(){this.delegate.push(["setConsentGiven"])}rememberConsentGiven(c){this.delegate.push(["rememberConsentGiven",c])}forgetConsentGiven(){this.delegate.push(["forgetConsentGiven"])}hasRememberedConsent(){return this.delegate.get("hasRememberedConsent")}getRememberedConsent(){return this.delegate.get("getRememberedConsent")}isConsentRequired(){return this.delegate.get("isConsentRequired")}requireCookieConsent(){this.delegate.push(["requireCookieConsent"])}setCookieConsentGiven(){this.delegate.push(["setCookieConsentGiven"])}rememberCookieConsentGiven(c){this.delegate.push(["rememberCookieConsentGiven",c])}forgetCookieConsentGiven(){this.delegate.push(["forgetCookieConsentGiven"])}getRememberedCookieConsent(){return this.delegate.get("getRememberedCookieConsent")}areCookiesEnabled(){return this.delegate.get("areCookiesEnabled")}optUserOut(){this.delegate.push(["optUserOut"])}forgetUserOptOut(){this.delegate.push(["forgetUserOptOut"])}isUserOptedOut(){return this.delegate.get("isUserOptedOut")}disableCookies(){this.delegate.push(["disableCookies"])}deleteCookies(){this.delegate.push(["deleteCookies"])}hasCookies(){return this.delegate.get("hasCookies")}setCookieNamePrefix(c){this.delegate.push(["setCookieNamePrefix",c])}setCookieDomain(c){this.delegate.push(["setCookieDomain",c])}setCookiePath(c){this.delegate.push(["setCookiePath",c])}setSecureCookie(c){this.delegate.push(["setSecureCookie",c])}setCookieSameSite(c){this.delegate.push(["setCookieSameSite",c])}setVisitorCookieTimeout(c){this.delegate.push(["setVisitorCookieTimeout",c])}setReferralCookieTimeout(c){this.delegate.push(["setReferralCookieTimeout",c])}setSessionCookieTimeout(c){this.delegate.push(["setSessionCookieTimeout",c])}addListener(c){this.delegate.push(["addListener",c])}setRequestMethod(c){this.delegate.push(["setRequestMethod",c])}setCustomRequestProcessing(c){this.delegate.push(["setCustomRequestProcessing",c])}setRequestContentType(c){this.delegate.push(["setRequestContentType",c])}disableQueueRequest(){this.delegate.push(["disableQueueRequest"])}setRequestQueueInterval(c){this.delegate.push(["setRequestQueueInterval",c])}disableAlwaysUseSendBeacon(){this.delegate.push(["disableAlwaysUseSendBeacon"])}alwaysUseSendBeacon(){this.delegate.push(["alwaysUseSendBeacon"])}enableJSErrorTracking(){this.delegate.push(["enableJSErrorTracking"])}enableFileTracking(){this.delegate.push(["enableFileTracking"])}setExcludedReferrers(...c){const t=c.flat();this.delegate.push(["setExcludedReferrers",t])}getExcludedReferrers(){return this.delegate.get("getExcludedReferrers")}disableBrowserFeatureDetection(){this.delegate.push(["disableBrowserFeatureDetection"])}enableBrowserFeatureDetection(){this.delegate.push(["enableBrowserFeatureDetection"])}disableCampaignParameters(){this.delegate.push(["disableCampaignParameters"])}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function W8(n){return`${n}`}function Ce(n,a){return null==a?a6(n)+t8:n+a}const t8="matomo.php";class s5{initialize(){}init(){}initializeTracker(a){}}let V6=(()=>{class n{constructor(){this.config=(0,e.WQX)(Z4),this.deferredConfig=(0,e.WQX)(O6),this.tracker=(0,e.WQX)(L8),this.scriptInjector=(0,e.WQX)(w3),this.initialize=P6(()=>{this.runPreInitTasks(),function w1(n){return null==n.mode||"auto"===n.mode||n.mode===B.AUTO}(this.config)&&this.injectMatomoScript(this.config)},"Matomo has already been initialized"),this.injectMatomoScript=P6(c=>{if(function b3(n){return V2(n)||A3(n)}(c)){const{scriptUrl:t}=c,[l,...i]=function O4(n){return A3(n)?n.trackers:[{trackerUrl:n.trackerUrl,siteId:n.siteId,trackerUrlSuffix:n.trackerUrlSuffix}]}(c),u=t??a6(l.trackerUrl)+"matomo.js";this.registerMainTracker(l),this.registerAdditionalTrackers(i),this.scriptInjector.injectDOMScript(u)}else if(function v0(n){return null!=n.scriptUrl&&!V2(n)}(c)){const{scriptUrl:t,trackers:l}={trackers:[],...c};this.registerAdditionalTrackers(l),this.scriptInjector.injectDOMScript(t)}this.deferredConfig.markReady(c)},"Matomo trackers have already been initialized"),F6()}init(){this.initialize()}initializeTracker(c){this.injectMatomoScript(c)}registerMainTracker(c){const t=Ce(c.trackerUrl,c.trackerUrlSuffix),l=W8(c.siteId);this.tracker.setTrackerUrl(t),this.tracker.setSiteId(l)}registerAdditionalTrackers(c){c.forEach(({trackerUrl:t,siteId:l,trackerUrlSuffix:i})=>{const u=Ce(t,i),C=W8(l);this.tracker.addTracker(u,C)})}runPreInitTasks(){this.config.acceptDoNotTrack&&this.tracker.setDoNotTrack(!0),"cookie"===this.config.requireConsent?this.tracker.requireCookieConsent():"tracking"===this.config.requireConsent&&this.tracker.requireConsent(),this.config.enableJSErrorTracking&&this.tracker.enableJSErrorTracking(),this.config.disableCampaignParameters&&this.tracker.disableCampaignParameters(),this.config.trackAppInitialLoad&&this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:()=>function L6(){const n=(0,e.WQX)(Z4).disabled,a=(0,_.UE)((0,e.WQX)(e.Agw));return n||!a?new s5:new V6}(),providedIn:"root"})}}return n})();const j0=Symbol("MATOMO_PROVIDERS"),E4=Symbol("MATOMO_CHECKS");function A5(n,a){const c=[];return a&&c.push(function K4(n){return function w4(n,a,c){return{kind:n,[j0]:a,[E4]:c}}("ScriptFactory",[{provide:H0,useValue:n}])}(a)),function p3(n,...a){const c=[{provide:e.Z63,multi:!0,useValue(){(0,e.WQX)(V6).initialize()}}],t=[];c.push("function"==typeof n?{provide:_3,useFactory:n}:{provide:_3,useValue:n});for(const l of a)c.push(...l[j0]),t.push(l.kind);for(const l of a)l[E4]?.(t);return(0,e.EmA)(c)}(n,...c)}let P8=(()=>{class n{static forRoot(c,t){return{ngModule:n,providers:[A5(c,t)]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({})}}return n})();var E2=y(1583),C6=y(7468),ze=y(4572),Q8=y(8793),x8=y(6697),Be=y(5343);function b8(n,a){return a?c=>(0,Q8.x)(a.pipe((0,x8.s)(1),function Z8(){return(0,J1.N)((n,a)=>{n.subscribe((0,q1._)(a,Be.l))})}()),c.pipe(b8(n))):(0,K.Z)((c,t)=>(0,$.Tg)(n(c,t)).pipe((0,x8.s)(1),(0,b1.u)(c)))}var U6=y(5964),y8=y(274),Me=y(8141),Ve=y(9901);const z6=new e.nKC("MATOMO_ROUTER_CONFIGURATION"),I3={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[],navigationEndComparator:"fullUrl"},j8=new e.nKC("INTERNAL_ROUTER_CONFIGURATION",{factory:()=>{const{disabled:n,enableLinkTracking:a}=(0,e.WQX)(Z4),c=(0,e.WQX)(z6,{optional:!0})||{};return{...I3,...c,enableLinkTracking:a,disabled:n}}}),xe=new e.nKC("MATOMO_ROUTER_INTERCEPTORS");class F8{constructor(a,c){this.fn=a,this.injector=c}beforePageTrack(a){return(0,e.N4e)(this.injector,()=>this.fn(a))}}function r6(n){return function o5(n){return"function"!=typeof n.prototype?.beforePageTrack}(n)?{provide:xe,multi:!0,useFactory:()=>new F8(n,(0,e.WQX)(e.duS))}:{provide:xe,multi:!0,useClass:n}}function l8(n){return n?n.map(r6):[]}new e.nKC("MATOMO_ROUTE_DATA_KEY",{providedIn:"root",factory:()=>"matomo"});const q2=new e.nKC("MATOMO_PAGE_TITLE_PROVIDER",{factory:()=>new g4((0,e.WQX)(m.hE))});class g4{constructor(a){this.title=a}getCurrentPageTitle(a){return(0,o1.of)(this.title.getTitle())}}const l4=new e.nKC("MATOMO_PAGE_URL_PROVIDER",{factory:()=>new X((0,e.WQX)(j8),(0,e.WQX)(_.kB,{optional:!0}),(0,e.WQX)(_.hb))});class X{constructor(a,c,t){this.config=a,this.baseHref=c,this.locationStrategy=t}getCurrentPageUrl(a){const c=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+a.urlAfterRedirects:a.urlAfterRedirects;return(0,o1.of)(c)}getBaseHrefWithoutTrailingSlash(){return function P(n){return n.endsWith("/")?n.slice(0,-1):n}(this.baseHref??this.locationStrategy.getBaseHref()??"")}}function J(n){return n instanceof E2.wF}function n1(n){return"string"==typeof n?new RegExp(n):n}function U1(n){return(a,c)=>n(a)===n(c)}let R2=(()=>{class n{constructor(c,t,l,i,u,C,b){if(this.router=c,this.platformId=t,this.config=l,this.pageTitleProvider=i,this.pageUrlProvider=u,this.tracker=C,this.interceptors=b,this.initialize=P6(()=>{if(this.config.disabled||!(0,_.UE)(this.platformId))return;const T=-1===this.config.delay?F1.D:function Y3(n,a=t4){const c=F4(n,a);return b8(()=>c)}(this.config.delay),W=function y2(n){switch(n.navigationEndComparator){case"fullUrl":return U1(a=>a.urlAfterRedirects);case"ignoreQueryParams":return U1(a=>function k1(n){return n.split("?")[0]}(a.urlAfterRedirects));default:return n.navigationEndComparator}}(this.config);this.router.events.pipe((0,U6.p)(J),(0,U6.p)(function S1(n){const a=function _1(n){return n?Array.isArray(n)?n.map(n1):[n1(n)]:[]}(n);return c=>!a.some(t=>c.urlAfterRedirects.match(t))}(this.config.exclude)),u2(W),T,(0,A.n)(u1=>this.presetPageTitleAndUrl(u1).pipe((0,P2.T)(({pageUrl:a1})=>({pageUrl:a1,event:u1})))),(0,y8.H)(({event:u1,pageUrl:a1})=>this.callInterceptors(u1).pipe((0,Me.M)(()=>this.trackPageView(a1))))).subscribe()},"MatomoRouter has already been initialized"),b&&!Array.isArray(b))throw function a2(){return new Error('An invalid MATOMO_ROUTER_INTERCEPTORS provider was configured. Did you forget to set "multi: true" ?')}()}init(){this.initialize()}callInterceptors(c){return this.interceptors?(0,C6.p)(this.interceptors.map(t=>{const l=t.beforePageTrack(c);return(null==l?(0,o1.of)(void 0):(0,p6.H)(l)).pipe((0,x8.s)(1),(0,Ve.U)(void 0))})).pipe((0,b1.u)(void 0),(0,Ve.U)(void 0)):(0,o1.of)(void 0)}presetPageTitleAndUrl(c){const t=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(c).pipe((0,Me.M)(i=>this.tracker.setDocumentTitle(i))):(0,o1.of)(void 0),l=this.pageUrlProvider.getCurrentPageUrl(c).pipe((0,Me.M)(i=>this.tracker.setCustomUrl(i)));return(0,ze.z)([t,l]).pipe((0,P2.T)(([i,u])=>({pageUrl:u})))}trackPageView(c){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking),this.tracker.setReferrerUrl(c)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(E2.Ix),e.KVO(e.Agw),e.KVO(j8),e.KVO(q2),e.KVO(l4),e.KVO(L8),e.KVO(xe,8))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Y0=(()=>{class n{constructor(c,t,l){this.router=c,!t&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:n,providers:[{provide:z6,useValue:c},l8(c.interceptors)]}}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(R2),e.KVO(n,12),e.KVO((0,e.Rfq)(()=>b4),12))}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return n})(),b4=(()=>{class n{constructor(c,t,l){this.router=c,!t&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:n,providers:[{provide:z6,useValue:c},l8(c.interceptors)]}}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(R2),e.KVO(Y0,12),e.KVO((0,e.Rfq)(()=>n),12))}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return n})(),E0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["error-message"]],inputs:{message:"message"},decls:8,vars:1,consts:[["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"h3",4),e.EFF(5,"Error"),e.k0s()(),e.j41(6,"div",5),e.EFF(7),e.k0s()()),2&t&&(e.R7$(7),e.SpI(" ",l.message," "))}})}}return n})();function n0(n,a,c){return()=>n.init().then(t=>{c.init(t.googleTagManagerId),a.initializeTracker({siteId:t.matomoId,trackerUrl:t.matomoUrl})})}var L3=y(8508),z2=y(3077),_4=y(7473),x0=y(452),o0=y(7387),q3=y(3836),M6=y(6964),$8=y(5586),I5=y(3636),h0=y(8058),g1=y(5312);function K8(n,a){if(1&n&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function I0(n,a){1&n&&(e.j41(0,"div",33),e.nrm(1,"div",34),e.k0s())}function Ue(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"div",37),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",39),e.k0s()(),e.joV(),e.j41(5,"div",40)(6,"h3",41),e.EFF(7,"Error loading quotes"),e.k0s(),e.j41(8,"p",42),e.EFF(9),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(9),e.JRh(c.error)}}function be(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",48),e.nrm(2,"path",49),e.k0s(),e.joV(),e.j41(3,"h3",50),e.EFF(4,"No quotes found"),e.k0s(),e.j41(5,"p",51),e.EFF(6,"No orders found"),e.k0s()())}function v8(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"div",54),e.EFF(3,"REQUEST DATE"),e.k0s(),e.j41(4,"div",55),e.EFF(5),e.k0s(),e.j41(6,"div",56),e.EFF(7,"PRODUCT"),e.k0s(),e.j41(8,"div",57),e.EFF(9,"STATUS"),e.k0s(),e.j41(10,"div",54),e.EFF(11,"ACTIONS"),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.JRh("customer"===c.selectedRole?"PROVIDER":"CUSTOMER")}}function ye(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"div",59)(2,"div",60),e.EFF(3),e.nI1(4,"date"),e.k0s(),e.j41(5,"div",61),e.EFF(6),e.k0s(),e.j41(7,"div",62),e.EFF(8),e.k0s(),e.j41(9,"div",57)(10,"span",63),e.EFF(11),e.k0s()(),e.j41(12,"div",64)(13,"button",65),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.openChat(l))}),e.qSk(),e.j41(14,"svg",66),e.nrm(15,"path",67),e.k0s()(),e.joV(),e.j41(16,"button",68),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.viewDetails(l))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",69),e.nrm(19,"path",70),e.k0s()()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.AVh("bg-gray-50",t.isQuoteFinalized(c))("dark:bg-gray-800",t.isQuoteFinalized(c))("hover:bg-gray-50",!t.isQuoteFinalized(c))("dark:hover:bg-gray-800",!t.isQuoteFinalized(c)),e.BMQ("data-quote-id",c.id),e.R7$(2),e.SpI(" ",e.i5U(4,22,c.quoteDate,"dd-MM-yyyy")," "),e.R7$(3),e.SpI(" ",t.getOtherPartyName(c)," "),e.R7$(2),e.SpI(" ",t.getProductName(c)," "),e.R7$(2),e.Y8G("ngClass",t.getStateClass(t.getPrimaryState(c))),e.R7$(),e.SpI(" ",t.getStatusLabel(c)," "),e.R7$(2),e.HbH(t.getIconButtonClass(c,"chat","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200")),e.Y8G("disabled",t.isActionDisabled(c,"chat")),e.R7$(3),e.AVh("opacity-50",t.isActionDisabled(c,"viewDetails"))("cursor-not-allowed",t.isActionDisabled(c,"viewDetails")),e.Y8G("disabled",t.isActionDisabled(c,"viewDetails"))}}function k8(n,a){if(1&n&&(e.j41(0,"div",43),e.DNE(1,be,7,0,"div",44)(2,v8,12,1,"div",45)(3,ye,20,25,"div",46),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("ngIf",0===c.filteredQuotes.length),e.R7$(),e.Y8G("ngIf",c.filteredQuotes.length>0),e.R7$(),e.Y8G("ngForOf",c.filteredQuotes)}}function r3(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",80)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.selectedState,l)||(i.selectedState=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",82),e.EFF(3),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("id","state-"+c),e.R50("ngModel",t.selectedState),e.Y8G("value",c),e.R7$(),e.Y8G("for","state-"+c),e.R7$(),e.SpI(" ",t.getStateDisplay(c)," ")}}function i5(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71)(1,"div",72)(2,"div",73)(3,"h3",74),e.EFF(4,"Update Quote State"),e.k0s(),e.j41(5,"div",75),e.DNE(6,r3,4,5,"div",76),e.k0s(),e.j41(7,"div",77)(8,"button",78),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showStateUpdate=!1)}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmStateUpdate())}),e.EFF(11," Update "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(6),e.Y8G("ngForOf",c.availableStates),e.R7$(4),e.Y8G("disabled",!c.selectedState)}}function X3(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71)(1,"div",72)(2,"div",73)(3,"h3",74),e.EFF(4),e.k0s(),e.j41(5,"p",83),e.EFF(6),e.k0s(),e.j41(7,"div",9)(8,"label",84),e.EFF(9," Completion Date "),e.k0s(),e.j41(10,"input",85),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.selectedDate,l)||(i.selectedDate=l),e.Njj(l)}),e.k0s(),e.j41(11,"p",86),e.EFF(12,"Date must be in the future"),e.k0s()(),e.j41(13,"div",87)(14,"button",78),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDatePickerModal())}),e.EFF(15," Cancel "),e.k0s(),e.j41(16,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmDateUpdate())}),e.EFF(17," Save Date "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(4),e.SpI(" ","requested"===c.datePickerType?"Add Requested Completion Date":"Add Expected Completion Date"," "),e.R7$(2),e.SpI(" ","requested"===c.datePickerType?"Select when you need this quote to be completed:":"Select when you expect to complete this quote:"," "),e.R7$(4),e.R50("ngModel",c.selectedDate),e.Y8G("min",c.getTomorrowDate()),e.R7$(6),e.Y8G("disabled",!c.selectedDate||!c.isDateValid())}}let e3=(()=>{class n{constructor(){this.router=(0,e.WQX)(E2.Ix),this.quoteService=(0,e.WQX)(L3.K),this.localStorage=(0,e.WQX)(z2.s),this.notificationService=(0,e.WQX)(_4.J),this.accountService=(0,e.WQX)(x0.O),this.productService=(0,e.WQX)(o0.F),this.quotes=[],this.filteredQuotes=[],this.loading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage="",this.quoteToDelete=null,this.showAcceptConfirm=!1,this.acceptConfirmMessage="",this.acceptConfirmCallback=null,this.showCancelConfirm=!1,this.cancelConfirmMessage="",this.cancelConfirmCallback=null,this.organizationNames=new Map,this.productNames=new Map,this.showStateUpdate=!1,this.quoteToUpdate=null,this.selectedState=null,this.availableStates=[h0.yz.PENDING,h0.yz.IN_PROGRESS,h0.yz.APPROVED,h0.yz.REJECTED,h0.yz.CANCELLED,h0.yz.ACCEPTED],this.QUOTE_STATUSES=h0.yz,this.selectedRole="customer",this.currentUserId=null,this.statusFilter="",this.showQuoteDetailsModal=!1,this.selectedQuoteId=null,this.showChatModal=!1,this.selectedChatQuoteId=null,this.showAttachmentModal=!1,this.selectedAttachmentQuote=null,this.showDatePickerModal=!1,this.selectedDateQuote=null,this.datePickerType=null,this.selectedDate=""}ngOnInit(){let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.currentUserId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.currentUserId=t.partyId}this.currentUserId?this.loadQuotes():this.error="User not authenticated"}loadQuotes(){this.currentUserId?(this.loading=!0,this.error=null,this.quoteService.getQuotesByUserAndRole(this.currentUserId,this.selectedRole).subscribe({next:c=>{this.quotes=c,this.enrichQuoteData(c),this.filterQuotesByStatus(),this.loading=!1},error:c=>{console.error("Failed to load quotes:",c),this.error="Failed to load quotes. Please try again.",this.loading=!1}})):this.error="User not authenticated"}isOrganizationId(c){return c.startsWith("urn:ngsi-ld:organization:")}enrichQuoteData(c){const t=new Set,l=new Set;if(c.forEach(i=>{i.relatedParty?.forEach(u=>{u.id&&!this.organizationNames.has(u.id)&&this.isOrganizationId(u.id)&&t.add(u.id)}),i.quoteItem?.forEach(u=>{u.productOffering?.id&&!this.productNames.has(u.productOffering.id)&&l.add(u.productOffering.id)})}),t.size>0){const i=Array.from(t).map(u=>this.accountService.getOrgInfo(u).then(C=>({id:u,name:C?.tradingName||C?.name||u}),()=>({id:u,name:u})));Promise.all(i).then(u=>{u.forEach(({id:C,name:b})=>{this.organizationNames.set(C,b)}),this.filteredQuotes=[...this.filteredQuotes]})}if(console.log("Product IDs to fetch:",Array.from(l)),l.size>0){const i=Array.from(l).map(u=>(console.log("Fetching product:",u),this.productService.getProductById(u).then(C=>(console.log("Product fetched:",u,C?.name),{id:u,name:C?.name||"Product Name Unavailable"}),C=>(console.error("Product fetch error:",u,C),{id:u,name:"Product Name Unavailable"}))));Promise.all(i).then(u=>{u.forEach(({id:C,name:b})=>{this.productNames.set(C,b)}),console.log("Product names map:",Array.from(this.productNames.entries())),this.filteredQuotes=[...this.filteredQuotes]})}}refreshQuotes(){this.loadQuotes()}selectRole(c){this.selectedRole=c,this.loadQuotes()}getRoleTabClass(c){return this.selectedRole===c?"bg-white dark:bg-gray-600 text-blue-400 shadow-sm":"text-gray-500 hover:text-gray-700 dark:hover:text-gray-200"}filterQuotesByStatus(){this.filteredQuotes=this.statusFilter?this.quotes.filter(c=>this.getPrimaryState(c)===this.statusFilter):[...this.quotes],this.filteredQuotes.sort((c,t)=>{const l=c.quoteDate?new Date(c.quoteDate).getTime():0;return(t.quoteDate?new Date(t.quoteDate).getTime():0)-l})}get filterStatusOptions(){const c="customer"===this.selectedRole?h0.D5:h0.Wc;return[{value:h0.yz.PENDING,label:c.PENDING},{value:h0.yz.IN_PROGRESS,label:c.IN_PROGRESS},{value:h0.yz.APPROVED,label:c.APPROVED},{value:h0.yz.ACCEPTED,label:c.ACCEPTED},{value:h0.yz.CANCELLED,label:c.CANCELLED},{value:h0.yz.REJECTED,label:c.REJECTED}]}createQuote(){this.router.navigate(["/quotes/new"])}viewDetails(c){this.selectedQuoteId=c.id,this.showQuoteDetailsModal=!0}viewQuote(c){this.selectedQuoteId=c.id,this.showQuoteDetailsModal=!0}closeQuoteDetailsModal(){this.showQuoteDetailsModal=!1,this.selectedQuoteId=null}onQuoteUpdated(c){const t=this.quotes.findIndex(u=>u.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus());const l=this.extractShortId(c.id),i=this.getPrimaryState(c);this.notificationService.showSuccess(`Quote ${l} has been updated to ${i}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}onAttachmentUploaded(c){const t=this.quotes.findIndex(l=>l.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus()),"seller"===this.selectedRole&&this.getPrimaryState(c)===h0.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.APPROVED).subscribe({next:l=>{const i=this.quotes.findIndex(C=>C.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus());const u=this.extractShortId(c.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${u} has been approved after PDF upload.`)},error:l=>{console.error("Error updating quote status to approved:",l),this.notificationService.showError(`Error updating quote status: ${l.message||"Unknown error"}`)}}))}updateQuoteState(c){this.quoteToUpdate=c,this.selectedState=c.state||null,this.showStateUpdate=!0}confirmStateUpdate(){this.quoteToUpdate&&this.selectedState&&this.quoteService.updateQuoteState(this.quoteToUpdate.id,this.selectedState).subscribe({next:c=>{const t=this.quotes.findIndex(l=>l.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus()),this.showStateUpdate=!1,this.notificationService.showSuccess("Quote state updated successfully")},error:c=>{console.error("Failed to update quote state:",c),this.notificationService.showError("Failed to update quote state")}})}confirmDelete(c){this.quoteToDelete=c,this.deleteConfirmMessage=`Are you sure you want to delete Quote ${this.extractShortId(c.id)}? This action cannot be undone.`,this.showDeleteConfirm=!0}deleteQuote(){this.quoteToDelete&&this.quoteService.deleteQuote(this.quoteToDelete.id).subscribe({next:()=>{this.quotes=this.quotes.filter(c=>c.id!==this.quoteToDelete.id),this.filterQuotesByStatus(),this.showDeleteConfirm=!1,this.notificationService.showSuccess("Quote deleted successfully")},error:c=>{console.error("Failed to delete quote:",c),this.notificationService.showError("Failed to delete quote")}})}openChat(c){this.selectedChatQuoteId=c.id,this.showChatModal=!0}downloadAttachment(c){this.quoteService.downloadAttachment(c).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:t=>{console.error("Error downloading attachment:",t),this.notificationService.showError(t.message||"Error downloading attachment")}})}addAttachment(c){this.selectedAttachmentQuote=c,this.showAttachmentModal=!0}acceptQuote(c){const t=this.extractShortId(c.id);this.acceptConfirmMessage="Are you sure you want to accept this request?",this.acceptConfirmCallback=()=>{console.log("Accepting quote request:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.IN_PROGRESS).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quote request successfully accepted"),this.notificationService.showSuccess(`Quote request ${t} has been accepted and is now in progress.`)},error:l=>{console.error("Error accepting quote request:",l),this.notificationService.showError(`Error accepting quote request: ${l.message||"Unknown error"}`)}}),this.showAcceptConfirm=!1},this.showAcceptConfirm=!0}acceptQuoteCustomer(c){const t=this.extractShortId(c.id);this.acceptConfirmMessage="Are you sure you want to accept the quotation?",this.acceptConfirmCallback=()=>{console.log("Customer accepting quotation:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.ACCEPTED).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by customer"),this.notificationService.showSuccess(`Quotation ${t} has been accepted successfully.`)},error:l=>{console.error("Error accepting quotation:",l),this.notificationService.showError(`Error accepting quotation: ${l.message||"Unknown error"}`)}}),this.showAcceptConfirm=!1},this.showAcceptConfirm=!0}addRequestedDate(c){this.selectedDateQuote=c,this.datePickerType="requested",this.selectedDate="",this.showDatePickerModal=!0}addExpectedDate(c){this.selectedDateQuote=c,this.datePickerType="expected",this.selectedDate="",this.showDatePickerModal=!0}closeDatePickerModal(){this.showDatePickerModal=!1,this.selectedDateQuote=null,this.datePickerType=null,this.selectedDate=""}getTomorrowDate(){const c=new Date;return c.setDate(c.getDate()+1),c.toISOString().split("T")[0]}isDateValid(){if(!this.selectedDate)return!1;const c=new Date(this.selectedDate),t=new Date;return t.setHours(0,0,0,0),c>t}confirmDateUpdate(){if(!(this.selectedDateQuote&&this.datePickerType&&this.selectedDate&&this.isDateValid()))return;const c=this.extractShortId(this.selectedDateQuote.id),t=this.datePickerType,l=new Date(this.selectedDate),i=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log(`Setting ${t} completion date for quote:`,this.selectedDateQuote.id,"Date:",i),this.quoteService.updateQuoteDate(this.selectedDateQuote.id,i,t).subscribe({next:u=>{const C=this.quotes.findIndex(b=>b.id===u.id);-1!==C&&(this.quotes[C]=u,this.filterQuotesByStatus()),console.log(`${t} completion date successfully updated`),this.notificationService.showSuccess(`${"requested"===t?"Requested":"Expected"} completion date for quote ${c} has been set successfully.`),this.closeDatePickerModal()},error:u=>{console.error(`Error setting ${t} completion date:`,u),this.notificationService.showError(`Error setting ${t} completion date: ${u.message||"Unknown error"}`)}})}cancelQuote(c){const t=this.extractShortId(c.id);this.cancelConfirmMessage=`Are you sure you want to cancel quote ${t}? This action cannot be undone and will disable all other quote actions.`,this.cancelConfirmCallback=()=>{console.log("Cancelling quote:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.CANCELLED).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${t} has been cancelled successfully.`)},error:l=>{console.error("Error cancelling quote:",l),this.notificationService.showError(`Error cancelling quote: ${l.message||"Unknown error"}`)}}),this.showCancelConfirm=!1},this.showCancelConfirm=!0}createOffer(c){this.router.navigate(["/my-offerings"],{state:{quoteId:c.id}})}extractShortId(c){return c?c.length>8?c.slice(-8):c:"N/A"}getOtherPartyName(c){if(!c.relatedParty||0===c.relatedParty.length)return"Unknown";const t="customer"===this.selectedRole?g1.c.SELLER_ROLE:g1.c.BUYER_ROLE,l=c.relatedParty.find(u=>u.role?.toLowerCase()===t.toLowerCase());if(!l?.id)return"Unknown";const i=this.organizationNames.get(l.id);return i&&i!==l.id?i:"Loading..."}getProductName(c){if(!c.quoteItem||0===c.quoteItem.length)return"Unknown Product";const t=c.quoteItem[0],l=t.productOffering?.id;return t.productOffering?.name?t.productOffering.name:l?this.productNames.get(l)||"Loading...":t.product?.name?t.product.name:"Unknown Product"}getPrimaryState(c){return Array.isArray(c.quoteItem)&&c.quoteItem.length>0?c.quoteItem[0].state||"unknown":c.state?c.state:"unknown"}getStatusLabel(c){const t=this.getPrimaryState(c),l="customer"===this.selectedRole?h0.D5:h0.Wc;switch(t){case h0.yz.PENDING:return l.PENDING;case h0.yz.IN_PROGRESS:return l.IN_PROGRESS;case h0.yz.APPROVED:return l.APPROVED;case h0.yz.ACCEPTED:return l.ACCEPTED;case h0.yz.CANCELLED:return l.CANCELLED;case h0.yz.REJECTED:return l.REJECTED;default:return t}}hasAttachment(c){return Array.isArray(c.quoteItem)&&c.quoteItem.some(t=>t.attachment&&t.attachment.length>0)}isQuoteCancelled(c){return c.quoteItem?.some(t=>t.state===h0.yz.CANCELLED)||!1}isQuoteAccepted(c){return c.quoteItem?.some(t=>t.state===h0.yz.ACCEPTED)||!1}isQuoteFinalized(c){return this.isQuoteCancelled(c)||this.isQuoteAccepted(c)}isActionDisabled(c,t){const l=this.isQuoteCancelled(c),u=(this.isQuoteAccepted(c),this.isQuoteFinalized(c));switch(t){case"viewDetails":case"downloadAttachment":return l;case"chat":case"accept":case"acceptCustomer":case"addRequestedDate":case"addExpectedDate":default:return!1;case"addAttachment":case"cancel":return u}}getButtonClass(c,t){const l="px-2 py-1 text-xs font-medium transition-colors rounded border";return this.isActionDisabled(c,t)?`${l} text-gray-400 cursor-not-allowed border-gray-200`:"viewDetails"===t?`${l} text-blue-600 hover:text-blue-800 border-blue-200 hover:bg-blue-50`:`${l} text-indigo-600 hover:text-indigo-800 border-indigo-200 hover:bg-indigo-50`}getIconButtonClass(c,t,l){const i="p-1.5 text-xs cursor-pointer rounded hover:bg-gray-100 transition-colors";return this.isActionDisabled(c,t)?`${i} text-gray-400 cursor-not-allowed hover:bg-transparent`:`${i} ${l}`}getActionTitle(c,t){return this.isActionDisabled(c,t)?"Action disabled - quote is "+(this.isQuoteCancelled(c)?"cancelled":"accepted"):""}getStateDisplay(c){return c?{[h0.yz.PENDING]:"Pending",[h0.yz.IN_PROGRESS]:"In Progress",[h0.yz.APPROVED]:"Approved",[h0.yz.REJECTED]:"Rejected",[h0.yz.CANCELLED]:"Cancelled",[h0.yz.ACCEPTED]:"Accepted"}[c]||c:"Unknown"}getStateClass(c){switch(c){case h0.yz.PENDING:return"status-pending";case h0.yz.IN_PROGRESS:return"status-inProgress";case h0.yz.APPROVED:return"status-approved";case h0.yz.REJECTED:return"status-rejected";case h0.yz.CANCELLED:return"status-cancelled";case h0.yz.ACCEPTED:return"status-accepted";default:return"status-unknown"}}canUpdateState(c){return c!==h0.yz.CANCELLED&&c!==h0.yz.ACCEPTED}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-list"]],standalone:!0,features:[e.aNF],decls:42,vars:27,consts:[[1,"w-full","mx-auto","px-6","py-8"],[1,"flex","justify-between","items-center","mb-6"],[1,"flex","items-center","gap-3"],[1,"text-2xl","font-bold","text-gray-900","dark:text-white"],["href","https://knowledgebase.dome-marketplace.eu/books/tailored-offering-guide","target","_blank","rel","noopener noreferrer","title","Click here for the guide of the Tailored process",1,"text-gray-500","hover:text-gray-700","dark:text-gray-400","dark:hover:text-gray-200","transition-colors"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule","evenodd"],[1,"flex","space-x-3"],[1,"bg-gray-600","text-white","px-4","py-2","rounded-md","hover:bg-gray-700","focus:outline-none","focus:ring-2","focus:ring-gray-500","focus:ring-offset-2","disabled:opacity-50",3,"click","disabled"],[1,"mb-6"],[1,"flex","space-x-1","bg-gray-100","dark:bg-gray-700","p-1","rounded-lg"],[1,"flex-1","px-8","py-4","text-2xl","font-medium","rounded-md","transition-colors",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6","inline","mr-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],[1,"flex","items-center","space-x-4"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5","text-gray-500","dark:text-gray-100"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"],[1,"text-sm","font-medium","text-gray-700","dark:text-gray-100"],[1,"form-select","rounded-md","border-gray-300","dark:bg-gray-700","dark:border-gray-800","dark:text-white","shadow-sm","focus:border-indigo-500","focus:ring-indigo-500",3,"ngModelChange","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],["class","bg-white dark:bg-gray-700 shadow-md rounded-lg overflow-hidden",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],["title","Accept Quote","confirmText","Accept","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-green-600 border border-transparent rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",3,"confirm","cancel","isOpen","message"],["title","Cancel Quote","confirmText","Cancel Quote","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],["class","fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",4,"ngIf"],[3,"close","quoteUpdated","isOpen","quoteId","currentUserRole","currentUserId"],[3,"close","isOpen","quoteId"],[3,"close","uploadSuccess","isOpen","quote"],[3,"value"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[1,"flex"],[1,"flex-shrink-0"],["viewBox","0 0 20 20","fill","currentColor",1,"h-5","w-5","text-red-400"],["fill-rule","evenodd","d","M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule","evenodd"],[1,"ml-3"],[1,"text-sm","font-medium","text-red-800"],[1,"mt-1","text-sm","text-red-700"],[1,"bg-white","dark:bg-gray-700","shadow-md","rounded-lg","overflow-hidden"],["class","text-center py-12",4,"ngIf"],["class","bg-gray-50 dark:bg-gray-800 px-6 py-3",4,"ngIf"],["class","quote-row",4,"ngFor","ngForOf"],[1,"text-center","py-12"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"mx-auto","h-12","w-12","text-gray-400"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"],[1,"mt-2","text-sm","font-medium","text-gray-900"],[1,"mt-1","text-sm","text-gray-500"],[1,"bg-gray-50","dark:bg-gray-800","px-6","py-3"],[1,"grid","grid-cols-12","gap-4","text-xs","font-medium","text-gray-500","dark:text-gray-300","uppercase","tracking-wider"],[1,"col-span-2"],[1,"col-span-3"],[1,"col-span-4"],[1,"col-span-1"],[1,"quote-row"],[1,"grid","grid-cols-12","gap-4","items-center","px-6","py-4","border-b","border-gray-100","dark:border-gray-600","transition-colors"],[1,"col-span-2","text-sm","text-gray-600","dark:text-gray-400"],[1,"col-span-3","text-sm","font-medium","text-gray-900","dark:text-white"],[1,"col-span-4","text-sm","text-gray-700","dark:text-gray-300"],[1,"status-badge","px-2","inline-flex","text-xs","leading-5","font-semibold","rounded-full",3,"ngClass"],[1,"col-span-2","flex","items-center","gap-2"],["title","Chat",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.77 9.77 0 01-4-.8L3 21l1.8-4A7.96 7.96 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"px-3","py-1","text-sm","font-medium","text-blue-600","dark:text-blue-400","hover:text-blue-800","dark:hover:text-blue-300","border","border-blue-200","dark:border-blue-700","rounded-md","hover:bg-blue-50","dark:hover:bg-blue-900/20","transition-colors","flex","items-center","gap-1",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"fixed","inset-0","bg-gray-600","bg-opacity-50","overflow-y-auto","h-full","w-full","z-50"],[1,"relative","top-20","mx-auto","p-5","border","w-96","shadow-lg","rounded-md","bg-white"],[1,"mt-3"],[1,"text-lg","font-medium","text-gray-900","mb-4"],[1,"space-y-3"],["class","flex items-center",4,"ngFor","ngForOf"],[1,"mt-6","flex","justify-end","space-x-3"],[1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500",3,"click"],[1,"px-4","py-2","text-sm","font-medium","text-white","bg-indigo-600","border","border-transparent","rounded-md","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500","disabled:opacity-50",3,"click","disabled"],[1,"flex","items-center"],["type","radio",1,"focus:ring-indigo-500","h-4","w-4","text-indigo-600","border-gray-300",3,"ngModelChange","id","ngModel","value"],[1,"ml-3","block","text-sm","font-medium","text-gray-700",3,"for"],[1,"text-sm","text-gray-600","mb-4"],["for","completion-date",1,"block","text-sm","font-medium","text-gray-700","mb-2"],["id","completion-date","type","date",1,"w-full","border","border-gray-300","rounded-md","px-3","py-2","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"ngModelChange","ngModel","min"],[1,"text-xs","text-gray-500","mt-1"],[1,"flex","justify-end","space-x-3"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4,"Tailored offerings Dashboard"),e.k0s(),e.j41(5,"a",4),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s()()(),e.joV(),e.j41(8,"div",7)(9,"button",8),e.bIt("click",function(){return l.refreshQuotes()}),e.EFF(10),e.k0s()()(),e.j41(11,"div",9)(12,"div",10)(13,"button",11),e.bIt("click",function(){return l.selectRole("customer")}),e.qSk(),e.j41(14,"svg",12),e.nrm(15,"path",13),e.k0s(),e.EFF(16," As Customer "),e.k0s(),e.joV(),e.j41(17,"button",11),e.bIt("click",function(){return l.selectRole("seller")}),e.qSk(),e.j41(18,"svg",12),e.nrm(19,"path",14),e.k0s(),e.EFF(20," As Provider "),e.k0s()()(),e.joV(),e.j41(21,"div",9)(22,"div",15),e.qSk(),e.j41(23,"svg",16),e.nrm(24,"path",17),e.k0s(),e.joV(),e.j41(25,"span",18),e.EFF(26,"Filter by status"),e.k0s(),e.j41(27,"select",19),e.mxI("ngModelChange",function(u){return e.DH7(l.statusFilter,u)||(l.statusFilter=u),u}),e.bIt("ngModelChange",function(){return l.filterQuotesByStatus()}),e.j41(28,"option",20),e.EFF(29,"All Statuses"),e.k0s(),e.DNE(30,K8,2,2,"option",21),e.k0s()()(),e.DNE(31,I0,2,0,"div",22)(32,Ue,10,1,"div",23)(33,k8,4,3,"div",24),e.k0s(),e.j41(34,"app-confirm-dialog",25),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s(),e.j41(35,"app-confirm-dialog",26),e.bIt("confirm",function(){return l.acceptConfirmCallback&&l.acceptConfirmCallback()})("cancel",function(){return l.showAcceptConfirm=!1}),e.k0s(),e.j41(36,"app-confirm-dialog",27),e.bIt("confirm",function(){return l.cancelConfirmCallback&&l.cancelConfirmCallback()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s(),e.DNE(37,i5,12,2,"div",28),e.j41(38,"app-quote-details-modal",29),e.bIt("close",function(){return l.closeQuoteDetailsModal()})("quoteUpdated",function(u){return l.onQuoteUpdated(u)}),e.k0s(),e.j41(39,"app-chat-modal",30),e.bIt("close",function(){return l.closeChatModal()}),e.k0s(),e.j41(40,"app-attachment-modal",31),e.bIt("close",function(){return l.closeAttachmentModal()})("uploadSuccess",function(u){return l.onAttachmentUploaded(u)}),e.k0s(),e.DNE(41,X3,18,5,"div",28)),2&t&&(e.R7$(9),e.Y8G("disabled",l.loading),e.R7$(),e.SpI(" ",l.loading?"Loading...":"Refresh"," "),e.R7$(3),e.HbH(l.getRoleTabClass("customer")),e.R7$(4),e.HbH(l.getRoleTabClass("seller")),e.R7$(10),e.R50("ngModel",l.statusFilter),e.R7$(3),e.Y8G("ngForOf",l.filterStatusOptions),e.R7$(),e.Y8G("ngIf",l.loading),e.R7$(),e.Y8G("ngIf",l.error),e.R7$(),e.Y8G("ngIf",!l.loading&&!l.error),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage),e.R7$(),e.Y8G("isOpen",l.showAcceptConfirm)("message",l.acceptConfirmMessage),e.R7$(),e.Y8G("isOpen",l.showCancelConfirm)("message",l.cancelConfirmMessage),e.R7$(),e.Y8G("ngIf",l.showStateUpdate),e.R7$(),e.Y8G("isOpen",l.showQuoteDetailsModal)("quoteId",l.selectedQuoteId)("currentUserRole",l.selectedRole)("currentUserId",l.currentUserId||""),e.R7$(),e.Y8G("isOpen",l.showChatModal)("quoteId",l.selectedChatQuoteId),e.R7$(),e.Y8G("isOpen",l.showAttachmentModal)("quote",l.selectedAttachmentQuote),e.R7$(),e.Y8G("ngIf",l.showDatePickerModal))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,p.YN,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.vS,q3.w,M6.h,$8.d,I5.w],styles:[".status-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:500}.status-pending[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity, 1))}.status-inProgress[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.status-approved[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity, 1))}.status-rejected[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity, 1))}.status-cancelled[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.status-accepted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.status-unknown[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}"]})}}return n})();var A2=y(604);let O8=(()=>{class n{constructor(){this.faFileCertificate=A2.LP,this.faBadgeCheck=A2.Zsp,this.faHandHoldingCircleDollar=A2.EEq,this.faChartNetwork=A2.Qux,this.domePublish=g1.c.DOME_PUBLISH_LINK}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-about-dome"]],standalone:!0,features:[e.aNF],decls:86,vars:58,consts:[[1,"bg-secondary-50","dark:bg-secondary-200"],["id","jumbo",1,"w-full"],[1,"pt-8","pb-32","px-4","w-full","text-left","lg:pt-16","lg:px-12","bg-cover","bg-right-bottom","items-center","justify-between",2,"background-image","url(assets/images/bg_1_shadow.png)"],[1,"flex","flex-row","mx-auto","max-w-screen-xl"],[1,"flex","flex-col"],[1,"mb-4","text-left","text-4xl","font-extrabold","tracking-tight","md:text-5xl","lg:text-6xl","text-secondary-50"],[1,"text-left","text-lg","font-normal","lg:text-xl","text-secondary-50"],[1,"w-full","hidden","md:flex"],[1,"relative","-top-20","items-center","mx-auto","max-w-screen-xl","w-full","items-center","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","p-8"],[1,"mb-4","text-left","text-2xl","font-extrabold","tracking-tight","md:text-3xl","lg:text-4xl","dark:text-white","text-secondary-100"],[1,"flex","flex-col","md:flex-row","justify-between","mb-4"],[1,"p-2","md:w-1/2","mb-4"],[1,"dark:text-gray-300","text-gray-700","mb-2"],[1,"dark:text-gray-300","text-gray-700"],["src","assets/images/about-dome.png",1,"md:w-1/3","z-10","dark:text-white"],[1,"mb-4","text-left","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","dark:text-white","text-secondary-100"],[1,"flex","flex-col","md:flex-row","justify-between","gap-x-8"],[1,"flex","flex-col","md:w-1/3"],[1,"fa-2xl","text-center","text-primary-100","dark:text-primary-50","align-middle","mb-2",3,"icon"],[1,"flex","flex-col","justify-center","w-full","items-center","p-8","bg-white","dark:bg-secondary-100"],[1,"mb-4","text-center","text-2xl","font-extrabold","tracking-tight","md:text-3xl","lg:text-4xl","dark:text-white","text-secondary-100","mb-4"],[1,"dark:text-gray-300","text-gray-700","mb-4","text-center","w-3/4"],[1,"mb-4","text-left","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","dark:text-white","text-secondary-100","mb-4"],["target","_blank",1,"flex","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"href"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"mr-2","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"py-8","px-4","mx-auto","max-w-screen-xl","lg:py-16"],[1,"bg-cover","bg-right-bottom","bg-opacity-25","rounded-lg",2,"background-image","url(assets/images/bg_2_shadow.png)"],[1,"px-5","py-5","bg-blue-900/20","rounded-lg","justify-center"],[1,"pb-2","text-5xl","font-extrabold","text-white","mb-4","text-center","pt-8"],[1,"grid","grid-cols-1","lg:grid-cols-3","lg:gap-4","pt-4","pb-4","pl-8","pr-8","lg:pl-16","lg:pr-16"],[1,"lg:m-2"],[1,"lg:mb-8","text-base","font-normal","text-gray-300","text-start"],[1,"mb-4","text-center","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","text-white","mb-4"],[1,"flex","justify-center"],["href","https://dome-project.eu/","target","_blank",1,"w-fit","flex","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",6),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"div",7),e.k0s()()(),e.j41(12,"div",8)(13,"h2",9),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",10)(17,"div",11)(18,"p",12),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"p",13),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.nrm(24,"img",14),e.k0s(),e.j41(25,"h3",15),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",16)(29,"div",17),e.nrm(30,"fa-icon",18),e.j41(31,"p",12),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div",17),e.nrm(35,"fa-icon",18),e.j41(36,"p",12),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"div",17),e.nrm(40,"fa-icon",18),e.j41(41,"p",12),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()(),e.j41(44,"div",19)(45,"h2",20),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"p",21),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.j41(51,"h3",22),e.EFF(52,"Don\u2019t miss this opportunity and publish your offerings now!"),e.k0s(),e.j41(53,"a",23),e.qSk(),e.j41(54,"svg",24),e.nrm(55,"path",25),e.k0s(),e.EFF(56),e.nI1(57,"translate"),e.k0s()(),e.joV(),e.j41(58,"div",26)(59,"div",27)(60,"div",28)(61,"h2",29),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"div",30)(65,"div",31)(66,"p",32),e.EFF(67),e.nI1(68,"translate"),e.k0s()(),e.j41(69,"div",31)(70,"p",32),e.EFF(71),e.nI1(72,"translate"),e.k0s()(),e.j41(73,"div",31)(74,"p",32),e.EFF(75),e.nI1(76,"translate"),e.k0s()()(),e.j41(77,"h3",33),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"div",34)(81,"a",35),e.qSk(),e.j41(82,"svg",24),e.nrm(83,"path",25),e.k0s(),e.EFF(84),e.nI1(85,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(6),e.JRh(e.bMT(7,22,"ABOUT_DOME._title")),e.R7$(3),e.JRh(e.bMT(10,24,"ABOUT_DOME._subtitle")),e.R7$(5),e.JRh(e.bMT(15,26,"ABOUT_DOME._whatisdome")),e.R7$(5),e.JRh(e.bMT(20,28,"ABOUT_DOME._description")),e.R7$(3),e.JRh(e.bMT(23,30,"ABOUT_DOME._description2")),e.R7$(4),e.JRh(e.bMT(27,32,"ABOUT_DOME._benefits")),e.R7$(4),e.Y8G("icon",l.faChartNetwork),e.R7$(2),e.JRh(e.bMT(33,34,"ABOUT_DOME._trusted")),e.R7$(3),e.Y8G("icon",l.faBadgeCheck),e.R7$(2),e.JRh(e.bMT(38,36,"ABOUT_DOME._verified")),e.R7$(3),e.Y8G("icon",l.faHandHoldingCircleDollar),e.R7$(2),e.JRh(e.bMT(43,38,"ABOUT_DOME._transactions")),e.R7$(4),e.JRh(e.bMT(47,40,"ABOUT_DOME._whydome")),e.R7$(3),e.SpI(" ",e.bMT(50,42,"ABOUT_DOME._whydescription")," "),e.R7$(4),e.FS9("href",l.domePublish,e.B4B),e.R7$(3),e.SpI(" ",e.bMT(57,44,"ABOUT_DOME._publish")," "),e.R7$(6),e.JRh(e.bMT(63,46,"ABOUT_DOME._central")),e.R7$(5),e.JRh(e.bMT(68,48,"ABOUT_DOME._aligned")),e.R7$(4),e.JRh(e.bMT(72,50,"ABOUT_DOME._singlepoint")),e.R7$(4),e.JRh(e.bMT(76,52,"ABOUT_DOME._focus")),e.R7$(3),e.JRh(e.bMT(79,54,"ABOUT_DOME._explore")),e.R7$(6),e.SpI(" ",e.bMT(85,56,"ABOUT_DOME._domeproject")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9]})}}return n})();var Ge=y(7586),$2=y.n(Ge),e0=y(3207);class W3{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}createBlogEntry(a){return this.http.post(`${W3.BASE_URL}/domeblog`,a)}getBlogEntries(a){let c=`${W3.BASE_URL}/domeblog`,t=new g.Nl;return a?.contentType&&(t=t.set("contentType",a.contentType)),a?.page&&(t=t.set("page",a.page)),a?.limit&&(t=t.set("limit",a.limit)),(0,e0.s)(this.http.get(c,{params:t}))}getBlogEntryById(a){return(0,e0.s)(this.http.get(`${W3.BASE_URL}/domeblog/${a}`))}updateBlogEntry(a,c){return(0,e0.s)(this.http.patch(`${W3.BASE_URL}/domeblog/${c}`,a))}deleteBlogEntry(a){return(0,e0.s)(this.http.delete(`${W3.BASE_URL}/domeblog/${a}`))}static{this.\u0275fac=function(c){return new(c||W3)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:W3,factory:W3.\u0275fac,providedIn:"root"})}}function k7(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToUpdate())}),e.qSk(),e.j41(2,"svg",25),e.nrm(3,"path",26),e.k0s()(),e.joV(),e.j41(4,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openDeleteDialog())}),e.qSk(),e.j41(5,"svg",28),e.nrm(6,"path",29),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.Y8G("disabled",c.deleting)}}function r5(n,a){if(1&n&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function gc(n,a){if(1&n&&(e.j41(0,"div",30),e.Z7z(1,r5,2,1,"span",31,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c)}}function ee(n,a){1&n&&e.DNE(0,gc,3,0,"div",30),2&n&&e.vxM(0,a.length>0?0:-1)}function P5(n,a){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"img",32),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("src",a,e.B4B)("alt",c.entry.title+" featured image")}}let Rn=(()=>{class n{constructor(c,t,l,i,u,C){this.route=c,this.router=t,this.domeBlogService=l,this.localStorage=i,this.titleService=u,this.metaService=C,this.entry={},this.blogId="",this.partyId="",this.checkAdmin=!1,this.contentType="blog",this.routeBase="/blog",this.deleting=!1,this.showDeleteConfirm=!1,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.applyRouteConfiguration(),c.initPartyInfo(),c.blogId=c.route.snapshot.paramMap.get("slugOrId")||c.route.snapshot.paramMap.get("id"),c.entry=yield c.getEntryBySlugOrId(c.blogId),c.applySeoMetadata()})()}goBack(){this.router.navigate([this.routeBase])}goToUpdate(){const c=this.entry?._id||(this.isObjectId(this.blogId)?this.blogId:null);c&&this.router.navigate(["/blog-entry/",c],{queryParams:{type:this.contentType}})}canManageEntry(){return this.checkAdmin}openDeleteDialog(){!(this.entry?._id||this.isObjectId(this.blogId)&&this.blogId)||this.deleting||(this.deleteConfirmMessage=`Are you sure you want to delete "${this.entry?.title||"this post"}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){const t=c.entry?._id||(c.isObjectId(c.blogId)?c.blogId:null);if(t){c.closeDeleteDialog(),c.deleting=!0;try{yield c.domeBlogService.deleteBlogEntry(t),c.goBack()}catch(l){console.error("There was an error while deleting the entry!",l)}finally{c.deleting=!1}}else c.closeDeleteDialog()})()}getEntryBySlugOrId(c){var t=this;return(0,C1.A)(function*(){if(!c)return{};if(t.isObjectId(c))try{return yield t.domeBlogService.getBlogEntryById(c)}catch{}try{const l=yield t.domeBlogService.getBlogEntries({contentType:t.contentType}),u=t.extractEntries(l).find(C=>C.slug===c);if(u?._id)try{return yield t.domeBlogService.getBlogEntryById(u._id)}catch{return u}if(u)return u}catch{}try{return yield t.domeBlogService.getBlogEntryById(c)}catch{return{}}})()}isObjectId(c){return/^[a-f\d]{24}$/i.test(c)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.checkAdmin=c.roles.some(t=>"admin"===t.name)}}applySeoMetadata(){const c=(this.entry?.title||"").toString().trim(),t=this.getEntryMetaDescription();c&&this.titleService.setTitle(c),t&&this.metaService.updateTag({name:"description",content:t})}applyRouteConfiguration(){const c=this.route?.snapshot.data?.contentType;this.contentType=c||"blog",this.routeBase="news"===this.contentType?"/news":"/blog"}extractEntries(c){if(Array.isArray(c))return c;const t=c?.items||c?.entries||c?.data||c?.results||c?.content;return Array.isArray(t)?t:[]}getEntryMetaDescription(){const c=(this.entry?.metaDescription||"").toString().trim();if(c)return this.truncateText(c,160);const t=(this.entry?.excerpt||"").toString().trim();if(t)return this.truncateText(t,160);const l=this.stripMarkdown((this.entry?.content||"").toString());return this.truncateText(l,160)}getFeaturedImage(){return"string"==typeof this.entry?.featuredImage&&this.entry.featuredImage.trim().length>0?this.entry.featuredImage.trim():"string"==typeof this.entry?.featuredImage?.url&&this.entry.featuredImage.url.trim().length>0?this.entry.featuredImage.url.trim():null}getEntryTags(){const c=this.entry?.tags;return Array.isArray(c)?c.map(t=>(t??"").toString().trim()).filter(t=>t.length>0):"string"==typeof c?c.split(",").map(t=>t.trim()).filter(t=>t.length>0):[]}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,t){return!c||c.length<=t?c:`${c.slice(0,t).trim()}...`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(W3),e.rXU(z2.s),e.rXU(m.hE),e.rXU(m.W8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-blog-entry-detail"]],standalone:!0,features:[e.aNF],decls:32,vars:15,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"pb-4"],[1,"flex","px-5","py-3","shadow-lg","text-gray-700","border","border-gray-200","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","p-4","pb-16","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","w-full","max-w-screen-xl","rounded-lg","border","border-gray-300","bg-white","p-6","shadow-lg","dark:border-secondary-300","dark:bg-secondary-100","md:p-8","lg:p-10"],[1,"mb-4","flex","items-start","justify-between","gap-4"],[1,"text-3xl","font-bold","text-secondary-200","dark:text-white","break-words"],[1,"flex","items-center","gap-2"],[1,"mb-6","text-[#4C5A6B]","dark:text-secondary-50"],[1,"text-[#2D58A7]","dark:text-primary-50"],[1,"mb-6","flex","justify-center"],[1,"text-gray-700","dark:text-secondary-50","whitespace-pre-line","break-words",3,"data"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","title","Edit entry",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete entry",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"mb-6","flex","flex-wrap","gap-2"],[1,"inline-flex","items-center","rounded-md","border","border-blue-200","bg-blue-50","px-2.5","py-1","text-xs","font-medium","text-blue-700","dark:border-blue-500/40","dark:bg-blue-900/30","dark:text-blue-200"],[1,"max-h-[300px]","w-full","max-w-3xl","rounded-lg","border","border-gray-300","object-contain","bg-gray-50","p-2","dark:border-gray-700","dark:bg-secondary-300",3,"src","alt"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9," Back "),e.k0s()(),e.joV(),e.j41(10,"li",9)(11,"div",10),e.qSk(),e.j41(12,"svg",11),e.nrm(13,"path",12),e.k0s(),e.joV(),e.j41(14,"span",13),e.EFF(15,"Entry details"),e.k0s()()()()()()(),e.j41(16,"div",14)(17,"div",15)(18,"div",16)(19,"h1",17),e.EFF(20),e.k0s(),e.DNE(21,k7,7,1,"div",18),e.k0s(),e.j41(22,"p",19),e.EFF(23," Created by "),e.j41(24,"b",20),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"date"),e.k0s(),e.DNE(28,ee,1,1)(29,P5,2,2,"div",21),e.nrm(30,"markdown",22),e.k0s()()(),e.j41(31,"app-confirm-dialog",23),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t){let i,u;e.R7$(20),e.JRh(l.entry.title),e.R7$(),e.vxM(21,l.canManageEntry()?21:-1),e.R7$(4),e.SpI(" ",l.entry.author," "),e.R7$(),e.SpI(" on ",e.i5U(27,12,l.entry.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(28,(i=l.getEntryTags())?28:-1,i),e.R7$(),e.vxM(29,(u=l.getFeaturedImage())?29:-1,u),e.R7$(),e.Y8G("data",l.entry.content),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass)}},dependencies:[_.MD,_.vh,N0,q3.w]})}}return n})(),U2=(()=>{class n{constructor(){this.eventMessageSubject=new S.B,this.messages$=this.eventMessageSubject.asObservable()}emitAddedFilter(c){this.eventMessageSubject.next({type:"AddedFilter",value:c})}emitRemovedFilter(c){this.eventMessageSubject.next({type:"RemovedFilter",value:c})}emitAddedCartItem(c){this.eventMessageSubject.next({type:"AddedCartItem",value:c})}emitRemovedCartItem(c){this.eventMessageSubject.next({type:"RemovedCartItem",value:c})}emitFilterShown(c){this.eventMessageSubject.next({type:"FilterShown",value:c})}emitToggleDrawer(c){this.eventMessageSubject.next({type:"ToggleCartDrawer",value:c})}emitLogin(c){this.eventMessageSubject.next({type:"LoginProcess",value:c})}emitBillAccChange(c){this.eventMessageSubject.next({type:"BillAccChanged",value:c})}emitSellerProductSpec(c){this.eventMessageSubject.next({type:"SellerProductSpec",value:c})}emitSellerCreateProductSpec(c){this.eventMessageSubject.next({type:"SellerCreateProductSpec",value:c})}emitSellerUpdateProductSpec(c){this.eventMessageSubject.next({type:"SellerUpdateProductSpec",value:c})}emitSellerServiceSpec(c){this.eventMessageSubject.next({type:"SellerServiceSpec",value:c})}emitSellerCreateServiceSpec(c){this.eventMessageSubject.next({type:"SellerCreateServiceSpec",value:c})}emitSellerUpdateServiceSpec(c){this.eventMessageSubject.next({type:"SellerUpdateServiceSpec",value:c})}emitSellerResourceSpec(c){this.eventMessageSubject.next({type:"SellerResourceSpec",value:c})}emitSellerCreateResourceSpec(c){this.eventMessageSubject.next({type:"SellerCreateResourceSpec",value:c})}emitSellerUpdateResourceSpec(c){this.eventMessageSubject.next({type:"SellerUpdateResourceSpec",value:c})}emitSellerOffer(c){this.eventMessageSubject.next({type:"SellerOffer",value:c})}emitSellerCreateOffer(c){this.eventMessageSubject.next({type:"SellerCreateOffer",value:c})}emitSellerUpdateOffer(c){this.eventMessageSubject.next({type:"SellerUpdateOffer",value:c})}emitSellerCreateCustomOffer(c,t){this.eventMessageSubject.next({type:"SellerCreateCustomOffer",value:{offer:c,partyId:t}})}emitSellerCatalog(c){this.eventMessageSubject.next({type:"SellerCatalog",value:c})}emitSellerUpdateCatalog(c){this.eventMessageSubject.next({type:"SellerCatalogUpdate",value:c})}emitSellerCreateCatalog(c){this.eventMessageSubject.next({type:"SellerCatalogCreate",value:c})}emitCategoryAdded(c){this.eventMessageSubject.next({type:"CategoryAdded",value:c})}emitChangedSession(c){this.eventMessageSubject.next({type:"ChangedSession",value:c})}emitCloseCartCard(c){this.eventMessageSubject.next({type:"CloseCartCard",value:c})}emitShowCartToast(c){this.eventMessageSubject.next({type:"ShowCartToast",value:c})}emitHideCartToast(c){this.eventMessageSubject.next({type:"HideCartToast",value:c})}emitAdminCategories(c){this.eventMessageSubject.next({type:"AdminCategories",value:c})}emitCreateCategory(c){this.eventMessageSubject.next({type:"CreateCategory",value:c})}emitUpdateCategory(c){this.eventMessageSubject.next({type:"UpdateCategory",value:c})}emitCloseContact(c){this.eventMessageSubject.next({type:"CloseContact",value:c})}emitOpenServiceDetails(c){this.eventMessageSubject.next({type:"OpenServiceDetails",value:c})}emitOpenResourceDetails(c){this.eventMessageSubject.next({type:"OpenResourceDetails",value:c})}emitOpenProductInvDetails(c){this.eventMessageSubject.next({type:"OpenProductInvDetails",value:c})}emitSavePricePlan(c){this.eventMessageSubject.next({type:"SavePricePlan",value:c})}emitUpdatePricePlan(c){this.eventMessageSubject.next({type:"UpdatePricePlan",value:c})}emitToggleEditPricePlan(c){this.eventMessageSubject.next({type:"ToggleEditPrice",value:c})}emitToggleNewPricePlan(c){this.eventMessageSubject.next({type:"ToggleNewPrice",value:c})}emitSubformChange(c){this.eventMessageSubject.next({type:"SubformChange",value:c})}emitCloseFeedback(c){this.eventMessageSubject.next({type:"CloseFeedback",value:c})}emitCloseQuoteRequest(c){this.eventMessageSubject.next({type:"CloseQuoteRequest",value:c})}emitUpdateOffer(c){this.eventMessageSubject.next({type:"UpdateOffer",value:c})}emitUpdateUsageSpec(c){this.eventMessageSubject.next({type:"UpdateUsageSpec",value:c})}emitUsageSpecList(c){this.eventMessageSubject.next({type:"UsageSpecList",value:c})}emitCreateUsageSpec(c){this.eventMessageSubject.next({type:"CreateUsageSpec",value:c})}emitAiSearchFacets(c){this.eventMessageSubject.next({type:"AiSearchFacets",value:c})}emitAiSearchCleared(){this.eventMessageSubject.next({type:"AiSearchCleared",value:!0})}emitFiltersCommitted(){this.eventMessageSubject.next({type:"FiltersCommitted",value:!0})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function As(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"p",12),e.EFF(2),e.k0s(),e.qSk(),e.j41(3,"svg",13),e.nrm(4,"path",14),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.JRh(c.createButtonLabel)}}function k2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17)(1,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.goToUpdate(l._id))}),e.qSk(),e.j41(2,"svg",26),e.nrm(3,"path",27),e.k0s()(),e.joV(),e.j41(4,"button",28),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",29),e.nrm(6,"path",30),e.k0s()()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(4),e.Y8G("disabled",t.isDeletingEntry(c))}}function x(n,a){if(1&n&&(e.j41(0,"span",32),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function E(n,a){if(1&n&&(e.j41(0,"div",31),e.Z7z(1,x,2,1,"span",32,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c)}}function v(n,a){1&n&&e.DNE(0,E,3,0,"div",31),2&n&&e.vxM(0,a.length>0?0:-1)}function N(n,a){if(1&n&&e.nrm(0,"img",21),2&n){const c=e.XpG().$implicit,t=e.XpG();e.Y8G("src",a,e.B4B)("alt",c.title+" featured image")("ngClass",t.getImageClass())}}function V(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",8)(1,"div",15)(2,"h2",16),e.EFF(3),e.k0s(),e.DNE(4,k2,7,1,"div",17),e.k0s(),e.j41(5,"h4",18),e.EFF(6," Created by "),e.j41(7,"b",19),e.EFF(8),e.k0s(),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.DNE(11,v,1,1),e.j41(12,"div",20),e.DNE(13,N,1,3,"img",21),e.j41(14,"div",22)(15,"p",23),e.EFF(16),e.k0s(),e.j41(17,"button",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.goToDetails(l))}),e.j41(18,"p",12),e.EFF(19,"View details"),e.k0s()()()()()}if(2&n){let c,t;const l=a.$implicit,i=e.XpG();e.R7$(2),e.Y8G("ngClass",i.getCardTitleClass()),e.R7$(),e.JRh(l.title),e.R7$(),e.vxM(4,i.canManageEntry(l)?4:-1),e.R7$(4),e.JRh(l.author),e.R7$(),e.SpI(" on ",e.i5U(10,8,l.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(11,(c=i.getEntryTags(l))?11:-1,c),e.R7$(2),e.vxM(13,(t=i.getFeaturedImage(l))?13:-1,t),e.R7$(3),e.SpI(" ",i.getEntryExcerpt(l)," ")}}function c1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadMoreEntries())}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("disabled",c.loadingMore),e.R7$(),e.SpI(" ",c.loadingMore?"Loading...":"Load more"," ")}}let z1=(()=>{class n{constructor(c,t,l,i,u){this.router=c,this.eventMessage=t,this.localStorage=l,this.domeBlogService=i,this.route=u,this.pageLimit=9,this.partyId="",this.checkAdmin=!1,this.destroy$=new S.B,this.deletingEntryId=null,this.showDeleteConfirm=!1,this.pendingDeleteEntry=null,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",this.entries=[],this.contentType="blog",this.pageTitle="Blog",this.createButtonLabel="Add a new entry",this.routeBase="/blog",this.isNewsLayout=!1,this.currentPage=1,this.hasMoreEntries=!1,this.loadingMore=!1,this.eventMessage.messages$.subscribe(C=>{"ChangedSession"===C.type&&this.initPartyInfo()})}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.applyRouteConfiguration(),c.initPartyInfo(),yield c.loadEntries()})()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(console.log("user info ---"),console.log(c),c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.checkAdmin=c.roles.some(t=>"admin"===t.name)}}goToDetails(c){this.router.navigate([`${this.routeBase}/`,this.getEntryRouteId(c)])}goToCreate(){this.router.navigate(["/blog-entry"],{queryParams:{type:this.contentType}})}goToUpdate(c){this.router.navigate(["/blog-entry/",c])}canManageEntry(c){return this.checkAdmin}isDeletingEntry(c){return this.deletingEntryId===c?._id}openDeleteDialog(c){!c?._id||this.isDeletingEntry(c)||(this.pendingDeleteEntry=c,this.deleteConfirmMessage=`Are you sure you want to delete "${c.title}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1,this.pendingDeleteEntry=null}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){if(c.pendingDeleteEntry?._id){c.deletingEntryId=c.pendingDeleteEntry._id,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(c.deletingEntryId),yield c.loadEntries()}catch(t){console.error("There was an error while deleting the entry!",t)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}loadEntries(){var c=this;return(0,C1.A)(function*(){try{c.currentPage=1;const t=yield c.domeBlogService.getBlogEntries({contentType:c.contentType,page:c.currentPage,limit:c.pageLimit}),{entries:l,hasMore:i}=c.normalizeEntryResponse(t,c.currentPage);c.entries=l,c.hasMoreEntries=i}catch{c.entries=[],c.hasMoreEntries=!1}})()}loadMoreEntries(){var c=this;return(0,C1.A)(function*(){if(!c.loadingMore&&c.hasMoreEntries){c.loadingMore=!0;try{const t=c.currentPage+1,l=yield c.domeBlogService.getBlogEntries({contentType:c.contentType,page:t,limit:c.pageLimit}),{entries:i,hasMore:u}=c.normalizeEntryResponse(l,t);c.entries=[...c.entries,...i],c.currentPage=t,c.hasMoreEntries=u}catch{c.hasMoreEntries=!1}finally{c.loadingMore=!1}}})()}getEntryRouteId(c){return c?.slug&&"string"==typeof c.slug&&c.slug.trim().length>0?c.slug.trim():c?._id}getFeaturedImage(c){return"string"==typeof c?.featuredImage&&c.featuredImage.trim().length>0?c.featuredImage.trim():"string"==typeof c?.featuredImage?.url&&c.featuredImage.url.trim().length>0?c.featuredImage.url.trim():null}getEntryTags(c){const t=c?.tags;return Array.isArray(t)?t.map(l=>(l??"").toString().trim()).filter(l=>l.length>0):"string"==typeof t?t.split(",").map(l=>l.trim()).filter(l=>l.length>0):[]}getEntryExcerpt(c){const t=(c?.excerpt||"").toString().trim();if(t)return t;const l=(c?.metaDescription||"").toString().trim();if(l)return l;const i=this.stripMarkdown((c?.content||"").toString());return this.truncateText(i,260)}getCardTitleClass(){return this.isNewsLayout?"text-[28px] leading-tight md:text-[30px]":"text-2xl"}getImageClass(){return this.isNewsLayout?"h-72 w-full rounded-lg border border-gray-300 object-cover md:h-64 md:w-[432px] md:min-w-[432px] dark:border-gray-700":"h-52 w-full rounded-lg border border-gray-300 object-contain p-2 md:h-44 md:w-72 md:min-w-72 dark:border-gray-700"}applyRouteConfiguration(){const c=this.route?.snapshot.data?.contentType;this.contentType=c||"blog",this.isNewsLayout="news"===this.contentType,this.routeBase=this.isNewsLayout?"/news":"/blog",this.pageTitle=this.isNewsLayout?"News & Events":"Blog",this.createButtonLabel=this.isNewsLayout?"Add news/event":"Add a new entry"}normalizeEntryResponse(c,t){const i=this.extractEntries(c).filter(T=>this.matchesContentType(T)),u=Number(c?.total??c?.count??c?.pagination?.total??0);return{entries:i,hasMore:!!(c?.next||c?.hasMore||c?.pagination?.hasNext)||u>0&&t*this.pageLimit#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,t){return!c||c.length<=t?c:`${c.slice(0,t).trim()}...`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(U2),e.rXU(z2.s),e.rXU(W3),e.rXU(E2.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dome-blog"]],standalone:!0,features:[e.aNF],decls:13,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-6","px-6","py-10","sm:px-8","md:px-10","md:py-12","lg:px-16","xl:px-[160px]"],[1,"flex","flex-row","items-start","justify-between","gap-4"],[1,"flex","flex-col"],[1,"text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-secondary-200","dark:text-white"],["type","button","data-cy","newBlogEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","px-6","pb-16","pt-4","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mb-8","flex","w-full","flex-col","border","border-gray-300","bg-white","p-8","shadow-lg","rounded-lg","dark:border-secondary-300","dark:bg-secondary-100"],[1,"flex","justify-center","pt-2"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","data-cy","newBlogEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle",3,"click"],[1,"pl-2","pr-2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","inline-flex","justify-between"],[1,"font-bold","mb-4","dark:text-white","break-words",3,"ngClass"],[1,"flex","items-center","gap-2"],[1,"mb-4","text-lg","italic","text-secondary-200","dark:text-secondary-50"],[1,"text-secondary-100","dark:text-primary-50"],[1,"mt-2","flex","flex-col","gap-5","md:flex-row","md:items-start"],[3,"src","alt","ngClass"],[1,"flex","min-w-0","flex-1","flex-col"],[1,"dark:text-secondary-50","line-clamp-5","text-wrap","break-words"],["type","button",1,"mt-4","w-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["type","button","title","Edit entry",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete entry",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"mb-4","flex","flex-wrap","gap-2"],[1,"inline-flex","items-center","rounded-md","border","border-blue-200","bg-blue-50","px-2.5","py-1","text-xs","font-medium","text-blue-700","dark:border-blue-500/40","dark:bg-blue-900/30","dark:text-blue-200"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","px-5","py-2.5","text-center","disabled:opacity-60",3,"click","disabled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6),e.k0s()(),e.DNE(7,As,5,1,"button",6),e.k0s()()(),e.j41(8,"div",7),e.Z7z(9,V,20,11,"div",8,e.fX1),e.DNE(11,c1,3,2,"div",9),e.k0s()(),e.j41(12,"app-confirm-dialog",10),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t&&(e.R7$(6),e.SpI(" ",l.pageTitle," "),e.R7$(),e.vxM(7,l.checkAdmin?7:-1),e.R7$(2),e.Dyx(l.entries),e.R7$(2),e.vxM(11,l.hasMoreEntries?11:-1),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[_.MD,_.YU,_.vh,q3.w]})}}return n})();const W6={prefix:"fass",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 64l448 0 0 64L0 128 0 64zM0 224l448 0 0 64L0 288l0-64zM448 384l0 64L0 448l0-64 448 0z"]},T9={prefix:"fass",iconName:"arrow-right-from-bracket",icon:[512,512,["sign-out"],"f08b","M486.6 278.6L509.3 256l-22.6-22.6-128-128L336 82.7 290.7 128l22.6 22.6L386.7 224 192 224l-32 0 0 64 32 0 194.7 0-73.4 73.4L290.7 384 336 429.3l22.6-22.6 128-128zM160 96l32 0 0-64-32 0L32 32 0 32 0 64 0 448l0 32 32 0 128 0 32 0 0-64-32 0-96 0L64 96l96 0z"]},Am={prefix:"fass",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM48 192l148 0c-2.6 10.2-4 21-4 32c0 38.2 16.8 72.5 43.3 96L0 320 48 192zM640 320l-235.3 0c26.6-23.5 43.3-57.8 43.3-96c0-11-1.4-21.8-4-32l148 0 48 128zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM464 352l48 160-384 0 48-160 288 0z"]},Te={prefix:"fass",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zM448 512L384 304 64 304 0 512l448 0z"]},mc={prefix:"fass",iconName:"address-card",icon:[576,512,[62140,"contact-card","vcard"],"f2bb","M576 32L0 32 0 480l576 0 0-448zM256 288l32 96L64 384l32-96 160 0zM112 192a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-32l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0zm0 64l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0zm0 64l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0z"]},lT={prefix:"fass",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240L304 .6c5.3-.4 10.6-.6 16-.6C443.7 0 544 100.3 544 224c0 5.4-.2 10.7-.6 16L304 240zM32 272C32 144.8 130.9 40.8 256 32.5L256 288 425 457c-41.5 34.4-94.8 55-153 55C139.5 512 32 404.6 32 272zm288 16l255.5 0C571 355.9 538.3 416.1 489 457L320 288z"]},_T={prefix:"fass",iconName:"arrow-right",icon:[448,512,[8594],"f061","M422.6 278.6L445.3 256l-22.6-22.6-144-144L256 66.7 210.8 112l22.6 22.6L322.8 224 32 224 0 224l0 64 32 0 290.7 0-89.4 89.4L210.8 400 256 445.3l22.6-22.6 144-144z"]},nS={prefix:"fass",iconName:"clipboard-check",icon:[384,512,[],"f46c","M192 0c-41.8 0-77.4 26.7-90.5 64L0 64 0 512l384 0 0-448L282.5 64C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM297 273L185 385l-17 17-17-17L87 321l-17-17L104 270.1l17 17 47 47 95-95 17-17L313.9 256l-17 17z"]},wS={prefix:"fass",iconName:"ruler",icon:[512,512,[128207],"f545","M160 512L512 160 352 0 283.3 68.7l48 48L342.6 128 320 150.6l-11.3-11.3-48-48-41.4 41.4 48 48L278.6 192 256 214.6l-11.3-11.3-48-48-41.4 41.4 48 48L214.6 256 192 278.6l-11.3-11.3-48-48L91.3 260.7l48 48L150.6 320 128 342.6l-11.3-11.3-48-48L0 352 160 512z"]},TL={prefix:"fass",iconName:"cart-shopping",icon:[576,512,[128722,"shopping-cart"],"f07a","M24 0L0 0 0 48l24 0 52.1 0 60.3 316.5 3.7 19.5 19.9 0 328 0 24 0 0-48-24 0-308.1 0-9.1-48L496 288 576 32 122 32l-2.4-12.5L115.9 0 96 0 24 0zM176 512a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm336-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},Ak={prefix:"fass",iconName:"boxes-stacked",icon:[576,512,[62625,"boxes","boxes-alt"],"f468","M248 0L160 0l0 224 256 0L416 0 328 0l0 96-80 0 0-96zM104 256L0 256 0 512l288 0 0-256-104 0 0 96-80 0 0-96zM576 512l0-256-104 0 0 96-80 0 0-96-72 0 0 256 256 0z"]},NO={prefix:"fass",iconName:"receipt",icon:[384,512,[129534],"f543","M0 0L0 512l64-48 64 48 64-48 64 48 64-48 64 48L384 0 320 48 256 0 192 48 128 0 64 48 0 0zM96 144l192 0 16 0 0 32-16 0L96 176l-16 0 0-32 16 0zM80 336l16 0 192 0 16 0 0 32-16 0L96 368l-16 0 0-32zm16-96l192 0 16 0 0 32-16 0L96 272l-16 0 0-32 16 0z"]},IV={prefix:"fass",iconName:"gears",icon:[640,512,["cogs"],"f085","M125 8l70 0 10 48.1c13.8 5.2 26.5 12.7 37.5 22L285.6 64 320 123.4l-33.9 30.3c1.3 7.3 1.9 14.7 1.9 22.3s-.7 15.1-1.9 22.3L320 228.6 285.6 288l-43.1-14.2c-11.1 9.3-23.7 16.8-37.5 22L195 344l-70 0-10-48.1c-13.8-5.2-26.5-12.7-37.5-22L34.4 288 0 228.6l33.9-30.3C32.7 191.1 32 183.6 32 176s.7-15.1 1.9-22.3L0 123.4 34.4 64 77.5 78.2c11.1-9.3 23.7-16.8 37.5-22L125 8zm83 168a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM632 386.4l-47.8 9.8c-4.9 13.4-12 25.8-20.9 36.7l15 44.8L517.7 512l-30.9-34c-7.4 1.3-15 2-22.7 2s-15.4-.7-22.7-2l-30.9 34-60.6-34.4 15-44.8c-8.9-10.9-16-23.3-20.9-36.7L296 386.4l0-68.7 47.8-9.8c4.9-13.4 12-25.8 20.9-36.7l-15-44.8L410.3 192l30.9 34c7.4-1.3 15-2 22.7-2s15.4 .7 22.7 2l30.9-34 60.6 34.4-15 44.8c8.9 10.9 16 23.3 20.9 36.7l47.8 9.8 0 68.7zM464 400a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},xE={prefix:"fass",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 278.6L18.7 256l22.6-22.6 160-160L224 50.7 269.3 96l-22.6 22.6L109.3 256 246.6 393.4 269.3 416 224 461.3l-22.6-22.6-160-160zm192 0L210.7 256l22.6-22.6 160-160L416 50.7 461.3 96l-22.6 22.6L301.3 256 438.6 393.4 461.3 416 416 461.3l-22.6-22.6-160-160z"]},Vf1={prefix:"fass",iconName:"hand-holding-box",icon:[576,512,[],"f47b","M224 128L224 0 96 0l0 256 384 0L480 0 352 0l0 128L288 96l-64 32zM140 327L68.8 384 0 384 0 512l32 0 192 0 160 0 12.4 0 10.2-7 128-88 33-22.7-45.3-65.9-33 22.7-94.5 65L256 416l0-32 32 0 64 0 32 0 0-64-32 0-64 0-64 0-64 0-11.2 0-8.8 7z"]},eu1={prefix:"fass",iconName:"brain",icon:[512,512,[129504],"f5dc","M240 0l0 56 0 400 0 56-56 0c-28.9 0-52.7-21.9-55.7-50.1c-5.2 1.4-10.7 2.1-16.3 2.1c-35.3 0-64-28.7-64-64c0-7.4 1.3-14.6 3.6-21.2C21.4 367.4 0 338.2 0 304c0-31.9 18.7-59.5 45.8-72.3C37.1 220.8 32 207 32 192c0-30.7 21.6-56.3 50.4-62.6C80.8 123.9 80 118 80 112c0-29.9 20.6-55.1 48.3-62.1C131.3 21.9 155.1 0 184 0l56 0zm32 0l56 0c28.9 0 52.6 21.9 55.7 49.9c27.8 7 48.3 32.1 48.3 62.1c0 6-.8 11.9-2.4 17.4c28.8 6.2 50.4 31.9 50.4 62.6c0 15-5.1 28.8-13.8 39.7C493.3 244.5 512 272.1 512 304c0 34.2-21.4 63.4-51.6 74.8c2.3 6.6 3.6 13.8 3.6 21.2c0 35.3-28.7 64-64 64c-5.6 0-11.1-.7-16.3-2.1c-3 28.2-26.8 50.1-55.7 50.1l-56 0 0-56 0-400 0-56z"]},vn={PRICE:{ONE_TIME:"one time",RECURRING:"recurring",USAGE:"usage"},PRICE_ALTERATION:{DISCOUNT:{code:"discount",name:"Discount"},FEE:{code:"fee",name:"Fee"}},PRICE_ALTERATION_SUPPORTED:{PRICE_COMPONENT:"Price component",DISCOUNT_OR_FEE:"Discount or fee",NOTHING:"None"},PRICE_CONDITION:{EQ:{code:"eq",name:"Equal"},LT:{code:"lt",name:"Less than"},LE:{code:"le",name:"Less than or equal"},GT:{code:"gt",name:"Greater than"},GE:{code:"ge",name:"Greater than or equal"}},LICENSE:{NONE:"None",STANDARD:"Standard open data license",WIZARD:"Custom license (wizard)",FREETEXT:"Custom license (free-text)"},SLA:{NONE:"None",SPEC:"Spec"},METRICS:{UPDATES:"Updates rate",RESPTIME:"Response time",DELAY:"Delay"},MEASURESDESC:{UPDATES:"Expected number of updates in the given period.",RESPTIME:"Total amount of time to respond to a data request (GET).",DELAY:"Total amount of time to deliver a new update (SUBSCRIPTION)."},TIMERANGE:{DAY:"day",WEEK:"week",MONTH:"month"},UNITS:{MSEC:"ms",SEC:"s",MIN:"min"}};class X8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_CATALOG=g1.c.PRODUCT_CATALOG}constructor(a){this.http=a}formatCheapestPricePlan(a){var c={},t=null,l=[];if(null!=a&&a.productOfferingPrice){if(1==a.productOfferingPrice.length&&"open"==a.productOfferingPrice[0].name?.toLocaleLowerCase()&&0==a.productOfferingPrice[0].price?.value)return{priceType:a.productOfferingPrice[0].priceType,price:a.productOfferingPrice?.at(0)?.price?.value,unit:a.productOfferingPrice?.at(0)?.price?.unit,text:"open"};if(a.productOfferingPrice.length>0)if((l=a.productOfferingPrice.filter(u=>u.priceType===vn.PRICE.ONE_TIME)).length>0){for(var i=0;iNumber(l[i].price?.value))&&(t=a.productOfferingPrice[i]);c={priceType:t?.priceType,price:t?.price?.value,unit:t?.price?.unit,text:"one time"}}else l=a.productOfferingPrice.filter(function(u){return void 0!==u.priceType?-1!==[vn.PRICE.RECURRING,vn.PRICE.USAGE].indexOf(u.priceType?.toLocaleLowerCase()):""}),c={priceType:l[0]?.priceType,price:l[0]?.price?.value,unit:l[0]?.price?.unit,text:l[0]?.priceType?.toLocaleLowerCase()==vn.PRICE.RECURRING?l[0]?.recurringChargePeriodType:l[0]?.priceType?.toLocaleLowerCase()==vn.PRICE.USAGE?"/ "+l[0]?.unitOfMeasure?.units:""};else c={priceType:"Free",price:0,unit:"",text:""}}return c}getFormattedPriceList(a){let c=[];if(null!=a&&null!=a.productOfferingPrice)for(let t=0;t0&&(t="custom"===(yield c.getProductPrice(a.productOfferingPrice[0].id)).priceType?.toLowerCase()),t})()}calculatePrice(a){return console.log("Simulating HTTP call with payload:",a),this.http.post(`${X8.BASE_URL}/billing/order/`,a)}static{this.\u0275fac=function(c){return new(c||X8)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:X8,factory:X8.\u0275fac,providedIn:"root"})}}var Ru1=y(4412);class d8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_CART=g1.c.SHOPPING_CART}constructor(a){this.http=a,this.cartSubject=new Ru1.t([]),this.cart$=this.cartSubject.asObservable()}getShoppingCart(){var a=this;return(0,C1.A)(function*(){let c=`${d8.BASE_URL}${d8.API_CART}/item/`;const t=yield(0,e0.s)(a.http.get(c));return a.cartSubject.next(t),t})()}addItemShoppingCart(a){var c=this;return(0,C1.A)(function*(){console.log("adding to cart"),console.log(a);let t=`${d8.BASE_URL}${d8.API_CART}/item/`;yield(0,e0.s)(c.http.post(t,a)),yield c.refreshCart()})()}removeItemShoppingCart(a){var c=this;return(0,C1.A)(function*(){let t=`${d8.BASE_URL}${d8.API_CART}/item/${a}`;yield(0,e0.s)(c.http.delete(t)),yield c.refreshCart()})()}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){console.log("removing cart");let c=`${d8.BASE_URL}${d8.API_CART}/empty/`;yield(0,e0.s)(a.http.post(c,{})),yield a.refreshCart()})()}refreshCart(){var a=this;return(0,C1.A)(function*(){const c=yield a.getShoppingCart();a.cartSubject.next(c)})()}static{this.\u0275fac=function(c){return new(c||d8)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:d8,factory:d8.\u0275fac,providedIn:"root"})}}const wI1=(n,a)=>({"break-all":n,"break-words":a});function SI1(n,a){1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",9),e.nrm(2,"path",10)(3,"path",11),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function NI1(n,a){if(1&n&&e.nrm(0,"img",22),2&n){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function EI1(n,a){1&n&&e.nrm(0,"img",30)}function DI1(n,a){1&n&&e.EFF(0," Estimated price: ")}function TI1(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function RI1(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2),e.k0s(),e.j41(3,"span",33),e.DNE(4,DI1,1,0),e.EFF(5),e.DNE(6,TI1,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(7);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.vxM(4,"usage"==c.priceType?4:-1),e.R7$(),e.Lme(" ",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(6,t.hasKey(c,"recurringChargePeriod")?6:-1)}}function AI1(n,a){if(1&n&&(e.j41(0,"div",26),e.Z7z(1,RI1,7,5,"div",31,e.fX1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function II1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20)(3,"div",21),e.DNE(4,NI1,1,1,"img",22)(5,EI1,1,0),e.k0s(),e.j41(6,"div",23)(7,"p",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.goToProdDetails(l))}),e.EFF(8),e.k0s()()(),e.j41(9,"div",25),e.DNE(10,AI1,3,0,"div",26),e.k0s()(),e.j41(11,"div",27)(12,"button",28),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.deleteProduct(l))}),e.qSk(),e.j41(13,"svg",29),e.nrm(14,"path",6),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,wI1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(10,c.options.pricing?10:-1)}}function PI1(n,a){if(1&n&&e.Z7z(0,II1,15,7,"div",18,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c)}}function jI1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",13),e.DNE(1,PI1,2,0),e.j41(2,"div",14)(3,"button",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToShoppingCart(i.getSellerId(l.at(0))))}),e.qSk(),e.j41(4,"svg",16),e.nrm(5,"path",17),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.vxM(1,t.isArray(c)?1:-1),e.R7$(2),e.Y8G("disabled",0==c.length)("ngClass",0==c.length?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(3),e.SpI(" ",e.bMT(7,4,"CART_DRAWER._purchase")," ")}}function $I1(n,a){if(1&n&&e.Z7z(0,jI1,8,6,"div",13,e.fX1),2&n){const c=e.XpG(2);e.Dyx(c.items)}}function OI1(n,a){1&n&&(e.j41(0,"p",34),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI("",e.bMT(2,1,"CART_DRAWER._empty"),"."))}function BI1(n,a){if(1&n&&(e.j41(0,"div",12),e.DNE(1,$I1,2,0)(2,OI1,3,3),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.items.length>0?1:2)}}let Au1=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.eventMessage=t,this.priceService=l,this.cartService=i,this.api=u,this.cdr=C,this.router=b,this.faCartShopping=TL,this.items=[],this.showBackDrop=!0,this.check_custom=!1,this.loading=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B}ngOnInit(){this.loading=!0,this.showBackDrop=!0,this.getCart(),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(c=>{"AddedCartItem"===c.type?(console.log("Elemento a\xf1adido"),this.loading=!0,this.getCart()):"RemovedCartItem"===c.type&&(this.loading=!0,this.getCart())}),console.log("Elementos en el carrito...."),console.log(this.items)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get objectKeys(){return Object.keys}getCart(){var c=this;try{this.cartService.getShoppingCart().then(function(){var t=(0,C1.A)(function*(l){console.log("---CARRITO API---"),console.log(l),c.items=l,yield c.getProviderInfo(),c.groupItemsByOwner(),c.loading=!1,c.cdr.detectChanges(),console.log("------------------")});return function(l){return t.apply(this,arguments)}}())}catch(t){this.loading=!1,this.handleError(t,"There was an error while retrieving the cart!")}}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}hasKey(c,t){return t in c}deleteProduct(c){var t=this;return(0,C1.A)(function*(){yield t.cartService.removeItemShoppingCart(c.id),console.log("deleted"),t.eventMessage.emitRemovedCartItem(c)})()}goToProdDetails(c){this.hideCart(),this.router.navigate(["/search/",c.id])}hideCart(){this.eventMessage.emitToggleDrawer(!1)}getSellerId(c){return c.relatedParty.find(l=>l.role===g1.c.SELLER_ROLE).id}goToShoppingCart(c){this.hideCart(),this.router.navigate(["/checkout",c])}getProviderInfo(){var c=this;return(0,C1.A)(function*(){for(let t=0;t{const i=l.relatedParty?.find(u=>u.role===g1.c.SELLER_ROLE)?.id;return i&&(t[i]||(t[i]=[]),t[i].push(l)),t},{}));console.log(c),this.items=c}isArray(c){return Array.isArray(c)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(X8),e.rXU(d8),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-cart-drawer"]],decls:14,vars:8,consts:[["id","cart-drawer","tabindex","-1","aria-labelledby","cart-drawer-label","aria-hidden","true",1,"h-full","flex","flex-col",3,"click"],[1,"mr-2","text-gray-500","dark:text-gray-400",3,"icon"],["id","cart-drawer-label","aria-hidden","true",1,"inline-flex","items-center","text-base","font-semibold","text-gray-500","dark:text-gray-400","text-xl"],[1,"h-px","my-2","bg-gray-200","border-0","dark:bg-gray-700"],["type","button","aria-controls","cart-drawer",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","inline-flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex-1","w-full","grid","grid-flow-row","auto-rows-max","overflow-y-auto","p-2"],[1,"mb-6","border","border-gray-300","dark:border-gray-600","rounded-lg","p-3"],[1,"mt-4"],["data-cy","cartPurchase","type","button",1,"flex","w-full","items-center","justify-center","gap-x-2","px-4","py-2","text-white","bg-blue-700","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","mr-2","ml-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","mt-2","mb-2","rounded-lg","bg-secondary-50/95","dark:bg-gray-700","dark:border-gray-800","border-secondary-50","border"],[1,"flex","flex-col","w-full"],[1,"flex","justify-between","w-full"],[1,"flex","p-2","box-decoration-clone"],["alt","",1,"rounded-t-lg","w-fit","h-[100px]",3,"src"],[1,"p-2","flex","items-center","w-2/3"],["role","button","tabindex","0",1,"text-lg","text-gray-700","dark:text-gray-400","line-clamp-4","text-wrap","break-words","cursor-pointer",3,"click","ngClass"],[1,"p-2","flex","items-center","flex-row"],[1,"items-center","text-sm","text-white"],[1,"p-2","flex","items-center"],["type","button",1,"h-fit","text-blue-700","hover:bg-gray-300","hover:text-white","focus:ring-4","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","dark:text-blue-500","dark:hover:text-white","dark:hover:bg-gray-600",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-[12px]","h-[12px]","text-gray-700","dark:text-gray-400"],["src","https://placehold.co/600x400/svg","alt","",1,"rounded-t-lg","w-fit","h-[100px]"],[1,"flex","place-content-center","flex-col"],[1,"font-bold","text-gray-900","dark:text-primary-50","mr-3"],[1,"text-xs","text-gray-900","dark:text-primary-50"],[1,"text-gray-700","dark:text-gray-400"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(u){return u.stopPropagation()}),e.nrm(1,"fa-icon",1),e.j41(2,"h3",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"hr",3),e.j41(6,"button",4),e.bIt("click",function(){return l.hideCart()}),e.qSk(),e.j41(7,"svg",5),e.nrm(8,"path",6),e.k0s(),e.joV(),e.j41(9,"span",7),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.DNE(12,SI1,6,0,"div",8)(13,BI1,3,1),e.k0s()),2&t&&(e.R7$(),e.Y8G("icon",l.faCartShopping),e.R7$(2),e.SpI(" ",e.bMT(4,4,"CART_DRAWER._title")," "),e.R7$(7),e.JRh(e.bMT(11,6,"CART_DRAWER._close")),e.R7$(2),e.vxM(12,l.loading?12:13))},dependencies:[_.YU,J2.aY,s1.D9],styles:["[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#0003}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#888!important;border-radius:5px!important}"]})}}return n})();const qL1={prefix:"far",iconName:"arrow-right",icon:[448,512,[8594],"f061","M440.6 273.4c4.7-4.5 7.4-10.8 7.4-17.4s-2.7-12.8-7.4-17.4l-176-168c-9.6-9.2-24.8-8.8-33.9 .8s-8.8 24.8 .8 33.9L364.1 232 24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l340.1 0L231.4 406.6c-9.6 9.2-9.9 24.3-.8 33.9s24.3 9.9 33.9 .8l176-168z"]},Sr1={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},bC1={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},VC1={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},mx1={prefix:"far",iconName:"filter-list",icon:[512,512,[],"e17c","M41.2 64C18.5 64 0 82.5 0 105.2c0 10.4 3.9 20.4 11 28.1l93 100.1 0 126c0 13.4 6.7 26 18 33.4l75.5 49.8c5.3 3.5 11.6 5.4 18 5.4c18 0 32.6-14.6 32.6-32.6l0-182 93-100.1c7.1-7.6 11-17.6 11-28.1C352 82.5 333.5 64 310.8 64L41.2 64zM145.6 207.7L56.8 112l238.5 0-88.8 95.7c-4.1 4.4-6.4 10.3-6.4 16.3l0 162.8-48-31.7L152 224c0-6.1-2.3-11.9-6.4-16.3zM344 392c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zM320 256c0 13.3 10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0c-13.3 0-24 10.7-24 24zM408 72c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},wv1={prefix:"far",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},vI2=(n,a)=>a.id,nk1=(n,a)=>({"break-all":n,"break-words":a});function kI2(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",5)(1,"span",6),e.nrm(2,"fa-icon",3),e.EFF(3),e.k0s(),e.j41(4,"button",7),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.notifyDismiss(l))}),e.qSk(),e.j41(5,"svg",8),e.nrm(6,"path",9),e.k0s(),e.joV(),e.j41(7,"span",10),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.FS9("title",null==c?null:c.name),e.Y8G("ngClass",e.l_i(10,nk1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20)))("id","badge-dismiss-"+t),e.R7$(),e.Y8G("ngClass",e.l_i(13,nk1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20))),e.R7$(),e.Y8G("icon",l.faTag),e.R7$(),e.JRh(null==c?null:c.name),e.R7$(),e.BMQ("data-dismiss-target","#badge-dismiss-"+t),e.R7$(4),e.JRh(e.bMT(9,8,"CATEGORIES_FILTER._remove_badge"))}}function wI2(n,a){if(1&n&&e.Z7z(0,kI2,10,16,"span",5,vI2),2&n){const c=e.XpG();e.Dyx(c.selected)}}let xG=(()=>{class n{constructor(c,t){this.localStorage=c,this.eventMessage=t,this.selected=[],this.destroy$=new S.B,this.faAddressCard=mc,this.faFilterList=mx1,this.faTag=A2._2z,this.selected=[],this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(l=>{if("AddedFilter"===l.type){const i=l.value;-1==this.selected.findIndex(C=>C.id===i.id)&&this.selected.push(l.value)}else if("RemovedFilter"===l.type){const i=l.value,u=this.selected.findIndex(C=>C.id===i.id);u>-1&&this.selected.splice(u,1)}})}ngOnInit(){const c=this.localStorage.getObject("selected_categories");this.selected=Array.isArray(c)?c:[]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}notifyDismiss(c){console.log("Category dismissed: "+JSON.stringify(c)),this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c),this.eventMessage.emitFiltersCommitted()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-categories-panel"]],standalone:!0,features:[e.aNF],decls:8,vars:5,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","dark:text-white"],["id","chips",1,"flex","justify-center","items-center","min-h-[58px]","p-2"],[1,"mr-4","ml-2","min-w-fit"],[1,"mr-2",3,"icon"],[1,"overflow-x-auto","max-h-[46px]","inline-flex"],[1,"inline-flex","min-w-fit","mb-1","justify-between","items-center","px-2","py-1","me-2","text-xs","font-medium","text-primary-100","border","border-1","border-primary-100","bg-secondary-50","rounded","dark:bg-secondary-100","dark:text-secondary-50",3,"ngClass","id","title"],[1,"line-clamp-1","min-w-fit","text-wrap","break-words",3,"ngClass"],["type","button","aria-label","Remove",1,"inline-flex","items-center","p-1","ms-2","text-sm","text-primary-100","dark:text-secondary-50","bg-transparent","rounded-sm","hover:bg-primary-100","hover:text-secondary-50","dark:hover:bg-primary-50","dark:hover:text-primary-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-2","h-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.nrm(3,"fa-icon",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",4),e.DNE(7,wI2,2,0),e.k0s()()()),2&t&&(e.R7$(3),e.Y8G("icon",l.faFilterList),e.R7$(),e.JRh(e.bMT(5,3,"CATEGORIES_FILTER._applied_filters")),e.R7$(3),e.vxM(7,l.selected.length>0?7:-1))},dependencies:[s1.h,s1.D9,J2.aY,_.YU]})}}return n})(),lk1=(()=>{class n{constructor(){}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-europe-trademark"]],decls:6,vars:3,consts:[[1,"w-full"],[1,"mx-auto","max-w-[1180px]","px-6","py-3","flex","items-center","gap-3"],["src","assets/logos/euflag.png","alt","EU flag",1,"h-[18px]","w-auto"],[1,"text-[14px]","text-gray-500","dark:text-gray-400","leading-none"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"img",2),e.j41(3,"p",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()),2&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"europeTrademark")," "))},dependencies:[s1.D9],encapsulation:2})}}return n})();class Uk{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}sendFeedback(a){return this.http.post(`${Uk.BASE_URL}/feedback`,a)}static{this.\u0275fac=function(c){return new(c||Uk)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:Uk,factory:Uk.\u0275fac,providedIn:"root"})}}const SI2=()=>[1,2,3,4,5];function NI2(n,a){if(1&n&&(e.j41(0,"h5",9),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.rateMessage)}}function EI2(n,a){if(1&n&&(e.j41(0,"h5",9),e.EFF(1),e.k0s(),e.j41(2,"p",13),e.EFF(3,"(optional)"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.writeMessage)}}function DI2(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.setRating(l))}),e.nrm(1,"path",18),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",t.rating>=c?"text-primary-100":"text-gray-300 dark:text-gray-500")}}function TI2(n,a){1&n&&(e.j41(0,"div",11)(1,"h5",14),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",15),e.Z7z(5,DI2,2,1,":svg:svg",16,e.fX1),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._tap")),e.R7$(3),e.Dyx(e.lJ4(3,SI2)))}function RI2(n,a){1&n&&(e.j41(0,"div",11)(1,"h5",14),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",15),e.nrm(5,"textarea",19),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._write")))}function AI2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12)(1,"button",20),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.next())}),e.qSk(),e.j41(2,"svg",21),e.nrm(3,"path",22),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"FEEDBACK._send")," "))}function II2(n,a){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.DNE(2,NI2,2,1,"h5",9)(3,EI2,4,1),e.k0s(),e.j41(4,"div",10),e.DNE(5,TI2,7,4,"div",11)(6,RI2,6,3)(7,AI2,6,3,"div",12),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faMessagePen),e.R7$(),e.vxM(2,c.addComment?3:2),e.R7$(3),e.vxM(5,c.addComment?6:5),e.R7$(2),e.vxM(7,c.rating?7:-1)}}function PI2(n,a){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"fa-icon",8),e.j41(2,"h5",24),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faHandsHoldingHeart),e.R7$(2),e.JRh(e.bMT(4,2,"FEEDBACK._thanks"))}}function jI2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.j41(2,"h5",9),e.EFF(3,"Would you like to provide feedback?"),e.k0s(),e.j41(4,"div",25)(5,"div",26)(6,"label",27)(7,"input",28),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.wantsFeedback,l)||(i.wantsFeedback=l),e.Njj(l)}),e.k0s(),e.j41(8,"span",29),e.EFF(9,"Yes"),e.k0s()(),e.j41(10,"label",27)(11,"input",28),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.wantsFeedback,l)||(i.wantsFeedback=l),e.Njj(l)}),e.k0s(),e.j41(12,"span",29),e.EFF(13,"No"),e.k0s()()(),e.j41(14,"div",12)(15,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateFeedback())}),e.qSk(),e.j41(16,"svg",21),e.nrm(17,"path",22),e.k0s(),e.EFF(18," Confirm "),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faMessagePen),e.R7$(6),e.R50("ngModel",c.wantsFeedback),e.Y8G("value",!0),e.R7$(4),e.R50("ngModel",c.wantsFeedback),e.Y8G("value",!1),e.R7$(4),e.Y8G("disabled",null==c.wantsFeedback)}}let _d1=(()=>{class n{constructor(c,t,l){this.eventMessage=c,this.feedbackService=t,this.localStorage=l,this.faMessagePen=A2.a5l,this.faHandsHoldingHeart=A2.hzq,this.rating=0,this.addComment=!1,this.showThanksMessage=!1,this.checkCampaing=!1,this.wantsFeedback=!1}onClick(){this.eventMessage.emitCloseFeedback(!0)}ngOnInit(){this.checkCampaing="campaign"==this.type}updateFeedback(){this.checkCampaing=!1,this.wantsFeedback||this.eventMessage.emitCloseFeedback(!0);let c=this.localStorage.getObject("feedback");this.localStorage.setObject("feedback",{approval:this.wantsFeedback,expire:c?.expire})}setRating(c){this.rating=c}next(){var c=this;return(0,C1.A)(function*(){if(0==c.addComment)c.addComment=!0;else{let t={rating:c.rating,type:c.type};null!=document.getElementById("message")&&(t.description=document.getElementById("message")?.value),yield(0,e0.s)(c.feedbackService.sendFeedback(t)),c.showThanksMessage=!0,yield(0,e0.s)(c.feedbackService.sendFeedback(t)),c.showThanksMessage=!0}})()}hide(){let l={expire:this.localStorage.getObject("feedback")?.expire??g1.c?.feedbackCampaignExpiration??0,approval:!1};this.localStorage.setObject("feedback",l),this.eventMessage.emitCloseFeedback(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(Uk),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["feedback-modal"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{rateMessage:"rateMessage",writeMessage:"writeMessage",type:"type"},decls:12,vars:4,consts:[["id","details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-x-hidden","justify-center","items-center","w-1/2","md:inset-0","h-full","max-h-full","rounded-lg","$event.stopPropagation();"],[1,"relative","w-full","max-w-7xl","max-h-full","rounded-t-lg",3,"click"],[1,"relative","sm:m-8","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-secondary-100","bg-cover","bg-right-bottom","rounded-lg","overflow-y-auto","max-h-[calc(100vh-10rem)]"],["type","button","data-modal-hide","details-modal",1,"absolute","top-4","right-4","z-50","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","rounded-t-lg","p-8"],[1,"text-5xl","text-primary-50","align-middle","mr-2",3,"icon"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"p-8"],[1,"justify-start"],[1,"flex"],[1,"text-md","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"font-semibold","tracking-tight","text-lg","text-primary-100","dark:text-primary-50"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 22 20",1,"w-8","h-8","cursor-pointer","transition-colors",3,"ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 22 20",1,"w-8","h-8","cursor-pointer","transition-colors",3,"click","ngClass"],["d","M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"],["id","message","rows","4",1,"block","p-2.5","w-full","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500"],["type","button",1,"mt-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-primary-100","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"w-full","mb-4","rounded-t-lg","p-8"],[1,"md:text-3xl","lg:text-4xl","mt-2","font-semibold","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"justify-start","mt-4"],[1,"flex","gap-4"],[1,"inline-flex","items-center"],["type","radio","name","feedbackOption",1,"w-4","h-4","cursor-pointer","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"ngModelChange","ngModel","value"],[1,"ms-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["type","button",1,"mt-4","w-fit","flex","items-center","justify-start","disabled:opacity-50","disabled:cursor-not-allowed","text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-primary-100","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"button",3),e.bIt("click",function(u){return l.hide(),u.stopPropagation()}),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.joV(),e.j41(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.DNE(9,II2,8,4)(10,PI2,5,4)(11,jI2,19,6),e.k0s()()()),2&t&&(e.R7$(7),e.JRh(e.bMT(8,2,"CARD._close")),e.R7$(2),e.vxM(9,l.showThanksMessage||l.checkCampaing?l.showThanksMessage?10:l.checkCampaing?11:-1:9))},dependencies:[_.YU,p.me,p.Fm,p.BC,p.vS,J2.aY,s1.D9]})}}return n})();const Fk1={prefix:"fab",iconName:"x-twitter",icon:[512,512,[],"e61b","M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"]},Sk1={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Ik1={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},Bk1=[{label:"FOOTER.aboutTitle",navLinks:[{label:"FOOTER.domeProject",url:"https://dome-project.eu/",isRouterLink:!1},{label:"FOOTER.contactUs",url:"/contact-us",isRouterLink:!0},{label:"Feedback"},{label:"Newsletter",url:"https://www.linkedin.com/newsletters/newsletter-7142535480692133889/",isRouterLink:!1}]},{label:"FOOTER.marketplaceTitle",navLinks:[{label:"FOOTER.browse",url:"/search",isRouterLink:!0},{label:"FOOTER.forCustomers",url:"landing-page/customers",isRouterLink:!0},{label:"FOOTER.forProviders",url:"landing-page/providers",isRouterLink:!0}]},{label:"FOOTER.resourcesTitle",navLinks:[{label:"FOOTER.documentation",url:"https://knowledgebase.dome-marketplace-prd.org/",isRouterLink:!1},{label:"FOOTER.news",url:"/news",isRouterLink:!0},{label:"FOOTER.faqs",url:"/faq",isRouterLink:!0}]},{label:"FOOTER.legalTitle",navLinks:[{label:"FOOTER._licensing",url:"/assets/documents/terms.pdf",isRouterLink:!1},{label:"FOOTER._privacy",url:"/assets/documents/privacy.pdf",isRouterLink:!1},{label:"FOOTER._cookies",url:"/assets/documents/cookies.pdf",isRouterLink:!1}]}],zH2=[{name:"BAE",displayName:"BAE Marketplace",browserTitle:"BAE Marketplace",isDefault:!0,assets:{logoUrl:"assets/themes/bae/bae-logo.svg",faviconUrl:"assets/themes/bae/bae-logo.svg",jumboBgUrl:"assets/themes/bae/jumboBackground.png",cardDefaultBgUrl:"assets/themes/bae/cardBackground.svg"},links:{headerLinks:[{label:"HEADER._home",url:"/dashboard",isRouterLink:!0},{label:"HEADER._browse",id:"searchDropdown",children:[{label:"HEADER._services",url:"/search",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],marketplaceHomeUrl:"/search",linkedin:"https://linkedin.com/company/ocean-theme-example",youtube:"https://youtube.com/c/ocean-theme-example",twitter:"https://twitter.com/ocean-theme-example"},dashboard:{showFeaturedOfferings:!0,showPlatformBenefits:!1}},{name:"DOME",displayName:"Dome Marketplace",browserTitle:"DOME Marketplace",assets:{logoUrl:"assets/themes/dome/dome-logo.svg",faviconUrl:"assets/dome_logo.PNG",jumboBgUrl:"assets/themes/dome/jumboBackground.png",cardDefaultBgUrl:"assets/themes/dome/cardBackground.png"},links:{headerLinks:[{label:"HEADER._forCustomers",url:"/landing-page/customers",isRouterLink:!0},{label:"HEADER._forProviders",url:"/landing-page/providers",isRouterLink:!0},{id:"dropdown-marketplace",label:"HEADER._marketplace",children:[{label:"HEADER._browse_serv",url:"/browse",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],footerLinks:Bk1,footerLinksColsNumber:Bk1.length,marketplaceHomeUrl:"/browse",linkedin:g1.c.DOME_LINKEDIN,youtube:g1.c.DOME_YOUTUBE,twitter:g1.c.DOME_X,privacyPolicy:"assets/documents/privacy.pdf"},dashboard:{showFeaturedOfferings:!0,showPlatformBenefits:!0},metaTags:[{property:"og:title",content:"DOME Marketplace - Dashboard"},{property:"og:description",content:"The European federated ecosystem for secure and trusted Cloud and Edge service procurement."},{property:"og:image",content:"https://dome-marketplace.eu"},{property:"og:url",content:"https://dome-marketplace.eu/dashboard"},{property:"og:type",content:"website"}]}];let cF=(()=>{class n{constructor(c,t,l,i){this.rendererFactory=c,this.document=t,this.platformId=l,this.injector=i,this.themeManagedMetaAttribute="data-theme-managed-meta",this.availableThemes=zH2,this.renderer=this.rendererFactory.createRenderer(null,null),this.currentThemeSubject=new Ru1.t(null),this.currentTheme$=this.currentThemeSubject.asObservable(),this.defaultTheme=this.availableThemes.find(u=>u.isDefault)||this.availableThemes[0],!this.defaultTheme&&this.availableThemes.length>0?(console.warn("ThemeService: Ning\xfan tema marcado como 'isDefault'. Usando el primero de la lista como fallback."),this.defaultTheme=this.availableThemes[0]):0===this.availableThemes.length&&(console.error("ThemeService: No hay temas disponibles. El sistema de temas no funcionar\xe1 correctamente."),this.defaultTheme={name:"fallback",displayName:"Fallback",assets:{logoUrl:""}})}applyThemeClassToBody(c,t){if((0,_.UE)(this.platformId)&&this.document?.body){const l=this.document.body;t&&t!==c&&this.renderer.removeClass(l,`theme-${t.toLowerCase()}`),this.renderer.addClass(l,`theme-${c.toLowerCase()}`)}}applyThemeBrowserMetadata(c){if(!(0,_.UE)(this.platformId)||!this.document)return;const t=c.browserTitle||c.displayName;t&&(this.document.title=t),this.applyThemeMetaTags(c);const l=c.assets?.faviconUrl;if(!l)return;const i=l.startsWith("/")?l:`/${l}`;let u=this.document.querySelector("link[rel*='icon']");!u&&this.document.head&&(u=this.renderer.createElement("link"),this.renderer.setAttribute(u,"rel","icon"),this.renderer.appendChild(this.document.head,u)),u&&this.renderer.setAttribute(u,"href",i)}applyThemeMetaTags(c){const t=this.document.head;t&&(t.querySelectorAll(`meta[${this.themeManagedMetaAttribute}="true"]`).forEach(l=>this.renderer.removeChild(t,l)),c.metaTags?.length&&c.metaTags.forEach(l=>{if(!l.content||!l.name&&!l.property)return;const i=this.renderer.createElement("meta");this.renderer.setAttribute(i,this.themeManagedMetaAttribute,"true"),this.renderer.setAttribute(i,"content",l.content),l.name&&this.renderer.setAttribute(i,"name",l.name),l.property&&this.renderer.setAttribute(i,"property",l.property),this.renderer.appendChild(t,i)}))}initializeProviderTheme(c){let t;if(c&&(t=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),t||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),t||(t=this.defaultTheme),!t&&this.availableThemes.length>0&&(t=this.availableThemes[0]),t){const l=this.currentThemeSubject.value;this.applyThemeClassToBody(t.name,l?.name),this.applyThemeBrowserMetadata(t),this.currentThemeSubject.next(t);try{const i=this.injector.get(s1.c$);i.currentLang&&i.reloadLang(i.currentLang)}catch(i){console.error("No se pudo obtener TranslateService. \xbfEst\xe1 importado el TranslateModule correctamente?",i)}}else console.error("ThemeService: No se pudo determinar un tema para aplicar.")}findTheme(c){let t;return c&&(t=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),t||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),t||(t=this.defaultTheme),t}getCurrentThemeConfig(){return this.currentThemeSubject.value}getAvailableThemes(){return this.availableThemes}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(e._9s),e.KVO(_.qQ),e.KVO(e.Agw),e.KVO(e.zZn))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const Vk1=(n,a)=>a.label,Uk1=(n,a)=>a.url,MH2=(n,a)=>a.label+(a.url||""),xH2=n=>({"mr-4":n});function bH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"fa-icon",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.openNewTab(l.url))}),e.k0s()}2&n&&e.Y8G("icon",a.$implicit.icon)}function yH2(n,a){if(1&n&&(e.j41(0,"div",9),e.Z7z(1,bH2,1,1,"fa-icon",14,Uk1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.socialLinks)}}function FH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",19),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(4);return i.feedback=!i.feedback,e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function vH2(n,a){if(1&n&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function kH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(3);return e.Njj(i.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function wH2(n,a){if(1&n&&e.DNE(0,vH2,3,4,"a",20)(1,kH2,3,3),2&n){const c=e.XpG().$implicit;e.vxM(0,c.isRouterLink?1:0)}}function SH2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,FH2,3,3,"a",18)(2,wH2,2,1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,"Feedback"===c.label?1:2)}}function NH2(n,a){if(1&n&&(e.j41(0,"div")(1,"h3",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",17),e.Z7z(5,SH2,3,1,"li",null,Vk1),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,c.label)," "),e.R7$(3),e.Dyx(c.navLinks)}}function EH2(n,a){if(1&n&&(e.j41(0,"footer",0)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),e.nrm(6,"img",7),e.k0s(),e.j41(7,"p",8),e.EFF(8," DOME \u2014 Europe's trusted marketplace for verified cloud, edge & AI services. "),e.k0s(),e.DNE(9,yH2,3,0,"div",9),e.k0s(),e.j41(10,"div",10)(11,"div",11),e.Z7z(12,NH2,7,3,"div",null,Vk1),e.k0s()()()(),e.j41(14,"div",12)(15,"div",13),e.nrm(16,"app-europe-trademark"),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(9),e.vxM(9,c.socialLinks.length?9:-1),e.R7$(3),e.Dyx(c.footerLinks)}}function DH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"fa-icon",26),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.openNewTab(l.url))}),e.k0s()}if(2&n){const c=a.$implicit;e.Y8G("ngClass",e.eq3(2,xH2,a.$index!==a.$count-1))("icon",c.icon)}}function TH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",27),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return i.feedback=!i.feedback,e.Njj(l.stopPropagation())}),e.EFF(2," Feedback "),e.k0s()()}}function RH2(n,a){if(1&n&&(e.j41(0,"a",28),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function AH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function IH2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,RH2,3,4,"a",28)(2,AH2,3,3),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function PH2(n,a){if(1&n&&(e.j41(0,"div")(1,"div",22)(2,"div",23),e.Z7z(3,DH2,1,4,"fa-icon",24,Uk1),e.k0s(),e.j41(5,"ul",25),e.DNE(6,TH2,3,0,"li"),e.Z7z(7,IH2,3,1,"li",null,MH2),e.k0s()()()),2&n){const c=e.XpG();e.R7$(3),e.Dyx(c.socialLinks),e.R7$(3),e.vxM(6,c.checkLogged?6:-1),e.R7$(),e.Dyx(c.defaultFooterLinks)}}function jH2(n,a){1&n&&(e.nrm(0,"feedback-modal",1),e.nI1(1,"translate"),e.nI1(2,"translate")),2&n&&e.Y8G("rateMessage",e.bMT(1,2,"FEEDBACK._footer_title"))("writeMessage",e.bMT(2,4,"FEEDBACK._footer_improve"))}let Gk1=(()=>{class n{constructor(c,t,l,i){this.themeService=c,this.localStorage=t,this.eventMessage=l,this.router=i,this.faLinkedin=Sk1,this.faYoutube=Ik1,this.faXTwitter=Fk1,this.unSub=new S.B,this.checkLogged=!1,this.feedback=!1,this.isDomeTheme=!1,this.socialLinks=[],this.footerLinks=[],this.defaultFooterLinks=[]}ngOnInit(){this.getCurrentThemeData(),this.checkEventMessages(),this.checkIfLogged()}checkIfLogged(){const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0&&(this.checkLogged=!0)}checkEventMessages(){this.eventMessage.messages$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{"CloseFeedback"===c.type&&(this.feedback=!1),this.checkIfLogged()})}getCurrentThemeData(){this.themeService.currentTheme$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{this.isDomeTheme="DOME"===(c?.name||"").toUpperCase(),this.footerLinks=c?.links?.footerLinks||[],this.defaultFooterLinks=this.footerLinks.flatMap(t=>t.navLinks||[]),this.columns=c?.links?.footerLinksColsNumber||0,this.socialLinks=[],c?.links?.linkedin&&this.socialLinks.push({url:c.links.linkedin,icon:this.faLinkedin}),c?.links?.twitter&&this.socialLinks.push({url:c.links.twitter,icon:this.faXTwitter}),c?.links?.youtube&&this.socialLinks.push({url:c.links.youtube,icon:this.faYoutube})})}goToRoute(c){this.router.navigate([c])}openNewTab(c){window.open(c,"_blank")}ngOnDestroy(){this.unSub.complete(),this.unSub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(cF),e.rXU(z2.s),e.rXU(U2),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-footer"]],decls:3,vars:2,consts:[[1,"w-full","bg-[#0A1930]","text-white","antialiased"],["type","experience",1,"fixed","inset-0","z-40","flex","items-center","justify-center",3,"rateMessage","writeMessage"],[1,"mx-auto","max-w-[1240px]","px-8","lg:px-12"],[1,"pt-[72px]","pb-[56px]"],[1,"grid","grid-cols-1","md:grid-cols-12","gap-y-12","md:gap-x-12"],[1,"md:col-span-5"],[1,"flex","items-start"],["src","assets/logos/DOME_Logo_White_Name.svg","alt","DOME logo",1,"h-[60px]"],[1,"mt-10","max-w-[460px]","text-[19px]","leading-[1.58]","text-white/80"],[1,"mt-8","flex","items-center","gap-6"],[1,"md:col-span-7"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-x-[70px]","gap-y-12"],[1,"border-white/15","py-[22px]"],[1,"flex","flex-col","sm:flex-row","sm:items-center","sm:justify-between","gap-4","text-[14px]","leading-[1.5]","text-white/55"],["size","lg",1,"cursor-pointer","opacity-90","hover:opacity-100","transition",3,"icon"],["size","lg",1,"cursor-pointer","opacity-90","hover:opacity-100","transition",3,"click","icon"],[1,"text-[14px]","leading-[1.25]","font-semibold","tracking-[0.08em]","text-white/95"],[1,"mt-5","space-y-[10px]"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"click"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"href"],[1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"click"],[1,"flex","h-[25px]","justify-center","md:justify-between","items-center","bg-white","border-t","border-gray-200","shadow","dark:bg-tertiary-50","dark:border-gray-600","p-4"],[1,"hidden","md:flex","justify-start","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer",3,"ngClass","icon"],[1,"flex","flex-wrap","items-center","text-sm","font-medium","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer",3,"click","ngClass","icon"],[1,"mr-4","hover:underline","md:mr-6",3,"click"],["target","_blank","rel","noopener noreferrer",1,"mr-4","hover:underline","md:mr-6",3,"href"],[1,"mr-4","hover:underline","md:mr-6","cursor-pointer",3,"click"]],template:function(t,l){1&t&&e.DNE(0,EH2,17,1,"footer",0)(1,PH2,9,1)(2,jH2,3,6,"feedback-modal",1),2&t&&(e.vxM(0,l.isDomeTheme?0:1),e.R7$(2),e.vxM(2,l.feedback?2:-1))},dependencies:[_.YU,J2.aY,lk1,_d1,s1.D9]})}}return n})();const OH2=function(){function n(a,c){void 0===c&&(c=[]),this._eventType=a,this._eventFunctions=c}return n.prototype.init=function(){var a=this;this._eventFunctions.forEach(function(c){typeof window<"u"&&window.addEventListener(a._eventType,c)})},n}();var bG=function(){return bG=Object.assign||function(n){for(var a,c=1,t=arguments.length;c"u")&&(n instanceof pc(n).ShadowRoot||n instanceof ShadowRoot)}typeof window<"u"&&(window.Dismiss=Jk1,window.initDismisses=xd1);var lF=Math.max,wG=Math.min,Gk=Math.round;function yd1(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Qk1(){return!/^((?!chrome|android).)*safari/i.test(yd1())}function Hk(n,a,c){void 0===a&&(a=!1),void 0===c&&(c=!1);var t=n.getBoundingClientRect(),l=1,i=1;a&&y7(n)&&(l=n.offsetWidth>0&&Gk(t.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Gk(t.height)/n.offsetHeight||1);var C=(nF(n)?pc(n):window).visualViewport,b=!Qk1()&&c,T=(t.left+(b&&C?C.offsetLeft:0))/l,W=(t.top+(b&&C?C.offsetTop:0))/i,u1=t.width/l,a1=t.height/i;return{width:u1,height:a1,top:W,right:T+u1,bottom:W+a1,left:T,x:T,y:W}}function Fd1(n){var a=pc(n);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function Ts(n){return n?(n.nodeName||"").toLowerCase():null}function IL(n){return((nF(n)?n.ownerDocument:n.document)||window.document).documentElement}function vd1(n){return Hk(IL(n)).left+Fd1(n).scrollLeft}function cf(n){return pc(n).getComputedStyle(n)}function kd1(n){var a=cf(n);return/auto|scroll|overlay|hidden/.test(a.overflow+a.overflowY+a.overflowX)}function GH2(n,a,c){void 0===c&&(c=!1);var t=y7(a),l=y7(a)&&function UH2(n){var a=n.getBoundingClientRect(),c=Gk(a.width)/n.offsetWidth||1,t=Gk(a.height)/n.offsetHeight||1;return 1!==c||1!==t}(a),i=IL(a),u=Hk(n,l,c),C={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(t||!t&&!c)&&(("body"!==Ts(a)||kd1(i))&&(C=function VH2(n){return n!==pc(n)&&y7(n)?function BH2(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):Fd1(n)}(a)),y7(a)?((b=Hk(a,!0)).x+=a.clientLeft,b.y+=a.clientTop):i&&(b.x=vd1(i))),{x:u.left+C.scrollLeft-b.x,y:u.top+C.scrollTop-b.y,width:u.width,height:u.height}}function wd1(n){var a=Hk(n),c=n.offsetWidth,t=n.offsetHeight;return Math.abs(a.width-c)<=1&&(c=a.width),Math.abs(a.height-t)<=1&&(t=a.height),{x:n.offsetLeft,y:n.offsetTop,width:c,height:t}}function SG(n){return"html"===Ts(n)?n:n.assignedSlot||n.parentNode||(bd1(n)?n.host:null)||IL(n)}function Zk1(n){return["html","body","#document"].indexOf(Ts(n))>=0?n.ownerDocument.body:y7(n)&&kd1(n)?n:Zk1(SG(n))}function BE(n,a){var c;void 0===a&&(a=[]);var t=Zk1(n),l=t===(null==(c=n.ownerDocument)?void 0:c.body),i=pc(t),u=l?[i].concat(i.visualViewport||[],kd1(t)?t:[]):t,C=a.concat(u);return l?C:C.concat(BE(SG(u)))}function HH2(n){return["table","td","th"].indexOf(Ts(n))>=0}function Kk1(n){return y7(n)&&"fixed"!==cf(n).position?n.offsetParent:null}function VE(n){for(var a=pc(n),c=Kk1(n);c&&HH2(c)&&"static"===cf(c).position;)c=Kk1(c);return c&&("html"===Ts(c)||"body"===Ts(c)&&"static"===cf(c).position)?a:c||function YH2(n){var a=/firefox/i.test(yd1());if(/Trident/i.test(yd1())&&y7(n)&&"fixed"===cf(n).position)return null;var l=SG(n);for(bd1(l)&&(l=l.host);y7(l)&&["html","body"].indexOf(Ts(l))<0;){var i=cf(l);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||a&&"filter"===i.willChange||a&&i.filter&&"none"!==i.filter)return l;l=l.parentNode}return null}(n)||a}var S5="top",F7="bottom",v7="right",N5="left",UE=[S5,F7,v7,N5],Yk="start",GE="end",ew1="viewport",HE="popper",cw1=UE.reduce(function(n,a){return n.concat([a+"-"+Yk,a+"-"+GE])},[]),tw1=[].concat(UE,["auto"]).reduce(function(n,a){return n.concat([a,a+"-"+Yk,a+"-"+GE])},[]),lY2=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function sY2(n){var a=new Map,c=new Set,t=[];function l(i){c.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(C){if(!c.has(C)){var b=a.get(C);b&&l(b)}}),t.push(i)}return n.forEach(function(i){a.set(i.name,i)}),n.forEach(function(i){c.has(i.name)||l(i)}),t}function oY2(n){var a;return function(){return a||(a=new Promise(function(c){Promise.resolve().then(function(){a=void 0,c(n())})})),a}}var nw1={placement:"bottom",modifiers:[],strategy:"absolute"};function lw1(){for(var n=arguments.length,a=new Array(n),c=0;c=0?"x":"y"}function sw1(n){var b,a=n.reference,c=n.element,t=n.placement,l=t?Rs(t):null,i=t?qk(t):null,u=a.x+a.width/2-c.width/2,C=a.y+a.height/2-c.height/2;switch(l){case S5:b={x:u,y:a.y-c.height};break;case F7:b={x:u,y:a.y+a.height};break;case v7:b={x:a.x+a.width,y:C};break;case N5:b={x:a.x-c.width,y:C};break;default:b={x:a.x,y:a.y}}var T=l?Nd1(l):null;if(null!=T){var W="y"===T?"height":"width";switch(i){case Yk:b[T]=b[T]-(a[W]/2-c[W]/2);break;case GE:b[T]=b[T]+(a[W]/2-c[W]/2)}}return b}var pY2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aw1(n){var a,c=n.popper,t=n.popperRect,l=n.placement,i=n.variation,u=n.offsets,C=n.position,b=n.gpuAcceleration,T=n.adaptive,W=n.roundOffsets,u1=n.isFixed,a1=u.x,T1=void 0===a1?0:a1,Y1=u.y,f2=void 0===Y1?0:Y1,M2="function"==typeof W?W({x:T1,y:f2}):{x:T1,y:f2};T1=M2.x,f2=M2.y;var G2=u.hasOwnProperty("x"),N2=u.hasOwnProperty("y"),a4=N5,B0=S5,K0=window;if(T){var r0=VE(c),W2="clientHeight",e6="clientWidth";r0===pc(c)&&"static"!==cf(r0=IL(c)).position&&"absolute"===C&&(W2="scrollHeight",e6="scrollWidth"),(l===S5||(l===N5||l===v7)&&i===GE)&&(B0=F7,f2-=(u1&&r0===K0&&K0.visualViewport?K0.visualViewport.height:r0[W2])-t.height,f2*=b?1:-1),l!==N5&&(l!==S5&&l!==F7||i!==GE)||(a4=v7,T1-=(u1&&r0===K0&&K0.visualViewport?K0.visualViewport.width:r0[e6])-t.width,T1*=b?1:-1)}var l5,Ae=Object.assign({position:C},T&&pY2),Dn=!0===W?function hY2(n,a){var t=n.y,l=a.devicePixelRatio||1;return{x:Gk(n.x*l)/l||0,y:Gk(t*l)/l||0}}({x:T1,y:f2},pc(c)):{x:T1,y:f2};return T1=Dn.x,f2=Dn.y,Object.assign({},Ae,b?((l5={})[B0]=N2?"0":"",l5[a4]=G2?"0":"",l5.transform=(K0.devicePixelRatio||1)<=1?"translate("+T1+"px, "+f2+"px)":"translate3d("+T1+"px, "+f2+"px, 0)",l5):((a={})[B0]=N2?f2+"px":"",a[a4]=G2?T1+"px":"",a.transform="",a))}var yY2={left:"right",right:"left",bottom:"top",top:"bottom"};function EG(n){return n.replace(/left|right|bottom|top/g,function(a){return yY2[a]})}var FY2={start:"end",end:"start"};function ow1(n){return n.replace(/start|end/g,function(a){return FY2[a]})}function iw1(n,a){var c=a.getRootNode&&a.getRootNode();if(n.contains(a))return!0;if(c&&bd1(c)){var t=a;do{if(t&&n.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function Ed1(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function rw1(n,a,c){return a===ew1?Ed1(function vY2(n,a){var c=pc(n),t=IL(n),l=c.visualViewport,i=t.clientWidth,u=t.clientHeight,C=0,b=0;if(l){i=l.width,u=l.height;var T=Qk1();(T||!T&&"fixed"===a)&&(C=l.offsetLeft,b=l.offsetTop)}return{width:i,height:u,x:C+vd1(n),y:b}}(n,c)):nF(a)?function wY2(n,a){var c=Hk(n,!1,"fixed"===a);return c.top=c.top+n.clientTop,c.left=c.left+n.clientLeft,c.bottom=c.top+n.clientHeight,c.right=c.left+n.clientWidth,c.width=n.clientWidth,c.height=n.clientHeight,c.x=c.left,c.y=c.top,c}(a,c):Ed1(function kY2(n){var a,c=IL(n),t=Fd1(n),l=null==(a=n.ownerDocument)?void 0:a.body,i=lF(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=lF(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),C=-t.scrollLeft+vd1(n),b=-t.scrollTop;return"rtl"===cf(l||c).direction&&(C+=lF(c.clientWidth,l?l.clientWidth:0)-i),{width:i,height:u,x:C,y:b}}(IL(n)))}function fw1(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function uw1(n,a){return a.reduce(function(c,t){return c[t]=n,c},{})}function YE(n,a){void 0===a&&(a={});var t=a.placement,l=void 0===t?n.placement:t,i=a.strategy,u=void 0===i?n.strategy:i,C=a.boundary,b=void 0===C?"clippingParents":C,T=a.rootBoundary,W=void 0===T?ew1:T,u1=a.elementContext,a1=void 0===u1?HE:u1,T1=a.altBoundary,Y1=void 0!==T1&&T1,f2=a.padding,M2=void 0===f2?0:f2,G2=fw1("number"!=typeof M2?M2:uw1(M2,UE)),a4=n.rects.popper,B0=n.elements[Y1?a1===HE?"reference":HE:a1],K0=function NY2(n,a,c,t){var l="clippingParents"===a?function SY2(n){var a=BE(SG(n)),t=["absolute","fixed"].indexOf(cf(n).position)>=0&&y7(n)?VE(n):n;return nF(t)?a.filter(function(l){return nF(l)&&iw1(l,t)&&"body"!==Ts(l)}):[]}(n):[].concat(a),i=[].concat(l,[c]),C=i.reduce(function(b,T){var W=rw1(n,T,t);return b.top=lF(W.top,b.top),b.right=wG(W.right,b.right),b.bottom=wG(W.bottom,b.bottom),b.left=lF(W.left,b.left),b},rw1(n,i[0],t));return C.width=C.right-C.left,C.height=C.bottom-C.top,C.x=C.left,C.y=C.top,C}(nF(B0)?B0:B0.contextElement||IL(n.elements.popper),b,W,u),r0=Hk(n.elements.reference),W2=sw1({reference:r0,element:a4,strategy:"absolute",placement:l}),e6=Ed1(Object.assign({},a4,W2)),N6=a1===HE?e6:r0,T8={top:K0.top-N6.top+G2.top,bottom:N6.bottom-K0.bottom+G2.bottom,left:K0.left-N6.left+G2.left,right:N6.right-K0.right+G2.right},Ae=n.modifiersData.offset;if(a1===HE&&Ae){var Dn=Ae[l];Object.keys(T8).forEach(function(l5){var dF=[v7,F7].indexOf(l5)>=0?1:-1,fF=[S5,F7].indexOf(l5)>=0?"y":"x";T8[l5]+=Dn[fF]*dF})}return T8}function qE(n,a,c){return lF(n,wG(a,c))}function mw1(n,a,c){return void 0===c&&(c={x:0,y:0}),{top:n.top-a.height-c.y,right:n.right-a.width+c.x,bottom:n.bottom-a.height+c.y,left:n.left-a.width-c.x}}function pw1(n){return[S5,v7,F7,N5].some(function(a){return n[a]>=0})}var Dd1=rY2({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function dY2(n){var a=n.state,c=n.instance,t=n.options,l=t.scroll,i=void 0===l||l,u=t.resize,C=void 0===u||u,b=pc(a.elements.popper),T=[].concat(a.scrollParents.reference,a.scrollParents.popper);return i&&T.forEach(function(W){W.addEventListener("scroll",c.update,NG)}),C&&b.addEventListener("resize",c.update,NG),function(){i&&T.forEach(function(W){W.removeEventListener("scroll",c.update,NG)}),C&&b.removeEventListener("resize",c.update,NG)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function uY2(n){var a=n.state;a.modifiersData[n.name]=sw1({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function gY2(n){var a=n.state,c=n.options,t=c.gpuAcceleration,l=void 0===t||t,i=c.adaptive,u=void 0===i||i,C=c.roundOffsets,b=void 0===C||C,T={placement:Rs(a.placement),variation:qk(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:l,isFixed:"fixed"===a.options.strategy};null!=a.modifiersData.popperOffsets&&(a.styles.popper=Object.assign({},a.styles.popper,aw1(Object.assign({},T,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:u,roundOffsets:b})))),null!=a.modifiersData.arrow&&(a.styles.arrow=Object.assign({},a.styles.arrow,aw1(Object.assign({},T,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function LY2(n){var a=n.state;Object.keys(a.elements).forEach(function(c){var t=a.styles[c]||{},l=a.attributes[c]||{},i=a.elements[c];!y7(i)||!Ts(i)||(Object.assign(i.style,t),Object.keys(l).forEach(function(u){var C=l[u];!1===C?i.removeAttribute(u):i.setAttribute(u,!0===C?"":C)}))})},effect:function CY2(n){var a=n.state,c={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,c.popper),a.styles=c,a.elements.arrow&&Object.assign(a.elements.arrow.style,c.arrow),function(){Object.keys(a.elements).forEach(function(t){var l=a.elements[t],i=a.attributes[t]||{},C=Object.keys(a.styles.hasOwnProperty(t)?a.styles[t]:c[t]).reduce(function(b,T){return b[T]="",b},{});!y7(l)||!Ts(l)||(Object.assign(l.style,C),Object.keys(i).forEach(function(b){l.removeAttribute(b)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function xY2(n){var a=n.state,t=n.name,l=n.options.offset,i=void 0===l?[0,0]:l,u=tw1.reduce(function(W,u1){return W[u1]=function MY2(n,a,c){var t=Rs(n),l=[N5,S5].indexOf(t)>=0?-1:1,i="function"==typeof c?c(Object.assign({},a,{placement:n})):c,u=i[0],C=i[1];return u=u||0,C=(C||0)*l,[N5,v7].indexOf(t)>=0?{x:C,y:u}:{x:u,y:C}}(u1,a.rects,i),W},{}),C=u[a.placement],T=C.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=C.x,a.modifiersData.popperOffsets.y+=T),a.modifiersData[t]=u}},{name:"flip",enabled:!0,phase:"main",fn:function TY2(n){var a=n.state,c=n.options,t=n.name;if(!a.modifiersData[t]._skip){for(var l=c.mainAxis,i=void 0===l||l,u=c.altAxis,C=void 0===u||u,b=c.fallbackPlacements,T=c.padding,W=c.boundary,u1=c.rootBoundary,a1=c.altBoundary,T1=c.flipVariations,Y1=void 0===T1||T1,f2=c.allowedAutoPlacements,M2=a.options.placement,G2=Rs(M2),a4=b||(G2!==M2&&Y1?function DY2(n){if("auto"===Rs(n))return[];var a=EG(n);return[ow1(n),a,ow1(a)]}(M2):[EG(M2)]),B0=[M2].concat(a4).reduce(function(aw,GL){return aw.concat("auto"===Rs(GL)?function EY2(n,a){void 0===a&&(a={});var l=a.boundary,i=a.rootBoundary,u=a.padding,C=a.flipVariations,b=a.allowedAutoPlacements,T=void 0===b?tw1:b,W=qk(a.placement),u1=W?C?cw1:cw1.filter(function(Y1){return qk(Y1)===W}):UE,a1=u1.filter(function(Y1){return T.indexOf(Y1)>=0});0===a1.length&&(a1=u1);var T1=a1.reduce(function(Y1,f2){return Y1[f2]=YE(n,{placement:f2,boundary:l,rootBoundary:i,padding:u})[Rs(f2)],Y1},{});return Object.keys(T1).sort(function(Y1,f2){return T1[Y1]-T1[f2]})}(a,{placement:GL,boundary:W,rootBoundary:u1,padding:T,flipVariations:Y1,allowedAutoPlacements:f2}):GL)},[]),K0=a.rects.reference,r0=a.rects.popper,W2=new Map,e6=!0,N6=B0[0],T8=0;T8=0,fF=dF?"width":"height",hc=YE(a,{placement:Ae,boundary:W,rootBoundary:u1,altBoundary:a1,padding:T}),Tn=dF?l5?v7:N5:l5?F7:S5;K0[fF]>r0[fF]&&(Tn=EG(Tn));var iH=EG(Tn),uF=[];if(i&&uF.push(hc[Dn]<=0),C&&uF.push(hc[Tn]<=0,hc[iH]<=0),uF.every(function(aw){return aw})){N6=Ae,e6=!1;break}W2.set(Ae,uF)}if(e6)for(var Cf1=function(GL){var oD=B0.find(function(fH){var mF=W2.get(fH);if(mF)return mF.slice(0,GL).every(function(zf1){return zf1})});if(oD)return N6=oD,"break"},aD=Y1?3:1;aD>0&&"break"!==Cf1(aD);aD--);a.placement!==N6&&(a.modifiersData[t]._skip=!0,a.placement=N6,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function PY2(n){var a=n.state,c=n.options,t=n.name,l=c.mainAxis,i=void 0===l||l,u=c.altAxis,C=void 0!==u&&u,a1=c.tether,T1=void 0===a1||a1,Y1=c.tetherOffset,f2=void 0===Y1?0:Y1,M2=YE(a,{boundary:c.boundary,rootBoundary:c.rootBoundary,padding:c.padding,altBoundary:c.altBoundary}),G2=Rs(a.placement),N2=qk(a.placement),a4=!N2,B0=Nd1(G2),K0=function AY2(n){return"x"===n?"y":"x"}(B0),r0=a.modifiersData.popperOffsets,W2=a.rects.reference,e6=a.rects.popper,N6="function"==typeof f2?f2(Object.assign({},a.rects,{placement:a.placement})):f2,T8="number"==typeof N6?{mainAxis:N6,altAxis:N6}:Object.assign({mainAxis:0,altAxis:0},N6),Ae=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,Dn={x:0,y:0};if(r0){if(i){var l5,dF="y"===B0?S5:N5,fF="y"===B0?F7:v7,hc="y"===B0?"height":"width",Tn=r0[B0],iH=Tn+M2[dF],uF=Tn-M2[fF],rH=T1?-e6[hc]/2:0,Cf1=N2===Yk?W2[hc]:e6[hc],aD=N2===Yk?-e6[hc]:-W2[hc],dH=a.elements.arrow,aw=T1&&dH?wd1(dH):{width:0,height:0},GL=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},oD=GL[dF],fH=GL[fF],mF=qE(0,W2[hc],aw[hc]),zf1=a4?W2[hc]/2-rH-mF-oD-T8.mainAxis:Cf1-mF-oD-T8.mainAxis,GF0=a4?-W2[hc]/2+rH+mF+fH+T8.mainAxis:aD+mF+fH+T8.mainAxis,Mf1=a.elements.arrow&&VE(a.elements.arrow),HF0=Mf1?"y"===B0?Mf1.clientTop||0:Mf1.clientLeft||0:0,yE1=null!=(l5=Ae?.[B0])?l5:0,qF0=Tn+GF0-yE1,FE1=qE(T1?wG(iH,Tn+zf1-yE1-HF0):iH,Tn,T1?lF(uF,qF0):uF);r0[B0]=FE1,Dn[B0]=FE1-Tn}if(C){var vE1,pF=r0[K0],uH="y"===K0?"height":"width",kE1=pF+M2["x"===B0?S5:N5],wE1=pF-M2["x"===B0?F7:v7],xf1=-1!==[S5,N5].indexOf(G2),SE1=null!=(vE1=Ae?.[K0])?vE1:0,NE1=xf1?kE1:pF-W2[uH]-e6[uH]-SE1+T8.altAxis,EE1=xf1?pF+W2[uH]+e6[uH]-SE1-T8.altAxis:wE1,DE1=T1&&xf1?function IY2(n,a,c){var t=qE(n,a,c);return t>c?c:t}(NE1,pF,EE1):qE(T1?NE1:kE1,pF,T1?EE1:wE1);r0[K0]=DE1,Dn[K0]=DE1-pF}a.modifiersData[t]=Dn}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function OY2(n){var a,c=n.state,t=n.name,l=n.options,i=c.elements.arrow,u=c.modifiersData.popperOffsets,C=Rs(c.placement),b=Nd1(C),W=[N5,v7].indexOf(C)>=0?"height":"width";if(i&&u){var u1=function(a,c){return fw1("number"!=typeof(a="function"==typeof a?a(Object.assign({},c.rects,{placement:c.placement})):a)?a:uw1(a,UE))}(l.padding,c),a1=wd1(i),T1="y"===b?S5:N5,Y1="y"===b?F7:v7,f2=c.rects.reference[W]+c.rects.reference[b]-u[b]-c.rects.popper[W],M2=u[b]-c.rects.reference[b],G2=VE(i),N2=G2?"y"===b?G2.clientHeight||0:G2.clientWidth||0:0,r0=N2/2-a1[W]/2+(f2/2-M2/2),W2=qE(u1[T1],r0,N2-a1[W]-u1[Y1]);c.modifiersData[t]=((a={})[b]=W2,a.centerOffset=W2-r0,a)}},effect:function BY2(n){var a=n.state,t=n.options.element,l=void 0===t?"[data-popper-arrow]":t;null!=l&&("string"==typeof l&&!(l=a.elements.popper.querySelector(l))||iw1(a.elements.popper,l)&&(a.elements.arrow=l))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function UY2(n){var a=n.state,c=n.name,t=a.rects.reference,l=a.rects.popper,i=a.modifiersData.preventOverflow,u=YE(a,{elementContext:"reference"}),C=YE(a,{altBoundary:!0}),b=mw1(u,t),T=mw1(C,l,i),W=pw1(b),u1=pw1(T);a.modifiersData[c]={referenceClippingOffsets:b,popperEscapeOffsets:T,isReferenceHidden:W,hasPopperEscaped:u1},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":W,"data-popper-escaped":u1})}}]}),PL=function(){return PL=Object.assign||function(n){for(var a,c=1,t=arguments.length;cconsole.log(c),error:c=>console.error(c),complete:()=>console.info("complete")})}logout(){let a=`${kn.BASE_URL}/logout`;return console.log("-- logout --"),(0,e0.s)(this.http.get(a))}static{this.\u0275fac=function(c){return new(c||kn)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:kn,factory:kn.\u0275fac,providedIn:"root"})}}let JY2=(()=>{class n{constructor(){}get intervalId(){return this._intervalId}set intervalId(c){this._intervalId=c}fetchServer(c,t,l,i){let C=new URL(window.location.href).origin;fetch(`${g1.c.BASE_URL}${l}?state=${t}&callback_url=${C}`).then(b=>{400!==b.status&&500!==b.status?401!==b.status&&(this.stopChecking(c),c.close(),i(b)):this.stopChecking(c)}).catch(b=>{this.stopChecking(c)})}poll(c,t,l,i){null!=c&&(this.intervalId=window.setInterval(()=>{this.fetchServer(c,t,l,i)},1e3,c,t),window.setTimeout(C=>{this.stopChecking(C)},45e3,c))}launchPopup(c,t,l,i){window,window,window,window;window.innerWidth?window:document.documentElement.clientWidth?document:screen;const T1=(window.innerHeight?window:document.documentElement.clientHeight?document:screen,window,window.open(c,"_blank"));return T1?.focus(),T1}pollCertCredential(c,t){return new Promise((l,i)=>{this.poll(c,t,g1.c.SIOP_INFO.pollCertPath,function(){var u=(0,C1.A)(function*(C){let b=yield C.json();l(b)});return function(C){return u.apply(this,arguments)}}())})}pollServer(c,t){this.poll(c,t,g1.c.SIOP_INFO.pollPath,()=>{window.location.replace("/dashboard?token=local")})}stopChecking(c){null!=this.intervalId&&(c.closed||c.close(),clearInterval(this.intervalId),this.intervalId=void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const QY2=["navbarbutton"],ZY2=(n,a)=>a.id,Vd1=(n,a)=>a.label,yw1=()=>({mobile:!1}),Fw1=()=>({mobile:!0});function KY2(n,a){if(1&n&&e.nrm(0,"img",7),2&n){const c=e.XpG();e.Mz_("alt","",null==c.currentTheme?null:c.currentTheme.displayName," Logo"),e.Y8G("src",null==c.currentTheme||null==c.currentTheme.assets?null:c.currentTheme.assets.logoUrl,e.B4B)}}function eq2(n,a){if(1&n&&(e.j41(0,"div",16)(1,"div",24)(2,"ul",25),e.eu8(3,10),e.k0s(),e.nrm(4,"div",26),e.j41(5,"div",27),e.eu8(6,10),e.k0s()()()),2&n){e.XpG();const c=e.sdS(37),t=e.sdS(39);e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.lJ4(4,Fw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(5,Fw1))}}function cq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/my-offerings"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._offerings")," ")}}function tq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",39),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/admin"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._admin")," ")}}function nq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/quote-list"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Quotes "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function lq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/tenders"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Tenders "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function sq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"a",42),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeUserDropdown())}),e.nrm(2,"fa-icon",21),e.EFF(3,"Analytics "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faPieChart)}}function aq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",43),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/usage-spec"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Usage Spec "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faRuler)}}function oq2(n,a){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function iq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17)(1,"div",28)(2,"div",29),e.EFF(3),e.k0s(),e.j41(4,"div",30),e.EFF(5),e.k0s()(),e.nrm(6,"div",31),e.j41(7,"ul",19)(8,"li")(9,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/profile"))}),e.nrm(10,"fa-icon",21),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.DNE(13,cq2,5,4,"li")(14,tq2,5,4,"li"),e.j41(15,"li")(16,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-orders"))}),e.nrm(17,"fa-icon",21),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.DNE(20,nq2,4,1,"li")(21,lq2,4,1,"li")(22,sq2,4,1,"li")(23,aq2,4,1,"li"),e.j41(24,"li")(25,"button",34),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-inventory"))}),e.nrm(26,"fa-icon",21),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"li")(30,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/checkout"))}),e.nrm(31,"fa-icon",21),e.EFF(32),e.nI1(33,"translate"),e.k0s()()(),e.nrm(34,"div",31),e.j41(35,"div",19),e.DNE(36,oq2,4,4,"button",36),e.j41(37,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.logout())}),e.nrm(38,"fa-icon",21),e.EFF(39),e.nI1(40,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.JRh(c.username),e.R7$(2),e.JRh(c.email),e.R7$(5),e.Y8G("icon",c.faAddressCard),e.R7$(),e.SpI("",e.bMT(12,19,"HEADER._profile")," "),e.R7$(2),e.vxM(13,c.roles.includes(c.sellerRole)?13:-1),e.R7$(),e.vxM(14,c.isAdmin&&!1===c.loggedAsOrg||c.roles.includes(c.certifierRole)?14:-1),e.R7$(3),e.Y8G("icon",c.faReceipt),e.R7$(),e.SpI("",e.bMT(19,21,"HEADER._orders")," "),e.R7$(2),e.vxM(20,c.quotesEnabled?20:-1),e.R7$(),e.vxM(21,c.tenderEnabled?21:-1),e.R7$(),e.vxM(22,c.analyticsEnabled?22:-1),e.R7$(),e.vxM(23,c.roles.includes(c.sellerRole)?23:-1),e.R7$(3),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(28,23,"HEADER._inventory")," "),e.R7$(4),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(33,25,"HEADER._cart")," "),e.R7$(4),e.vxM(36,c.orgs.length>0&&c.isAdmin?36:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(40,27,"HEADER._sign_out")," ")}}function rq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG();return i.changeSession(l,!1),e.Njj(i.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(2),e.Y8G("icon",t.faUsers),e.R7$(),e.SpI("",c.name," ")}}function dq2(n,a){if(1&n&&e.DNE(0,rq2,4,2,"li"),2&n){const c=a.$implicit,t=e.XpG();e.vxM(0,c.id!=(null==t.loginInfo?null:t.loginInfo.logged_as)||(null==t.loginInfo?null:t.loginInfo.logged_as)==(null==t.loginInfo?null:t.loginInfo.id)?0:-1)}}function fq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.changeSession(0,!0),e.Njj(l.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faUser),e.R7$(),e.SpI("",null==c.loginInfo?null:c.loginInfo.user," ")}}function uq2(n,a){if(1&n&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function mq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(3).$implicit,u=e.XpG(2);return e.Njj(u.goTo(l.url,i.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.BMQ("data-cy","/search"===c.url||"/browse"===c.url?"browseServices":"/catalogues"===c.url?"browseCatalogs":null),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function pq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,uq2,3,4,"a",20)(2,mq2,3,4),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function hq2(n,a){if(1&n&&(e.j41(0,"li",45)(1,"button",46),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"span",47),e.EFF(5,"\u25be"),e.k0s()(),e.j41(6,"div",48)(7,"ul",19),e.Z7z(8,pq2,3,1,"li",null,Vd1),e.k0s()()()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("id",c.id),e.BMQ("data-dropdown-toggle",c.id+"Menu")("data-cy","searchDropdown"===c.id||"dropdown-marketplace"===c.id?"browse":null),e.R7$(),e.SpI(" ",e.bMT(3,6,c.label)," "),e.R7$(4),e.Y8G("id",c.id+"Menu"),e.R7$(),e.BMQ("aria-labelledby",c.id),e.R7$(),e.Dyx(c.children)}}function gq2(n,a){if(1&n&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function _q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(3).$implicit,u=e.XpG(2);return e.Njj(u.goTo(l.url,i.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function Lq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,gq2,3,4,"a",50)(2,_q2,3,3),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function Cq2(n,a){if(1&n&&e.Z7z(0,Lq2,3,1,"li",null,Vd1),2&n){const c=e.XpG(2).$implicit;e.Dyx(c.children)}}function zq2(n,a){if(1&n&&e.DNE(0,hq2,10,8,"li",45)(1,Cq2,2,0),2&n){const c=e.XpG(2).mobile;e.vxM(0,c?1:0)}}function Mq2(n,a){if(1&n&&(e.j41(0,"a",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function xq2(n,a){if(1&n&&(e.j41(0,"a",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("routerLink",c.url),e.BMQ("data-cy","/about"===c.url?"about":null),e.R7$(),e.SpI(" ",e.bMT(2,3,c.label)," ")}}function bq2(n,a){if(1&n&&e.DNE(0,Mq2,3,4,"a",52)(1,xq2,3,5),2&n){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function yq2(n,a){if(1&n&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function Fq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3).$implicit,i=e.XpG(2);return e.Njj(i.goTo(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(3).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function vq2(n,a){if(1&n&&e.DNE(0,yq2,3,4,"a",50)(1,Fq2,3,3),2&n){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function kq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,bq2,2,1)(2,vq2,2,1),e.k0s()),2&n){const c=e.XpG(2).mobile;e.R7$(),e.vxM(1,c?2:1)}}function wq2(n,a){if(1&n&&e.DNE(0,zq2,2,1)(1,kq2,3,1),2&n){const c=a.$implicit;e.vxM(0,null!=c.children&&c.children.length?0:1)}}function Sq2(n,a){if(1&n&&e.Z7z(0,wq2,2,1,null,null,Vd1),2&n){const c=e.XpG();e.Dyx(c.headerLinks)}}function Nq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/contact-us"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Eq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/contact-us"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Dq2(n,a){if(1&n&&e.DNE(0,Nq2,3,3,"button",55)(1,Eq2,3,3),2&n){const c=e.XpG(2).mobile;e.vxM(0,c?0:1)}}function Tq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onLoginClick())}),e.EFF(1," Login "),e.k0s()}}function Rq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onLoginClick())}),e.EFF(1," Login "),e.k0s()}}function Aq2(n,a){if(1&n&&e.DNE(0,Dq2,2,1)(1,Tq2,2,0,"button",54)(2,Rq2,2,0),2&n){const c=e.XpG().mobile,t=e.XpG();e.vxM(0,"DOME"===t.providerThemeName?0:-1),e.R7$(),e.vxM(1,c?1:2)}}function Iq2(n,a){if(1&n&&e.nrm(0,"fa-layers-counter",62),2&n){const c=e.XpG(4);e.Y8G("content",c.cartCount.toString())}}function Pq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",60),e.bIt("click",function(l){return e.eBV(c),e.XpG(3).toggleCartDrawer(),e.Njj(l.stopPropagation())}),e.j41(1,"fa-layers",61),e.nrm(2,"fa-icon",15),e.DNE(3,Iq2,1,1,"fa-layers-counter",62),e.k0s()(),e.j41(4,"div",63)(5,"span",64),e.EFF(6),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("fixedWidth",!0),e.R7$(),e.Y8G("icon",c.faCartShopping),e.R7$(),e.vxM(3,c.cartCount>0?3:-1),e.R7$(3),e.JRh(c.usercharacters)}}function jq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/my-offerings"))}),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._offerings")," ")}}function $q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/admin"))}),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._admin")," ")}}function Oq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/quote-list"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Quotes "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function Bq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/tenders"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Tenders "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function Vq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",73),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.isNavBarOpen=!1)}),e.nrm(1,"fa-icon",21),e.EFF(2,"Analytics "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faPieChart)}}function Uq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/usage-spec"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Usage Spec "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faRuler)}}function Gq2(n,a){if(1&n&&(e.j41(0,"button",71),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function Hq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",65)(1,"div",66),e.EFF(2),e.k0s(),e.j41(3,"div",67)(4,"div",68),e.EFF(5),e.k0s(),e.j41(6,"div",69),e.EFF(7),e.k0s()()(),e.j41(8,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/profile"))}),e.nrm(9,"fa-icon",21),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,jq2,4,4,"button",71)(13,$q2,4,4,"button",71),e.j41(14,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-orders"))}),e.nrm(15,"fa-icon",21),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.DNE(18,Oq2,3,1,"button",71)(19,Bq2,3,1,"button",71)(20,Vq2,3,1,"a",72)(21,Uq2,3,1,"button",71),e.j41(22,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-inventory"))}),e.nrm(23,"fa-icon",21),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/checkout"))}),e.nrm(27,"fa-icon",21),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"a",50),e.nrm(31,"fa-icon",21),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"a",50),e.nrm(35,"fa-icon",21),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.DNE(38,Gq2,4,4,"button",71),e.j41(39,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.logout())}),e.nrm(40,"fa-icon",21),e.EFF(41),e.nI1(42,"translate"),e.k0s()}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(c.usercharacters),e.R7$(3),e.JRh(c.username),e.R7$(2),e.JRh(c.email),e.R7$(2),e.Y8G("icon",c.faAddressCard),e.R7$(),e.SpI("",e.bMT(11,26,"HEADER._profile")," "),e.R7$(2),e.vxM(12,c.roles.includes(c.sellerRole)?12:-1),e.R7$(),e.vxM(13,c.isAdmin&&!1===c.loggedAsOrg||c.roles.includes(c.certifierRole)?13:-1),e.R7$(2),e.Y8G("icon",c.faReceipt),e.R7$(),e.SpI("",e.bMT(17,28,"HEADER._orders")," "),e.R7$(2),e.vxM(18,c.quotesEnabled?18:-1),e.R7$(),e.vxM(19,c.tenderEnabled?19:-1),e.R7$(),e.vxM(20,c.analyticsEnabled?20:-1),e.R7$(),e.vxM(21,c.roles.includes(c.sellerRole)?21:-1),e.R7$(2),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(25,30,"HEADER._inventory")," "),e.R7$(3),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(29,32,"HEADER._cart")," "),e.R7$(2),e.Y8G("href",c.knowledge,e.B4B),e.R7$(),e.Y8G("icon",c.faBrain),e.R7$(),e.SpI("",e.bMT(33,34,"HEADER._knowledge")," "),e.R7$(2),e.Y8G("href",c.ticketing,e.B4B),e.R7$(),e.Y8G("icon",c.faClipboardCheck),e.R7$(),e.SpI("",e.bMT(37,36,"HEADER._ticketing")," "),e.R7$(2),e.vxM(38,c.orgs.length>0&&c.isAdmin?38:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(42,38,"HEADER._sign_out")," ")}}function Yq2(n,a){if(1&n&&e.DNE(0,Pq2,7,4)(1,Hq2,43,40),2&n){const c=e.XpG().mobile;e.vxM(0,c?1:0)}}function qq2(n,a){if(1&n&&e.DNE(0,Aq2,3,2)(1,Yq2,2,1),2&n){const c=e.XpG();e.vxM(0,c.is_logged?1:0)}}function Xq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",23)(1,"app-cart-drawer",74),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()()}}let vw1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.translate=c,this.localStorage=t,this.api=l,this.loginService=i,this.cdr=u,this.route=C,this.eventMessage=b,this.router=T,this.qrVerifier=W,this.themeService=u1,this.sc=a1,this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.tenderEnabled=g1.c.TENDER_ENABLED,this.knowledge=g1.c.KNOWLEDGE_BASE_URL,this.knowledge_onboarding=g1.c.KB_ONBOARDING_GUIDELINES_URL,this.knowledge_guidelines=g1.c.KB_GUIDELNES_URL,this.registration=g1.c.REGISTRATION_FORM_URL,this.ticketing=g1.c.TICKETING_SYSTEM_URL,this.analyticsEnabled=g1.c.analyticsEnabled,this.analytics=g1.c.analytics,this.domeAbout=g1.c.DOME_ABOUT_LINK,this.domePublish=g1.c.DOME_PUBLISH_LINK,this.sellerRole=g1.c.SELLER_ROLE,this.orgAdminRole=g1.c.ORG_ADMIN_ROLE,this.certifierRole=g1.c.CERTIFIER_ROLE,this.langs=[],this.showCart=!1,this.is_logged=!1,this.showLogin=!1,this.loggedAsOrg=!1,this.isAdmin=!1,this.orgs=[],this.username="",this.email="",this.usercharacters="",this.roles=[],this.isNavBarOpen=!1,this.flagDropdownOpen=!1,this.cartCount=0,this.scrolled=!1,this.qrWindow=null,this.statePair="",this.currentTheme=null,this.headerLinks=[],this.themeSubscription=new x1.yU,this.destroy$=new S.B,this.faCartShopping=TL,this.faHandHoldingBox=Vf1,this.faAddressCard=mc,this.faArrowRightFromBracket=T9,this.faBoxesStacked=Ak,this.faClipboardCheck=nS,this.faBrain=eu1,this.faAnglesLeft=xE,this.faUser=Te,this.faUsers=Am,this.faCogs=IV,this.faReceipt=NO,this.faRuler=wS,this.faPieChart=lT,this.faBars=W6,this.faArrowRight=_T}onScroll(){this.scrolled=window.scrollY>10}onClick(){this.showCart&&(this.showCart=!1,this.cdr.detectChanges()),this.isNavBarOpen&&(this.isNavBarOpen=!1)}onResize(){this.isNavBarOpen&&(this.navbarbutton?.nativeElement.blur(),this.isNavBarOpen=!1)}ngDoCheck(){this.qrWindow&&this.qrWindow.closed&&(this.qrVerifier.stopChecking(this.qrWindow),this.qrWindow=null)}ngOnInit(){this.langs=this.translate.getLangs();const c=this.localStorage.getItem("current_language");this.defaultLang=c??this.translate.getDefaultLang(),this.themeSubscription=this.themeService.currentTheme$.subscribe(t=>{this.currentTheme=t,this.themeAuthUrls=t?.authUrls,this.headerLinks=this.resolveLinksEnv(t?.links?.headerLinks||[]),t?.links&&(t.links.headerLinks=this.headerLinks)}),this.hydrateLoginFromStorage(),this.sc.cart$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{this.cartCount=t.length,this.cdr.detectChanges()}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{"ToggleCartDrawer"===t.type&&(this.showCart=!1,this.cdr.detectChanges()),"LoginProcess"===t.type&&this.hydrateLoginFromStorage()}),D2()}ngAfterViewInit(){D2()}ngOnDestroy(){this.qrWindow?.close(),this.qrWindow=null,this.themeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}resolveLinksEnv(c){const t=l=>l.map(i=>{const u={...i};return i.environmentName&&(u.url=g1.c[i.environmentName]||""),i.children?.length&&(u.children=t(i.children)),u});return t(c)}hydrateLoginFromStorage(){const c=this.localStorage.getObject("login_items");if("{}"!==JSON.stringify(c))if(c.expire-$2()().unix()-4<=0)this.resetLoginState();else{if(this.loginInfo=c,this.is_logged=!0,this.orgs=c.organizations??[],this.isAdmin=(c.roles??[]).some(t=>t.name===g1.c.ADMIN_ROLE),c.logged_as===c.id)this.loggedAsOrg=!1,this.username=c.user,this.usercharacters=(c.user?.slice(0,2)||"").toUpperCase(),this.email=c.email,this.roles=(c.roles??[]).map(t=>t.name);else{const t=this.orgs.find(l=>l.id===c.logged_as);this.loggedAsOrg=!0,this.username=t?.name??"",this.usercharacters=(this.username.slice(0,2)||"").toUpperCase(),this.email=t?.description??"",this.roles=(t?.roles??[]).map(l=>l.name)}this.cdr.detectChanges()}else this.resetLoginState()}resetLoginState(){this.is_logged=!1,this.isAdmin=!1,this.loggedAsOrg=!1,this.loginInfo=null,this.orgs=[],this.roles=[],this.username="",this.email="",this.usercharacters="",this.cdr.detectChanges()}goToCatalogSearch(c){this.router.navigate(["/search/catalogue",c])}goTo(c,t){this.closeUserDropdown(),t&&this.closeDropdown("dropdown-marketplaceMenu"),this.router.navigate([c])}toggleCartDrawer(){this.showCart=!this.showCart,this.cdr.detectChanges()}toggleNavBar(){this.isNavBarOpen=!this.isNavBarOpen}switchLanguage(c){this.translate.use(c),this.localStorage.setItem("current_language",c),this.defaultLang=c}logout(){var c=this;return(0,C1.A)(function*(){c.closeUserDropdown(),c.localStorage.setObject("login_items",{}),c.resetLoginState(),"/dashboard"===c.router.url?window.location.reload():c.router.navigate(["/dashboard"]),yield c.loginService.logout(),c.cdr.detectChanges()})()}changeSession(c,t){this.closeUserDropdown();const l=this.localStorage.getObject("login_items");if("{}"===JSON.stringify(l))return;if(t)return this.loginInfo={id:l.id,user:l.user,email:l.email,token:l.token,expire:l.expire,partyId:l.partyId,roles:l.roles,organizations:l.organizations,logged_as:l.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),void D2();const i=this.orgs[c];i&&(this.loginInfo={id:l.id,user:l.user,email:l.email,token:l.token,expire:l.expire,partyId:l.partyId,roles:l.roles,organizations:l.organizations,logged_as:i.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),D2())}hideDropdown(c){this.closeUserDropdown(),document.getElementById(c)?.classList.add("hidden")}closeUserDropdown(){document.getElementById("userDropdown")?.classList.add("hidden")}closeDropdown(c){document.getElementById(c)?.classList.add("hidden")}openDropdown(c){document.getElementById(c)?.classList.remove("hidden")}onLoginClick(){if(!0===g1.c.SIOP_INFO.enabled&&void 0===this.qrVerifier.intervalId){this.statePair=L4();let c=`${g1.c.SIOP_INFO.verifierHost}${g1.c.SIOP_INFO.verifierQRCodePath}?state=${this.statePair}&client_id=${g1.c.SIOP_INFO.clientID}`;if(g1.c.SIOP_INFO.isRedirection){const u=new URL(window.location.href),C=new URL(u.origin);return C.pathname=g1.c.SIOP_INFO.requestUri,c=`${c}&response_type=code&request_uri=${C.toString()}&scope=openid%20learcredential&nonce=${L4()}`,void(window.location.href=c)}const t=new URL(g1.c.SIOP_INFO.callbackURL),l=new URL(window.location.href);return l.pathname=t.pathname,l.search=t.search,c=`${c}&client_callback=${l.toString()}`,this.qrWindow=this.qrVerifier.launchPopup(c,"Scan QR code",500,500),void this.qrVerifier.pollServer(this.qrWindow,this.statePair)}!1===g1.c.SIOP_INFO.enabled&&window.location.replace(`${g1.c.BASE_URL}/login`)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(s1.c$),e.rXU(z2.s),e.rXU(o0.F),e.rXU(kn),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(U2),e.rXU(E2.Ix),e.rXU(JY2),e.rXU(cF),e.rXU(d8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-header"]],viewQuery:function(t,l){if(1&t&&e.GBs(QY2,5),2&t){let i;e.mGM(i=e.lsd())&&(l.navbarbutton=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("scroll",function(){return l.onScroll()},!1,e.tSv)("click",function(){return l.onClick()},!1,e.EBC)("resize",function(){return l.onResize()},!1,e.tSv)},decls:41,vars:30,consts:[["navbarbutton",""],["navLinksTemplate",""],["headerActionsTemplate",""],[1,"sticky","top-0","z-50","w-full","text-white","transition-all","duration-300"],[1,"mx-auto","max-w-[1180px]","px-6","sm:px-10"],[1,"flex","h-[88px]","items-center","justify-between"],[1,"flex","items-center","gap-4","cursor-pointer","select-none",3,"click"],[1,"h-[51.7px]","w-auto",3,"src","alt"],[1,"hidden","lg:flex","items-center","justify-center","flex-1"],[1,"flex","items-center","gap-12"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","items-center","gap-3"],[1,"hidden","lg:flex","items-center","gap-3"],["type","button","aria-controls","navbar-dropdown",1,"inline-flex","lg:hidden","h-[44px]","w-[44px]","items-center","justify-center","rounded-[10px]","text-white/90","hover:text-white","hover:bg-white/10","transition",3,"click"],[1,"sr-only"],[3,"icon"],["id","navbar-dropdown",1,"lg:hidden","pb-6"],["id","userDropdown",1,"dropdown-glass","hidden","absolute","right-6","sm:right-10","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],["id","support-dropdown",1,"dropdown-glass","hidden","absolute","right-6","sm:right-10","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],[1,"flex","flex-col"],["target","_blank",1,"dropdown-item",3,"href"],[1,"mr-2",3,"icon"],["data-cy","orgsDropdown","id","orgs-dropdown",1,"dropdown-glass","hidden","absolute","right-[280px]","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],[1,"fixed","inset-0","z-40","backdrop-blur-sm","bg-black/10"],[1,"mt-3","rounded-[14px]","bg-white/10","backdrop-blur-md","ring-1","ring-white/10","overflow-hidden","shadow-[0_10px_30px_rgba(0,0,0,0.18)]"],[1,"flex","flex-col","p-2"],[1,"h-px","mx-2","my-2","bg-white/10"],[1,"flex","flex-col","gap-2","p-2"],[1,"px-3","py-2"],[1,"text-[13px]","font-semibold","text-slate-900"],[1,"mt-0.5","text-[12px]","text-slate-600","break-all"],[1,"h-px","my-2","bg-slate-900/10"],["id","userProfile","type","button",1,"dropdown-item",3,"click"],["id","productOrders","type","button",1,"dropdown-item",3,"click"],["id","myInventory","type","button",1,"dropdown-item",3,"click"],["id","myShoppingCart","type","button",1,"dropdown-item",3,"click"],["data-cy","changeSession","type","button","data-dropdown-toggle","orgs-dropdown","data-dropdown-placement","left-start",1,"dropdown-item"],["id","signOut","type","button",1,"dropdown-item",3,"click"],["id","myOfferings","type","button",1,"dropdown-item",3,"click"],["id","administration","data-cy","administration","type","button",1,"dropdown-item",3,"click"],["id","quotelist","type","button",1,"dropdown-item",3,"click"],["id","tenderlist","type","button",1,"dropdown-item",3,"click"],["id","analytics","routerLink","/analytics",1,"dropdown-item",3,"click"],["id","usageSpecs","type","button",1,"dropdown-item",3,"click"],["type","button",1,"dropdown-item",3,"click"],[1,"relative"],["type","button",1,"inline-flex","items-center","gap-2","text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"id"],[1,"inline-block","opacity-80"],[1,"dropdown-glass","hidden","absolute","left-0","top-[calc(100%+14px)]","z-50","w-[260px]","rounded-[14px]","p-2",3,"id"],["type","button",1,"dropdown-item","text-left",3,"click"],["target","_blank",1,"mobile-nav-item",3,"href"],[1,"mobile-nav-item",3,"click"],["target","_blank",1,"text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"href"],[1,"text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"routerLink"],["type","button",1,"mobile-action-btn","mobile-action-btn--solid"],["type","button",1,"mobile-action-btn","mobile-action-btn--outline"],["type","button",1,"mobile-action-btn","mobile-action-btn--outline",3,"click"],["data-cy","contactUs","id","contactUs","type","button",1,"ml-1","inline-flex","h-[44px]","items-center","justify-center","rounded-[10px]","bg-transparent","border-color-c","px-6","text-[15px]","font-semibold","text-white","transition",3,"click"],["type","button",1,"mobile-action-btn","mobile-action-btn--solid",3,"click"],["data-cy","login","id","login","type","button",1,"ml-1","inline-flex","h-[44px]","items-center","justify-center","rounded-[10px]","header-solid-btn","px-6","text-[15px]","font-semibold","text-white","transition",3,"click"],["data-cy","shoppingCart","id","shoppingCart","type","button","aria-label","Shopping cart",1,"inline-flex","h-[44px]","w-[44px]","items-center","justify-center","rounded-[10px]","text-white/90","hover:text-white","hover:bg-white/10","transition",3,"click"],[3,"fixedWidth"],[2,"background","Tomato",3,"content"],["data-cy","loggedAcc","id","loggedAcc","data-dropdown-toggle","userDropdown","data-dropdown-placement","bottom-end","aria-label","User menu",1,"ml-1","inline-flex","h-[44px]","w-[44px]","items-center","justify-center","rounded-full","bg-white/15","text-white","cursor-pointer","select-none"],[1,"text-[14px]","font-bold","tracking-wide"],[1,"mobile-user-box"],[1,"mobile-user-box__avatar"],[1,"min-w-0"],[1,"mobile-user-box__name"],[1,"mobile-user-box__email"],["type","button",1,"mobile-nav-item",3,"click"],["type","button",1,"mobile-nav-item"],["routerLink","/analytics",1,"mobile-nav-item"],["routerLink","/analytics",1,"mobile-nav-item",3,"click"],[1,"absolute","right-0","top-0","z-40","h-screen","w-full","max-w-[520px]","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"nav",3)(1,"div",4)(2,"div",5)(3,"a",6),e.bIt("click",function(){return e.eBV(i),e.Njj(l.goTo("/dashboard"))}),e.DNE(4,KY2,1,3,"img",7),e.k0s(),e.j41(5,"div",8)(6,"ul",9),e.eu8(7,10),e.k0s()(),e.j41(8,"div",11)(9,"div",12),e.eu8(10,10),e.k0s(),e.j41(11,"button",13,0),e.bIt("click",function(C){return e.eBV(i),l.toggleNavBar(),e.Njj(C.stopPropagation())}),e.j41(13,"span",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"fa-icon",15),e.k0s()()(),e.DNE(17,eq2,7,6,"div",16)(18,iq2,41,29,"div",17),e.k0s(),e.j41(19,"div",18)(20,"ul",19)(21,"li")(22,"a",20),e.nrm(23,"fa-icon",21),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"li")(27,"a",20),e.nrm(28,"fa-icon",21),e.EFF(29),e.nI1(30,"translate"),e.k0s()()()(),e.j41(31,"div",22)(32,"ul",19),e.Z7z(33,dq2,1,1,null,null,ZY2),e.DNE(35,fq2,4,2,"li"),e.k0s()(),e.DNE(36,Sq2,2,0,"ng-template",null,1,e.C5r)(38,qq2,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(40,Xq2,2,0,"div",23)}if(2&t){const i=e.sdS(37),u=e.sdS(39);e.AVh("header-top",!l.scrolled&&!l.isNavBarOpen)("header-glass",l.scrolled||l.isNavBarOpen),e.R7$(4),e.vxM(4,null!=l.currentTheme&&null!=l.currentTheme.assets&&l.currentTheme.assets.logoUrl?4:-1),e.R7$(3),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(28,yw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",e.lJ4(29,yw1)),e.R7$(),e.BMQ("aria-expanded",l.isNavBarOpen),e.R7$(3),e.JRh(e.bMT(15,22,"HEADER._open_menu")),e.R7$(2),e.Y8G("icon",l.faBars),e.R7$(),e.vxM(17,l.isNavBarOpen?17:-1),e.R7$(),e.vxM(18,l.is_logged?18:-1),e.R7$(4),e.Y8G("href",l.knowledge,e.B4B),e.R7$(),e.Y8G("icon",l.faBrain),e.R7$(),e.SpI("",e.bMT(25,24,"HEADER._knowledge")," "),e.R7$(3),e.Y8G("href",l.ticketing,e.B4B),e.R7$(),e.Y8G("icon",l.faClipboardCheck),e.R7$(),e.SpI("",e.bMT(30,26,"HEADER._ticketing")," "),e.R7$(4),e.Dyx(l.orgs),e.R7$(2),e.vxM(35,l.loggedAsOrg?35:-1),e.R7$(5),e.vxM(40,l.showCart?40:-1)}},dependencies:[_.T3,J2.aY,J2.d0,J2.VA,E2.Wk,Au1,s1.D9],styles:[".dropdown-glass[_ngcontent-%COMP%]{background:#ffffffeb;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 18px 40px #0f172a24,0 6px 14px #0f172a1a;border:1px solid rgba(15,23,42,.06)}.dropdown-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:.5rem;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;color:#0f172a;text-decoration:none;background:transparent;border:0;cursor:pointer}.dropdown-item[_ngcontent-%COMP%]:hover{background:#0f172a0f}.mobile-nav-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding:12px;border-radius:12px;font-size:15px;font-weight:600;color:#ffffffeb;cursor:pointer;text-decoration:none;background:transparent;border:0;text-align:left}.mobile-nav-item[_ngcontent-%COMP%]:hover{background:#ffffff1a;color:#fff}.header-glass[_ngcontent-%COMP%]{background:var(--theme-header-v2-glass-bg, rgba(7, 18, 40, .55));backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);background-image:linear-gradient(to bottom,#ffffff0d,#ffffff05);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 6px 20px #00000040}.header-top[_ngcontent-%COMP%]{background:var(--theme-header-v2-top-bg, #070f24);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid transparent;box-shadow:none}.border-color-c[_ngcontent-%COMP%]{border:2px solid var(--theme-header-v2-outline-border, #2D58A7)}.border-color-c[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-outline-hover-bg, rgba(47, 111, 214, .9));color:var(--theme-header-v2-outline-hover-text, #ffffff)}.header-solid-btn[_ngcontent-%COMP%]{background-color:var(--theme-header-v2-solid-bg, #2D58A7)}.header-solid-btn[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-solid-hover-bg, rgba(47, 111, 214, .9))}.mobile-action-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:0 16px;border-radius:10px;font-size:15px;font-weight:600;transition:all .2s ease}.mobile-action-btn--solid[_ngcontent-%COMP%]{background-color:var(--theme-header-v2-solid-bg, #2D58A7);color:#fff;border:0}.mobile-action-btn--solid[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-solid-hover-bg, rgba(47, 111, 214, .9))}.mobile-action-btn--outline[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid var(--theme-header-v2-outline-border, #2D58A7)}.mobile-action-btn--outline[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-outline-hover-bg, rgba(47, 111, 214, .9));color:var(--theme-header-v2-outline-hover-text, #ffffff)}.mobile-user-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:4px;border-radius:12px;background:#ffffff14}.mobile-user-box__avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:9999px;background:#ffffff26;color:#fff;font-size:14px;font-weight:700;flex:0 0 auto}.mobile-user-box__name[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#fff;line-height:1.2}.mobile-user-box__email[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;color:#ffffffb8;line-height:1.2;word-break:break-all}"]})}}return n})();function Wq2(n,a){1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14),e.k0s(),e.joV(),e.j41(3,"p",15),e.EFF(4," The quote has been created, you can close this window "),e.k0s()())}function Jq2(n,a){if(1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",16),e.nrm(2,"path",17),e.k0s(),e.joV(),e.j41(3,"p",18),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.SpI(" ",c.errorMessage||"Error during the creation of the quote"," ")}}function Qq2(n,a){1&n&&(e.j41(0,"p",26),e.EFF(1,"Message is required (minimum 10 characters)"),e.k0s())}function Zq2(n,a){1&n&&(e.j41(0,"p",26),e.EFF(1,"Request date is required"),e.k0s())}function Kq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"div",19)(2,"p",20),e.EFF(3,"Request for Product:"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s()(),e.j41(6,"div",19)(7,"p",20),e.EFF(8,"Provider:"),e.k0s(),e.j41(9,"p",21),e.EFF(10),e.k0s()(),e.j41(11,"form",22),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(12,"div")(13,"label",23),e.EFF(14," Message / Requirements "),e.j41(15,"span",24),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"textarea",25),e.DNE(18,Qq2,2,0,"p",26),e.j41(19,"p",27),e.EFF(20," Please provide as much detail as possible to help us prepare an accurate quote. "),e.k0s()(),e.j41(21,"div")(22,"label",28),e.EFF(23," Request Date "),e.j41(24,"span",24),e.EFF(25,"*"),e.k0s()(),e.nrm(26,"input",29),e.DNE(27,Zq2,2,0,"p",26),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(5),e.JRh(c.displayProductName),e.R7$(5),e.JRh(c.displayProviderName),e.R7$(),e.Y8G("formGroup",c.quoteForm),e.R7$(6),e.AVh("border-red-300",c.isFieldInvalid("customerMessage")),e.R7$(),e.vxM(18,c.isFieldInvalid("customerMessage")?18:-1),e.R7$(8),e.AVh("border-red-300",c.isFieldInvalid("requestDate")),e.Y8G("min",c.minDate),e.R7$(),e.vxM(27,c.isFieldInvalid("requestDate")?27:-1)}}function eX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",11)(1,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.EFF(2," Close "),e.k0s()()}}function cX2(n,a){1&n&&(e.j41(0,"span",32),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"circle",34)(3,"path",35),e.k0s(),e.EFF(4," Sending... "),e.k0s())}function tX2(n,a){1&n&&e.EFF(0," Send Request ")}function nX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12)(1,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.EFF(2," Cancel "),e.k0s(),e.j41(3,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.DNE(4,cX2,5,0,"span",32)(5,tX2,1,0),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(3),e.Y8G("disabled",c.quoteForm.invalid||c.isSubmitting),e.R7$(),e.vxM(4,c.isSubmitting?4:5)}}let Ud1=(()=>{class n{constructor(c){this.eventMessage=c,this.customerId="",this.isOpen=!1,this.closeModal=new e.bkB,this.submitRequest=new e.bkB,this.quoteCreated=new e.bkB,this.fb=(0,e.WQX)(p.ok),this.quoteService=(0,e.WQX)(L3.K),this.isSubmitting=!1,this.showSuccessMessage=!1,this.showErrorMessage=!1,this.errorMessage="",this.quoteForm=this.fb.group({customerMessage:["",[p.k0.required,p.k0.minLength(10)]],requestDate:["",[p.k0.required]]})}get displayProductName(){return this.productOff?.name||"Unknown Product"}get displayProviderName(){return this.orgInfo?.tradingName||this.orgInfo?.name||"Unknown Provider"}get minDate(){return(new Date).toISOString().split("T")[0]}isFieldInvalid(c){const t=this.quoteForm.get(c);return!(!t||!t.invalid||!t.dirty&&!t.touched)}onBackdropClick(c){c.target===c.currentTarget&&this.onClose()}onClose(){this.quoteForm.reset({customerMessage:"",requestDate:""}),this.isSubmitting=!1,this.showSuccessMessage=!1,this.showErrorMessage=!1,this.errorMessage="",this.eventMessage.emitCloseQuoteRequest(!0),this.closeModal.emit()}onSubmit(){if(this.quoteForm.valid&&this.productOff&&this.customerId&&!this.isSubmitting){this.isSubmitting=!0;const c=this.quoteForm.value,t={customerMessage:c.customerMessage,customerIdRef:this.customerId,providerIdRef:this.orgInfo?.id||"",productOfferingId:this.productOff.id||this.productOff?.productSpecification?.id||""},l=new Date(c.requestDate),i=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log("Submitting quote request with data:",t),console.log("Request date:",i),this.quoteService.createQuoteFromRequest(t).pipe((0,A.n)(u=>{const C=u?.id;return console.log("Quote created successfully with ID:",C),C?(console.log("Updating quote with request date:",i),this.quoteService.updateQuoteDate(C,i,"requested")):(console.warn("No quote ID returned, skipping date update"),[u])})).subscribe({next:u=>{console.log("Quote creation and date update completed:",u),this.quoteCreated.emit(u),this.submitRequest.emit(t),this.isSubmitting=!1,this.showSuccessMessage=!0},error:u=>{console.error("Error creating quote or updating date:",u),this.isSubmitting=!1,this.showErrorMessage=!0,this.errorMessage=u?.error?.message||u?.message||"Error during the creation of the quote"}})}else console.log("Form validation failed:"),console.log("Form valid:",this.quoteForm.valid),console.log("Product:",this.productOff),console.log("Customer ID:",this.customerId),console.log("Is submitting:",this.isSubmitting),Object.keys(this.quoteForm.controls).forEach(c=>{const t=this.quoteForm.get(c);t&&t.markAsTouched()}),this.customerId||(this.showErrorMessage=!0,this.errorMessage="Customer ID is required. Please log in first.")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-request-modal"]],inputs:{productOff:"productOff",prodSpec:"prodSpec",orgInfo:"orgInfo",customerId:"customerId",isOpen:"isOpen"},outputs:{closeModal:"closeModal",submitRequest:"submitRequest",quoteCreated:"quoteCreated"},standalone:!0,features:[e.aNF],decls:15,vars:5,consts:[[1,"fixed","inset-0","bg-gray-600","bg-opacity-50","overflow-y-auto","h-full","w-full","z-50","flex","items-center","justify-center","p-4",3,"click"],[1,"relative","bg-white","dark:bg-secondary-100","rounded-lg","shadow-xl","max-w-2xl","w-full","max-h-full","overflow-hidden",3,"click"],[1,"flex","items-center","justify-between","p-6","border-b","border-gray-200"],[1,"text-xl","font-semibold","text-gray-900","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"p-6","overflow-y-auto",2,"max-height","calc(80vh - 220px)"],[1,"flex","flex-col","items-center","justify-center","py-12"],[1,"space-y-5"],[1,"px-6","py-4","border-t","border-gray-200","bg-gray-50","dark:bg-secondary-200","rounded-b-lg"],[1,"flex","justify-end"],[1,"flex","justify-end","space-x-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-16","h-16","text-green-500","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"text-lg","font-medium","text-gray-900","dark:text-white","text-center"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-16","h-16","text-red-500","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"text-lg","font-medium","text-red-600","dark:text-red-400","text-center"],[1,"bg-gray-50","dark:bg-secondary-200","p-4","rounded-lg","border-l-4","border-blue-500"],[1,"text-xs","text-gray-500","dark:text-gray-400","mb-1"],[1,"text-gray-900","dark:text-white","font-medium"],[1,"space-y-4",3,"ngSubmit","formGroup"],["for","customerMessage",1,"block","text-sm","font-medium","text-gray-700","dark:text-white","mb-2"],[1,"text-red-500"],["id","customerMessage","formControlName","customerMessage","rows","5","placeholder","Please describe your requirements or any specific questions about this product...",1,"w-full","px-3","py-2","border","border-gray-300","dark:bg-secondary-200","dark:text-gray-200","rounded-md","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500","resize-vertical"],[1,"text-red-500","text-xs","mt-1"],[1,"text-xs","text-gray-500","mt-1"],["for","requestDate",1,"block","text-sm","font-medium","text-gray-700","dark:text-white","mb-2"],["id","requestDate","type","date","formControlName","requestDate",1,"w-full","px-3","py-2","border","border-gray-300","dark:bg-secondary-200","dark:text-gray-200","rounded-md","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"min"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","bg-white","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-600","rounded-md","hover:bg-gray-50","dark:hover:bg-secondary-400","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],["type","submit",1,"px-4","py-2","text-sm","font-medium","text-white","bg-blue-600","border","border-blue-600","rounded-md","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center"],["fill","none","viewBox","0 0 24 24",1,"animate-spin","-ml-1","mr-2","h-4","w-4","text-white"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(u){return l.onBackdropClick(u)}),e.j41(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"h3",3),e.EFF(4," Request Quote "),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return l.onClose()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s()()(),e.joV(),e.j41(8,"div",7),e.DNE(9,Wq2,5,0,"div",8)(10,Jq2,5,1,"div",8)(11,Kq2,28,10,"div",9),e.k0s(),e.j41(12,"div",10),e.DNE(13,eX2,3,0,"div",11)(14,nX2,6,2,"div",12),e.k0s()()()),2&t&&(e.R7$(9),e.vxM(9,l.showSuccessMessage?9:-1),e.R7$(),e.vxM(10,l.showErrorMessage?10:-1),e.R7$(),e.vxM(11,l.showSuccessMessage||l.showErrorMessage?-1:11),e.R7$(2),e.vxM(13,l.showSuccessMessage||l.showErrorMessage?13:-1),e.R7$(),e.vxM(14,l.showSuccessMessage||l.showErrorMessage?-1:14))},dependencies:[_.MD,p.YN,p.qT,p.me,p.BC,p.cb,p.X1,p.j4,p.JD],encapsulation:2})}}return n})();const lX2=[_.MD,p.YN,p.X1,J2.dX,s1.h,g.q1,Ud1];let BL=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[_.vh,s1.c$],imports:[lX2,xG,_.MD,p.YN,p.X1,J2.dX,s1.h,g.q1]})}}return n})();const sX2=(n,a)=>({"break-all":n,"break-words":a});function aX2(n,a){if(1&n&&e.nrm(0,"markdown",30),2&n){const c=e.XpG();e.Y8G("ngClass",e.l_i(2,sX2,c.hasLongWord(c.value,20),!c.hasLongWord(c.value,20)))("data",c.value)}}function oX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"textarea",32),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.updateValue(l))}),e.k0s()}if(2&n){const c=e.XpG();e.FS9("placeholder",c.placeholder),e.Y8G("value",c.value)}}function iX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"emoji-mart",33),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())})("emojiClick",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.addEmoji(l))}),e.k0s()()}2&n&&(e.R7$(),e.Y8G("darkMode",!1))}let me=(()=>{class n{constructor(){this.placeholder="Write your description here...",this.rows=8,this.value="",this.showPreview=!1,this.showEmoji=!1,this.onChange=c=>{},this.onTouched=()=>{}}onClick(){1==this.showEmoji&&(this.showEmoji=!1)}writeValue(c){this.value=c||""}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}updateValue(c){const t=c.target.value;this.value=t,this.onChange(t),this.onTouched()}togglePreview(){this.showPreview=!this.showPreview}addList(){this.value+="\n- First item\n- Second item"}addOrderedList(){this.value+="\n1. First item\n2. Second item"}addCode(){this.value+="\n`code`"}addCodeBlock(){this.value+="\n```\ncode\n```"}addBlockquote(){this.value+="\n> blockquote"}addTable(){this.value+="\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}addEmoji(c){this.showEmoji=!1,this.value+=c.emoji.native,this.onChange(this.value)}addMarkdownTag(c){const t=document.getElementById("editor");if(!t)return;const l=t.selectionStart,i=t.selectionEnd,u=this.value.substring(0,l);let C=this.value.substring(l,i);const b=this.value.substring(i);switch(c){case"bold":C=`**${C||"bold text"}**`;break;case"italic":C=`*${C||"italic text"}*`;break;case"link":C=`[${C||"link text"}](http://)`;break;case"list":C=`- ${C||"list item"}`;break;case"orderedList":C=`1. ${C||"ordered item"}`;break;case"blockquote":C=`> ${C||"blockquote"}`;break;case"code":C=`\`${C||"inline code"}\``;break;case"codeBlock":C=`\`\`\`\n${C||"code block"}\n\`\`\``;break;case"table":C=`| Column 1 | Column 2 | Column 3 |\n|----------|----------|----------|\n| ${C||"data"} | data | data |`}this.value=u+C+b,this.onChange(this.value),setTimeout(()=>{t.selectionStart=t.selectionEnd=l+C.length,t.focus()},0)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-markdown-textarea"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{placeholder:"placeholder",rows:"rows"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:71,vars:28,consts:[[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-secondary-200","dark:border-secondary-200"],[1,"flex","items-center","justify-between","px-3","py-2","border-b"],[1,"flex","flex-wrap","items-center","divide-gray-200","dark:divide-secondary-200","sm:divide-x","sm:rtl:divide-x-reverse"],[1,"flex","items-center","space-x-1","rtl:space-x-reverse","sm:pe-4","text-gray-500","dark:text-gray-200"],["type","button",1,"p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 5h4.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0-7H6m2 7h6.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0 0H6"],[1,"sr-only"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8.874 19 6.143-14M6 19h6.33m-.66-14H18"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M9 8h10M9 12h10M9 16h10M4.99 8H5m-.02 4h.01m0 4H5"],["type","button",1,"hidden","lg:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6h8m-8 6h8m-8 6h8M4 16a2 2 0 1 1 3.321 1.5L4 20h5M4 5l2-1v6m-2 0h4"],["type","button",1,"hidden","md:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["fill-rule","evenodd","d","M5 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm0 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm1.65-9.76A1 1 0 0 0 5 9v6a1 1 0 0 0 1.65.76l3.5-3a1 1 0 0 0 0-1.52l-3.5-3ZM12 10a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Z","clip-rule","evenodd"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-width","2","d","M3 11h18m-9 0v8m-8 0h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8 8-4 4 4 4m8 0 4-4-4-4m-2-3-4 14"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 3v4a1 1 0 0 1-1 1H5m5 4-2 2 2 2m4-4 2 2-2 2m5-12v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.213 9.787a3.391 3.391 0 0 0-4.795 0l-3.425 3.426a3.39 3.39 0 0 0 4.795 4.794l.321-.304m-.321-4.49a3.39 3.39 0 0 0 4.795 0l3.424-3.426a3.39 3.39 0 0 0-4.794-4.795l-1.028.961"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM13.5 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-7 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm3.5 9.5A5.5 5.5 0 0 1 4.6 11h10.81A5.5 5.5 0 0 1 10 15.5Z"],["type","button","data-tooltip-target","tooltip-fullscreen",1,"rounded","cursor-pointer","text-gray-500","dark:text-gray-200","p-2","sm:ms-auto","hover:text-gray-900","dark:hover:text-gray-900","hover:bg-gray-100",3,"click"],["stroke","currentColor","stroke-width","2","d","M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z"],["stroke","currentColor","stroke-width","2","d","M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"],["id","tooltip-fullscreen","role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","bg-gray-900","rounded-lg","shadow-sm","opacity-0","tooltip"],["data-popper-arrow","",1,"tooltip-arrow"],[1,"relative","px-4","py-2","bg-white","dark:bg-secondary-300","rounded-b-lg"],["for","editor",1,"sr-only"],[1,"min-h-16","h-fit","block","bg-white","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"absolute","z-50","top-[-100px]","right-0"],["id","editor","data-cy","textArea","rows","8","maxLength","100000",1,"block","w-full","h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0",3,"input","placeholder","value"],[3,"click","emojiClick","darkMode"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4),e.bIt("click",function(){return l.addMarkdownTag("bold")}),e.qSk(),e.j41(5,"svg",5),e.nrm(6,"path",6),e.k0s(),e.joV(),e.j41(7,"span",7),e.EFF(8,"Bold"),e.k0s()(),e.j41(9,"button",4),e.bIt("click",function(){return l.addMarkdownTag("italic")}),e.qSk(),e.j41(10,"svg",5),e.nrm(11,"path",8),e.k0s(),e.joV(),e.j41(12,"span",7),e.EFF(13,"Italic"),e.k0s()(),e.j41(14,"button",4),e.bIt("click",function(){return l.addMarkdownTag("list")}),e.qSk(),e.j41(15,"svg",9),e.nrm(16,"path",10),e.k0s(),e.joV(),e.j41(17,"span",7),e.EFF(18,"Add list"),e.k0s()(),e.j41(19,"button",11),e.bIt("click",function(){return l.addMarkdownTag("orderedList")}),e.qSk(),e.j41(20,"svg",9),e.nrm(21,"path",12),e.k0s(),e.joV(),e.j41(22,"span",7),e.EFF(23,"Add ordered list"),e.k0s()(),e.j41(24,"button",13),e.bIt("click",function(){return l.addMarkdownTag("blockquote")}),e.qSk(),e.j41(25,"svg",14),e.nrm(26,"path",15),e.k0s(),e.joV(),e.j41(27,"span",7),e.EFF(28,"Add blockquote"),e.k0s()(),e.j41(29,"button",4),e.bIt("click",function(){return l.addMarkdownTag("table")}),e.qSk(),e.j41(30,"svg",16),e.nrm(31,"path",17),e.k0s(),e.joV(),e.j41(32,"span",7),e.EFF(33,"Add table"),e.k0s()(),e.j41(34,"button",13),e.bIt("click",function(){return l.addMarkdownTag("code")}),e.qSk(),e.j41(35,"svg",16),e.nrm(36,"path",18),e.k0s(),e.joV(),e.j41(37,"span",7),e.EFF(38,"Add code"),e.k0s()(),e.j41(39,"button",13),e.bIt("click",function(){return l.addMarkdownTag("codeBlock")}),e.qSk(),e.j41(40,"svg",16),e.nrm(41,"path",19),e.k0s(),e.joV(),e.j41(42,"span",7),e.EFF(43,"Add code block"),e.k0s()(),e.j41(44,"button",13),e.bIt("click",function(){return l.addMarkdownTag("link")}),e.qSk(),e.j41(45,"svg",16),e.nrm(46,"path",20),e.k0s(),e.joV(),e.j41(47,"span",7),e.EFF(48,"Add link"),e.k0s()(),e.j41(49,"button",13),e.bIt("click",function(u){return l.showEmoji=!l.showEmoji,u.stopPropagation()}),e.qSk(),e.j41(50,"svg",21),e.nrm(51,"path",22),e.k0s(),e.joV(),e.j41(52,"span",7),e.EFF(53,"Add emoji"),e.k0s()()()(),e.j41(54,"button",23),e.bIt("click",function(){return l.togglePreview()}),e.qSk(),e.j41(55,"svg",9),e.nrm(56,"path",24)(57,"path",25),e.k0s(),e.joV(),e.j41(58,"span",7),e.EFF(59),e.nI1(60,"translate"),e.k0s()(),e.j41(61,"div",26),e.EFF(62),e.nI1(63,"translate"),e.nrm(64,"div",27),e.k0s()(),e.j41(65,"div",28)(66,"label",29),e.EFF(67,"Publish post"),e.k0s(),e.DNE(68,aX2,1,5,"markdown",30)(69,oX2,1,2)(70,iX2,2,1,"div",31),e.k0s()()),2&t&&(e.R7$(4),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(10),e.JRh(e.bMT(60,24,"CREATE_CATALOG._preview")),e.R7$(3),e.SpI(" ",e.bMT(63,26,"CREATE_CATALOG._show_preview")," "),e.R7$(6),e.vxM(68,l.showPreview?68:69),e.R7$(2),e.vxM(70,l.showEmoji?70:-1))},dependencies:[N0,_.YU,T0,BL,s1.D9]})}}return n})();class wn{static{this.BASE_URL=g1.c.BASE_URL}constructor(a){this.http=a}uploadFile(a){return this.http.post(`${wn.BASE_URL}/charging/api/assetManagement/assets/uploadJob`,a)}static{this.\u0275fac=function(c){return new(c||wn)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:wn,factory:wn.\u0275fac,providedIn:"root"})}}const rX2=(n,a)=>a.value;function dX2(n,a){1&n&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",20),e.nrm(2,"path",21)(3,"path",22),e.k0s(),e.joV(),e.j41(4,"span",23),e.EFF(5,"Loading..."),e.k0s()())}function fX2(n,a){if(1&n&&(e.j41(0,"option",28),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function uX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Use only lowercase letters, numbers and hyphens."),e.k0s())}function mX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"This slug is already in use. Pick a different one."),e.k0s())}function pX2(n,a){if(1&n&&(e.j41(0,"label",34),e.EFF(1,"URL slug"),e.k0s(),e.nrm(2,"input",35),e.j41(3,"p",36),e.EFF(4),e.k0s(),e.DNE(5,uX2,2,0,"p",37)(6,mX2,2,0,"p",37)),2&n){const c=e.XpG(2);e.R7$(4),e.Lme("URL preview: ",c.getUrlPreviewBase(),"/",c.entryForm.controls.slug.value||"my-blog-entry",""),e.R7$(),e.vxM(5,c.entryForm.controls.slug.touched&&c.entryForm.controls.slug.invalid?5:-1),e.R7$(),e.vxM(6,c.isSlugTaken()?6:-1)}}function hX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Meta description cannot exceed 160 characters."),e.k0s())}function gX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Excerpt cannot exceed 300 characters."),e.k0s())}function _X2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",49),e.nrm(1,"img",54),e.j41(2,"button",55),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.removeFeaturedImage())}),e.qSk(),e.j41(3,"svg",56),e.nrm(4,"path",57),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("src",c.getFeaturedImageUrl(),e.B4B)}}function LX2(n,a){1&n&&(e.j41(0,"p",53),e.EFF(1,"Uploading featured image..."),e.k0s())}function CX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",38),e.EFF(1,"Meta description (extract)"),e.k0s(),e.nrm(2,"textarea",39),e.j41(3,"p",36),e.EFF(4),e.k0s(),e.DNE(5,hX2,2,0,"p",37),e.j41(6,"label",40),e.EFF(7,"Excerpt"),e.k0s(),e.nrm(8,"textarea",41),e.j41(9,"p",36),e.EFF(10),e.k0s(),e.DNE(11,gX2,2,0,"p",37),e.j41(12,"label",42),e.EFF(13,"Tags"),e.k0s(),e.nrm(14,"input",43),e.j41(15,"p",36),e.EFF(16,"Separate tags with commas."),e.k0s(),e.j41(17,"label",44),e.EFF(18,"Author"),e.k0s(),e.nrm(19,"input",45),e.j41(20,"label",46),e.EFF(21,"Date"),e.k0s(),e.nrm(22,"input",47),e.j41(23,"p",36),e.EFF(24,"Optional. Leave empty to avoid sending a date."),e.k0s(),e.j41(25,"label",48),e.EFF(26,"Featured image"),e.k0s(),e.DNE(27,_X2,5,1,"div",49),e.j41(28,"div",50)(29,"input",51),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onFeaturedImageSelected(l))}),e.k0s(),e.j41(30,"p",52),e.EFF(31,"Upload to media manager (max 3MB)"),e.k0s(),e.DNE(32,LX2,2,0,"p",53),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(4),e.SpI("",(c.entryForm.controls.metaDescription.value||"").length,"/160"),e.R7$(),e.vxM(5,c.entryForm.controls.metaDescription.touched&&c.entryForm.controls.metaDescription.hasError("maxlength")?5:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.excerpt.value||"").length,"/300"),e.R7$(),e.vxM(11,c.entryForm.controls.excerpt.touched&&c.entryForm.controls.excerpt.hasError("maxlength")?11:-1),e.R7$(16),e.vxM(27,c.getFeaturedImageUrl()?27:-1),e.R7$(2),e.Y8G("disabled",c.uploadingFeaturedImage),e.R7$(3),e.vxM(32,c.uploadingFeaturedImage?32:-1)}}function zX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDeleteDialog())}),e.EFF(2," Delete entry "),e.k0s(),e.j41(3,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.update())}),e.EFF(4," Update entry "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",c.loading),e.R7$(2),e.Y8G("disabled",!c.canSubmit())}}function MX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.create())}),e.EFF(2," Create entry "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",!c.canSubmit())}}function xX2(n,a){if(1&n&&(e.j41(0,"form",24)(1,"form",25)(2,"label",26),e.EFF(3,"Content type"),e.k0s(),e.j41(4,"select",27),e.Z7z(5,fX2,2,2,"option",28,rX2),e.k0s(),e.j41(7,"label",29),e.EFF(8),e.k0s(),e.nrm(9,"input",30),e.DNE(10,pX2,7,4)(11,CX2,33,7),e.j41(12,"label",31),e.EFF(13),e.k0s(),e.nrm(14,"app-markdown-textarea",32),e.k0s(),e.DNE(15,zX2,5,2,"div",33)(16,MX2,3,1),e.k0s()),2&n){const c=e.XpG();e.Y8G("formGroup",c.entryForm),e.R7$(),e.Y8G("formGroup",c.entryForm),e.R7$(4),e.Dyx(c.contentTypes),e.R7$(3),e.JRh(c.getTitleLabel()),e.R7$(2),e.vxM(10,c.isFaqEntry()?-1:10),e.R7$(),e.vxM(11,c.isFaqEntry()?-1:11),e.R7$(2),e.JRh(c.getContentLabel()),e.R7$(2),e.vxM(15,c.blogId?15:16)}}function bX2(n,a){if(1&n&&(e.j41(0,"div",19)(1,"div",60)(2,"div",10),e.qSk(),e.j41(3,"svg",61),e.nrm(4,"path",62),e.k0s(),e.joV(),e.j41(5,"h3",63),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",64),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let kw1=(()=>{class n{constructor(c,t,l,i,u){this.route=c,this.router=t,this.localStorage=l,this.domeBlogService=i,this.attachmentService=u,this.slugRegex=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.maxFileSize=g1.c.MAX_FILE_SIZE,this.entryForm=new p.gE({contentType:new p.MJ("blog",[p.k0.required]),title:new p.MJ("",[p.k0.required]),slug:new p.MJ("",[p.k0.required,p.k0.pattern(this.slugRegex)]),featuredImage:new p.MJ(""),metaDescription:new p.MJ("",[p.k0.maxLength(160)]),excerpt:new p.MJ("",[p.k0.maxLength(300)]),tags:new p.MJ(""),author:new p.MJ(""),date:new p.MJ(""),content:new p.MJ("",[p.k0.required])}),this.loading=!1,this.partyId="",this.showError=!1,this.errorMessage="",this.name="",this.blogId=void 0,this.existingEntries=[],this.slugManuallyEdited=!1,this.showDeleteConfirm=!1,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",this.uploadingFeaturedImage=!1,this.contentTypes=[{value:"blog",label:"Blog"},{value:"news",label:"News / Event"},{value:"faq",label:"FAQ"}]}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(c.applyInitialContentType(),c.setupSlugHandlers(),c.setupContentTypeHandlers(),c.blogId=c.route.snapshot.paramMap.get("id"),yield c.loadExistingEntries(),c.blogId){let t=yield c.domeBlogService.getBlogEntryById(c.blogId);c.entryForm.controls.contentType.setValue(c.normalizeContentType(t.contentType||c.entryForm.controls.contentType.value),{emitEvent:!1}),c.applyContentTypeRules(),c.entryForm.controls.title.setValue(t.title);const l=c.slugify(t.slug||t.title||"");c.entryForm.controls.slug.setValue(l,{emitEvent:!1}),c.entryForm.controls.featuredImage.setValue(c.extractFeaturedImageUrl(t.featuredImage)),c.entryForm.controls.metaDescription.setValue(t.metaDescription||""),c.entryForm.controls.excerpt.setValue(t.excerpt||""),c.entryForm.controls.tags.setValue(c.formatTagsForInput(t.tags)),c.entryForm.controls.author.setValue((t.author||"").toString().trim()),c.entryForm.controls.date.setValue(c.formatDateForInput(t.date)),c.slugManuallyEdited=l.length>0&&l!==c.slugify(t.title||""),c.entryForm.controls.content.setValue(t.content)}else c.entryForm.controls.slug.setValue(c.slugify(c.entryForm.value.title||""),{emitEvent:!1});c.initPartyInfo()})()}goBack(){this.router.navigate([this.getLandingRoute()])}create(){var c=this;return(0,C1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const t=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let i=c.buildEntryBody({partyId:c.partyId,author:t||c.name});l&&(i.date=l),c.domeBlogService.createBlogEntry(i).subscribe({next:u=>{c.loading=!1,c.goBack()},error:u=>{console.error("There was an error while creating!",u),u.error.error?(console.log(u),c.errorMessage="Error: "+u.error.error):c.errorMessage="There was an error while creating the entry!",c.loading=!1,c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})})()}update(){var c=this;return(0,C1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const t=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let i=c.buildEntryBody();t&&(i.author=t),l&&(i.date=l);try{yield c.domeBlogService.updateBlogEntry(i,c.blogId),c.loading=!1,c.goBack()}catch{c.errorMessage="There was an error while updating the entry!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})()}openDeleteDialog(){!this.blogId||this.loading||(this.deleteConfirmMessage=`Are you sure you want to delete "${this.entryForm.controls.title.value||"this post"}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1}confirmDelete(){var c=this;return(0,C1.A)(function*(){if(c.blogId){c.closeDeleteDialog(),c.loading=!0;try{yield c.domeBlogService.deleteBlogEntry(c.blogId),c.loading=!1,c.goBack()}catch{c.loading=!1,c.errorMessage="There was an error while deleting the entry!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else c.closeDeleteDialog()})()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,this.name=c.user;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.name=t.name}}loadExistingEntries(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.domeBlogService.getBlogEntries();c.existingEntries=Array.isArray(t)?t:[]}catch{c.existingEntries=[]}})()}setupSlugHandlers(){this.entryForm.controls.title.valueChanges.subscribe(c=>{this.slugManuallyEdited||this.entryForm.controls.slug.setValue(this.slugify(c||""),{emitEvent:!1})}),this.entryForm.controls.slug.valueChanges.subscribe(c=>{const t=this.slugify(c||"");c!==t&&this.entryForm.controls.slug.setValue(t,{emitEvent:!1});const l=this.slugify(this.entryForm.controls.title.value||"");this.slugManuallyEdited=t.length>0&&t!==l})}setupContentTypeHandlers(){this.entryForm.controls.contentType.valueChanges.subscribe(()=>{this.applyContentTypeRules()}),this.applyContentTypeRules()}slugify(c){return c.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}isSlugTaken(){const c=this.slugify(this.entryForm.controls.slug.value||"");if(!c)return!1;const t=this.getSelectedContentType();return this.existingEntries.some(l=>this.slugify(l.slug||l.title||"")===c&&l._id!==this.blogId&&this.normalizeContentType(l.contentType)===t)}canSubmit(){return!this.loading&&!this.uploadingFeaturedImage&&this.entryForm.valid&&!this.isSlugTaken()}onFeaturedImageSelected(c){const t=c.target,l=t.files?.[0];if(!l)return;if(!l.type.startsWith("image/"))return this.showTemporaryError("File must have a valid image format!"),void(t.value="");if(l.size>this.maxFileSize)return this.showTemporaryError("File size must be under 3MB."),void(t.value="");const i=l.name.replace(/[^A-Za-z0-9_.-]/g,"_"),u=`blogcover_${Date.now()}_${i}`;if(!this.filenameRegex.test(u))return this.showTemporaryError("File name contains unsupported characters."),void(t.value="");const C=new FileReader;C.onload=b=>{const T=b.target?.result;if("string"!=typeof T||!T.includes(","))return this.showTemporaryError("There was an error while processing the image file."),void(t.value="");const W=T.split(",")[1],u1={content:{name:u,data:W},contentType:l.type,isPublic:!0};this.uploadingFeaturedImage=!0,this.attachmentService.uploadFile(u1).subscribe({next:a1=>{const T1=(a1?.content||"").toString();T1?this.entryForm.controls.featuredImage.setValue(T1):this.showTemporaryError("There was an error while uploading the featured image.")},error:a1=>{console.error("There was an error while uploading featured image!",a1),this.showTemporaryError(413!==a1.status?a1?.error?.error?`Error: ${a1.error.error}`:"There was an error while uploading the featured image.":"File size too large! Must be under 3MB.")},complete:()=>{this.uploadingFeaturedImage=!1,t.value=""}})},C.onerror=()=>{this.showTemporaryError("There was an error while reading the image file."),t.value=""},C.readAsDataURL(l)}removeFeaturedImage(){this.entryForm.controls.featuredImage.setValue("")}isFaqEntry(){return"faq"===this.getSelectedContentType()}getTitleLabel(){return this.isFaqEntry()?"Question":"Title"}getContentLabel(){return this.isFaqEntry()?"Answer":"Content"}getUrlPreviewBase(){const c=this.getSelectedContentType();return"news"===c?"/news":"faq"===c?"/faq":"/blog"}getFeaturedImageUrl(){return this.extractFeaturedImageUrl(this.entryForm.controls.featuredImage.value)}parseTagsFromForm(){const c=(this.entryForm.controls.tags.value||"").toString();if(!c.trim())return[];const t=new Map;return c.split(",").forEach(l=>{const i=l.trim().replace(/\s+/g," ");if(!i)return;const u=i.toLowerCase();t.has(u)||t.set(u,i)}),Array.from(t.values())}formatTagsForInput(c){return Array.isArray(c)?c.map(t=>(t??"").toString().trim()).filter(t=>t.length>0).join(", "):"string"==typeof c?c.split(",").map(t=>t.trim()).filter(t=>t.length>0).join(", "):""}extractFeaturedImageUrl(c){return c?"string"==typeof c?c.trim():"string"==typeof c?.url?c.url.trim():"":""}normalizeOptionalText(c){return null==c?"":c.toString().trim()}applyInitialContentType(){const c=this.route.snapshot.queryParamMap?.get("type");this.entryForm.controls.contentType.setValue(this.normalizeContentType(c),{emitEvent:!1})}applyContentTypeRules(){this.isFaqEntry()?(this.entryForm.controls.slug.clearValidators(),this.entryForm.controls.slug.setValue(this.slugify(this.entryForm.controls.title.value||""),{emitEvent:!1}),this.entryForm.controls.featuredImage.setValue("",{emitEvent:!1})):this.entryForm.controls.slug.setValidators([p.k0.required,p.k0.pattern(this.slugRegex)]),this.entryForm.controls.slug.updateValueAndValidity({emitEvent:!1})}buildEntryBody(c={}){const t=this.getSelectedContentType(),l={title:this.entryForm.value.title,slug:this.slugify(this.entryForm.value.slug||this.entryForm.value.title||""),contentType:t,content:this.entryForm.value.content,...c};return"faq"!==t&&(l.featuredImage=this.getFeaturedImageUrl(),l.metaDescription=this.entryForm.value.metaDescription,l.excerpt=this.entryForm.value.excerpt,l.tags=this.parseTagsFromForm()),l}getLandingRoute(){const c=this.getSelectedContentType();return"news"===c?"/news":"faq"===c?"/faq":"/blog"}getSelectedContentType(){return this.normalizeContentType(this.entryForm.controls.contentType.value)}normalizeContentType(c){const t=(c||"").toString().trim().toLowerCase();return"news"===t||"news/event"===t||"event"===t?"news":"faq"===t?"faq":"blog"}formatDateForInput(c){const t=this.normalizeOptionalText(c);if(!t)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(t))return t;const l=$2()(t);return l.isValid()?l.format("YYYY-MM-DDTHH:mm"):""}showTemporaryError(c){this.errorMessage=c,this.showError=!0,this.uploadingFeaturedImage=!1,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(z2.s),e.rXU(W3),e.rXU(wn))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-entry-form"]],standalone:!0,features:[e.aNF],decls:24,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","shadow-lg","text-gray-700","border","border-gray-200","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","p-4","pb-16","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","w-full","max-w-screen-xl","rounded-lg","border","border-gray-300","bg-white","p-6","shadow-lg","dark:border-secondary-300","dark:bg-secondary-100","md:p-8"],[1,"mb-6","text-3xl","font-bold","text-secondary-200","dark:text-white"],["role","status",1,"flex","min-h-[300px]","w-full","items-center","justify-center"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"md:p-8",3,"formGroup"],["for","contentType",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryContentType","id","contentType","formControlName","contentType",1,"mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value"],["for","title",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryTitle","id","title","type","text","formControlName","title",1,"mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","content",1,"h-[500px]"],[1,"flex","justify-end","mt-6","space-x-4"],["for","slug",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntrySlug","id","slug","type","text","formControlName","slug","placeholder","my-blog-entry",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-2","text-xs","text-gray-500","dark:text-gray-300"],[1,"mb-2","text-sm","text-red-600","dark:text-red-300"],["for","metaDescription",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryMetaDescription","id","metaDescription","formControlName","metaDescription","rows","3","placeholder","Short SEO summary (recommended up to 160 characters)",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","excerpt",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryExcerpt","id","excerpt","formControlName","excerpt","rows","4","placeholder","Short text used in blog cards and previews",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","tags",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryTags","id","tags","type","text","formControlName","tags","placeholder","ai, automation, product updates",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","author",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryAuthor","id","author","type","text","formControlName","author","placeholder","Optional. If empty on create, current session user is used",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","date",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryDate","id","date","type","datetime-local","formControlName","date",1,"mb-3","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","featuredImageFile",1,"font-bold","text-lg","dark:text-white"],[1,"relative","mb-3","mt-2","w-full"],[1,"mb-3","mt-2"],["id","featuredImageFile","type","file","accept","image/*",1,"block","w-full","text-sm","text-gray-900","file:mr-4","file:rounded-lg","file:border-0","file:bg-primary-100","file:px-4","file:py-2","file:text-white","hover:file:bg-primary-50","dark:text-white","disabled:opacity-60",3,"change","disabled"],[1,"mt-2","text-xs","text-gray-500","dark:text-gray-300"],[1,"mt-2","text-sm","text-primary-100","dark:text-primary-50"],["alt","Featured image preview",1,"h-56","w-full","rounded-lg","border","border-gray-300","object-cover","dark:border-gray-700",3,"src"],["type","button",1,"absolute","right-2","top-2","rounded-full","bg-red-700","p-1","text-white","hover:bg-red-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-4","w-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","blogEntryDelete",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-red-700","hover:bg-red-800","disabled:opacity-60",3,"click","disabled"],["data-cy","blogEntryCreate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100","disabled:opacity-50",3,"click","disabled"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9," Back "),e.k0s()(),e.joV(),e.j41(10,"li",9)(11,"div",10),e.qSk(),e.j41(12,"svg",11),e.nrm(13,"path",12),e.k0s(),e.joV(),e.j41(14,"span",13),e.EFF(15,"Create blog entry"),e.k0s()()()()()()(),e.j41(16,"div",14)(17,"div",15)(18,"h1",16),e.EFF(19),e.k0s(),e.DNE(20,dX2,6,0,"div",17)(21,xX2,17,7),e.k0s()()(),e.j41(22,"app-confirm-dialog",18),e.bIt("confirm",function(){return l.confirmDelete()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s(),e.DNE(23,bX2,9,1,"div",19)),2&t&&(e.R7$(19),e.SpI(" ",l.blogId?"Update CMS entry":"Create CMS entry"," "),e.R7$(),e.vxM(20,l.loading?20:21),e.R7$(2),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass),e.R7$(),e.vxM(23,l.showError?23:-1))},dependencies:[me,p.X1,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,q3.w]})}}return n})();function yX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"span",12),e.EFF(2,"Add FAQ"),e.k0s(),e.qSk(),e.j41(3,"svg",13),e.nrm(4,"path",14),e.k0s()()}}function FX2(n,a){1&n&&(e.qSk(),e.j41(0,"svg",26),e.nrm(1,"path",14),e.k0s())}function vX2(n,a){1&n&&(e.qSk(),e.j41(0,"svg",26),e.nrm(1,"path",27),e.k0s())}function kX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",28)(1,"button",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(2,"svg",30),e.nrm(3,"path",31),e.k0s()(),e.joV(),e.j41(4,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",33),e.nrm(6,"path",34),e.k0s()()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(4),e.Y8G("disabled",t.isDeletingEntry(c))}}function wX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"article",15)(1,"div",16)(2,"button",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.toggleFaq(i.getEntryId(l)))}),e.j41(3,"span",18),e.EFF(4),e.k0s(),e.j41(5,"span",19),e.DNE(6,FX2,2,0,"svg",20)(7,vX2,2,0,"svg",20),e.k0s()(),e.DNE(8,kX2,7,1,"div",21),e.k0s(),e.j41(9,"div",22)(10,"div",23),e.nrm(11,"div",24)(12,"markdown",25),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.AVh("faq-card--open",t.isOpen(t.getEntryId(c))),e.R7$(2),e.BMQ("aria-expanded",t.isOpen(t.getEntryId(c))),e.R7$(2),e.JRh(c.title),e.R7$(),e.AVh("faq-icon--open",t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",!t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",t.canManageEntry()),e.R7$(),e.AVh("faq-answer--open",t.isOpen(t.getEntryId(c))),e.R7$(3),e.Y8G("data",c.content)}}function SX2(n,a){1&n&&(e.j41(0,"div",35),e.EFF(1," No FAQs have been published yet. "),e.k0s())}let NX2=(()=>{class n{constructor(c,t,l){this.router=c,this.domeBlogService=t,this.localStorage=l,this.faqs=[],this.openFaqId="",this.checkAdmin=!1,this.deletingEntryId=null,this.showDeleteConfirm=!1,this.pendingDeleteEntry=null,this.deleteConfirmTitle="Delete FAQ",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.initPartyInfo(),yield c.loadFaqs()})()}loadFaqs(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.domeBlogService.getBlogEntries({contentType:"faq"});c.faqs=c.extractEntries(t).filter(l=>c.isFaqEntry(l))}catch{c.faqs=[]}})()}toggleFaq(c){this.openFaqId=this.openFaqId===c?"":c}isOpen(c){return this.openFaqId===c}getEntryId(c){return c?._id||c?.id||c?.slug||c?.title}goToCreate(){this.router.navigate(["/blog-entry"],{queryParams:{type:"faq"}})}goToUpdate(c){const t=c?._id||c?.id;t&&this.router.navigate(["/blog-entry/",t],{queryParams:{type:"faq"}})}canManageEntry(){return this.checkAdmin}isDeletingEntry(c){return this.deletingEntryId===(c?._id||c?.id)}openDeleteDialog(c){!c?._id&&!c?.id||this.isDeletingEntry(c)||(this.pendingDeleteEntry=c,this.deleteConfirmMessage=`Are you sure you want to delete "${c.title}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1,this.pendingDeleteEntry=null}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){const t=c.pendingDeleteEntry?._id||c.pendingDeleteEntry?.id;if(t){c.deletingEntryId=t,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(t),yield c.loadFaqs()}catch(l){console.error("There was an error while deleting the FAQ entry!",l)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}initPartyInfo(){const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0&&(this.checkAdmin=c.roles.some(t=>"admin"===t.name))}extractEntries(c){if(Array.isArray(c))return c;const t=c?.items||c?.entries||c?.data||c?.results||c?.content;return Array.isArray(t)?t:[]}isFaqEntry(c){return"faq"===(c?.contentType||c?.type||"").toString().trim().toLowerCase()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(W3),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-faq"]],decls:12,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-6","px-6","py-10","sm:px-8","md:px-10","md:py-12","lg:px-16","xl:px-[160px]"],[1,"flex","flex-row","items-start","justify-between","gap-4"],[1,"text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-secondary-200","dark:text-white"],["type","button","data-cy","newFaqEntry","class","h-fit text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle",3,"click",4,"ngIf"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","px-6","pb-16","pt-8","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-4","lg:gap-6"],["class","faq-card",3,"faq-card--open",4,"ngFor","ngForOf"],["class","rounded-lg border border-gray-300 bg-white p-8 text-center text-gray-600 dark:border-secondary-300 dark:bg-secondary-100 dark:text-secondary-50",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","data-cy","newFaqEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle",3,"click"],[1,"pl-2","pr-2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"faq-card"],[1,"flex","items-start","gap-3"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],["class","h-5 w-5","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",4,"ngIf"],["class","flex shrink-0 items-center gap-2 pt-1",4,"ngIf"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content",3,"data"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-5","w-5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14"],[1,"flex","shrink-0","items-center","gap-2","pt-1"],["type","button","title","Edit FAQ",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete FAQ",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"rounded-lg","border","border-gray-300","bg-white","p-8","text-center","text-gray-600","dark:border-secondary-300","dark:bg-secondary-100","dark:text-secondary-50"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"h1",4),e.EFF(5," FAQ "),e.k0s(),e.DNE(6,yX2,5,0,"button",5),e.k0s()()(),e.j41(7,"div",6)(8,"div",7),e.DNE(9,wX2,13,12,"article",8)(10,SX2,2,0,"div",9),e.k0s()()(),e.j41(11,"app-confirm-dialog",10),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t&&(e.R7$(6),e.Y8G("ngIf",l.checkAdmin),e.R7$(3),e.Y8G("ngForOf",l.faqs),e.R7$(),e.Y8G("ngIf",0===l.faqs.length),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[_.Sq,_.bT,N0,q3.w],styles:["[_nghost-%COMP%]{display:block}.faq-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #d8dade;border-radius:8px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease}.faq-card--open[_ngcontent-%COMP%]{box-shadow:0 10px 26px #0b152814}.faq-question[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:24px;background:transparent;border:none;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}.faq-question__title[_ngcontent-%COMP%]{flex:1;color:#0b1528;font-weight:700;font-size:20px;line-height:26px;overflow-wrap:anywhere}.faq-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#dde6f6;color:#2d58a7;flex-shrink:0;transition:background-color .25s ease,color .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;margin-top:0;transition:grid-template-rows .25s ease,opacity .2s ease,margin-top .25s ease}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:20px}.faq-answer__inner[_ngcontent-%COMP%]{min-height:0;overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;width:100%;background:#d8dade;margin-bottom:20px}.faq-answer__content[_ngcontent-%COMP%]{color:#4c5a6b;font-size:17px;line-height:27px;overflow-wrap:anywhere}.dark[_nghost-%COMP%] .faq-card[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-card[_ngcontent-%COMP%]{background:var(--secondary-100, #1f2937)}.dark[_nghost-%COMP%] .faq-question__title[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-question__title[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .faq-answer__content[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{color:#fff}"]})}}return n})();class c5{static{this.BASE_URL=g1.c.BASE_URL}static{this.USAGE_SPEC_LIMIT=g1.c.USAGE_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getUsageSpec(a){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification/${a}`))}getUsageSpecs(a,c){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification?limit=${c5.USAGE_SPEC_LIMIT}&offset=${a}&relatedParty.id=${c}`))}getAllUsageSpecs(a){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification?relatedParty.id=${a}`))}postUsageSpec(a){return this.http.post(`${c5.BASE_URL}/usage/usageSpecification`,a)}updateUsageSpec(a,c){return this.http.patch(`${c5.BASE_URL}/usage/usageSpecification/${c}`,a)}static{this.\u0275fac=function(c){return new(c||c5)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:c5,factory:c5.\u0275fac,providedIn:"root"})}}class D8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_ORDERING=g1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}postProductOrder(a){return this.http.post(`${D8.BASE_URL}${D8.API_ORDERING}/productOrder`,a,{observe:"response"})}getProductOrders(a,c,t,l,i=[]){console.log("getProductOrders");let u=`${D8.BASE_URL}${D8.API_ORDERING}/productOrder?limit=${D8.ORDER_LIMIT}&offset=${c}&relatedParty.id=${a}&relatedParty.role=${l}`,C="";if(t.length>0){for(let b=0;b0&&(u=u+"&productOrderItem.action="+i.join(",")),(0,e0.s)(this.http.get(u))}updateOrder(a,c){return console.log("updatingOrder..."),console.log(a),console.log(c),(0,e0.s)(this.http.patch(`${D8.BASE_URL}${D8.API_ORDERING}/productOrder/${a}`,c))}static{this.\u0275fac=function(c){return new(c||D8)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:D8,factory:D8.\u0275fac,providedIn:"root"})}}class f8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_INVENTORY=g1.c.INVENTORY}static{this.INVENTORY_LIMIT=g1.c.INVENTORY_LIMIT}static{this.INVENTORY_RES_LIMIT=g1.c.INVENTORY_RES_LIMIT}static{this.INVENTORY_SERV_LIMIT=g1.c.INVENTORY_SERV_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getInventory(a,c,t,l){let i=`${f8.BASE_URL}${f8.API_INVENTORY}/product?limit=${f8.INVENTORY_LIMIT}&offset=${a}&relatedParty.id=${c}`,u="";if(t.length>0){for(let C=0;C0){for(let u=0;u0){for(let u=0;u{class n{constructor(c,t,l,i,u){this.api=c,this.accountService=t,this.orderService=l,this.inventoryService=i,this.invoicesService=u,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT}getItemsPaginated(c,t,l,i,u,C,b){return(0,C1.A)(function*(){console.log("options"),console.log(C);try{let T=[c];if("keywords"in C&&T.push(C.keywords),"filters"in C&&T.push(C.filters),"partyId"in C&&null!=C.partyId&&T.push(C.partyId.toString()),"catalogId"in C&&null!=C.catalogId&&T.push(C.catalogId.toString()),"sort"in C&&T.push(C.sort),"isBundle"in C&&T.push(C.isBundle),"selectedDate"in C&&T.push(C.selectedDate),"orders"in C&&T.push(C.orders),"role"in C&&T.push(C.role),"actionFilters"in C&&T.push(C.actionFilters),0==l)i=[],u=[],T[0]=c=0,console.log("------ Calling handler"),console.log(T),i=yield b(...T),c+=t;else for(let u1=0;u1null!=u1);return{page:c,items:i,nextItems:u,page_check:T}}})()}getProducts(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{return console.log("-------------------------- getProducts ----------------------------"),l&&l.length>0?yield u.api.getProductsByCategory(l,c,t,i):yield u.api.getProducts(c,t,i)}catch(C){return console.error("Error fetching products:",C),[]}})()}getProductsByCatalog(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{return console.log("-------------------------- getProductsByCatalog ----------------------------"),console.log(c),l&&l.length>0?yield u.api.getProductsByCategoryAndCatalog(l,i,c):yield u.api.getProductsByCatalog(i,c)}catch(C){return console.error("Error fetching products:",C),[]}})()}getOrders(c,t,l,i,u){var C=this;return(0,C1.A)(function*(b,T,W,u1,a1,T1=[]){try{u1=yield C.orderService.getProductOrders(W,b,T,a1,T1),console.log("getOrders",u1);const Y1=yield Promise.all(u1.map(M2=>C.accountService.getBillingAccountById(M2.billingAccount.id))),f2=yield Promise.all(u1.map(function(){var M2=(0,C1.A)(function*(G2,N2){const a4=yield Promise.all(G2.productOrderItem.map(function(){var B0=(0,C1.A)(function*(K0){try{console.log("Soy un productOrderItem???????: ",K0);const r0=yield C.api.getProductById(K0.productOffering.id),W2=yield C.api.getProductSpecification(r0.productSpecification.id);if(!r0.productOfferingPrice||0===r0.productOfferingPrice.length)return{id:r0.id,name:r0.name,category:r0.category,description:r0.description,lastUpdate:r0.lastUpdate,attachment:W2.attachment,productSpecification:r0.productSpecification,productOfferingTerm:r0.productOfferingTerm,version:r0.version,productOrderItem:K0};let e6={};if(e6={id:r0.id,name:r0.name,category:r0.category,description:r0.description,lastUpdate:r0.lastUpdate,attachment:W2.attachment,productSpecification:r0.productSpecification,productOfferingTerm:r0.productOfferingTerm,version:r0.version,productOrderItem:K0},r0.productOfferingPrice?.[0]){const N6=yield C.api.getProductPrice(r0.productOfferingPrice[0].id);e6.productOfferingPrice=N6,N6.priceType&&(e6.priceType=N6.priceType)}return e6}catch(r0){return console.error(`Error fetching product details for ${K0.id}:`,r0),null}});return function(K0){return B0.apply(this,arguments)}}()));return{...G2,billingAccount:Y1[N2],productOrderItems:a4.filter(Boolean)}});return function(G2,N2){return M2.apply(this,arguments)}}()));return console.log("Orders processed:",f2),f2}catch(Y1){return console.error("Error fetching orders:",Y1),[]}}).apply(this,arguments)}getOffers(c){var t=this;return(0,C1.A)(function*(){return(yield Promise.allSettled(c.map(function(){var i=(0,C1.A)(function*(u){const C=yield t.api.getProductById(u.productOffering.id),b=yield t.api.getProductSpecification(C.productSpecification.id);return u.product={id:u.id,name:C.name,category:C.category,description:C.description,lastUpdate:C.lastUpdate,attachment:b?.attachment??[],productSpecification:C.productSpecification,productOfferingTerm:C.productOfferingTerm,version:C.version},u});return function(u){return i.apply(this,arguments)}}()))).filter(i=>"rejected"!==i.status||(console.error("Error fetching offer:",i.reason),!1)).map(i=>i.value)})()}getInventory(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{console.log("Fetching inventory...");const C=yield u.inventoryService.getInventory(c,i,l,t);return console.log("Inventory received:",C),yield u.getOffers(C)}catch(C){return console.error("Error fetching inventory:",C),[]}})()}getInvoices(c,t,l,i,u){var C=this;return(0,C1.A)(function*(){console.log("---getInvoices---");let b=[];try{b=yield C.invoicesService.getInvoices(l,c,t,i,u)}finally{return console.log("params:",l,c,t,i,u),console.log("---getInvoices result:---",b),console.log(b),b}})()}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(o0.F),e.KVO(x0.O),e.KVO(D8),e.KVO(f8),e.KVO(E5))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const EX2=(n,a)=>a.id,DX2=(n,a)=>({"break-all":n,"break-words":a});function TX2(n,a){1&n&&(e.j41(0,"div",9),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function RX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",19)(1,"td",21),e.EFF(2),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.k0s(),e.j41(5,"td",23)(6,"button",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(7,"svg",25),e.nrm(8,"path",26),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,DX2,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function AX2(n,a){1&n&&(e.j41(0,"div",20)(1,"div",27),e.qSk(),e.j41(2,"svg",28),e.nrm(3,"path",29),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"USAGE_SPECS._no_usage")," "))}function IX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",30)(1,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",32),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._load_more")," "))}function PX2(n,a){if(1&n&&e.DNE(0,IX2,6,3,"div",30),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function jX2(n,a){1&n&&(e.j41(0,"div",33),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function $X2(n,a){if(1&n&&(e.j41(0,"div",14)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",18),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",18),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"tbody"),e.Z7z(15,RX2,9,6,"tr",19,EX2,!1,AX2,7,3,"div",20),e.k0s()()(),e.DNE(18,PX2,1,1)(19,jX2,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,5,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,7,"USAGE_SPECS._description")," "),e.R7$(3),e.SpI(" ",e.bMT(13,9,"USAGE_SPECS._actions")," "),e.R7$(3),e.Dyx(c.usageSpecs),e.R7$(3),e.vxM(18,c.loading_more?19:18)}}let OX2=(()=>{class n{constructor(c,t,l,i){this.eventMessage=c,this.usageService=t,this.localStorage=l,this.paginationService=i,this.usageSpecs=[],this.nextUsageSpecs=[],this.loading=!1,this.loading_more=!1,this.partyId="",this.page=0,this.page_check=!0,this.USAGE_SPEC_LIMIT=g1.c.USAGE_SPEC_LIMIT}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.initPartyInfo(),c.loading=!0,yield c.getUsageSpecs(!1)})()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}getUsageSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.USAGE_SPEC_LIMIT,c,t.usageSpecs,t.nextUsageSpecs,{partyId:t.partyId},t.usageService.getUsageSpecs.bind(t.usageService)).then(i=>{t.page_check=i.page_check,t.usageSpecs=i.items,t.nextUsageSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getUsageSpecs(!0)})()}goToCreate(){this.eventMessage.emitCreateUsageSpec(!0)}goToUpdate(c){this.eventMessage.emitUpdateUsageSpec(c)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(c5),e.rXU(z2.s),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-list"]],standalone:!0,features:[e.aNF],decls:16,vars:7,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createUsageSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","usageSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["data-cy","usageSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"px-6","py-4"],["data-cy","usageSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()()(),e.DNE(14,TX2,6,0,"div",9)(15,$X2,20,11),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"USAGE_SPECS._list")),e.R7$(5),e.JRh(e.bMT(11,5,"USAGE_SPECS._add_new")),e.R7$(4),e.vxM(14,l.loading?14:15))},dependencies:[s1.h,s1.D9,J2.dX,_.MD,_.YU]})}}return n})();function GG(n,a=t4){return(0,J1.N)((c,t)=>{let l=null,i=null,u=null;const C=()=>{if(l){l.unsubscribe(),l=null;const T=i;i=null,t.next(T)}};function b(){const T=u+n,W=a.now();if(W{i=T,u=a.now(),l||(l=a.schedule(b,n),t.add(l))},()=>{C(),t.complete()},void 0,()=>{i=l=null}))})}const BX2=n=>{const a=n.get("paymentOnline")?.value,c=n.get("priceComponents")?.value;return!a||c&&0!==c.length?null:{priceComponentsRequired:!0}};function VX2(n){return a=>{const c=a.get("name");if(!c)return null;const t=c.value?.trim().toLowerCase();return t&&n().map(i=>i?.trim().toLowerCase()).includes(t)?{nonUniqueName:!0}:null}}function O3(n){return 0!==(n.value||"").trim().length?null:{whitespace:!0}}function D5(n){const a=n.value;if(!a||""===a.trim())return null;try{return JSON.parse(a),null}catch{return{invalidJson:!0}}}function UX2(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function GX2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",3)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let HX2=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.FormControl=p.MJ,console.log("\u{1f504} Initializing GeneralInfoComponent")}get formGroup(){return this.form}get nameControl(){const c=this.formGroup.get("name");return c instanceof p.MJ?c:null}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}ngOnInit(){console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data?(console.log("Initializing form in update mode with data:",this.data),this.formGroup.addControl("name",new p.MJ(this.data.name,[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("description",new p.MJ(this.data.description,p.k0.maxLength(1e5))),this.originalValue={name:this.data.name,description:this.data.description},console.log("\u{1f4dd} Original value stored:",this.originalValue)):(console.log("Initializing form in create mode"),this.formGroup.addControl("name",new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("description",new p.MJ(""))),this.isEditMode&&this.formGroup.valueChanges.pipe(GG(500),(0,O1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const t=this.getDirtyFields(c);if(t.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l)}else this.hasBeenModified=!1})}ngOnDestroy(){console.log("\u{1f5d1}\ufe0f Destroying GeneralInfoComponent"),this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){return Object.keys(c).filter(t=>{const i=this.originalValue[t];return JSON.stringify(c[t])!==JSON.stringify(i)})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-general-info"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:2,vars:2,consts:[["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","usageSpecName","id","prod-name","type","text","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","usageSpecDescription",3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,UX2,4,4)(1,GX2,4,4),2&t&&(e.vxM(0,l.nameControl?0:-1),e.R7$(),e.vxM(1,l.descControl?1:-1))},dependencies:[p.X1,p.me,p.BC,p.l_,BL,s1.D9,me]})}}return n})();const ww1=(n,a)=>({"break-all":n,"break-words":a});function YX2(n,a){1&n&&(e.j41(0,"div",0)(1,"div",2),e.qSk(),e.j41(2,"svg",3),e.nrm(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"USAGE_SPECS._no_metrics")," "))}function qX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",10)(1,"td",11),e.EFF(2),e.k0s(),e.j41(3,"td",11),e.EFF(4),e.k0s(),e.j41(5,"td",12)(6,"button",13),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.deleteMetric(l))}),e.qSk(),e.j41(7,"svg",14),e.nrm(8,"path",15),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,ww1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,ww1,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function XX2(n,a){if(1&n&&(e.j41(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr")(4,"th",9),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",9),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",9),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,qX2,9,10,"tr",10,e.fX1),e.k0s()()()),2&n){const c=e.XpG();e.R7$(5),e.SpI(" ",e.bMT(6,3,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"USAGE_SPECS._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"USAGE_SPECS._actions")," "),e.R7$(3),e.Dyx(c.metrics)}}function WX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",1)(1,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showCreateMetric=!l.showCreateMetric)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",17),e.nrm(5,"path",18),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._create_metric")," "))}function JX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",19)(1,"div")(2,"label",20),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",21),e.k0s(),e.j41(6,"div")(7,"label",22),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"textarea",23),e.k0s()(),e.j41(11,"div",24)(12,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveMetric())}),e.EFF(13),e.nI1(14,"translate"),e.qSk(),e.j41(15,"svg",17),e.nrm(16,"path",26),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.metricsForm),e.R7$(3),e.JRh(e.bMT(4,6,"USAGE_SPECS._name")),e.R7$(5),e.JRh(e.bMT(9,8,"USAGE_SPECS._description")),e.R7$(4),e.Y8G("disabled",!c.metricsForm.valid)("ngClass",c.metricsForm.valid?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(14,10,"USAGE_SPECS._save_metric")," ")}}let QX2=(()=>{class n{constructor(c,t,l){this.eventMessage=c,this.fb=t,this.cdr=l,this.formChange=new e.bkB,this.metrics=[],this.showCreateMetric=!1,this.originalValue=[],this.hasBeenModified=!1,this.isEditMode=!1,this.onChange=()=>{},this.onTouched=()=>{},this.metricsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")})}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,console.log(c.metrics)})()}deleteMetric(c){const t=this.metrics.findIndex(C=>C.id===c.id);-1!==t&&this.metrics.splice(t,1),this.onChange([...this.metrics]);const l=[...this.metrics],u={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting change state:",u),this.eventMessage.emitSubformChange(u)}saveMetric(){this.metrics.push({id:L4(),name:this.metricsForm.value.name,description:this.metricsForm.value.description,valueType:"number"}),this.onChange([...this.metrics]),this.cdr.detectChanges(),this.showCreateMetric=!1;const c=[...this.metrics],l={subformType:"metrics",isDirty:!0,dirtyFields:this.getDirtyFields(c),originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l),this.metricsForm.reset()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying Usage Spec Metrics Component"),this.isEditMode&&this.hasBeenModified){const c=[...this.metrics],t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getDirtyFields(c){const t=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&t.push("creatingMetrics"),t}writeValue(c){console.log("\u{1f4dd} Writing value to form:",c),this.metrics=c||[],this.isEditMode&&c&&(this.originalValue=JSON.parse(JSON.stringify(c)),console.log("\u{1f4dd} Original value stored:",this.originalValue))}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(p.ok),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-metrics"]],inputs:{formType:"formType",data:"data",partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:4,vars:2,consts:[[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","btnNewMetric","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","metricName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","metricDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","btnSaveMetric","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"]],template:function(t,l){1&t&&e.DNE(0,YX2,9,3,"div",0)(1,XX2,16,9)(2,WX2,6,3,"div",1)(3,JX2,17,12),2&t&&(e.vxM(0,0===l.metrics.length?0:1),e.R7$(2),e.vxM(2,0==l.showCreateMetric?2:3))},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,_.YU]})}}return n})();const HG=(n,a)=>({"break-all":n,"break-words":a});function ZX2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",4),e.nrm(4,"markdown",5),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"USAGE_SPECS._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,HG,l.hasLongWord(null==(c=l.usageSpecForm.get("generalInfo.description"))?null:c.value,20),!l.hasLongWord(null==(c=l.usageSpecForm.get("generalInfo.description"))?null:c.value,20)))("data",null==(t=l.usageSpecForm.get("generalInfo.description"))?null:t.value)}}function KX2(n,a){if(1&n&&(e.j41(0,"tr",11)(1,"td",12),e.EFF(2),e.k0s(),e.j41(3,"td",13),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,HG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,HG,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function eW2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1,"Metrics"),e.k0s(),e.j41(2,"div",6)(3,"table",7)(4,"thead",8)(5,"tr")(6,"th",9),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",10),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"tbody"),e.Z7z(13,KX2,5,10,"tr",11,e.fX1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(7),e.SpI(" ",e.bMT(8,2,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,4,"USAGE_SPECS._description")," "),e.R7$(3),e.Dyx(null==(c=t.usageSpecForm.get("metrics"))?null:c.value)}}let cW2=(()=>{class n{ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--- INFO SUMMARY"),console.log(c.usageSpecForm),console.log(c.usageSpecForm.get("generalInfo")?.get("name")?.value),console.log(c.usageSpecForm.get("metrics")?.value)})()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-summary"]],inputs:{usageSpecForm:"usageSpecForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:9,vars:10,consts:[[1,"m-8"],[1,"mb-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","dark:bg-secondary-300","dark:text-white","border","dark:border-secondary-200"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","break-words",3,"ngClass"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"label",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",3),e.EFF(6),e.k0s()(),e.DNE(7,ZX2,5,8)(8,eW2,15,6),e.k0s()),2&t){let i,u,C,b;e.R7$(3),e.JRh(e.bMT(4,5,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,HG,l.hasLongWord(null==(i=l.usageSpecForm.get("generalInfo.name"))?null:i.value,20),!l.hasLongWord(null==(i=l.usageSpecForm.get("generalInfo.name"))?null:i.value,20))),e.R7$(),e.SpI(" ",null==(u=l.usageSpecForm.get("generalInfo.name"))?null:u.value," "),e.R7$(),e.vxM(7,""!=(null==(C=l.usageSpecForm.get("generalInfo.description"))?null:C.value)?7:-1),e.R7$(),e.vxM(8,null!=(b=l.usageSpecForm.get("metrics"))&&b.value?8:-1)}},dependencies:[s1.h,s1.D9,N0,_.YU,BL]})}}return n})();const tW2=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),nW2=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function lW2(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._update")," "))}function sW2(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._create")," "))}function aW2(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function oW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",23),e.EFF(2),e.k0s(),e.j41(3,"span",24),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function iW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"usage-spec-general-info",25),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)("form",c.usageSpecForm.controls.generalInfo)}}function rW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"usage-spec-metrics",26),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)}}function dW2(n,a){if(1&n&&e.nrm(0,"usage-spec-summary",27),2&n){const c=e.XpG(2);e.Y8G("usageSpecForm",c.usageSpecForm)}}function fW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.usageSpecForm.controls.generalInfo.valid)("ngClass","update"!==c.formType||c.usageSpecForm.controls.generalInfo.valid?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ","create"===c.formType?"Create Usage Spec":"Update Usage Spec"," ")}}function uW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,oW2,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.j41(6,"div",12),e.DNE(7,iW2,1,3,"usage-spec-general-info",13)(8,rW2,1,2)(9,dW2,1,1),e.k0s(),e.j41(10,"div",14)(11,"button",15),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep-1))}),e.qSk(),e.j41(12,"svg",16),e.nrm(13,"path",17),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.joV(),e.j41(16,"button",18),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep+1))}),e.EFF(17),e.nI1(18,"translate"),e.qSk(),e.j41(19,"svg",19),e.nrm(20,"path",20),e.k0s()(),e.DNE(21,fW2,2,3,"button",21),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.usageSpecForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.steps[c.currentStep]),e.R7$(2),e.vxM(7,0===c.currentStep?7:1===c.currentStep?8:2===c.currentStep?9:-1),e.R7$(4),e.Y8G("disabled",0===c.currentStep)("ngClass",e.l_i(14,tW2,0!==c.currentStep,0===c.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(15,10,"USAGE_SPECS._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStep===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,nW2,c.currentStep!==c.steps.length-1&&("create"!==c.formType||c.validateCurrentStep()||c.canNavigate(c.currentStep)),c.currentStep===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))),e.R7$(),e.SpI(" ",e.bMT(18,12,"USAGE_SPECS._next")," "),e.R7$(4),e.vxM(21,"create"===c.formType&&2===c.currentStep||"update"===c.formType?21:-1)}}function mW2(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",29)(2,"div",30),e.qSk(),e.j41(3,"svg",31),e.nrm(4,"path",32),e.k0s(),e.joV(),e.j41(5,"h3",33),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",34),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let Sw1=(()=>{class n{constructor(c,t,l,i,u){this.api=c,this.eventMessage=t,this.fb=l,this.accService=i,this.usageSpecService=u,this.formType="create",this.usageSpec={},this.currentStep=0,this.highestStep=0,this.steps=["General Info","Metrics","Summary"],this.isFormValid=!1,this.loadingData=!1,this.errorMessage="",this.showError=!1,this.formChanges={},this.formSubscription=null,this.destroy$=new S.B,this.hasChanges=!1,this.usageSpecForm=this.fb.group({generalInfo:this.fb.group({}),metrics:new p.MJ([])}),this.usageSpecForm.statusChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{this.isFormValid="VALID"===C}),this.formSubscription=this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{if("SubformChange"===C.type){const b=C.value;console.log("Received subform change:",b),this.handleSubformChange(b)}})}handleSubformChange(c){console.log("\u{1f4dd} Subform change received:",c),this.formChanges[c.subformType]=c,this.hasChanges=Object.keys(this.formChanges).length>0,console.log("\u{1f4dd} Has changes:",this.hasChanges),console.log(this.formChanges[c.subformType])}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}goToStep(c){"create"===this.formType&&c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep))}validateCurrentStep(){return 0!==this.currentStep||this.usageSpecForm.get("generalInfo")?.valid||!1}canNavigate(c){return"create"==this.formType?this.usageSpecForm.get("generalInfo")?.valid&&c<=this.currentStep||this.usageSpecForm.get("generalInfo")?.valid&&c<=this.highestStep:this.usageSpecForm.get("generalInfo")?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}submitForm(){"update"===this.formType?(console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",this.formChanges),this.updateUsageSpec()):this.createUsageSpec()}ngOnInit(){var c=this;return(0,C1.A)(function*(){"update"===c.formType&&c.usageSpec&&(c.loadingData=!0,yield c.loadUsageSpecData(),c.loadingData=!1)})()}loadUsageSpecData(){if(this.usageSpec){const c=this.usageSpec.specCharacteristic=this.usageSpec.specCharacteristic.map(t=>({...t,id:L4()}));this.usageSpecForm.patchValue({generalInfo:{name:this.usageSpec.name,description:this.usageSpec.description},metrics:c})}}createUsageSpec(){var c=this;return(0,C1.A)(function*(){const t=c.usageSpecForm.value,l=t.generalInfo,i=t.metrics.map(({id:C,...b})=>b),u={name:l.name,description:l.description||"",specCharacteristic:i,relatedParty:[{id:c.partyId,href:c.partyId,role:g1.c.SELLER_ROLE}]};console.log(u),c.usageSpecService.postUsageSpec(u).subscribe({next:C=>{console.log("usageSpec created:"),console.log(C),c.goBack()},error:C=>{console.error("There was an error while creating the usageSpec!",C),C.error.error?(console.log(C),c.errorMessage="Error: "+C.error.error):c.errorMessage="There was an error while creating the usageSpec!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})})()}updateUsageSpec(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const t={name:c.usageSpec.name,description:c.usageSpec.description,specCharacteristic:c.usageSpec.specCharacteristic};for(const[l,i]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,i),l){case"generalInfo":t.name=i.currentValue.name,t.description=i.currentValue.description;break;case"metrics":const u=i.currentValue.map(C=>({name:C.name,description:C.description,valueType:"number"}));t.specCharacteristic=u,console.log("------ here"),console.log(u)}console.log("\u{1f4dd} Final update payload:",t);try{yield(0,e0.s)(c.usageSpecService.updateUsageSpec(t,c.usageSpec.id)),console.log("\u2705 Usage Spec updated successfully"),c.goBack()}catch(l){console.error("\u274c Error updating Usage Spec:",l),c.errorMessage=l?.error?.error?"Error: "+l.error.error:"An error occurred while updating the Usage Spec!",c.showError=!0,setTimeout(()=>c.showError=!1,3e3)}})()}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok),e.rXU(x0.O),e.rXU(c5))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-form"]],inputs:{formType:"formType",usageSpec:"usageSpec",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[3,"data","formType","form"],[1,"flex","justify-end","mt-6","space-x-4"],["data-cy","usageSpecPrevious",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","usageSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","btnCreateUsageSpec",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[3,"formChange","data","formType","form"],["formControlName","metrics",3,"formChange","data","formType"],[3,"usageSpecForm"],["data-cy","btnCreateUsageSpec",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,lW2,3,3,"h2",1)(2,sW2,3,3)(3,aW2,6,0,"div",2)(4,uW2,22,20),e.k0s(),e.DNE(5,mW2,9,1,"div",3)),2&t&&(e.R7$(),e.vxM(1,"update"===l.formType?1:2),e.R7$(2),e.vxM(3,l.loadingData?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[HX2,QX2,cW2,s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,_.YU]})}}return n})(),pW2=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.el=t,this.localStorage=l,this.eventMessage=i,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-usage-spec"]],standalone:!0,features:[e.aNF],decls:18,vars:8,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"usage-spec-form",12),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,4,"USAGE_SPECS._back")," "),e.R7$(7),e.JRh(e.bMT(16,6,"USAGE_SPECS._create")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","create"))},dependencies:[Sw1,s1.h,s1.D9,p.X1]})}}return n})(),hW2=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.el=t,this.localStorage=l,this.eventMessage=i,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-usage-spec"]],inputs:{usageSpec:"usageSpec"},standalone:!0,features:[e.aNF],decls:18,vars:9,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType","usageSpec"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"usage-spec-form",12),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,5,"USAGE_SPECS._back")," "),e.R7$(7),e.JRh(e.bMT(16,7,"USAGE_SPECS._update")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","update")("usageSpec",l.usageSpec))},dependencies:[Sw1,s1.h,s1.D9,p.X1]})}}return n})();function gW2(n,a){1&n&&e.nrm(0,"usage-list")}function _W2(n,a){1&n&&e.nrm(0,"create-usage-spec")}function LW2(n,a){if(1&n&&e.nrm(0,"update-usage-spec",16),2&n){const c=e.XpG();e.Y8G("usageSpec",c.usageSpecToUpdate)}}let CW2=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.show_usage_specs=!0,this.show_create_usage=!1,this.show_update_usage=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{"UsageSpecList"===i.type&&1==i.value?this.goToUsageSpec():"UpdateUsageSpec"===i.type&&i.value?(this.show_update_usage=!0,this.show_usage_specs=!1,this.show_create_usage=!1,this.usageSpecToUpdate=i.value):"CreateUsageSpec"===i.type&&1==i.value&&(this.show_create_usage=!0,this.show_update_usage=!1,this.show_usage_specs=!1)})}ngOnInit(){this.userInfo=this.localStorage.getObject("login_items")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}goToUsageSpec(){this.show_update_usage=!1,this.show_usage_specs=!0,this.show_create_usage=!1}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-usage-specs"]],standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:31,vars:18,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white","mb-8"],["id","catalogs-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"usageSpec"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.joV(),e.j41(16,"div",9)(17,"ul",10)(18,"li")(19,"a",11),e.bIt("click",function(){return l.goToUsageSpec()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()()()(),e.j41(22,"div",12)(23,"div",13)(24,"div",14)(25,"button",15),e.bIt("click",function(){return l.goToUsageSpec()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()()(),e.DNE(28,gW2,1,0,"usage-list")(29,_W2,1,0,"create-usage-spec")(30,LW2,1,1,"update-usage-spec",16),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,8,"USAGE_SPECS._usage_spec")),e.R7$(5),e.JRh(e.bMT(9,10,"USAGE_SPECS._usage_spec")),e.R7$(6),e.SpI(" ",e.bMT(15,12,"USAGE_SPECS._usage_spec")," "),e.R7$(6),e.JRh(e.bMT(21,14,"USAGE_SPECS._list")),e.R7$(6),e.SpI(" ",e.bMT(27,16,"USAGE_SPECS._list")," "),e.R7$(2),e.vxM(28,l.show_usage_specs?28:-1),e.R7$(),e.vxM(29,l.show_create_usage?29:-1),e.R7$(),e.vxM(30,l.show_update_usage?30:-1))},dependencies:[s1.h,s1.D9,J2.dX,_.MD,OX2,pW2,hW2]})}}return n})(),T5=(()=>{class n{constructor(c,t){this.localStorage=c,this.router=t}canActivate(c,t){let l=this.localStorage.getObject("login_items");const i=c.data.roles;let u=[];const C={admin:g1.c.ADMIN_ROLE.toLowerCase(),seller:g1.c.SELLER_ROLE.toLowerCase(),buyer:g1.c.BUYER_ROLE.toLowerCase(),orgAdmin:g1.c.ORG_ADMIN_ROLE.toLowerCase(),certifier:g1.c.CERTIFIER_ROLE.toLowerCase(),individual:"individual"};return"{}"!=JSON.stringify(l)&&l.expire-$2()().unix()-4>0?(l.logged_as==l.id?(u.push("individual"),l.roles.forEach(b=>u.push(b.name.toLowerCase()))):(l.organizations.find(T=>T.id==l.logged_as).roles.forEach(T=>u.push(T.name.toLowerCase())),l.roles.some(T=>T.name.toLowerCase()===g1.c.ADMIN_ROLE.toLowerCase())&&u.push(g1.c.ADMIN_ROLE.toLowerCase())),!(0!=i.length&&!i.some(T=>u.includes(C[T]))&&(this.router.navigate(["/dashboard"]),1))):(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(z2.s),e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Nw1=(()=>{class n{constructor(c){this.router=c}canActivate(){return!!g1.c.QUOTES_ENABLED||(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function zW2(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",2),e.nrm(2,"path",3)(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Loading..."),e.k0s()())}function MW2(n,a){if(1&n&&(e.j41(0,"div",7)(1,"h2",8),e.EFF(2),e.k0s(),e.j41(3,"div",9)(4,"p"),e.EFF(5),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.title),e.R7$(3),e.SpI(" ",c.description," ")}}function xW2(n,a){if(1&n&&(e.j41(0,"h2",6),e.EFF(1,"Operator revenue sharing"),e.k0s(),e.Z7z(2,MW2,6,2,"div",7,e.fX1)),2&n){const c=e.XpG();e.R7$(2),e.Dyx(c.items)}}let Ew1=(()=>{class n{constructor(){this.loading=!1,this.items=[{title:"Total Subcription Revenue",description:"\u20ac45.000 (Q2 2025)"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["operator-revenue-sharing"]],standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"border","border-primary-100","dark:border-primary-50","rounded-lg","p-4","md:p-8"],[1,"text-gray-900","dark:text-white","text-xl","font-normal","mb-2"],[1,"text-lg","font-normal","text-gray-500","dark:text-gray-400"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,zW2,6,0,"div",1)(2,xW2,4,0),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.loading?1:2))},dependencies:[s1.h,J2.dX,_.MD]})}}return n})();var t5=y(4843);const bW2=(n,a)=>a.key,yW2=()=>({standalone:!0});function FW2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function vW2(n,a){if(1&n&&(e.j41(0,"div")(1,"label",36),e.EFF(2),e.k0s(),e.nrm(3,"input",37),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("for","dashboard-"+c.key),e.R7$(),e.JRh(c.label),e.R7$(),e.Y8G("id","dashboard-"+c.key)("formControlName",c.key)}}function kW2(n,a){if(1&n&&(e.j41(0,"div",31),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function wW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"label",10),e.EFF(2,"Provide analytics JSON"),e.k0s(),e.j41(3,"textarea",11),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.providedJson,l)||(i.providedJson=l),e.Njj(l)}),e.k0s(),e.j41(4,"div",12)(5,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadProvidedJsonIntoForm())}),e.EFF(6," Load JSON "),e.k0s(),e.j41(7,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProvidedJson())}),e.EFF(8," Save JSON "),e.k0s()()(),e.j41(9,"form",15)(10,"section",16)(11,"div",17)(12,"div")(13,"p",18),e.EFF(14,"Analytics enabled"),e.k0s(),e.j41(15,"p",19),e.EFF(16,"analyticsEnabled"),e.k0s()(),e.j41(17,"label",20),e.nrm(18,"input",21)(19,"div",22),e.k0s()(),e.j41(20,"div")(21,"label",23),e.EFF(22,"Analytics URL"),e.k0s(),e.nrm(23,"input",24),e.k0s()(),e.j41(24,"section",25)(25,"h3",26),e.EFF(26,"Dashboard IDs"),e.k0s(),e.j41(27,"div",27),e.Z7z(28,vW2,4,4,"div",null,bW2),e.k0s()(),e.j41(30,"section",28)(31,"h3",26),e.EFF(32,"Superset guest token"),e.k0s(),e.j41(33,"div")(34,"label",29),e.EFF(35,"Guest token path"),e.k0s(),e.nrm(36,"input",30),e.k0s()()(),e.DNE(37,kW2,2,1,"div",31),e.j41(38,"div",32)(39,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(40," Save "),e.qSk(),e.j41(41,"svg",34),e.nrm(42,"path",35),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.R50("ngModel",c.providedJson),e.Y8G("ngModelOptions",e.lJ4(8,yW2)),e.R7$(4),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(2),e.Y8G("formGroup",c.analyticsForm),e.R7$(19),e.Dyx(c.dashboardSections),e.R7$(9),e.vxM(37,c.showSuccess?37:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function SW2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}const Gd1="/api/v1/dome/guest_token/";let NW2=(()=>{class n{constructor(c){this.http=c,this.dashboardSections=[{key:"businessInsightsNonLear",label:"Business Insights Non-LEAR"},{key:"businessInsightsLear",label:"Business Insights LEAR"},{key:"usageMonitor",label:"Usage Monitor"}],this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.providedJson="",this.successTimeoutId=null,this.analyticsForm=new p.gE({analyticsEnabled:new p.MJ(!1,{nonNullable:!0}),analytics:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),analyticsDashboards:new p.gE({businessInsightsNonLear:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),businessInsightsLear:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),usageMonitor:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]})}),analyticsSuperset:new p.gE({guestTokenPath:new p.MJ(Gd1,{nonNullable:!0,validators:[p.k0.required]})})})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading analytics configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.buildPayload();yield c.saveAnalyticsPayload(t),yield c.syncFromBackend(),c.successMessage="Analytics configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving analytics configuration.")}finally{c.saving=!1}}})()}saveProvidedJson(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.parseProvidedJson(c.providedJson),l=c.normalizeProvidedAnalyticsForSave(t);yield c.saveAnalyticsPayload(l),yield c.syncFromBackend(),c.successMessage="Analytics JSON saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving provided JSON.")}finally{c.saving=!1}}})()}loadProvidedJsonIntoForm(){try{const c=this.parseProvidedJson(this.providedJson),t=this.normalizeProvidedAnalyticsForSave(c);this.loadAnalyticsConfig(t),this.providedJson=JSON.stringify(this.normalizeAnalyticsForJson(t),null,2)}catch(c){this.handleError(c,"The provided JSON could not be loaded into the form.")}}getDashboardControl(c){return this.analyticsForm.get(`analyticsDashboards.${c}`)}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=yield(0,t5._)(c.http.get(`${g1.c.BASE_URL}/config/analytics`));c.loadAnalyticsConfig(t),c.providedJson=JSON.stringify(c.normalizeAnalyticsForJson(t),null,2)})()}saveAnalyticsPayload(c){var t=this;return(0,C1.A)(function*(){const l=yield(0,t5._)(t.http.patch(`${g1.c.BASE_URL}/config/analytics`,c));g1.c.analytics=l?.analytics??c.analytics,g1.c.analyticsEnabled=l?.analyticsEnabled??c.analyticsEnabled})()}loadAnalyticsConfig(c){this.analyticsForm.patchValue({analyticsEnabled:"boolean"==typeof c?.analyticsEnabled&&c.analyticsEnabled,analytics:this.readAnalyticsUrl(c),analyticsDashboards:{businessInsightsNonLear:this.readString(c?.analyticsDashboards?.businessInsightsNonLear),businessInsightsLear:this.readString(c?.analyticsDashboards?.businessInsightsLear),usageMonitor:this.readString(c?.analyticsDashboards?.usageMonitor)},analyticsSuperset:{guestTokenPath:this.readGuestTokenPath(c)}})}buildPayload(){const c=this.analyticsForm.get("analyticsSuperset"),t=this.analyticsForm.get("analyticsDashboards");return{analytics:this.requireString(this.analyticsForm.get("analytics")?.value,"Analytics URL is required."),analyticsEnabled:this.requireBoolean(this.analyticsForm.get("analyticsEnabled")?.value,"Analytics enabled must be a boolean."),analyticsDashboards:{businessInsightsNonLear:this.requireString(t.get("businessInsightsNonLear")?.value,"Business Insights Non-LEAR dashboard ID is required."),businessInsightsLear:this.requireString(t.get("businessInsightsLear")?.value,"Business Insights LEAR dashboard ID is required."),usageMonitor:this.requireString(t.get("usageMonitor")?.value,"Usage Monitor dashboard ID is required.")},analyticsSuperset:{guestTokenPath:this.requireString(c.get("guestTokenPath")?.value,"Guest token path is required.")}}}normalizeProvidedAnalyticsForSave(c){const t=c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{};return{analytics:this.requireString(this.readAnalyticsUrl(c),"Analytics URL is required."),analyticsEnabled:this.requireBoolean(c?.analyticsEnabled,"Analytics enabled must be a boolean."),analyticsDashboards:{businessInsightsNonLear:this.requireString(c?.analyticsDashboards?.businessInsightsNonLear,"Business Insights Non-LEAR dashboard ID is required."),businessInsightsLear:this.requireString(c?.analyticsDashboards?.businessInsightsLear,"Business Insights LEAR dashboard ID is required."),usageMonitor:this.requireString(c?.analyticsDashboards?.usageMonitor,"Usage Monitor dashboard ID is required.")},analyticsSuperset:{guestTokenPath:this.requireString(t.guestTokenPath,"Guest token path is required.")}}}normalizeAnalyticsForJson(c){const t=c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{};return{analyticsEnabled:!0===c?.analyticsEnabled,analytics:this.readAnalyticsUrl(c),analyticsDashboards:{businessInsightsNonLear:this.readString(c?.analyticsDashboards?.businessInsightsNonLear),businessInsightsLear:this.readString(c?.analyticsDashboards?.businessInsightsLear),usageMonitor:this.readString(c?.analyticsDashboards?.usageMonitor)},analyticsSuperset:{guestTokenPath:this.readString(t.guestTokenPath)||Gd1}}}parseProvidedJson(c){const t=c.trim();if(!t)throw new Error("Please provide a JSON value.");try{const l=JSON.parse(t);if(!l||"object"!=typeof l||Array.isArray(l))throw new Error("Provided JSON must be an object.");return l}catch{throw new Error("Provided JSON is invalid.")}}requireString(c,t){const l="string"==typeof c?c.trim():"";if(!l)throw new Error(t);return l}requireBoolean(c,t){if("boolean"!=typeof c)throw new Error(t);return c}readString(c){return"string"==typeof c?c:""}readAnalyticsUrl(c){return"string"==typeof c?.analytics?c.analytics.trim():c?.analytics&&"object"==typeof c.analytics?this.readString(c.analytics.link)||this.readString(c.analytics.url)||this.readString(c.analytics.domain):""}readGuestTokenPath(c){return this.readString((c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{}).guestTokenPath)||Gd1}handleError(c,t){if(c?.error?.error){const l=c.error.details?` ${"string"==typeof c.error.details?c.error.details:JSON.stringify(c.error.details)}`:"";this.errorMessage=`Error: ${c.error.error}${l}`}else this.errorMessage=c?.message?c.message:t;this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["analytics-config"]],decls:7,vars:2,consts:[["data-cy","adminAnalyticsConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4"],["for","analytics-provided-json",1,"font-bold","text-lg","dark:text-white"],["id","analytics-provided-json","data-cy","adminAnalyticsJson","rows","10",1,"mt-2","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel","ngModelOptions"],[1,"flex","gap-2","justify-end"],["data-cy","adminLoadAnalyticsJson","type","button",1,"text-primary-100","border","border-primary-100","hover:bg-primary-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["data-cy","adminSaveAnalyticsJson","type","button",1,"text-white","bg-primary-100","rounded-lg","text-sm","px-4","py-2",3,"click","disabled","ngClass"],[1,"m-4","space-y-6",3,"formGroup"],[1,"space-y-4"],[1,"flex","items-center","justify-between","gap-4","p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"text-sm","text-gray-500","dark:text-gray-300"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox","formControlName","analyticsEnabled",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-200","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-50","dark:peer-focus:ring-secondary-200","dark:bg-gray-700","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","dark:border-gray-600","peer-checked:bg-primary-100"],["for","analytics-url",1,"font-semibold","text-sm","dark:text-white"],["id","analytics-url","formControlName","analytics","type","url",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formGroupName","analyticsDashboards",1,"space-y-4"],[1,"text-xl","font-bold","text-primary-100","dark:text-white"],[1,"grid","gap-4","xl:grid-cols-3"],["formGroupName","analyticsSuperset",1,"space-y-4"],["for","superset-guest-token-path",1,"font-semibold","text-sm","dark:text-white"],["id","superset-guest-token-path","formControlName","guestTokenPath","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","gap-3","mr-4"],["data-cy","adminSaveAnalyticsConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold","text-sm","dark:text-white",3,"for"],["type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5",3,"id","formControlName"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Analytics"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,FW2,6,0,"div",3)(5,wW2,43,9),e.k0s(),e.DNE(6,SW2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.me,p.Zm,p.BC,p.cb,p.vS,p.j4,p.JD,p.$R,E0],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]})}}return n})();function EW2(n,a){if(1&n&&(e.j41(0,"span",4),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function DW2(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function TW2(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function RW2(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function AW2(n,a){if(1&n&&e.nrm(0,"categories-recursion-list",12),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("child",c)("parent",t.child)("path",t.path+" / "+t.child.name)}}function IW2(n,a){if(1&n&&e.Z7z(0,AW2,1,3,"categories-recursion-list",12,e.fX1),2&n){const c=e.XpG();e.Dyx(c.child.children)}}let PW2=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t}addCategory(c){this.eventMessage.emitCategoryAdded(c)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["categories-recursion-list"]],inputs:{child:"child",parent:"parent",path:"path"},decls:18,vars:8,consts:[["data-cy","adminCategoryRow",1,"flex","border-b","hover:bg-gray-200","dark:border-gray-700","dark:bg-secondary-300","dark:hover:bg-secondary-200","w-full","justify-between"],[1,"flex","px-6","py-4","w-2/4","text-wrap","break-all"],["data-cy","adminCategoryName"],[1,"hidden","md:flex","px-6","py-4","w-fit"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","px-6","py-4","w-fit","justify-end"],["data-cy","adminEditCategory","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"w-full","text-wrap","break-all",3,"child","parent","path"]],template:function(t,l){1&t&&(e.j41(0,"tr",0)(1,"td",1),e.EFF(2),e.j41(3,"b",2),e.EFF(4),e.k0s()(),e.j41(5,"td",3),e.DNE(6,EW2,2,1,"span",4)(7,DW2,2,1)(8,TW2,2,1)(9,RW2,2,1),e.k0s(),e.j41(10,"td",3),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",5)(14,"button",6),e.bIt("click",function(){return l.goToUpdate(l.child)}),e.qSk(),e.j41(15,"svg",7),e.nrm(16,"path",8),e.k0s()()()(),e.DNE(17,IW2,2,0)),2&t&&(e.R7$(2),e.SpI(" ",l.path," / "),e.R7$(2),e.JRh(l.child.name),e.R7$(2),e.vxM(6,"Active"==l.child.lifecycleStatus?6:"Launched"==l.child.lifecycleStatus?7:"Retired"==l.child.lifecycleStatus?8:"Obsolete"==l.child.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,l.child.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(17,l.child.children&&l.child.children.length>0?17:-1))},dependencies:[n,_.vh]})}}return n})();const jW2=(n,a)=>a.id;function $W2(n,a){1&n&&(e.j41(0,"div",9),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function OW2(n,a){if(1&n&&(e.j41(0,"span",29),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function BW2(n,a){if(1&n&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function VW2(n,a){if(1&n&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function UW2(n,a){if(1&n&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function GW2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",38),e.nrm(2,"categories-recursion-list",39),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit;e.R7$(2),e.Y8G("child",c)("parent",t)("path",t.name)}}function HW2(n,a){if(1&n&&e.Z7z(0,GW2,3,3,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function YW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",25)(1,"td",26)(2,"b",27),e.EFF(3),e.k0s()(),e.j41(4,"td",28),e.DNE(5,OW2,2,1,"span",29)(6,BW2,2,1)(7,VW2,2,1)(8,UW2,2,1),e.k0s(),e.j41(9,"td",30),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"td",31)(13,"button",32),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(14,"svg",33),e.nrm(15,"path",34),e.k0s()()()(),e.DNE(16,HW2,2,0)}if(2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(2),e.vxM(5,"Active"==c.lifecycleStatus?5:"Launched"==c.lifecycleStatus?6:"Retired"==c.lifecycleStatus?7:"Obsolete"==c.lifecycleStatus?8:-1),e.R7$(5),e.SpI(" ",e.i5U(11,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(16,c.children.length>0?16:-1)}}function qW2(n,a){1&n&&(e.j41(0,"div",24)(1,"div",40),e.qSk(),e.j41(2,"svg",41),e.nrm(3,"path",42),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CATEGORIES._no_cat")," "))}function XW2(n,a){if(1&n&&(e.j41(0,"div",14)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr",18)(5,"th",19),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",20),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",21),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",22),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",23),e.Z7z(18,YW2,17,7,null,null,jW2,!1,qW2,7,3,"div",24),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,5,"ADMIN._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,7,"ADMIN._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,9,"ADMIN._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,11,"ADMIN._actions")," "),e.R7$(3),e.Dyx(c.categories)}}let WW2=(()=>{class n{constructor(c,t,l,i,u){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.categories=[],this.unformattedCategories=[],this.page=0,this.CATEGOY_LIMIT=g1.c.CATEGORY_LIMIT,this.loading=!1,this.status=["Active","Launched"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCatalogs(){this.loading=!0,this.categories=[],this.unformattedCategories=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories(),D2()}createCategory(){this.eventMessage.emitCreateCategory(!0)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories...");const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));c.categories=i.filter(u=>!!u),c.loading=!1,c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.loading=!0,this.categories=[],this.unformattedCategories=[],this.getCategories(),console.log("filter")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["admin-categories"]],decls:16,vars:7,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","adminAddNewCategory","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-2/4"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminCategoriesTable"],[1,"flex","justify-center","m-4"],["data-cy","adminCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminTableOfferName",1,"flex","px-6","py-4","w-2/4"],["data-cy","adminCategoryName"],["data-cy","adminTableOfferStatus",1,"hidden","md:flex","px-6","py-4","w-fit"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["data-cy","adminEditCategory","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["colspan","3"],[1,"w-full",3,"child","parent","path"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.createCategory()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()()(),e.DNE(14,$W2,6,0,"div",9)(15,XW2,21,13),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"CATEGORIES._categories")),e.R7$(5),e.JRh(e.bMT(11,5,"CATEGORIES._add_new_cat")),e.R7$(4),e.vxM(14,l.loading?14:15))},dependencies:[PW2,_.vh,s1.D9]})}}return n})();function JW2(n,a){if(1&n&&e.nrm(0,"categories-recursion",5),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("child",c)("selected",t.selected)("parent",t.child)("path",t.path+" / "+t.child.name)}}function QW2(n,a){if(1&n&&e.Z7z(0,JW2,1,4,"categories-recursion",5,e.fX1),2&n){const c=e.XpG();e.Dyx(c.child.children)}}let Dw1=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t}isCategorySelected(c){return null!=this.selected&&-1!==this.selected.findIndex(l=>l.id===c.id)}addCategory(c){this.eventMessage.emitCategoryAdded(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["categories-recursion"]],inputs:{child:"child",parent:"parent",selected:"selected",path:"path"},decls:11,vars:8,consts:[["data-cy","adminParentCategoryRow",1,"flex","border-b","hover:bg-gray-200","dark:border-gray-700","dark:bg-secondary-300","dark:hover:bg-secondary-200","w-full","justify-between"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"w-full","text-wrap","break-all",3,"child","selected","parent","path"]],template:function(t,l){1&t&&(e.j41(0,"tr",0)(1,"td",1),e.EFF(2),e.j41(3,"b"),e.EFF(4),e.k0s()(),e.j41(5,"td",2),e.EFF(6),e.nI1(7,"date"),e.k0s(),e.j41(8,"td",3)(9,"input",4),e.bIt("click",function(){return l.addCategory(l.child)}),e.k0s()()(),e.DNE(10,QW2,2,0)),2&t&&(e.R7$(2),e.SpI(" ",l.path," / "),e.R7$(2),e.JRh(l.child.name),e.R7$(2),e.SpI(" ",e.i5U(7,5,l.child.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",l.isCategorySelected(l.child)),e.R7$(),e.vxM(10,l.child.children&&l.child.children.length>0?10:-1))},dependencies:[n,_.vh]})}}return n})();const ZW2=(n,a)=>a.id;function KW2(n,a){1&n&&(e.j41(0,"div",40)(1,"div",41),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function eJ2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",56),e.nrm(2,"categories-recursion",57),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",t)("selected",l.selected)("path",t.name)}}function cJ2(n,a){if(1&n&&e.Z7z(0,eJ2,3,4,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function tJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",51)(1,"td",52)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",53),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",54)(8,"input",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addCategory(l))}),e.k0s()()(),e.DNE(9,cJ2,2,0)}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(3),e.JRh(c.name),e.R7$(2),e.SpI(" ",e.i5U(6,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function nJ2(n,a){if(1&n&&(e.j41(0,"div",44)(1,"table",45)(2,"thead",46)(3,"tr",47)(4,"th",48),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",49),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",50),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,tJ2,10,7,null,null,ZW2),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._select")," "),e.R7$(3),e.Dyx(c.categories)}}function lJ2(n,a){if(1&n&&e.DNE(0,KW2,7,3,"div",40)(1,nJ2,16,9),2&n){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function sJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"form",28)(4,"label",29),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"input",30),e.j41(8,"label",29),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nrm(11,"app-markdown-textarea",31),e.j41(12,"label",32),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"label",33)(16,"input",34),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleParent())}),e.k0s(),e.nrm(17,"div",35),e.k0s(),e.DNE(18,lJ2,2,1),e.k0s(),e.j41(19,"div",36)(20,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.showFinish(),e.Njj(l.generalDone=!0)}),e.EFF(21),e.nI1(22,"translate"),e.qSk(),e.j41(23,"svg",38),e.nrm(24,"path",39),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,11,"CREATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(6,13,"CREATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(10,15,"CREATE_CATEGORIES._description")),e.R7$(4),e.JRh(e.bMT(14,17,"CREATE_CATEGORIES._choose_parent")),e.R7$(3),e.Y8G("checked",t.parentSelectionCheck),e.R7$(2),e.vxM(18,t.parentSelectionCheck?18:-1),e.R7$(2),e.Y8G("disabled",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory)("ngClass",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(22,19,"CREATE_CATEGORIES._next")," ")}}function aJ2(n,a){if(1&n&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function oJ2(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function iJ2(n,a){if(1&n&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function rJ2(n,a){if(1&n&&(e.j41(0,"span",67),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function dJ2(n,a){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",68),e.nrm(4,"markdown",69),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_CATEGORIES._description")),e.R7$(3),e.Y8G("data",null==c.categoryToCreate?null:c.categoryToCreate.description)}}function fJ2(n,a){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",70)(4,"label",71),e.EFF(5),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_CATEGORIES._parent")),e.R7$(4),e.JRh(c.selectedCategory.name)}}function uJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",58)(4,"div")(5,"label",32),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",59),e.EFF(9),e.k0s()(),e.j41(10,"div",60)(11,"label",61),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,aJ2,2,1,"span",62)(15,oJ2,2,1)(16,iJ2,2,1)(17,rJ2,2,1),e.k0s(),e.DNE(18,dJ2,5,4)(19,fJ2,6,4),e.j41(20,"div",63)(21,"button",64),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createCategory())}),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",38),e.nrm(25,"path",39),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"CREATE_CATEGORIES._finish")),e.R7$(5),e.JRh(e.bMT(7,10,"CREATE_CATEGORIES._name")),e.R7$(3),e.SpI(" ",null==c.categoryToCreate?null:c.categoryToCreate.name," "),e.R7$(3),e.JRh(e.bMT(13,12,"CREATE_CATEGORIES._status")),e.R7$(2),e.vxM(14,"Active"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?14:"Launched"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?15:"Retired"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?16:"Obsolete"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?17:-1),e.R7$(4),e.vxM(18,""!=(null==c.categoryToCreate?null:c.categoryToCreate.description)?18:-1),e.R7$(),e.vxM(19,0==c.isParent?19:-1),e.R7$(3),e.SpI(" ",e.bMT(23,14,"CREATE_CATEGORIES._create")," ")}}function mJ2(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let pJ2=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.categories=[],this.unformattedCategories=[],this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),description:new p.MJ("")}),this.isParent=!0,this.parentSelectionCheck=!1,this.selectedCategory=void 0,this.loading=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo(),"CategoryAdded"===b.type&&this.addCategory(b.value)})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories()}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));c.categories=i.filter(Boolean),c.loading=!1,c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}toggleParent(){this.isParent=!this.isParent,this.parentSelectionCheck=!this.parentSelectionCheck,this.cdr.detectChanges()}addCategory(c){null==this.selectedCategory?(this.selectedCategory=c,this.selected=[],this.selected.push(c)):-1!==this.selected.findIndex(l=>l.id===c.id)?(this.selected=[],this.selectedCategory=void 0):(this.selectedCategory=c,this.selected=[],this.selected.push(c)),this.cdr.detectChanges()}isCategorySelected(c){return null!=this.selectedCategory&&c.id==this.selectedCategory.id}showFinish(){null!=this.generalForm.value.name&&(this.categoryToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",isRoot:this.isParent},0==this.isParent&&(this.categoryToCreate.parentId=this.selectedCategory.id),console.log("CATEGORY TO CREATE:"),console.log(this.categoryToCreate),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle")),this.showPreview=!1}createCategory(){this.api.postCategory(this.categoryToCreate).subscribe({next:c=>{this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the category!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-category"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:52,vars:29,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid","md:grid-cols-20/80"],[1,"flex","sm:flex-row","md:flex-col","md:mr-4","w-full","md:w-fit","overflow-x-auto"],[1,"hidden","md:block","text-xl","font-bold","text-black","mb-4","dark:text-white"],["id","general-info",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-primary-100","dark:text-primary-50","justify-items-center","md:justify-items-start",3,"click","disabled"],["id","general-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-primary-100","dark:border-primary-50","rounded-full","shrink-0"],[1,"flex","sm:text-center","md:text-start"],[1,"hidden","xl:flex","text-xs","sm:text-center","md:text-start"],[1,"h-px","mb-2","bg-gray-300","dark:bg-gray-200","border-0"],["id","summary",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-gray-500","justify-items-center","md:justify-items-start",3,"disabled"],["id","summary-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","leading-tight","justify-start"],[1,"hidden","xl:flex","text-xs","justify-start","text-start"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"m-4","gap-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminCategoryNameInput","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","adminCategoryDescription","formControlName","description"],[1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["data-cy","adminToggleParentCategory","type","checkbox",1,"sr-only","peer",3,"change","checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"flex","w-full","justify-items-end","justify-end"],["data-cy","adminCategoryNext","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-3/5"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminParentCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],["colspan","3"],[1,"w-full",3,"child","parent","selected","path"],[1,"m-8"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminCreateCategory","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-all",3,"data"],[1,"px-4","py-2","bg-white","border","border-1","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","p-4","mb-4"],[1,"text-base","dark:text-white","text-wrap","break-all"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div",16)(24,"h2",17),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",18),e.bIt("click",function(){return l.toggleGeneral()}),e.j41(28,"span",19),e.EFF(29," 1 "),e.k0s(),e.j41(30,"span")(31,"h3",20),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"p",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"hr",22),e.j41(38,"button",23)(39,"span",24),e.EFF(40," 2 "),e.k0s(),e.j41(41,"span")(42,"h3",25),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"p",26),e.EFF(46),e.nI1(47,"translate"),e.k0s()()()(),e.j41(48,"div"),e.DNE(49,sJ2,25,21)(50,uJ2,26,16),e.k0s()()()(),e.DNE(51,mJ2,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,13,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,15,"CREATE_CATEGORIES._create")),e.R7$(4),e.JRh(e.bMT(20,17,"CREATE_CATEGORIES._new")),e.R7$(6),e.JRh(e.bMT(26,19,"CREATE_CATEGORIES._steps")),e.R7$(2),e.Y8G("disabled",!l.generalDone),e.R7$(5),e.JRh(e.bMT(33,21,"CREATE_CATEGORIES._general")),e.R7$(3),e.JRh(e.bMT(36,23,"CREATE_CATEGORIES._general_info")),e.R7$(3),e.Y8G("disabled",!0),e.R7$(5),e.JRh(e.bMT(44,25,"CREATE_CATEGORIES._finish")),e.R7$(3),e.JRh(e.bMT(47,27,"CREATE_CATEGORIES._summary")),e.R7$(3),e.vxM(49,l.showGeneral?49:-1),e.R7$(),e.vxM(50,l.showSummary?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,Dw1,E0,_.vh,s1.D9]})}}return n})();const hJ2=(n,a)=>a.id;function gJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",46),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",47),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function _J2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function LJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",51),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function CJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",52),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function zJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",54),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function MJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",55),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function xJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",57),e.qSk(),e.j41(2,"svg",58),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function bJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function yJ2(n,a){1&n&&(e.j41(0,"div",59)(1,"div",60),e.qSk(),e.j41(2,"svg",61),e.nrm(3,"path",62),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function FJ2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",75),e.nrm(2,"categories-recursion",76),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",t)("selected",l.selected)("path",t.name)}}function vJ2(n,a){if(1&n&&e.Z7z(0,FJ2,3,4,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function kJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",70)(1,"td",71)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",72),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",73)(8,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addCategory(l))}),e.k0s()()(),e.DNE(9,vJ2,2,0)}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(3),e.JRh(c.name),e.R7$(2),e.SpI(" ",e.i5U(6,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function wJ2(n,a){if(1&n&&(e.j41(0,"div",63)(1,"table",64)(2,"thead",65)(3,"tr",66)(4,"th",67),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",68),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",69),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,kJ2,10,7,null,null,hJ2),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._select")," "),e.R7$(3),e.Dyx(c.categories)}}function SJ2(n,a){if(1&n&&e.DNE(0,yJ2,7,3,"div",59)(1,wJ2,16,9),2&n){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function NJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"form",28)(4,"label",29),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"input",30),e.j41(8,"label",31),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",32)(12,"ol",33),e.DNE(13,gJ2,5,0,"li",34)(14,_J2,3,0)(15,LJ2,5,0,"li",35)(16,CJ2,3,0)(17,zJ2,5,0,"li",36)(18,MJ2,3,0)(19,xJ2,5,0,"li",37)(20,bJ2,3,0),e.k0s()(),e.j41(21,"label",29),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"app-markdown-textarea",38),e.j41(25,"label",31),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"label",39)(29,"input",40),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleParent())}),e.k0s(),e.nrm(30,"div",41),e.k0s(),e.DNE(31,SJ2,2,1),e.k0s(),e.j41(32,"div",42)(33,"button",43),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.showFinish(),e.Njj(l.generalDone=!0)}),e.EFF(34),e.nI1(35,"translate"),e.qSk(),e.j41(36,"svg",44),e.nrm(37,"path",45),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,17,"UPDATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(6,19,"UPDATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(10,21,"UPDATE_CATALOG._status")),e.R7$(4),e.vxM(13,"Active"==t.catStatus?13:14),e.R7$(2),e.vxM(15,"Launched"==t.catStatus?15:16),e.R7$(2),e.vxM(17,"Retired"==t.catStatus?17:18),e.R7$(2),e.vxM(19,"Obsolete"==t.catStatus?19:20),e.R7$(3),e.JRh(e.bMT(23,23,"UPDATE_CATEGORIES._description")),e.R7$(4),e.JRh(e.bMT(27,25,"UPDATE_CATEGORIES._choose_parent")),e.R7$(3),e.Y8G("disabled",t.checkDisableParent)("checked",t.parentSelectionCheck),e.R7$(2),e.vxM(31,t.parentSelectionCheck?31:-1),e.R7$(2),e.Y8G("disabled",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory)("ngClass",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(35,27,"UPDATE_CATEGORIES._next")," ")}}function EJ2(n,a){if(1&n&&(e.j41(0,"span",81),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function DJ2(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function TJ2(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function RJ2(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function AJ2(n,a){if(1&n&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",87),e.nrm(4,"markdown",88),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_CATEGORIES._description")),e.R7$(3),e.Y8G("data",null==c.categoryToUpdate?null:c.categoryToUpdate.description)}}function IJ2(n,a){if(1&n&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",89)(4,"label",90),e.EFF(5),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_CATEGORIES._parent")),e.R7$(4),e.JRh(c.selectedCategory.name)}}function PJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",77)(4,"div")(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",78),e.EFF(9),e.k0s()(),e.j41(10,"div",79)(11,"label",80),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,EJ2,2,1,"span",81)(15,DJ2,2,1)(16,TJ2,2,1)(17,RJ2,2,1),e.k0s(),e.DNE(18,AJ2,5,4)(19,IJ2,6,4),e.j41(20,"div",82)(21,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateCategory())}),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",44),e.nrm(25,"path",45),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"UPDATE_CATEGORIES._finish")),e.R7$(5),e.JRh(e.bMT(7,10,"UPDATE_CATEGORIES._name")),e.R7$(3),e.SpI(" ",null==c.categoryToUpdate?null:c.categoryToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(13,12,"UPDATE_CATEGORIES._status")),e.R7$(2),e.vxM(14,"Active"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?14:"Launched"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?15:"Retired"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?16:"Obsolete"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?17:-1),e.R7$(4),e.vxM(18,""!=(null==c.categoryToUpdate?null:c.categoryToUpdate.description)?18:-1),e.R7$(),e.vxM(19,0==c.isParent?19:-1),e.R7$(3),e.SpI(" ",e.bMT(23,14,"UPDATE_CATEGORIES._update")," ")}}function jJ2(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let $J2=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.categories=[],this.unformattedCategories=[],this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),description:new p.MJ("")}),this.isParent=!0,this.parentSelectionCheck=!1,this.checkDisableParent=!1,this.selectedCategory=void 0,this.loading=!1,this.catStatus="Active",this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo(),"CategoryAdded"===b.type&&this.addCategory(b.value)})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories(),this.populateCatInfo()}populateCatInfo(){this.generalForm.controls.name.setValue(this.category.name),this.generalForm.controls.description.setValue(this.category.description),this.catStatus=this.category.lifecycleStatus,0==this.category.isRoot?(this.isParent=!1,this.parentSelectionCheck=!0,this.checkDisableParent=!0):(this.isParent=!0,this.parentSelectionCheck=!1)}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));if(c.categories=c.removeCategoryFromTree(i.filter(Boolean),c.category?.id),c.loading=!1,0==c.category.isRoot){const u=c.findCategoryById(c.categories,c.category.parentId);u&&(c.selectedCategory=u,c.selected=[u])}c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}findCategoryById(c,t){for(const l of c||[]){if(l?.id===t)return l;const i=this.findCategoryById(l?.children||[],t);if(i)return i}}removeCategoryFromTree(c,t){return t?(c||[]).filter(l=>l?.id!==t).map(l=>({...l,children:this.removeCategoryFromTree(l?.children||[],t)})):c||[]}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}toggleParent(){this.isParent=!this.isParent,this.parentSelectionCheck=!this.parentSelectionCheck,this.cdr.detectChanges()}addCategory(c){null==this.selectedCategory?(this.selectedCategory=c,this.selected=[],this.selected.push(c)):-1!==this.selected.findIndex(l=>l.id===c.id)?(this.selected=[],this.selectedCategory=void 0):(this.selectedCategory=c,this.selected=[],this.selected.push(c)),this.cdr.detectChanges()}isCategorySelected(c){return null!=this.selectedCategory&&c.id==this.selectedCategory.id}showFinish(){null!=this.generalForm.value.name&&(this.categoryToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.catStatus,isRoot:this.isParent},0==this.isParent&&(this.categoryToUpdate.parentId=this.selectedCategory.id),console.log(this.isParent),console.log("CATEGORY TO UPDATE:"),console.log(this.categoryToUpdate),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle")),this.showPreview=!1}updateCategory(){this.api.updateCategory(this.categoryToUpdate,this.category.id).subscribe({next:c=>{this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the category!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}setCatStatus(c){this.catStatus=c,this.cdr.detectChanges()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-category"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{category:"category"},decls:52,vars:27,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid","md:grid-cols-20/80"],[1,"flex","sm:flex-row","md:flex-col","md:mr-4","w-full","md:w-fit","overflow-x-auto"],[1,"hidden","md:block","text-xl","font-bold","text-black","mb-4","dark:text-white"],["id","general-info",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-primary-100","dark:text-primary-50","justify-items-center","md:justify-items-start",3,"click"],["id","general-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-primary-100","dark:border-primary-50","rounded-full","shrink-0"],[1,"flex","sm:text-center","md:text-start"],[1,"hidden","xl:flex","text-xs","sm:text-center","md:text-start"],[1,"h-px","mb-2","bg-gray-300","dark:bg-gray-200","border-0"],["id","summary",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-gray-500","justify-items-center","md:justify-items-start",3,"click"],["id","summary-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","leading-tight","justify-start"],[1,"hidden","xl:flex","text-xs","justify-start","text-start"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"m-4","gap-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminCategoryNameInput","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusObsolete",1,"cursor-pointer","flex","items-center"],["data-cy","adminCategoryDescription","formControlName","description"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["data-cy","adminToggleParentCategory","type","checkbox",1,"sr-only","peer",3,"change","disabled","checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"flex","w-full","justify-items-end","justify-end"],["data-cy","adminCategoryNext","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusObsolete",1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-3/5"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminParentCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],["colspan","3"],[1,"w-full",3,"child","parent","selected","path"],[1,"m-8"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminUpdateCategory","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","text-wrap","break-all","dark:bg-secondary-100","dark:text-white","text-gray-900",3,"data"],[1,"px-4","py-2","bg-white","border","dark:bg-secondary-300","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"text-base","dark:text-white","text-wrap","break-all"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div",16)(24,"h2",17),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",18),e.bIt("click",function(){return l.toggleGeneral()}),e.j41(28,"span",19),e.EFF(29," 1 "),e.k0s(),e.j41(30,"span")(31,"h3",20),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"p",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"hr",22),e.j41(38,"button",23),e.bIt("click",function(){return l.showFinish()}),e.j41(39,"span",24),e.EFF(40," 2 "),e.k0s(),e.j41(41,"span")(42,"h3",25),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"p",26),e.EFF(46),e.nI1(47,"translate"),e.k0s()()()(),e.j41(48,"div"),e.DNE(49,NJ2,38,29)(50,PJ2,26,16),e.k0s()()()(),e.DNE(51,jJ2,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,11,"UPDATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,13,"UPDATE_CATEGORIES._update")),e.R7$(4),e.JRh(e.bMT(20,15,"UPDATE_CATEGORIES._update")),e.R7$(6),e.JRh(e.bMT(26,17,"UPDATE_CATEGORIES._steps")),e.R7$(7),e.JRh(e.bMT(33,19,"UPDATE_CATEGORIES._general")),e.R7$(3),e.JRh(e.bMT(36,21,"UPDATE_CATEGORIES._general_info")),e.R7$(8),e.JRh(e.bMT(44,23,"UPDATE_CATEGORIES._finish")),e.R7$(3),e.JRh(e.bMT(47,25,"UPDATE_CATEGORIES._summary")),e.R7$(3),e.vxM(49,l.showGeneral?49:-1),e.R7$(),e.vxM(50,l.showSummary?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,Dw1,E0,_.vh,s1.D9]})}}return n})();function OJ2(n,a){if(1&n&&e.nrm(0,"error-message",25),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let BJ2=(()=>{class n{constructor(c,t){this.eventMessage=c,this.http=t,this.showError=!1,this.errorMessage="",this.verificationForm=new p.gE({productId:new p.MJ("",[p.k0.required]),vc:new p.MJ("",[p.k0.required])})}goBack(){this.eventMessage.emitAdminCategories(!0)}verifyCredential(){return this.http.patch(`${g1.c.BASE_URL}/admin/uploadcertificate/${this.verificationForm.value.productId}`,{vc:this.verificationForm.value.vc}).subscribe({next:l=>{this.goBack()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while uploading the product!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["verification"]],decls:40,vars:21,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid"],[1,"m-4","gap-4",3,"formGroup"],["for","verif-id",1,"font-bold","text-lg","dark:text-white"],["formControlName","productId","type","text","id","verif-id",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","vc",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminVerifiableCredential","formControlName","vc","rows","8","placeholder","Add credential...",1,"block","w-full","min-h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminAddCredential","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){if(1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div")(24,"form",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",18),e.j41(29,"label",19),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"textarea",20),e.k0s(),e.j41(33,"div",21)(34,"button",22),e.bIt("click",function(){return l.verifyCredential()}),e.EFF(35),e.nI1(36,"translate"),e.qSk(),e.j41(37,"svg",23),e.nrm(38,"path",24),e.k0s()()()()()()(),e.DNE(39,OJ2,1,1,"error-message",25)),2&t){let i;e.R7$(8),e.SpI(" ",e.bMT(9,9,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,11,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(20,13,"ADMIN._verification")),e.R7$(5),e.Y8G("formGroup",l.verificationForm),e.R7$(2),e.JRh(e.bMT(27,15,"ADMIN._productId")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.verificationForm.get("productId"))?null:i.invalid)&&""!=l.verificationForm.value.productId?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,17,"ADMIN._vc")),e.R7$(5),e.SpI(" ",e.bMT(36,19,"ADMIN._add")," "),e.R7$(4),e.vxM(39,l.showError?39:-1)}},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const Tw1=["general","technical","onboarding","legal"],VJ2=(n,a)=>a.supportType;function UJ2(n,a){if(1&n&&(e.j41(0,"label",34),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",35)),2&n){let c;const t=a.$implicit,l=e.XpG();e.Y8G("for","contact-us-"+t.supportType+"-email"),e.R7$(),e.JRh(e.bMT(2,5,t.labelKey)),e.R7$(2),e.Y8G("formControlName",t.controlName)("id","contact-us-"+t.supportType+"-email")("ngClass",1==(null==(c=l.emailForm.get(t.controlName))?null:c.invalid)&&""!=(null==(c=l.emailForm.get(t.controlName))?null:c.value)?"border-red-600":"border-gray-300")}}function GJ2(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function HJ2(n,a){if(1&n&&(e.j41(0,"div",33)(1,"div",36)(2,"div",8),e.qSk(),e.j41(3,"svg",37),e.nrm(4,"path",38),e.k0s(),e.joV(),e.j41(5,"h3",39),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",40),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()),2&n){const c=e.XpG();e.R7$(6),e.JRh(e.bMT(7,2,"ADMIN._updateSuccessTitle")),e.R7$(3),e.SpI(" ",e.bMT(10,4,c.successMessage)," ")}}let YJ2=(()=>{class n{constructor(c,t){this.eventMessage=c,this.http=t,this.showError=!1,this.errorMessage="",this.showSuccess=!1,this.successMessage="",this.contactUsDestinationControlNames={general:"contactUsGeneralEmail",technical:"contactUsTechnicalEmail",onboarding:"contactUsOnboardingEmail",legal:"contactUsLegalEmail"},this.contactUsDestinationLabels={general:"ADMIN._contactUsGeneralEmail",technical:"ADMIN._contactUsTechnicalEmail",onboarding:"ADMIN._contactUsOnboardingEmail",legal:"ADMIN._contactUsLegalEmail"},this.contactUsDestinationFields=Tw1.map(l=>({supportType:l,controlName:this.contactUsDestinationControlNames[l],labelKey:this.contactUsDestinationLabels[l]})),this.emailForm=new p.gE({smtpServer:new p.MJ("",[p.k0.required]),smtpPort:new p.MJ("",[p.k0.required]),email:new p.MJ("",[p.k0.required,p.k0.email]),emailUser:new p.MJ("",[p.k0.required]),emailPassword:new p.MJ("",[p.k0.required]),contactUsGeneralEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsTechnicalEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsOnboardingEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsLegalEmail:new p.MJ("",[p.k0.required,p.k0.email])})}ngOnInit(){this.getConfig()}goBack(){this.eventMessage.emitAdminCategories(!0)}showSuccessMessage(c){this.showError=!1,this.showSuccess=!0,this.successMessage=c,setTimeout(()=>{this.showSuccess=!1},3e3)}showErrorMessage(c){this.showSuccess=!1,this.showError=!0,this.errorMessage=c,setTimeout(()=>{this.showError=!1},3e3)}getErrorMessage(c,t){return c?.error?.error?"Error: "+c.error.error:t}fillData(c){const t=c.contactUsDestinations??{};this.emailForm.setValue({smtpServer:c.smtpServer??"",smtpPort:c.smtpPort??"",email:c.email??"",emailUser:c.emailUser??"",emailPassword:"",contactUsGeneralEmail:t.general??"",contactUsTechnicalEmail:t.technical??"",contactUsOnboardingEmail:t.onboarding??"",contactUsLegalEmail:t.legal??""})}getConfig(){return this.http.get(`${g1.c.BASE_URL}/charging/api/orderManagement/notify/config`).subscribe({next:t=>{this.fillData(t)},error:t=>{console.error("There was an error while getting config!",t),this.showErrorMessage(this.getErrorMessage(t,"There was an error while getting the config"))}})}addConfig(){return this.http.post(`${g1.c.BASE_URL}/charging/api/orderManagement/notify/config`,{smtpServer:this.emailForm.value.smtpServer,smtpPort:this.emailForm.value.smtpPort,email:this.emailForm.value.email,emailUser:this.emailForm.value.emailUser,emailPassword:this.emailForm.value.emailPassword,contactUsDestinations:{general:this.emailForm.value.contactUsGeneralEmail,technical:this.emailForm.value.contactUsTechnicalEmail,onboarding:this.emailForm.value.contactUsOnboardingEmail,legal:this.emailForm.value.contactUsLegalEmail}}).subscribe({next:()=>{this.emailForm.patchValue({emailPassword:""}),this.showSuccessMessage("ADMIN._emailConfigUpdated")},error:l=>{console.error("There was an error while updating!",l),this.showErrorMessage(this.getErrorMessage(l,"There was an error while updating the config"))}})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["email"]],decls:58,vars:38,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid"],[1,"m-4","gap-4",3,"formGroup"],["for","smtp-server",1,"font-bold","text-lg","dark:text-white"],["formControlName","smtpServer","type","text","id","smtp-server",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","smtp-port",1,"font-bold","text-lg","dark:text-white"],["formControlName","smtpPort","type","text","id","smtp-port",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email",1,"font-bold","text-lg","dark:text-white"],["formControlName","email","type","text","id","email",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email-user",1,"font-bold","text-lg","dark:text-white"],["formControlName","emailUser","type","text","id","email-user",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email-pass",1,"font-bold","text-lg","dark:text-white"],["formControlName","emailPassword","type","password","id","email-pass",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mt-6","mb-2","font-bold","text-xl","text-primary-100","dark:text-white"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminAddCredential","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],[1,"font-bold","text-lg","dark:text-white",3,"for"],["type","text",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControlName","id","ngClass"],["role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","text-sm","pr-8","pl-8"]],template:function(t,l){if(1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div")(24,"form",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",18),e.j41(29,"label",19),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"input",20),e.j41(33,"label",21),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"input",22),e.j41(37,"label",23),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.nrm(40,"input",24),e.j41(41,"label",25),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.nrm(44,"input",26),e.j41(45,"h3",27),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.Z7z(48,UJ2,4,7,null,null,VJ2),e.k0s(),e.j41(50,"div",28)(51,"button",29),e.bIt("click",function(){return l.addConfig()}),e.EFF(52),e.nI1(53,"translate"),e.qSk(),e.j41(54,"svg",30),e.nrm(55,"path",31),e.k0s()()()()()()(),e.DNE(56,GJ2,1,1,"error-message",32)(57,HJ2,11,6,"div",33)),2&t){let i,u,C,b,T;e.R7$(8),e.SpI(" ",e.bMT(9,18,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,20,"ADMIN._email")),e.R7$(4),e.JRh(e.bMT(20,22,"ADMIN._email")),e.R7$(5),e.Y8G("formGroup",l.emailForm),e.R7$(2),e.JRh(e.bMT(27,24,"ADMIN._smtpServer")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.emailForm.get("smtpServer"))?null:i.invalid)&&""!=l.emailForm.value.smtpServer?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,26,"ADMIN._smtpPort")),e.R7$(2),e.Y8G("ngClass",1==(null==(u=l.emailForm.get("smtpPort"))?null:u.invalid)&&""!=l.emailForm.value.smtpPort?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(35,28,"ADMIN._sourceEmail")),e.R7$(2),e.Y8G("ngClass",1==(null==(C=l.emailForm.get("email"))?null:C.invalid)&&""!=l.emailForm.value.email?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(39,30,"ADMIN._emailUser")),e.R7$(2),e.Y8G("ngClass",1==(null==(b=l.emailForm.get("emailUser"))?null:b.invalid)&&""!=l.emailForm.value.emailUser?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(43,32,"ADMIN._emailPass")),e.R7$(2),e.Y8G("ngClass",1==(null==(T=l.emailForm.get("emailPassword"))?null:T.invalid)&&""!=l.emailForm.value.emailPassword?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(47,34,"ADMIN._contactUsDestinations")),e.R7$(2),e.Dyx(l.contactUsDestinationFields),e.R7$(4),e.SpI(" ",e.bMT(53,36,"ADMIN._add")," "),e.R7$(4),e.vxM(56,l.showError?56:-1),e.R7$(),e.vxM(57,l.showSuccess?57:-1)}},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const qJ2=[{key:"quotesEnabled",label:"Quotes",description:"Enable quote request flows and quote pages."},{key:"purchaseEnabled",label:"Purchases",description:"Enable shopping cart and checkout actions."},{key:"aiEnabled",label:"AI search",description:"Enable AI-assisted catalog search."},{key:"tenderingEnabled",label:"Tendering",description:"Enable tendering features."},{key:"dataSpaceEnabled",label:"Data space",description:"Enable data space fields in organization and offer forms."},{key:"dspEnabled",label:"DSP",description:"Enable DSP-related data space contract and schema fields."},{key:"launchValidationEnabled",label:"Launch validation",description:"Enable launch validation requests for offerings."},{key:"tenderDevButtonsOpenCloseEnabled",label:"Tender dev actions",description:"Enable tender open and close development controls."}];function tf(n,a){const c=n[a];return"boolean"==typeof c?c:void 0}function Rw1(n){const a=function XJ2(n){return!!n&&"object"==typeof n&&!Array.isArray(n)}(n)?n:{},c={};return c.searchEnabled=tf(a,"searchEnabled"),c.purchaseEnabled=tf(a,"purchaseEnabled"),c.quotesEnabled=tf(a,"quotesEnabled"),c.tenderingEnabled=tf(a,"tenderingEnabled"),c.dataSpaceEnabled=tf(a,"dataSpaceEnabled"),c.dspEnabled=tf(a,"dspEnabled"),c.launchValidationEnabled=tf(a,"launchValidationEnabled"),c.tenderDevButtonsOpenCloseEnabled=tf(a,"tenderDevButtonsOpenCloseEnabled"),c.aiEnabled=tf(a,"aiEnabled"),c}function Aw1(n){const a=Rw1(n);g1.c.SEARCH_ENABLED=a.searchEnabled??g1.c.SEARCH_ENABLED,g1.c.PURCHASE_ENABLED=a.purchaseEnabled??!0,g1.c.QUOTES_ENABLED=a.quotesEnabled??!1,g1.c.TENDER_ENABLED=a.tenderingEnabled??!1,g1.c.DATA_SPACE_ENABLED=a.dataSpaceEnabled??!1,g1.c.DSP_ENABLED=a.dspEnabled??g1.c.DSP_ENABLED,g1.c.LAUNCH_VALIDATION_ENABLED=a.launchValidationEnabled??!1,g1.c.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED=a.tenderDevButtonsOpenCloseEnabled??!1,g1.c.AI_SEARCH_ENABLED=a.aiEnabled??!1}function WJ2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function JJ2(n,a){if(1&n&&(e.j41(0,"div",11)(1,"div")(2,"p",17),e.EFF(3),e.k0s(),e.j41(4,"p",18),e.EFF(5),e.k0s(),e.j41(6,"p",19),e.EFF(7),e.k0s()(),e.j41(8,"div",20)(9,"label",21),e.nrm(10,"input",22)(11,"div",23),e.k0s()()()),2&n){let c,t,l;const i=a.$implicit,u=a.$index,C=e.XpG(2);e.Y8G("formGroupName",u),e.R7$(3),e.JRh(null==(c=C.getDefinition(null!==(c=null==(c=i.get("key"))?null:c.value)&&void 0!==c?c:""))?null:c.label),e.R7$(2),e.JRh(null==(t=C.getDefinition(null!==(t=null==(t=i.get("key"))?null:t.value)&&void 0!==t?t:""))?null:t.description),e.R7$(2),e.JRh(null==(l=i.get("key"))?null:l.value)}}function QJ2(n,a){if(1&n&&(e.j41(0,"div",12),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function ZJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",9)(1,"div",10),e.Z7z(2,JJ2,12,4,"div",11,e.Vm6),e.k0s()(),e.DNE(4,QJ2,2,1,"div",12),e.j41(5,"div",13)(6,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(7," Save "),e.qSk(),e.j41(8,"svg",15),e.nrm(9,"path",16),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.featuresForm),e.R7$(2),e.Dyx(c.flagsArray.controls),e.R7$(2),e.vxM(4,c.showSuccess?4:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function KJ2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let eQ2=(()=>{class n{constructor(c){this.http=c,this.definitions=qJ2,this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.successTimeoutId=null,this.featuresForm=new p.gE({flags:new p.Yp([])})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}get flagsArray(){return this.featuresForm.get("flags")}getDefinition(c){return this.definitions.find(t=>t.key===c)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading features configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.buildFeaturesPayload(),l=`${g1.c.BASE_URL}/config/features`;yield(0,t5._)(c.http.patch(l,t)),Aw1(t),yield c.syncFromBackend(),c.successMessage="Features configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving features configuration.")}finally{c.saving=!1}}})()}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=`${g1.c.BASE_URL}/config`,i=Rw1(yield(0,t5._)(c.http.get(t)));c.loadFeatureFlags(i)})()}loadFeatureFlags(c){for(;this.flagsArray.length>0;)this.flagsArray.removeAt(0);for(const t of this.definitions)this.flagsArray.push(this.createFeatureGroup(t.key,c[t.key]??!1))}createFeatureGroup(c,t){return new p.gE({key:new p.MJ(c,{nonNullable:!0}),enabled:new p.MJ(t,{nonNullable:!0})})}buildFeaturesPayload(){const c={},t=new Set;return this.flagsArray.controls.forEach((l,i)=>{const u=(l.get("key")?.value??"").trim(),C=!0===l.get("enabled")?.value;if(!u)throw new Error(`Feature ${i+1}: key is required.`);if(t.has(u))throw new Error(`Feature "${u}" is duplicated.`);t.add(u),c[u]=C}),c}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["features-config"]],decls:7,vars:2,consts:[["data-cy","adminFeaturesConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4",3,"formGroup"],["formArrayName","flags",1,"space-y-3"],[1,"grid","gap-3","md:grid-cols-[minmax(0,1fr)_auto]","items-center","p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200",3,"formGroupName"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","gap-3","mr-4"],["data-cy","adminSaveFeaturesConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"text-sm","text-gray-500","dark:text-gray-300"],[1,"mt-1","font-mono","text-xs","text-gray-400","dark:text-gray-300"],[1,"flex","items-center","justify-between","gap-4","md:justify-end"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox","formControlName","enabled",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-200","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-50","dark:peer-focus:ring-secondary-200","dark:bg-gray-700","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","dark:border-gray-600","peer-checked:bg-primary-100"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Features"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,WJ2,6,0,"div",3)(5,ZJ2,10,4),e.k0s(),e.DNE(6,KJ2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.Zm,p.BC,p.cb,p.j4,p.JD,p.$R,p.v8,E0]})}}return n})();var aF=y(7005);const cQ2=()=>({standalone:!0});function tQ2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function nQ2(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1," With "),e.j41(2,"span",26),e.EFF(3,"catalogFirstLevel"),e.k0s(),e.EFF(4,", root category and filters are disabled. "),e.k0s())}function lQ2(n,a){1&n&&(e.j41(0,"div")(1,"label",35),e.EFF(2,"Root name"),e.k0s(),e.nrm(3,"input",44),e.k0s())}function sQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",48),e.nrm(1,"input",49)(2,"input",50),e.j41(3,"button",51),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2).$index,u=e.XpG(3);return e.Njj(u.removeOption(i,l))}),e.EFF(4," Remove "),e.k0s()()}2&n&&e.Y8G("formGroupName",a.$index)}function aQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",41)(1,"div",45)(2,"h4",35),e.EFF(3,"Options"),e.k0s(),e.j41(4,"button",46),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.addOption(l))}),e.EFF(5," Add option "),e.k0s()(),e.j41(6,"div",47),e.Z7z(7,sQ2,5,1,"div",48,e.Vm6),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(7),e.Dyx(t.getOptionsArray(c).controls)}}function oQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"div",34)(2,"div")(3,"label",35),e.EFF(4,"Name"),e.k0s(),e.nrm(5,"input",36),e.k0s(),e.j41(6,"div")(7,"label",35),e.EFF(8,"Label"),e.k0s(),e.nrm(9,"input",37),e.k0s(),e.j41(10,"div")(11,"label",35),e.EFF(12,"Source"),e.k0s(),e.j41(13,"select",38),e.bIt("change",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.clearOptionsForCategoryRoot(l))}),e.j41(14,"option",39),e.EFF(15,"configured"),e.k0s(),e.j41(16,"option",40),e.EFF(17,"categoryRoot"),e.k0s()()(),e.DNE(18,lQ2,4,0,"div"),e.k0s(),e.DNE(19,aQ2,9,0,"div",41),e.j41(20,"div",42)(21,"button",43),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeFilter(l))}),e.EFF(22," Remove filter "),e.k0s()()()}if(2&n){let c,t;const l=a.$index,i=e.XpG(3);e.Y8G("formGroupName",l),e.R7$(18),e.vxM(18,"categoryRoot"===(null==(c=i.filtersArray.at(l).get("source"))?null:c.value)?18:-1),e.R7$(),e.vxM(19,"configured"===(null==(t=i.filtersArray.at(l).get("source"))?null:t.value)?19:-1)}}function iQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",27),e.EFF(1,"Primary root name"),e.k0s(),e.nrm(2,"input",28),e.j41(3,"div",29)(4,"h3",30),e.EFF(5,"Filters"),e.k0s(),e.j41(6,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addFilter())}),e.EFF(7," Add filter "),e.k0s()(),e.j41(8,"div",32),e.Z7z(9,oQ2,23,3,"div",33,e.Vm6),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(9),e.Dyx(c.filtersArray.controls)}}function rQ2(n,a){if(1&n&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function dQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"label",10),e.EFF(2,"Provide searchFilters JSON"),e.k0s(),e.j41(3,"textarea",11),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.providedJson,l)||(i.providedJson=l),e.Njj(l)}),e.k0s(),e.j41(4,"div",12)(5,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadProvidedJsonIntoForm())}),e.EFF(6," Load JSON "),e.k0s(),e.j41(7,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProvidedJson())}),e.EFF(8," Save JSON "),e.k0s()()(),e.j41(9,"form",15)(10,"label",16),e.EFF(11,"Primary categories mode"),e.k0s(),e.j41(12,"select",17),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onPrimaryModeChange())}),e.j41(13,"option",18),e.EFF(14,"catalogFirstLevel"),e.k0s(),e.j41(15,"option",19),e.EFF(16,"rooted"),e.k0s()(),e.DNE(17,nQ2,5,0,"div",20)(18,iQ2,11,0),e.k0s(),e.DNE(19,rQ2,2,1,"div",21),e.j41(20,"div",22)(21,"button",23),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(22," Save "),e.qSk(),e.j41(23,"svg",24),e.nrm(24,"path",25),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.R50("ngModel",c.providedJson),e.Y8G("ngModelOptions",e.lJ4(9,cQ2)),e.R7$(4),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(2),e.Y8G("formGroup",c.searchFiltersForm),e.R7$(8),e.vxM(17,c.isCatalogFirstLevelMode?17:18),e.R7$(2),e.vxM(19,c.showSuccess?19:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function fQ2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let uQ2=(()=>{class n{constructor(c){this.http=c,this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.providedJson="",this.successTimeoutId=null,this.searchFiltersForm=new p.gE({primaryCategoriesMode:new p.MJ("catalogFirstLevel",[p.k0.required]),primaryRootName:new p.MJ(""),filters:new p.Yp([])})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading search filters configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const i="catalogFirstLevel"===(c.searchFiltersForm.value.primaryCategoriesMode??"catalogFirstLevel")?{primaryCategoriesMode:"catalogFirstLevel",primaryRootName:"",filters:[]}:{primaryCategoriesMode:"rooted",primaryRootName:c.requirePrimaryRootName(),filters:c.buildFiltersPayload()},u=`${g1.c.BASE_URL}/config/filters`;yield(0,t5._)(c.http.patch(u,i)),(0,aF.Wh)({searchFilters:i}),yield c.syncFromBackend(),c.successMessage="Search and filters configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving search filters configuration.")}finally{c.saving=!1}}})()}saveProvidedJson(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.parseProvidedJson(c.providedJson),l=c.normalizeProvidedSearchFiltersForSave(t),i=`${g1.c.BASE_URL}/config/filters`;yield(0,t5._)(c.http.patch(i,l)),(0,aF.Wh)({searchFilters:l}),yield c.syncFromBackend(),c.successMessage="Search filters JSON saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving provided JSON.")}finally{c.saving=!1}}})()}loadProvidedJsonIntoForm(){try{const c=this.parseProvidedJson(this.providedJson),t=this.normalizeRuntimeSearchFilters(c);this.searchFiltersForm.patchValue({primaryCategoriesMode:t.primaryCategoriesMode,primaryRootName:t.primaryRootName}),this.loadFilters(t.filters)}catch(c){this.handleError(c,"The provided JSON could not be loaded into the form.")}}onPrimaryModeChange(){this.isCatalogFirstLevelMode&&(this.searchFiltersForm.patchValue({primaryRootName:""}),this.loadFilters([]))}get isCatalogFirstLevelMode(){return"catalogFirstLevel"===this.searchFiltersForm.get("primaryCategoriesMode")?.value}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=`${g1.c.BASE_URL}/config`,l=yield(0,t5._)(c.http.get(t)),i=c.normalizeRuntimeSearchFilters(l?.searchFilters??{});c.providedJson=JSON.stringify(i,null,2),c.searchFiltersForm.patchValue({primaryCategoriesMode:i.primaryCategoriesMode,primaryRootName:i.primaryRootName}),c.loadFilters(i.filters)})()}get filtersArray(){return this.searchFiltersForm.get("filters")}getOptionsArray(c){return this.filtersArray.at(c).get("options")}addFilter(){this.filtersArray.push(this.createFilterGroup())}removeFilter(c){this.filtersArray.removeAt(c)}addOption(c){this.getOptionsArray(c).push(this.createOptionGroup())}removeOption(c,t){this.getOptionsArray(c).removeAt(t)}clearOptionsForCategoryRoot(c){if("categoryRoot"!==this.filtersArray.at(c).get("source")?.value)return;const l=this.getOptionsArray(c);for(;l.length>0;)l.removeAt(0)}loadFilters(c){for(;this.filtersArray.length>0;)this.filtersArray.removeAt(0);for(const t of c)this.filtersArray.push(this.createFilterGroup(this.mapRuntimeFilter(t)))}mapRuntimeFilter(c){const t="categoryRoot"===c?.source?"categoryRoot":"configured",l="configured"===t&&Array.isArray(c?.children)?c.children.filter(i=>"string"==typeof i?.name&&""!==i.name.trim()).map(i=>({name:i.name.trim(),label:"string"==typeof i?.label?i.label:""})):[];return{name:"string"==typeof c?.name?c.name:"",label:"string"==typeof c?.label?c.label:"",source:t,rootName:"string"==typeof c?.rootName?c.rootName:"",options:l}}createFilterGroup(c){return new p.gE({name:new p.MJ(c?.name??"",[p.k0.required]),label:new p.MJ(c?.label??""),source:new p.MJ(c?.source??"configured",[p.k0.required]),rootName:new p.MJ(c?.rootName??""),options:new p.Yp((c?.options??[]).map(t=>this.createOptionGroup(t)))})}createOptionGroup(c){return new p.gE({name:new p.MJ(c?.name??"",[p.k0.required]),label:new p.MJ(c?.label??"")})}buildFiltersPayload(){return this.filtersArray.controls.map((c,t)=>{const l=(c.get("name")?.value??"").trim(),i=(c.get("label")?.value??"").trim(),u="categoryRoot"===c.get("source")?.value?"categoryRoot":"configured",C=(c.get("rootName")?.value??"").trim();if(!l)throw new Error(`Filter ${t+1}: name is required.`);const b={name:l,source:u};if(i&&(b.label=i),"categoryRoot"===u){if(!C)throw new Error(`Filter "${l}": root name is required when source is categoryRoot.`);b.rootName=C}else{const T=this.getOptionsArray(t).controls.map((W,u1)=>{const a1=(W.get("name")?.value??"").trim(),T1=(W.get("label")?.value??"").trim();if(!a1)throw new Error(`Filter "${l}", option ${u1+1}: name is required.`);const Y1={name:a1};return T1&&(Y1.label=T1),Y1});b.children=T}return b})}normalizeRuntimeSearchFilters(c){return"catalogFirstLevel"==("rooted"===c?.primaryCategoriesMode?"rooted":"catalogFirstLevel")?{primaryCategoriesMode:"catalogFirstLevel",primaryRootName:"",filters:[]}:{primaryCategoriesMode:"rooted",primaryRootName:"string"==typeof c?.primaryRootName?c.primaryRootName.trim():"",filters:Array.isArray(c?.filters)?c.filters:[]}}requirePrimaryRootName(){const c=(this.searchFiltersForm.value.primaryRootName??"").trim();if(!c)throw new Error("Primary root name is required when mode is rooted.");return c}parseProvidedJson(c){const t=c.trim();if(!t)throw new Error("Please provide a JSON value.");try{const l=JSON.parse(t);if(!l||"object"!=typeof l||Array.isArray(l))throw new Error("Provided JSON must be an object.");return l}catch{throw new Error("Provided JSON is invalid.")}}normalizeProvidedSearchFiltersForSave(c){if(Object.prototype.hasOwnProperty.call(c,"searchFilters"))throw new Error("Provide only the searchFilters JSON object, not the full /config payload.");return this.normalizeRuntimeSearchFilters(c)}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["search-filters-config"]],decls:7,vars:2,consts:[["data-cy","adminSearchFiltersConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4"],["for","search-filters-provided-json",1,"font-bold","text-lg","dark:text-white"],["id","search-filters-provided-json","data-cy","adminSearchFiltersJson","rows","8",1,"mt-2","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel","ngModelOptions"],[1,"flex","gap-2","justify-end"],["data-cy","adminLoadSearchFiltersJson","type","button",1,"text-primary-100","border","border-primary-100","hover:bg-primary-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["data-cy","adminSaveSearchFiltersJson","type","button",1,"text-white","bg-primary-100","rounded-lg","text-sm","px-4","py-2",3,"click","disabled","ngClass"],[1,"m-4","gap-4",3,"formGroup"],["for","search-filters-mode",1,"font-bold","text-lg","dark:text-white"],["formControlName","primaryCategoriesMode","id","search-filters-mode",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["value","catalogFirstLevel"],["value","rooted"],[1,"mb-2","p-3","text-sm","rounded-lg","text-blue-700","bg-blue-100","dark:bg-secondary-200","dark:text-blue-400"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","mr-4"],["data-cy","adminSaveSearchFiltersConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold"],["for","search-filters-root-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","primaryRootName","type","text","id","search-filters-root-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mt-6","flex","items-center","justify-between"],[1,"font-bold","text-lg","dark:text-white"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2",3,"click"],["formArrayName","filters",1,"space-y-4","mt-3"],[1,"p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200",3,"formGroupName"],[1,"grid","md:grid-cols-2","gap-4"],[1,"font-semibold","text-sm","dark:text-white"],["formControlName","name","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","label","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","source",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5",3,"change"],["value","configured"],["value","categoryRoot"],[1,"mt-4"],[1,"flex","justify-end","mt-4"],["type","button",1,"text-red-700","border","border-red-300","hover:bg-red-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["formControlName","rootName","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],[1,"flex","items-center","justify-between"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-xs","px-3","py-1.5",3,"click"],["formArrayName","options",1,"space-y-2","mt-2"],[1,"grid","md:grid-cols-3","gap-2",3,"formGroupName"],["formControlName","name","type","text","placeholder","Option name",1,"bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","label","type","text","placeholder","Option label",1,"bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["type","button",1,"text-red-700","border","border-red-300","hover:bg-red-50","rounded-lg","text-xs","px-3","py-2",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Search & filters"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,tQ2,6,0,"div",3)(5,dQ2,25,10),e.k0s(),e.DNE(6,fQ2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.vS,p.j4,p.JD,p.$R,p.v8,E0]})}}return n})();function mQ2(n,a){if(1&n&&(e.j41(0,"p",3),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",6),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,"ADMIN._defaultCatalogId"),": "),e.R7$(3),e.JRh(c.defaultCatalogId)}}function pQ2(n,a){1&n&&(e.j41(0,"p",3),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"ADMIN._noDefaultCatalogConfigured")))}function hQ2(n,a){1&n&&(e.j41(0,"div",4),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9),e.k0s(),e.joV(),e.j41(4,"span",10),e.EFF(5,"Loading..."),e.k0s()())}function gQ2(n,a){if(1&n&&(e.j41(0,"div",16),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function _Q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",13),e.j41(5,"label",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"textarea",15),e.k0s(),e.DNE(9,gQ2,2,1,"div",16),e.j41(10,"div",17)(11,"button",18),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveDefaultCatalog())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",19),e.nrm(15,"path",20),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.defaultCatalogForm),e.R7$(2),e.JRh(e.bMT(3,8,"ADMIN._name")),e.R7$(2),e.Y8G("ngClass",null!=(c=t.defaultCatalogForm.get("name"))&&c.invalid&&null!=(c=t.defaultCatalogForm.get("name"))&&c.touched?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,10,"CREATE_CATALOG._description")),e.R7$(3),e.vxM(9,t.showSuccess?9:-1),e.R7$(2),e.Y8G("disabled",t.defaultCatalogForm.invalid||t.loading)("ngClass",t.defaultCatalogForm.invalid||t.loading?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(13,12,"ADMIN._saveDefaultCatalog")," ")}}function LQ2(n,a){if(1&n&&e.nrm(0,"error-message",5),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let CQ2=(()=>{class n{constructor(c){this.api=c,this.loading=!1,this.loadingDefaultCatalog=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.defaultCatalogId="",this.defaultCatalogForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(1e5)])})}ngOnInit(){this.loadDefaultCatalogInfo()}loadDefaultCatalogInfo(){var c=this;return(0,C1.A)(function*(){if(c.defaultCatalogId=g1.c.DFT_CATALOG_ID??"",c.defaultCatalogId){c.loadingDefaultCatalog=!0;try{const t=yield c.api.getCatalog(c.defaultCatalogId);c.defaultCatalogForm.patchValue({name:t?.name??"",description:t?.description??""})}catch(t){c.defaultCatalogId="",c.handleError(t,"There was an error while loading the default catalog.")}finally{c.loadingDefaultCatalog=!1}}})()}saveDefaultCatalog(){var c=this;return(0,C1.A)(function*(){if(c.defaultCatalogForm.invalid||c.loading)c.defaultCatalogForm.markAllAsTouched();else{c.loading=!0,c.showError=!1,c.showSuccess=!1;try{const t={name:c.defaultCatalogForm.value.name?.trim(),description:c.defaultCatalogForm.value.description??"",lifecycleStatus:"Active"};let l=c.defaultCatalogId;if(l?yield(0,t5._)(c.api.updateAdminCatalog(t,l)):l=(yield(0,t5._)(c.api.postAdminCatalog(t)))?.id??"",!l)throw new Error("Catalog ID not returned by backend");yield(0,t5._)(c.api.setDefaultCatalog(l)),c.defaultCatalogId=l,g1.c.DFT_CATALOG_ID=l,c.successMessage="Default catalog saved successfully.",c.showSuccess=!0,setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving the default catalog.")}finally{c.loading=!1}}})()}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["default-catalog"]],decls:10,vars:6,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"m-4","text-sm","text-gray-600","dark:text-gray-300"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"font-semibold"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4","gap-4",3,"formGroup"],["for","default-catalog-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminDefaultCatalogName","formControlName","name","type","text","id","default-catalog-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","default-catalog-description",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminDefaultCatalogDescription","formControlName","description","id","default-catalog-description","rows","5","maxLength","100000",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","mr-4"],["data-cy","adminSaveDefaultCatalog","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",2),e.DNE(5,mQ2,5,4,"p",3)(6,pQ2,3,3)(7,hQ2,6,0,"div",4)(8,_Q2,16,14),e.k0s(),e.DNE(9,LQ2,1,1,"error-message",5)),2&t&&(e.R7$(2),e.JRh(e.bMT(3,4,"ADMIN._defaultCatalog")),e.R7$(3),e.vxM(5,l.defaultCatalogId?5:6),e.R7$(2),e.vxM(7,l.loadingDefaultCatalog?7:8),e.R7$(2),e.vxM(9,l.showError?9:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();function zQ2(n,a){1&n&&e.nrm(0,"admin-categories")}function MQ2(n,a){1&n&&e.nrm(0,"create-category")}function xQ2(n,a){if(1&n&&e.nrm(0,"update-category",27),2&n){const c=e.XpG();e.Y8G("category",c.category_to_update)}}function bQ2(n,a){1&n&&e.nrm(0,"verification")}function yQ2(n,a){1&n&&e.nrm(0,"operator-revenue-sharing")}function FQ2(n,a){1&n&&e.nrm(0,"email")}function vQ2(n,a){1&n&&e.nrm(0,"analytics-config")}function kQ2(n,a){1&n&&e.nrm(0,"search-filters-config")}function wQ2(n,a){1&n&&e.nrm(0,"features-config")}function SQ2(n,a){1&n&&e.nrm(0,"default-catalog")}let NQ2=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.show_categories=!0,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{"AdminCategories"===i.type&&1==i.value&&this.goToCategories(),"CreateCategory"===i.type&&1==i.value&&this.goToCreateCategories(),"UpdateCategory"===i.type&&(this.category_to_update=i.value,this.goToUpdateCategories())})}ngOnInit(){console.log("init")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}goToCategories(){this.selectCategories(),this.show_categories=!0,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToCreateCategories(){this.show_categories=!1,this.show_create_categories=!0,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToUpdateCategories(){this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!0,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToVerification(){this.selectVerification(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!0,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToRevenue(){this.selectRevenue(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!0,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToEmail(){this.selectEmail(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!0,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToAnalytics(){this.selectAnalytics(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!0,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToSearchFilters(){this.selectSearchFilters(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!0,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToFeatures(){this.selectFeatures(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!0,this.show_default_catalog=!1,this.cdr.detectChanges()}goToDefaultCatalog(){this.selectDefaultCatalog(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!0,this.cdr.detectChanges()}selectCategories(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectVerification(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectEmail(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectAnalytics(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.selectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectSearchFilters(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.selectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectFeatures(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.selectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectDefaultCatalog(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.selectMenu(T,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-admin"]],decls:99,vars:43,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"px-4","pt-2","pb-1","text-xs","font-semibold","uppercase","tracking-wide","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"my-1","border-t","border-gray-100","dark:border-gray-600"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","dark:text-white","mb-8","space-y-4"],[1,"mb-2","px-1","text-xs","font-semibold","uppercase","tracking-wide","text-gray-500","dark:text-gray-400"],[1,"bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600"],["id","default-catalog-button","data-cy","adminDefaultCatalogSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","categories-button","data-cy","adminCategoriesSection","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","verify-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","revenue-button",1,"block","w-full","px-4","py-2","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","email-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","analytics-button","data-cy","adminAnalyticsSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","search-filters-button","data-cy","adminSearchFiltersSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","features-button","data-cy","adminFeaturesSection",1,"block","w-full","px-4","py-2","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"category"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8,"My offerings"),e.k0s()(),e.j41(9,"div",5)(10,"button",6),e.qSk(),e.j41(11,"svg",7),e.nrm(12,"path",8),e.k0s(),e.EFF(13," Administration "),e.k0s()()(),e.joV(),e.j41(14,"div",9)(15,"ul",10)(16,"li",11),e.EFF(17," Catalog "),e.k0s(),e.j41(18,"li")(19,"a",12),e.bIt("click",function(){return l.goToDefaultCatalog()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"li")(23,"a",12),e.bIt("click",function(){return l.goToCategories()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.nrm(26,"li",13),e.j41(27,"li",11),e.EFF(28," Business "),e.k0s(),e.j41(29,"li")(30,"a",12),e.bIt("click",function(){return l.goToVerification()}),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li")(34,"a",12),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.nrm(37,"li",13),e.j41(38,"li",11),e.EFF(39," Config "),e.k0s(),e.j41(40,"li")(41,"a",12),e.bIt("click",function(){return l.goToEmail()}),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"li")(45,"a",12),e.bIt("click",function(){return l.goToAnalytics()}),e.EFF(46,"Analytics"),e.k0s()(),e.j41(47,"li")(48,"a",12),e.bIt("click",function(){return l.goToSearchFilters()}),e.EFF(49,"Search & filters"),e.k0s()(),e.j41(50,"li")(51,"a",12),e.bIt("click",function(){return l.goToFeatures()}),e.EFF(52,"Features"),e.k0s()()()(),e.j41(53,"div",14)(54,"div",15)(55,"div",16)(56,"div")(57,"p",17),e.EFF(58,"Catalog"),e.k0s(),e.j41(59,"div",18)(60,"button",19),e.bIt("click",function(){return l.goToDefaultCatalog()}),e.EFF(61),e.nI1(62,"translate"),e.k0s(),e.j41(63,"button",20),e.bIt("click",function(){return l.goToCategories()}),e.EFF(64),e.nI1(65,"translate"),e.k0s()()(),e.j41(66,"div")(67,"p",17),e.EFF(68,"Business"),e.k0s(),e.j41(69,"div",18)(70,"button",21),e.bIt("click",function(){return l.goToVerification()}),e.EFF(71),e.nI1(72,"translate"),e.k0s(),e.j41(73,"button",22),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(74),e.nI1(75,"translate"),e.k0s()()(),e.j41(76,"div")(77,"p",17),e.EFF(78,"Config"),e.k0s(),e.j41(79,"div",18)(80,"button",23),e.bIt("click",function(){return l.goToEmail()}),e.EFF(81),e.nI1(82,"translate"),e.k0s(),e.j41(83,"button",24),e.bIt("click",function(){return l.goToAnalytics()}),e.EFF(84," Analytics "),e.k0s(),e.j41(85,"button",25),e.bIt("click",function(){return l.goToSearchFilters()}),e.EFF(86," Search & filters "),e.k0s(),e.j41(87,"button",26),e.bIt("click",function(){return l.goToFeatures()}),e.EFF(88," Features "),e.k0s()()()()(),e.DNE(89,zQ2,1,0,"admin-categories")(90,MQ2,1,0,"create-category")(91,xQ2,1,1,"update-category",27)(92,bQ2,1,0,"verification")(93,yQ2,1,0,"operator-revenue-sharing")(94,FQ2,1,0,"email")(95,vQ2,1,0,"analytics-config")(96,kQ2,1,0,"search-filters-config")(97,wQ2,1,0,"features-config")(98,SQ2,1,0,"default-catalog"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,21,"ADMIN._admin")),e.R7$(17),e.JRh(e.bMT(21,23,"ADMIN._defaultCatalog")),e.R7$(4),e.JRh(e.bMT(25,25,"ADMIN._categories")),e.R7$(7),e.JRh(e.bMT(32,27,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(36,29,"ADMIN._revenue")),e.R7$(7),e.JRh(e.bMT(43,31,"ADMIN._email")),e.R7$(19),e.SpI(" ",e.bMT(62,33,"ADMIN._defaultCatalog")," "),e.R7$(3),e.SpI(" ",e.bMT(65,35,"ADMIN._categories")," "),e.R7$(7),e.SpI(" ",e.bMT(72,37,"ADMIN._verification")," "),e.R7$(3),e.SpI(" ",e.bMT(75,39,"ADMIN._revenue")," "),e.R7$(7),e.SpI(" ",e.bMT(82,41,"ADMIN._email")," "),e.R7$(8),e.vxM(89,l.show_categories?89:-1),e.R7$(),e.vxM(90,l.show_create_categories?90:-1),e.R7$(),e.vxM(91,l.show_update_categories?91:-1),e.R7$(),e.vxM(92,l.show_verification?92:-1),e.R7$(),e.vxM(93,l.show_revenue?93:-1),e.R7$(),e.vxM(94,l.show_email?94:-1),e.R7$(),e.vxM(95,l.show_analytics?95:-1),e.R7$(),e.vxM(96,l.show_search_filters?96:-1),e.R7$(),e.vxM(97,l.show_features?97:-1),e.R7$(),e.vxM(98,l.show_default_catalog?98:-1))},dependencies:[Ew1,NW2,WW2,pJ2,$J2,BJ2,YJ2,eQ2,uQ2,CQ2,s1.D9]})}}return n})();const Hd1=(n,a)=>a.id,YG=(n,a)=>({"break-all":n,"break-words":a});function EQ2(n,a){1&n&&(e.j41(0,"div",4),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function DQ2(n,a){if(1&n&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name)}}function TQ2(n,a){1&n&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CATALOGS._no_cat")))}function RQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToCatalogSearch(l.id))}),e.j41(1,"div",13)(2,"h5",14),e.EFF(3),e.k0s(),e.nrm(4,"markdown",15),e.nI1(5,"translate"),e.nrm(6,"hr",16),e.j41(7,"div",17),e.Z7z(8,DQ2,2,5,"span",18,Hd1,!1,TQ2,3,3,"span",19),e.k0s(),e.j41(11,"div",20)(12,"button",21),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).showFullDesc(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(13,"svg",22)(14,"g",23),e.nrm(15,"path",24)(16,"path",25),e.k0s()(),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(9,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("data",c.description?c.description:e.bMT(5,5,"CATALOGS._no_desc")),e.R7$(4),e.Dyx(c.category),e.R7$(9),e.SpI(" ",e.bMT(18,7,"CARD._details")," ")}}function AQ2(n,a){if(1&n&&(e.j41(0,"div",10),e.Z7z(1,RQ2,19,12,"div",11,Hd1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.catalogs)}}function IQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",26)(1,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",28),e.nrm(4,"path",29),e.k0s()()()}}function PQ2(n,a){if(1&n&&e.DNE(0,IQ2,5,0,"div",26),2&n){const c=e.XpG();e.vxM(0,c.page_check?0:-1)}}function jQ2(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function $Q2(n,a){if(1&n&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",e.l_i(2,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function OQ2(n,a){1&n&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CATALOGS._no_cat")," "))}function BQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",31)(2,"div",32),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(3,"div",33)(4,"h5",34),e.EFF(5),e.k0s()(),e.nrm(6,"hr",16),e.j41(7,"div",35)(8,"div",36),e.nrm(9,"markdown",37),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"hr",16),e.j41(12,"div",38),e.Z7z(13,$Q2,2,5,"span",39,Hd1,!1,OQ2,3,3,"span",40),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showDesc?"backdrop-blur-sm":""),e.R7$(5),e.SpI(" ",null==c.showingCat?null:c.showingCat.name," "),e.R7$(4),e.Y8G("ngClass",e.l_i(7,YG,c.hasLongWord(c.showingCat.description,20),!c.hasLongWord(c.showingCat.description,20)))("data",c.showingCat.description?c.showingCat.description:e.bMT(10,5,"CATALOGS._no_desc")),e.R7$(4),e.Dyx(c.showingCat.category)}}let VQ2=(()=>{class n{constructor(c,t,l,i){this.router=c,this.api=t,this.cdr=l,this.paginationService=i,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.searchField=new p.MJ,this.faEye=VC1,this.showDesc=!1}onClick(){1==this.showDesc&&(this.showDesc=!1,this.cdr.detectChanges())}ngOnInit(){this.loading=!0,this.getCatalogs(!1);let c=document.querySelector("[type=search]");c?.addEventListener("input",t=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))})}getCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.filter};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogs.bind(t.api));t.page_check=i.page_check,t.catalogs=i.items.filter(u=>u.id!==g1.c.DFT_CATALOG_ID),t.nextCatalogs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}filterCatalogs(){this.filter=this.searchField.value,this.page=0,this.getCatalogs(!1)}goToCatalogSearch(c){this.router.navigate(["/search/catalogue",c])}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getCatalogs(!0)})()}showFullDesc(c){this.showDesc=!0,this.showingCat=c}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-catalogs"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:13,vars:9,consts:[[1,"container","mx-auto","pt-2","mb-8"],["data-cy","cataloguesAllHeader",1,"mb-2","text-center","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"mb-8","text-lg","font-normal","text-gray-500","lg:text-xl","sm:px-16","xl:px-48","dark:text-secondary-50","text-center"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["id","details-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-40","flex","flex-col","lg:flex-row","justify-center","overflow-y-auto","overflow-x-hidden","px-4","pt-[80px]","lg:pt-0","lg:items-center",3,"ngClass"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"w-full","p-4","md:grid","md:grid-cols-2","gap-4","lg:grid-cols-4"],["data-cy","cataloguesList",1,"block","cursor-pointer","rounded-lg","bg-cover","mb-4","md:mb-0",2,"background-image","url(assets/logos/dome-logo-element-colour.png)"],["data-cy","cataloguesList",1,"block","cursor-pointer","rounded-lg","bg-cover","mb-4","md:mb-0",2,"background-image","url(assets/logos/dome-logo-element-colour.png)",3,"click"],[1,"block","w-full","h-full","p-6","bg-opacity-100","bg-secondary-50","rounded-lg","dark:bg-secondary-100","bg-secondary-50/90","dark:bg-secondary-100/90","bg-cover"],["data-cy","cataloguesTitle",1,"text-2xl","font-bold","tracking-tight","line-clamp-4","text-primary-100","dark:text-white","text-wrap","break-words",3,"ngClass"],["data-cy","cataloguesDescription",1,"line-clamp-[8]","text-wrap","break-all","dark:text-white","text-gray-900",3,"data"],[1,"h-px","my-1","bg-primary-100","border-0","dark:bg-primary-100"],["data-cy","cataloguesCategories",1,""],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","me-2","px-2.5","py-0.5","rounded-full","w-fit","text-wrap","break-words",3,"ngClass"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","me-2","px-2.5","py-0.5","rounded-full","w-fit","text-wrap","break-words"],[1,"flex","sticky","top-[100vh]","justify-center","align-items-bottom"],["data-cy","cataloguesViewDetails","type","button",1,"flex","mt-2","items-center","align-items-bottom","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-primary-100","dark:hover:bg-primary-50","dark:focus:ring-primary-100","mr-1",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],[1,"flex","pt-8","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","pt-8","flex","justify-center","align-middle"],[1,"relative","w-full","max-w-4xl"],["data-cy","cataloguesDetailsContents",1,"relative","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","bg-cover","bg-right-bottom","overflow-y-auto","max-h-[calc(100vh-160px)]",3,"click"],[1,"w-full","rounded-t-lg","p-4"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"p-4"],[1,"max-h-[300px]","overflow-y-auto","mb-4","p-4","rounded","border","border-primary-100/10","bg-primary-100/5","dark:bg-white/5"],[1,"dark:text-secondary-50","text-wrap","break-words",3,"ngClass","data"],["data-cy","cataloguesCategoriesList",1,"p-4","flex","flex-wrap","gap-2"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","px-2.5","py-0.5","rounded-full","text-wrap","break-words",3,"ngClass"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","px-2.5","py-0.5","rounded-full","text-wrap","break-words"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,EQ2,6,0,"div",4)(9,AQ2,3,0)(10,PQ2,1,1)(11,jQ2,6,0),e.k0s(),e.DNE(12,BQ2,16,10,"div",5)),2&t&&(e.R7$(3),e.JRh(e.bMT(4,5,"CATALOGS._all_catalogs")),e.R7$(3),e.JRh(e.bMT(7,7,"CATALOGS._choose")),e.R7$(2),e.vxM(8,l.loading?8:9),e.R7$(2),e.vxM(10,l.loading_more?11:10),e.R7$(2),e.vxM(12,l.showDesc?12:-1))},dependencies:[_.YU,N0,s1.D9]})}}return n})();class oF{static{this.BASE_URL=g1.c.BASE_URL}static{this.CHARGING=g1.c.CHARGING}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a){this.http=a}completePayment(a){const c={confirm_action:a.action,reference:a.ref,client:a.client,signature:a.sig};return a.jwt?c.jwt=a.jwt:a.session_id&&(c.session_id=a.session_id),this.http.post(`${oF.BASE_URL}${oF.CHARGING}/api/orderManagement/orders/confirm/`,c,{observe:"response"})}static{this.\u0275fac=function(c){return new(c||oF)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:oF,factory:oF.\u0275fac,providedIn:"root"})}}const qG=[{text:"\u{1f1fa}\u{1f1f8} +1 United States",code:"+1",flag:"\u{1f1fa}\u{1f1f8}",country:"US"},{text:"\u{1f1e8}\u{1f1e6} +1 Canada",code:"+1",flag:"\u{1f1e8}\u{1f1e6}",country:"CA"},{text:"\u{1f1f7}\u{1f1fa} +7 Russia",code:"+7",flag:"\u{1f1f7}\u{1f1fa}",country:"RU"},{text:"\u{1f1ea}\u{1f1ec} +20 Egypt",code:"+20",flag:"\u{1f1ea}\u{1f1ec}",country:"EG"},{text:"\u{1f1ff}\u{1f1e6} +27 South Africa",code:"+27",flag:"\u{1f1ff}\u{1f1e6}",country:"ZA"},{text:"\u{1f1ec}\u{1f1f7} +30 Greece",code:"+30",flag:"\u{1f1ec}\u{1f1f7}",country:"GR"},{text:"\u{1f1f3}\u{1f1f1} +31 Netherlands",code:"+31",flag:"\u{1f1f3}\u{1f1f1}",country:"NL"},{text:"\u{1f1e7}\u{1f1ea} +32 Belgium",code:"+32",flag:"\u{1f1e7}\u{1f1ea}",country:"BE"},{text:"\u{1f1eb}\u{1f1f7} +33 France",code:"+33",flag:"\u{1f1eb}\u{1f1f7}",country:"FR"},{text:"\u{1f1ea}\u{1f1f8} +34 Spain",code:"+34",flag:"\u{1f1ea}\u{1f1f8}",country:"ES"},{text:"\u{1f1ed}\u{1f1fa} +36 Hungary",code:"+36",flag:"\u{1f1ed}\u{1f1fa}",country:"HU"},{text:"\u{1f1ee}\u{1f1f9} +39 Italy",code:"+39",flag:"\u{1f1ee}\u{1f1f9}",country:"IT"},{text:"\u{1f1f7}\u{1f1f4} +40 Romania",code:"+40",flag:"\u{1f1f7}\u{1f1f4}",country:"RO"},{text:"\u{1f1e8}\u{1f1ed} +41 Switzerland",code:"+41",flag:"\u{1f1e8}\u{1f1ed}",country:"CH"},{text:"\u{1f1e6}\u{1f1f9} +43 Austria",code:"+43",flag:"\u{1f1e6}\u{1f1f9}",country:"AT"},{text:"\u{1f1ec}\u{1f1e7} +44 United Kingdom",code:"+44",flag:"\u{1f1ec}\u{1f1e7}",country:"GB"},{text:"\u{1f1e9}\u{1f1f0} +45 Denmark",code:"+45",flag:"\u{1f1e9}\u{1f1f0}",country:"DK"},{text:"\u{1f1f8}\u{1f1ea} +46 Sweden",code:"+46",flag:"\u{1f1f8}\u{1f1ea}",country:"SE"},{text:"\u{1f1f3}\u{1f1f4} +47 Norway",code:"+47",flag:"\u{1f1f3}\u{1f1f4}",country:"NO"},{text:"\u{1f1f5}\u{1f1f1} +48 Poland",code:"+48",flag:"\u{1f1f5}\u{1f1f1}",country:"PL"},{text:"\u{1f1e9}\u{1f1ea} +49 Germany",code:"+49",flag:"\u{1f1e9}\u{1f1ea}",country:"DE"},{text:"\u{1f1f5}\u{1f1ea} +51 Peru",code:"+51",flag:"\u{1f1f5}\u{1f1ea}",country:"PE"},{text:"\u{1f1f2}\u{1f1fd} +52 Mexico",code:"+52",flag:"\u{1f1f2}\u{1f1fd}",country:"MX"},{text:"\u{1f1e8}\u{1f1fa} +53 Cuba",code:"+53",flag:"\u{1f1e8}\u{1f1fa}",country:"CU"},{text:"\u{1f1e6}\u{1f1f7} +54 Argentina",code:"+54",flag:"\u{1f1e6}\u{1f1f7}",country:"AR"},{text:"\u{1f1e7}\u{1f1f7} +55 Brazil",code:"+55",flag:"\u{1f1e7}\u{1f1f7}",country:"BR"},{text:"\u{1f1e8}\u{1f1f1} +56 Chile",code:"+56",flag:"\u{1f1e8}\u{1f1f1}",country:"CL"},{text:"\u{1f1e8}\u{1f1f4} +57 Colombia",code:"+57",flag:"\u{1f1e8}\u{1f1f4}",country:"CO"},{text:"\u{1f1fb}\u{1f1ea} +58 Venezuela",code:"+58",flag:"\u{1f1fb}\u{1f1ea}",country:"VE"},{text:"\u{1f1f2}\u{1f1fe} +60 Malaysia",code:"+60",flag:"\u{1f1f2}\u{1f1fe}",country:"MY"},{text:"\u{1f1e6}\u{1f1fa} +61 Australia",code:"+61",flag:"\u{1f1e6}\u{1f1fa}",country:"AU"},{text:"\u{1f1ee}\u{1f1e9} +62 Indonesia",code:"+62",flag:"\u{1f1ee}\u{1f1e9}",country:"ID"},{text:"\u{1f1f5}\u{1f1ed} +63 Philippines",code:"+63",flag:"\u{1f1f5}\u{1f1ed}",country:"PH"},{text:"\u{1f1f3}\u{1f1ff} +64 New Zealand",code:"+64",flag:"\u{1f1f3}\u{1f1ff}",country:"NZ"},{text:"\u{1f1f8}\u{1f1ec} +65 Singapore",code:"+65",flag:"\u{1f1f8}\u{1f1ec}",country:"SG"},{text:"\u{1f1f9}\u{1f1ed} +66 Thailand",code:"+66",flag:"\u{1f1f9}\u{1f1ed}",country:"TH"},{text:"\u{1f1ef}\u{1f1f5} +81 Japan",code:"+81",flag:"\u{1f1ef}\u{1f1f5}",country:"JP"},{text:"\u{1f1f0}\u{1f1f7} +82 South Korea",code:"+82",flag:"\u{1f1f0}\u{1f1f7}",country:"KR"},{text:"\u{1f1fb}\u{1f1f3} +84 Vietnam",code:"+84",flag:"\u{1f1fb}\u{1f1f3}",country:"VN"},{text:"\u{1f1e8}\u{1f1f3} +86 China",code:"+86",flag:"\u{1f1e8}\u{1f1f3}",country:"CN"},{text:"\u{1f1f9}\u{1f1f7} +90 Turkey",code:"+90",flag:"\u{1f1f9}\u{1f1f7}",country:"TR"},{text:"\u{1f1ee}\u{1f1f3} +91 India",code:"+91",flag:"\u{1f1ee}\u{1f1f3}",country:"IN"},{text:"\u{1f1f5}\u{1f1f0} +92 Pakistan",code:"+92",flag:"\u{1f1f5}\u{1f1f0}",country:"PK"},{text:"\u{1f1e6}\u{1f1eb} +93 Afghanistan",code:"+93",flag:"\u{1f1e6}\u{1f1eb}",country:"AF"},{text:"\u{1f1f1}\u{1f1f0} +94 Sri Lanka",code:"+94",flag:"\u{1f1f1}\u{1f1f0}",country:"LK"},{text:"\u{1f1f2}\u{1f1f2} +95 Myanmar",code:"+95",flag:"\u{1f1f2}\u{1f1f2}",country:"MM"},{text:"\u{1f1ee}\u{1f1f7} +98 Iran",code:"+98",flag:"\u{1f1ee}\u{1f1f7}",country:"IR"},{text:"\u{1f1f2}\u{1f1e6} +212 Morocco",code:"+212",flag:"\u{1f1f2}\u{1f1e6}",country:"MA"},{text:"\u{1f1e9}\u{1f1ff} +213 Algeria",code:"+213",flag:"\u{1f1e9}\u{1f1ff}",country:"DZ"},{text:"\u{1f1f9}\u{1f1f3} +216 Tunisia",code:"+216",flag:"\u{1f1f9}\u{1f1f3}",country:"TN"},{text:"\u{1f1f1}\u{1f1fe} +218 Libya",code:"+218",flag:"\u{1f1f1}\u{1f1fe}",country:"LY"},{text:"\u{1f1ec}\u{1f1f2} +220 Gambia",code:"+220",flag:"\u{1f1ec}\u{1f1f2}",country:"GM"},{text:"\u{1f1f8}\u{1f1f3} +221 Senegal",code:"+221",flag:"\u{1f1f8}\u{1f1f3}",country:"SN"},{text:"\u{1f1f2}\u{1f1f7} +222 Mauritania",code:"+222",flag:"\u{1f1f2}\u{1f1f7}",country:"MR"},{text:"\u{1f1f2}\u{1f1f1} +223 Mali",code:"+223",flag:"\u{1f1f2}\u{1f1f1}",country:"ML"},{text:"\u{1f1ec}\u{1f1f3} +224 Guinea",code:"+224",flag:"\u{1f1ec}\u{1f1f3}",country:"GN"},{text:"\u{1f1e8}\u{1f1ee} +225 Ivory Coast",code:"+225",flag:"\u{1f1e8}\u{1f1ee}",country:"CI"},{text:"\u{1f1e7}\u{1f1eb} +226 Burkina Faso",code:"+226",flag:"\u{1f1e7}\u{1f1eb}",country:"BF"},{text:"\u{1f1f3}\u{1f1ea} +227 Niger",code:"+227",flag:"\u{1f1f3}\u{1f1ea}",country:"NE"},{text:"\u{1f1f9}\u{1f1ec} +228 Togo",code:"+228",flag:"\u{1f1f9}\u{1f1ec}",country:"TG"},{text:"\u{1f1e7}\u{1f1ef} +229 Benin",code:"+229",flag:"\u{1f1e7}\u{1f1ef}",country:"BJ"},{text:"\u{1f1f2}\u{1f1fa} +230 Mauritius",code:"+230",flag:"\u{1f1f2}\u{1f1fa}",country:"MU"},{text:"\u{1f1f1}\u{1f1f7} +231 Liberia",code:"+231",flag:"\u{1f1f1}\u{1f1f7}",country:"LR"},{text:"\u{1f1f8}\u{1f1f1} +232 Sierra Leone",code:"+232",flag:"\u{1f1f8}\u{1f1f1}",country:"SL"},{text:"\u{1f1ec}\u{1f1ed} +233 Ghana",code:"+233",flag:"\u{1f1ec}\u{1f1ed}",country:"GH"},{text:"\u{1f1f3}\u{1f1ec} +234 Nigeria",code:"+234",flag:"\u{1f1f3}\u{1f1ec}",country:"NG"},{text:"\u{1f1f9}\u{1f1e9} +235 Chad",code:"+235",flag:"\u{1f1f9}\u{1f1e9}",country:"TD"},{text:"\u{1f1e8}\u{1f1eb} +236 Central African Republic",code:"+236",flag:"\u{1f1e8}\u{1f1eb}",country:"CF"},{text:"\u{1f1e8}\u{1f1f2} +237 Cameroon",code:"+237",flag:"\u{1f1e8}\u{1f1f2}",country:"CM"},{text:"\u{1f1e8}\u{1f1fb} +238 Cape Verde",code:"+238",flag:"\u{1f1e8}\u{1f1fb}",country:"CV"},{text:"\u{1f1f8}\u{1f1f9} +239 Sao Tome and Principe",code:"+239",flag:"\u{1f1f8}\u{1f1f9}",country:"ST"},{text:"\u{1f1ec}\u{1f1f6} +240 Equatorial Guinea",code:"+240",flag:"\u{1f1ec}\u{1f1f6}",country:"GQ"},{text:"\u{1f1ec}\u{1f1e6} +241 Gabon",code:"+241",flag:"\u{1f1ec}\u{1f1e6}",country:"GA"},{text:"\u{1f1e8}\u{1f1ec} +242 Republic of the Congo",code:"+242",flag:"\u{1f1e8}\u{1f1ec}",country:"CG"},{text:"\u{1f1e8}\u{1f1e9} +243 Democratic Republic of the Congo",code:"+243",flag:"\u{1f1e8}\u{1f1e9}",country:"CD"},{text:"\u{1f1e6}\u{1f1f4} +244 Angola",code:"+244",flag:"\u{1f1e6}\u{1f1f4}",country:"AO"},{text:"\u{1f1ec}\u{1f1fc} +245 Guinea-Bissau",code:"+245",flag:"\u{1f1ec}\u{1f1fc}",country:"GW"},{text:"\u{1f1ee}\u{1f1f4} +246 British Indian Ocean Territory",code:"+246",flag:"\u{1f1ee}\u{1f1f4}",country:"IO"},{text:"\u{1f1f8}\u{1f1e8} +248 Seychelles",code:"+248",flag:"\u{1f1f8}\u{1f1e8}",country:"SC"},{text:"\u{1f1f8}\u{1f1e9} +249 Sudan",code:"+249",flag:"\u{1f1f8}\u{1f1e9}",country:"SD"},{text:"\u{1f1f7}\u{1f1fc} +250 Rwanda",code:"+250",flag:"\u{1f1f7}\u{1f1fc}",country:"RW"},{text:"\u{1f1ea}\u{1f1f9} +251 Ethiopia",code:"+251",flag:"\u{1f1ea}\u{1f1f9}",country:"ET"},{text:"\u{1f1f8}\u{1f1f4} +252 Somalia",code:"+252",flag:"\u{1f1f8}\u{1f1f4}",country:"SO"},{text:"\u{1f1e9}\u{1f1ef} +253 Djibouti",code:"+253",flag:"\u{1f1e9}\u{1f1ef}",country:"DJ"},{text:"\u{1f1f0}\u{1f1ea} +254 Kenya",code:"+254",flag:"\u{1f1f0}\u{1f1ea}",country:"KE"},{text:"\u{1f1f9}\u{1f1ff} +255 Tanzania",code:"+255",flag:"\u{1f1f9}\u{1f1ff}",country:"TZ"},{text:"\u{1f1fa}\u{1f1ec} +256 Uganda",code:"+256",flag:"\u{1f1fa}\u{1f1ec}",country:"UG"},{text:"\u{1f1e7}\u{1f1ee} +257 Burundi",code:"+257",flag:"\u{1f1e7}\u{1f1ee}",country:"BI"},{text:"\u{1f1f2}\u{1f1ff} +258 Mozambique",code:"+258",flag:"\u{1f1f2}\u{1f1ff}",country:"MZ"},{text:"\u{1f1ff}\u{1f1f2} +260 Zambia",code:"+260",flag:"\u{1f1ff}\u{1f1f2}",country:"ZM"},{text:"\u{1f1f2}\u{1f1ec} +261 Madagascar",code:"+261",flag:"\u{1f1f2}\u{1f1ec}",country:"MG"},{text:"\u{1f1f7}\u{1f1ea} +262 Reunion",code:"+262",flag:"\u{1f1f7}\u{1f1ea}",country:"RE"},{text:"\u{1f1ff}\u{1f1fc} +263 Zimbabwe",code:"+263",flag:"\u{1f1ff}\u{1f1fc}",country:"ZW"},{text:"\u{1f1f3}\u{1f1e6} +264 Namibia",code:"+264",flag:"\u{1f1f3}\u{1f1e6}",country:"NA"},{text:"\u{1f1f2}\u{1f1fc} +265 Malawi",code:"+265",flag:"\u{1f1f2}\u{1f1fc}",country:"MW"},{text:"\u{1f1f1}\u{1f1f8} +266 Lesotho",code:"+266",flag:"\u{1f1f1}\u{1f1f8}",country:"LS"},{text:"\u{1f1e7}\u{1f1fc} +267 Botswana",code:"+267",flag:"\u{1f1e7}\u{1f1fc}",country:"BW"},{text:"\u{1f1f8}\u{1f1ff} +268 Eswatini",code:"+268",flag:"\u{1f1f8}\u{1f1ff}",country:"SZ"},{text:"\u{1f1f0}\u{1f1f2} +269 Comoros",code:"+269",flag:"\u{1f1f0}\u{1f1f2}",country:"KM"},{text:"\u{1f1f8}\u{1f1ed} +290 Saint Helena",code:"+290",flag:"\u{1f1f8}\u{1f1ed}",country:"SH"},{text:"\u{1f1ea}\u{1f1f7} +291 Eritrea",code:"+291",flag:"\u{1f1ea}\u{1f1f7}",country:"ER"},{text:"\u{1f1e6}\u{1f1fc} +297 Aruba",code:"+297",flag:"\u{1f1e6}\u{1f1fc}",country:"AW"},{text:"\u{1f1eb}\u{1f1f4} +298 Faroe Islands",code:"+298",flag:"\u{1f1eb}\u{1f1f4}",country:"FO"},{text:"\u{1f1ec}\u{1f1f1} +299 Greenland",code:"+299",flag:"\u{1f1ec}\u{1f1f1}",country:"GL"},{text:"\u{1f1ec}\u{1f1ee} +350 Gibraltar",code:"+350",flag:"\u{1f1ec}\u{1f1ee}",country:"GI"},{text:"\u{1f1f5}\u{1f1f9} +351 Portugal",code:"+351",flag:"\u{1f1f5}\u{1f1f9}",country:"PT"},{text:"\u{1f1f1}\u{1f1fa} +352 Luxembourg",code:"+352",flag:"\u{1f1f1}\u{1f1fa}",country:"LU"},{text:"\u{1f1ee}\u{1f1ea} +353 Ireland",code:"+353",flag:"\u{1f1ee}\u{1f1ea}",country:"IE"},{text:"\u{1f1ee}\u{1f1f8} +354 Iceland",code:"+354",flag:"\u{1f1ee}\u{1f1f8}",country:"IS"},{text:"\u{1f1e6}\u{1f1f1} +355 Albania",code:"+355",flag:"\u{1f1e6}\u{1f1f1}",country:"AL"},{text:"\u{1f1f2}\u{1f1f9} +356 Malta",code:"+356",flag:"\u{1f1f2}\u{1f1f9}",country:"MT"},{text:"\u{1f1e8}\u{1f1fe} +357 Cyprus",code:"+357",flag:"\u{1f1e8}\u{1f1fe}",country:"CY"},{text:"\u{1f1eb}\u{1f1ee} +358 Finland",code:"+358",flag:"\u{1f1eb}\u{1f1ee}",country:"FI"},{text:"\u{1f1e7}\u{1f1ec} +359 Bulgaria",code:"+359",flag:"\u{1f1e7}\u{1f1ec}",country:"BG"},{text:"\u{1f1f1}\u{1f1f9} +370 Lithuania",code:"+370",flag:"\u{1f1f1}\u{1f1f9}",country:"LT"},{text:"\u{1f1f1}\u{1f1fb} +371 Latvia",code:"+371",flag:"\u{1f1f1}\u{1f1fb}",country:"LV"},{text:"\u{1f1ea}\u{1f1ea} +372 Estonia",code:"+372",flag:"\u{1f1ea}\u{1f1ea}",country:"EE"},{text:"\u{1f1f2}\u{1f1e9} +373 Moldova",code:"+373",flag:"\u{1f1f2}\u{1f1e9}",country:"MD"},{text:"\u{1f1e6}\u{1f1f2} +374 Armenia",code:"+374",flag:"\u{1f1e6}\u{1f1f2}",country:"AM"},{text:"\u{1f1e7}\u{1f1fe} +375 Belarus",code:"+375",flag:"\u{1f1e7}\u{1f1fe}",country:"BY"},{text:"\u{1f1e6}\u{1f1e9} +376 Andorra",code:"+376",flag:"\u{1f1e6}\u{1f1e9}",country:"AD"},{text:"\u{1f1f2}\u{1f1e8} +377 Monaco",code:"+377",flag:"\u{1f1f2}\u{1f1e8}",country:"MC"},{text:"\u{1f1f8}\u{1f1f2} +378 San Marino",code:"+378",flag:"\u{1f1f8}\u{1f1f2}",country:"SM"},{text:"\u{1f1fa}\u{1f1e6} +380 Ukraine",code:"+380",flag:"\u{1f1fa}\u{1f1e6}",country:"UA"},{text:"\u{1f1f7}\u{1f1f8} +381 Serbia",code:"+381",flag:"\u{1f1f7}\u{1f1f8}",country:"RS"},{text:"\u{1f1f2}\u{1f1ea} +382 Montenegro",code:"+382",flag:"\u{1f1f2}\u{1f1ea}",country:"ME"},{text:"\u{1f1ed}\u{1f1f7} +385 Croatia",code:"+385",flag:"\u{1f1ed}\u{1f1f7}",country:"HR"},{text:"\u{1f1f8}\u{1f1ee} +386 Slovenia",code:"+386",flag:"\u{1f1f8}\u{1f1ee}",country:"SI"},{text:"\u{1f1e7}\u{1f1e6} +387 Bosnia and Herzegovina",code:"+387",flag:"\u{1f1e7}\u{1f1e6}",country:"BA"},{text:"\u{1f1f2}\u{1f1f0} +389 North Macedonia",code:"+389",flag:"\u{1f1f2}\u{1f1f0}",country:"MK"},{text:"\u{1f1e8}\u{1f1ff} +420 Czech Republic",code:"+420",flag:"\u{1f1e8}\u{1f1ff}",country:"CZ"},{text:"\u{1f1f8}\u{1f1f0} +421 Slovakia",code:"+421",flag:"\u{1f1f8}\u{1f1f0}",country:"SK"},{text:"\u{1f1f1}\u{1f1ee} +423 Liechtenstein",code:"+423",flag:"\u{1f1f1}\u{1f1ee}",country:"LI"},{text:"\u{1f1eb}\u{1f1f0} +500 Falkland Islands",code:"+500",flag:"\u{1f1eb}\u{1f1f0}",country:"FK"},{text:"\u{1f1e7}\u{1f1ff} +501 Belize",code:"+501",flag:"\u{1f1e7}\u{1f1ff}",country:"BZ"},{text:"\u{1f1ec}\u{1f1f9} +502 Guatemala",code:"+502",flag:"\u{1f1ec}\u{1f1f9}",country:"GT"},{text:"\u{1f1f8}\u{1f1fb} +503 El Salvador",code:"+503",flag:"\u{1f1f8}\u{1f1fb}",country:"SV"},{text:"\u{1f1ed}\u{1f1f3} +504 Honduras",code:"+504",flag:"\u{1f1ed}\u{1f1f3}",country:"HN"},{text:"\u{1f1f3}\u{1f1ee} +505 Nicaragua",code:"+505",flag:"\u{1f1f3}\u{1f1ee}",country:"NI"},{text:"\u{1f1e8}\u{1f1f7} +506 Costa Rica",code:"+506",flag:"\u{1f1e8}\u{1f1f7}",country:"CR"},{text:"\u{1f1f5}\u{1f1e6} +507 Panama",code:"+507",flag:"\u{1f1f5}\u{1f1e6}",country:"PA"},{text:"\u{1f1f5}\u{1f1f2} +508 Saint Pierre and Miquelon",code:"+508",flag:"\u{1f1f5}\u{1f1f2}",country:"PM"},{text:"\u{1f1ed}\u{1f1f9} +509 Haiti",code:"+509",flag:"\u{1f1ed}\u{1f1f9}",country:"HT"},{text:"\u{1f1ec}\u{1f1f5} +590 Guadeloupe",code:"+590",flag:"\u{1f1ec}\u{1f1f5}",country:"GP"},{text:"\u{1f1e7}\u{1f1f4} +591 Bolivia",code:"+591",flag:"\u{1f1e7}\u{1f1f4}",country:"BO"},{text:"\u{1f1ec}\u{1f1fe} +592 Guyana",code:"+592",flag:"\u{1f1ec}\u{1f1fe}",country:"GY"},{text:"\u{1f1ea}\u{1f1e8} +593 Ecuador",code:"+593",flag:"\u{1f1ea}\u{1f1e8}",country:"EC"},{text:"\u{1f1ec}\u{1f1eb} +594 French Guiana",code:"+594",flag:"\u{1f1ec}\u{1f1eb}",country:"GF"},{text:"\u{1f1f5}\u{1f1fe} +595 Paraguay",code:"+595",flag:"\u{1f1f5}\u{1f1fe}",country:"PY"},{text:"\u{1f1f2}\u{1f1f6} +596 Martinique",code:"+596",flag:"\u{1f1f2}\u{1f1f6}",country:"MQ"},{text:"\u{1f1f8}\u{1f1f7} +597 Suriname",code:"+597",flag:"\u{1f1f8}\u{1f1f7}",country:"SR"},{text:"\u{1f1fa}\u{1f1fe} +598 Uruguay",code:"+598",flag:"\u{1f1fa}\u{1f1fe}",country:"UY"},{text:"\u{1f1e8}\u{1f1fc} +599 Cura\xe7ao",code:"+599",flag:"\u{1f1e8}\u{1f1fc}",country:"CW"},{text:"\u{1f1f9}\u{1f1f1} +670 Timor-Leste",code:"+670",flag:"\u{1f1f9}\u{1f1f1}",country:"TL"},{text:"\u{1f1e6}\u{1f1f6} +672 Antarctica",code:"+672",flag:"\u{1f1e6}\u{1f1f6}",country:"AQ"},{text:"\u{1f1e7}\u{1f1f3} +673 Brunei",code:"+673",flag:"\u{1f1e7}\u{1f1f3}",country:"BN"},{text:"\u{1f1f3}\u{1f1f7} +674 Nauru",code:"+674",flag:"\u{1f1f3}\u{1f1f7}",country:"NR"},{text:"\u{1f1f5}\u{1f1ec} +675 Papua New Guinea",code:"+675",flag:"\u{1f1f5}\u{1f1ec}",country:"PG"},{text:"\u{1f1f9}\u{1f1f4} +676 Tonga",code:"+676",flag:"\u{1f1f9}\u{1f1f4}",country:"TO"},{text:"\u{1f1f8}\u{1f1e7} +677 Solomon Islands",code:"+677",flag:"\u{1f1f8}\u{1f1e7}",country:"SB"},{text:"\u{1f1fb}\u{1f1fa} +678 Vanuatu",code:"+678",flag:"\u{1f1fb}\u{1f1fa}",country:"VU"},{text:"\u{1f1eb}\u{1f1ef} +679 Fiji",code:"+679",flag:"\u{1f1eb}\u{1f1ef}",country:"FJ"},{text:"\u{1f1f5}\u{1f1fc} +680 Palau",code:"+680",flag:"\u{1f1f5}\u{1f1fc}",country:"PW"},{text:"\u{1f1fc}\u{1f1eb} +681 Wallis and Futuna",code:"+681",flag:"\u{1f1fc}\u{1f1eb}",country:"WF"},{text:"\u{1f1e8}\u{1f1f0} +682 Cook Islands",code:"+682",flag:"\u{1f1e8}\u{1f1f0}",country:"CK"},{text:"\u{1f1f3}\u{1f1fa} +683 Niue",code:"+683",flag:"\u{1f1f3}\u{1f1fa}",country:"NU"},{text:"\u{1f1fc}\u{1f1f8} +685 Samoa",code:"+685",flag:"\u{1f1fc}\u{1f1f8}",country:"WS"},{text:"\u{1f1f0}\u{1f1ee} +686 Kiribati",code:"+686",flag:"\u{1f1f0}\u{1f1ee}",country:"KI"},{text:"\u{1f1f3}\u{1f1e8} +687 New Caledonia",code:"+687",flag:"\u{1f1f3}\u{1f1e8}",country:"NC"},{text:"\u{1f1f9}\u{1f1fb} +688 Tuvalu",code:"+688",flag:"\u{1f1f9}\u{1f1fb}",country:"TV"},{text:"\u{1f1f5}\u{1f1eb} +689 French Polynesia",code:"+689",flag:"\u{1f1f5}\u{1f1eb}",country:"PF"},{text:"\u{1f1f9}\u{1f1f0} +690 Tokelau",code:"+690",flag:"\u{1f1f9}\u{1f1f0}",country:"TK"},{text:"\u{1f1eb}\u{1f1f2} +691 Federated States of Micronesia",code:"+691",flag:"\u{1f1eb}\u{1f1f2}",country:"FM"},{text:"\u{1f1f2}\u{1f1ed} +692 Marshall Islands",code:"+692",flag:"\u{1f1f2}\u{1f1ed}",country:"MH"},{text:"\u{1f1f0}\u{1f1f5} +850 North Korea",code:"+850",flag:"\u{1f1f0}\u{1f1f5}",country:"KP"},{text:"\u{1f1ed}\u{1f1f0} +852 Hong Kong",code:"+852",flag:"\u{1f1ed}\u{1f1f0}",country:"HK"},{text:"\u{1f1f2}\u{1f1f4} +853 Macau",code:"+853",flag:"\u{1f1f2}\u{1f1f4}",country:"MO"},{text:"\u{1f1f0}\u{1f1ed} +855 Cambodia",code:"+855",flag:"\u{1f1f0}\u{1f1ed}",country:"KH"},{text:"\u{1f1f1}\u{1f1e6} +856 Laos",code:"+856",flag:"\u{1f1f1}\u{1f1e6}",country:"LA"},{text:"\u{1f1e7}\u{1f1e9} +880 Bangladesh",code:"+880",flag:"\u{1f1e7}\u{1f1e9}",country:"BD"},{text:"\u{1f1f9}\u{1f1fc} +886 Taiwan",code:"+886",flag:"\u{1f1f9}\u{1f1fc}",country:"TW"},{text:"\u{1f1f2}\u{1f1fb} +960 Maldives",code:"+960",flag:"\u{1f1f2}\u{1f1fb}",country:"MV"},{text:"\u{1f1f1}\u{1f1e7} +961 Lebanon",code:"+961",flag:"\u{1f1f1}\u{1f1e7}",country:"LB"},{text:"\u{1f1ef}\u{1f1f4} +962 Jordan",code:"+962",flag:"\u{1f1ef}\u{1f1f4}",country:"JO"},{text:"\u{1f1f8}\u{1f1fe} +963 Syria",code:"+963",flag:"\u{1f1f8}\u{1f1fe}",country:"SY"},{text:"\u{1f1ee}\u{1f1f6} +964 Iraq",code:"+964",flag:"\u{1f1ee}\u{1f1f6}",country:"IQ"},{text:"\u{1f1f0}\u{1f1fc} +965 Kuwait",code:"+965",flag:"\u{1f1f0}\u{1f1fc}",country:"KW"},{text:"\u{1f1f8}\u{1f1e6} +966 Saudi Arabia",code:"+966",flag:"\u{1f1f8}\u{1f1e6}",country:"SA"},{text:"\u{1f1fe}\u{1f1ea} +967 Yemen",code:"+967",flag:"\u{1f1fe}\u{1f1ea}",country:"YE"},{text:"\u{1f1f4}\u{1f1f2} +968 Oman",code:"+968",flag:"\u{1f1f4}\u{1f1f2}",country:"OM"},{text:"\u{1f1f5}\u{1f1f8} +970 Palestine",code:"+970",flag:"\u{1f1f5}\u{1f1f8}",country:"PS"},{text:"\u{1f1e6}\u{1f1ea} +971 United Arab Emirates",code:"+971",flag:"\u{1f1e6}\u{1f1ea}",country:"AE"},{text:"\u{1f1ee}\u{1f1f1} +972 Israel",code:"+972",flag:"\u{1f1ee}\u{1f1f1}",country:"IL"},{text:"\u{1f1e7}\u{1f1ed} +973 Bahrain",code:"+973",flag:"\u{1f1e7}\u{1f1ed}",country:"BH"},{text:"\u{1f1f6}\u{1f1e6} +974 Qatar",code:"+974",flag:"\u{1f1f6}\u{1f1e6}",country:"QA"},{text:"\u{1f1e7}\u{1f1f9} +975 Bhutan",code:"+975",flag:"\u{1f1e7}\u{1f1f9}",country:"BT"},{text:"\u{1f1f2}\u{1f1f3} +976 Mongolia",code:"+976",flag:"\u{1f1f2}\u{1f1f3}",country:"MN"},{text:"\u{1f1f3}\u{1f1f5} +977 Nepal",code:"+977",flag:"\u{1f1f3}\u{1f1f5}",country:"NP"},{text:"\u{1f1f9}\u{1f1ef} +992 Tajikistan",code:"+992",flag:"\u{1f1f9}\u{1f1ef}",country:"TJ"},{text:"\u{1f1f9}\u{1f1f2} +993 Turkmenistan",code:"+993",flag:"\u{1f1f9}\u{1f1f2}",country:"TM"},{text:"\u{1f1e6}\u{1f1ff} +994 Azerbaijan",code:"+994",flag:"\u{1f1e6}\u{1f1ff}",country:"AZ"},{text:"\u{1f1ec}\u{1f1ea} +995 Georgia",code:"+995",flag:"\u{1f1ec}\u{1f1ea}",country:"GE"},{text:"\u{1f1f0}\u{1f1ec} +996 Kyrgyzstan",code:"+996",flag:"\u{1f1f0}\u{1f1ec}",country:"KG"},{text:"\u{1f1fa}\u{1f1ff} +998 Uzbekistan",code:"+998",flag:"\u{1f1fa}\u{1f1ff}",country:"UZ"}],iF=[{name:"Afghanistan",code:"AF"},{name:"\xc5land Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"AndorrA",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, The Democratic Republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:'Cote D"Ivoire',code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Holy See (Vatican City State)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, Islamic Republic Of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:'Korea, Democratic People"S Republic of',code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:'Lao People"S Democratic Republic',code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, The Former Yugoslav Republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, Federated States of",code:"FM"},{name:"Moldova, Republic of",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory, Occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"RWANDA",code:"RW"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia and Montenegro",code:"CS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, U.S.",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}],UQ2={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Iw1(n,a){n=n.split("-"),a=a.split("-");for(var c=n[0].split("."),t=a[0].split("."),l=0;l<3;l++){var i=Number(c[l]),u=Number(t[l]);if(i>u)return 1;if(u>i)return-1;if(!isNaN(i)&&isNaN(u))return 1;if(isNaN(i)&&!isNaN(u))return-1}return n[1]&&a[1]?n[1]>a[1]?1:n[1]n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.split(""));!(t=c()).done;)a+=IZ2(t.value,a)||"";return a}function IZ2(n,a,c){return"+"===n?a?void("function"==typeof c&&c("end")):"+":function Yw1(n){return TZ2[n]}(n)}function Ww1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(l=t()).done;){var i=l.value;n.indexOf(i)<0&&c.push(i)}return c.sort(function(u,C){return u-C})}(i,u.possibleLengths()))}else if(c&&!l)return"INVALID_LENGTH";var C=n.length,b=i[0];return b===C?"IS_POSSIBLE":b>C?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Qw1(n,a,c){return"IS_POSSIBLE"===Qd1(n,a,c)}function nf(n,a){return n=n||"",new RegExp("^(?:"+a+")$").test(n)}function Zw1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(UZ2);!(i=l()).done;){var u=i.value;if(Kd1(t,u,c))return u}}}}function Kd1(n,a,c){return!(!(a=c.type(a))||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(n.length)<0)&&nf(n,a.pattern())}var qZ2=new RegExp("(["+Sn+"])");function Kw1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);!(i=l()).done;){var u=i.value;if(t.selectNumberingPlan(u),t.leadingDigits()){if(n&&0===n.search(t.leadingDigits()))return u}else if(Zd1({phone:n,country:u},void 0,t.metadata))return u}}(c,{countries:l,metadata:t.metadata}):void 0}function ef1(n,a,c){var t=function WZ2(n,a){if(n&&a.numberingPlan.nationalPrefixForParsing()){var c=new RegExp("^(?:"+a.numberingPlan.nationalPrefixForParsing()+")"),t=c.exec(n);if(t){var l,i,T,u=t.length-1,C=u>0&&t[u];if(a.nationalPrefixTransformRule()&&C?(l=n.replace(c,a.nationalPrefixTransformRule()),u>1&&(i=t[1])):(l=n.slice(t[0].length),C&&(i=t[1])),C){var W=n.indexOf(t[1]);n.slice(0,W)===a.numberingPlan.nationalPrefix()&&(T=a.numberingPlan.nationalPrefix())}else T=t[0];return{nationalNumber:l,nationalPrefix:T,carrierCode:i}}}return{nationalNumber:n}}(n,c),l=t.carrierCode,i=t.nationalNumber;if(i!==n){if(!function eK2(n,a,c){return!(nf(n,c.nationalNumberPattern())&&!nf(a,c.nationalNumberPattern()))}(n,i,c))return{nationalNumber:n};if(c.numberingPlan.possibleLengths()&&(a||(a=eS1(c.numberingPlan.callingCode(),{nationalNumber:i,metadata:c})),!function cK2(n,a,c){switch(Qd1(n,a,c)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(i,a,c)))return{nationalNumber:n}}return{nationalNumber:i,carrierCode:l}}function cS1(n,a,c,t,l){if(!n)return{};var i;if("+"!==n[0]){var u=function XZ2(n,a,c,t){if(a){var l=new pe(t);l.selectNumberingPlan(a,c);var i=new RegExp(l.IDDPrefix());if(0===n.search(i)){var u=(n=n.slice(n.match(i)[0].length)).match(qZ2);if(!(u&&null!=u[1]&&u[1].length>0&&"0"===u[1]))return n}}}(n,a||c,t,l);if(!u||u===n){if(a||c||t){var C=function tK2(n,a,c,t,l){var i=a||c?JG(a||c,l):t;if(0===n.indexOf(i)){(l=new pe(l)).selectNumberingPlan(a||c,i);var u=n.slice(i.length),b=ef1(u,a,l).nationalNumber,W=ef1(n,a,l).nationalNumber;if(!nf(W,l.nationalNumberPattern())&&nf(b,l.nationalNumberPattern())||"TOO_LONG"===Qd1(W,a,l))return{countryCallingCode:i,number:u}}return{number:n}}(n,a,c,t,l),b=C.countryCallingCode;if(b)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:b,number:C.number}}return{number:n}}i=!0,n="+"+u}if("0"===n[1])return{};l=new pe(l);for(var W=2;W-1<=sZ2&&W<=n.length;){var u1=n.slice(1,W);if(l.hasCallingCode(u1))return l.selectNumberingPlan(u1),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u1,number:n.slice(W)};W++}return{}}var lK2=/(\$\d)/;var aK2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,lS1={formatExtension:function(a,c,t){return"".concat(a).concat(t.ext()).concat(c)}};function ZG(n,a,c,t,l){var i=function hK2(n,a){return function LK2(n,a){for(var c=0;c0){var t=c.leadingDigitsPatterns()[c.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return nf(a,c.pattern())})}(t.formats(),n);return i?function sK2(n,a,c){var t=c.useInternationalFormat,l=c.withNationalPrefix,C=n.replace(new RegExp(a.pattern()),t?a.internationalFormat():l&&a.nationalPrefixFormattingRule()?a.format().replace(lK2,a.nationalPrefixFormattingRule()):a.format());return t?function nK2(n){return n.replace(new RegExp("[".concat(QG,"]+"),"g")," ").trim()}(C):C}(n,i,{useInternationalFormat:"INTERNATIONAL"===c,withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&l&&!1===l.nationalPrefix),carrierCode:a,metadata:t}):n}function cf1(n,a,c,t){return a?t(n,a,c):n}function QE(n){return(QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function sS1(n,a){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);a&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),c.push.apply(c,t)}return c}function aS1(n){for(var a=1;a=0}(a,i,c)}):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function OZ2(n,a,c){if(void 0===a&&(a={}),c=new pe(c),a.v2){if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(n.countryCallingCode)}else{if(!n.phone)return!1;if(n.country){if(!c.hasCountry(n.country))throw new Error("Unknown country: ".concat(n.country));c.selectNumberingPlan(n.country)}else{if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(n.countryCallingCode)}}if(c.possibleLengths())return Qw1(n.phone||n.nationalNumber,n.country,c);if(n.countryCallingCode&&c.isNonGeographicCallingCode(n.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function GZ2(n,a,c){return a=a||{},(c=new pe(c)).selectNumberingPlan(n.country,n.countryCallingCode),c.hasTypes()?void 0!==Zd1(n,a,c.metadata):nf(a.v2?n.nationalNumber:n.phone,c.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new pe(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(c){return this.number===c.number&&this.ext===c.ext}},{key:"getType",value:function(){return Zd1(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(c,t){return function pK2(n,a,c,t){if(c=c?function _K2(){for(var n=1,a=arguments.length,c=new Array(a),t=0;t=n.length)return"";var t=n.indexOf(";",c);return t>=0?n.substring(c,t):n.substring(c)}(n);if(!function jK2(n){return null===n||0!==n.length&&(NK2.test(n)||AK2.test(n))}(t))throw new VL("NOT_A_NUMBER");if(null===t)l=c(n)||"";else{l="",t.charAt(0)===rS1&&(l+=t);var u,i=n.indexOf(fS1);u=i>=0?i+fS1.length:0;var C=n.indexOf(nf1);l+=n.substring(u,C)}var b=l.indexOf(IK2);if(b>0&&(l=l.substring(0,b)),""!==l)return l}(n,{extractFormattedPhoneNumber:function(u){return function HK2(n,a,c){if(n){if(n.length>OK2){if(c)throw new VL("TOO_LONG");return}if(!1===a)return n;var t=n.search(BK2);if(!(t<0))return n.slice(t).replace(VK2,"")}}(u,c,a)}});if(!t)return{};if(!function wZ2(n){return n.length>=qd1&&kZ2.test(n)}(t))return function SZ2(n){return FZ2.test(n)}(t)?{error:"TOO_SHORT"}:{};var l=function NZ2(n){var a=n.search(Gw1);if(a<0)return{};for(var c=n.slice(0,a),t=n.match(Gw1),l=1;llZ2){if(a.v2)throw new VL("TOO_LONG");return{}}if(a.v2){var T1=new yK2(W,T,c.metadata);return b&&(T1.country=b),a1&&(T1.carrierCode=a1),i&&(T1.ext=i),T1.__countryCallingCodeSource=u1,T1}var Y1=!!(a.extended?c.hasSelectedNumberingPlan():b)&&nf(T,c.nationalNumberPattern());return a.extended?{country:b,countryCallingCode:W,carrierCode:a1,valid:Y1,possible:!!Y1||!(!0!==a.extended||!c.possibleLengths()||!Qw1(T,b,c)),phone:T,ext:i}:Y1?function qK2(n,a,c){var t={country:n,phone:a};return c&&(t.ext=c),t}(b,T,i):{}}function ZE(n){return(ZE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function uS1(n,a){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);a&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),c.push.apply(c,t)}return c}function mS1(n){for(var a=1;an.length)&&(a=n.length);for(var c=0,t=Array(a);ca.code;function u10(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function m10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function p10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function h10(n,a){if(1&n&&(e.j41(0,"option",45),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function g10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function _10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function L10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function C10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function z10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function M10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function x10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function b10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_larger")))}function y10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_email")))}function F10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._email_format")))}function v10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function k10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",49),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.BMQ("data-country",c.country),e.R7$(2),e.SpI(" ",c.text," ")}}function w10(n,a){if(1&n&&(e.j41(0,"div",40)(1,"ul",46,0)(3,"li"),e.Z7z(4,k10,3,2,"button",47,f10),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.prefixes)}}function S10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2,"You cannot enter negative numbers."),e.k0s()())}function N10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function E10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.createBilling())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.billingForm.valid)("ngClass",c.billingForm.valid?"hover:bg-primary-50 dark:hover:bg-primary-200":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"BILLING._add")," ")}}function D10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateBilling())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.billingForm.valid)("ngClass",c.billingForm.valid?"hover:bg-primary-50 dark:hover:bg-primary-200":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"BILLING._update")," ")}}function T10(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"div",9)(2,"label",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",11),e.DNE(6,m10,4,3,"p",12)(7,p10,4,3,"p",12),e.k0s(),e.j41(8,"div")(9,"label",13),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"select",14),e.DNE(13,h10,2,2,"option",15),e.k0s()(),e.j41(14,"div")(15,"label",16),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",17),e.DNE(19,g10,4,3,"p",12)(20,_10,4,3,"p",12),e.k0s(),e.j41(21,"div")(22,"label",18),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.nrm(25,"input",19),e.DNE(26,L10,4,3,"p",12)(27,C10,4,3,"p",12),e.k0s(),e.j41(28,"div")(29,"label",20),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"input",21),e.DNE(33,z10,4,3,"p",12)(34,M10,4,3,"p",12),e.k0s(),e.j41(35,"div",9)(36,"label",22),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.nrm(39,"textarea",23),e.DNE(40,x10,4,3,"p",12)(41,b10,4,3,"p",12),e.k0s(),e.j41(42,"div",9)(43,"label",24),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.nrm(46,"input",25),e.DNE(47,y10,4,3,"p",12)(48,F10,4,3,"p",12)(49,v10,4,3,"p",12),e.k0s(),e.j41(50,"div",26)(51,"label",27),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"select",28)(55,"option",29),e.EFF(56,"Mobile"),e.k0s(),e.j41(57,"option",30),e.EFF(58,"Landline"),e.k0s(),e.j41(59,"option",31),e.EFF(60,"Office"),e.k0s(),e.j41(61,"option",32),e.EFF(62,"Home"),e.k0s(),e.j41(63,"option",33),e.EFF(64,"Other"),e.k0s()()(),e.j41(65,"div",26)(66,"label",34),e.EFF(67),e.nI1(68,"translate"),e.k0s(),e.j41(69,"div",35)(70,"div",36)(71,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(72),e.qSk(),e.j41(73,"svg",38),e.nrm(74,"path",39),e.k0s()(),e.DNE(75,w10,6,0,"div",40),e.joV(),e.nrm(76,"input",41),e.k0s(),e.DNE(77,S10,3,0,"p",12)(78,N10,4,3),e.k0s()(),e.j41(79,"div",42),e.DNE(80,E10,3,5,"button",43)(81,D10,3,5),e.k0s()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1,a1,T1,Y1,f2,M2,G2,N2,a4,B0,K0,r0;const W2=e.XpG();e.Y8G("formGroup",W2.billingForm),e.R7$(3),e.SpI("",e.bMT(4,36,"BILLING._title")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(c=W2.billingForm.get("name"))&&c.touched&&null!=(c=W2.billingForm.get("name"))&&c.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(6,null!=(t=W2.billingForm.get("name"))&&t.touched&&null!=(t=W2.billingForm.get("name"))&&t.hasError("required")?6:-1),e.R7$(),e.vxM(7,null!=(l=W2.billingForm.get("name"))&&l.invalid&&null!=(l=W2.billingForm.get("name"))&&null!=l.errors&&l.errors.maxlength?7:-1),e.R7$(3),e.SpI("",e.bMT(11,38,"BILLING._country")," (*)"),e.R7$(3),e.Y8G("ngForOf",W2.euCountries),e.R7$(3),e.SpI("",e.bMT(17,40,"BILLING._city")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(i=W2.billingForm.get("city"))&&i.touched&&null!=(i=W2.billingForm.get("city"))&&i.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,null!=(u=W2.billingForm.get("city"))&&u.touched&&null!=(u=W2.billingForm.get("city"))&&u.hasError("required")?19:-1),e.R7$(),e.vxM(20,null!=(C=W2.billingForm.get("city"))&&C.invalid&&null!=(C=W2.billingForm.get("city"))&&null!=C.errors&&C.errors.maxlength?20:-1),e.R7$(3),e.SpI("",e.bMT(24,42,"BILLING._state")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(b=W2.billingForm.get("stateOrProvince"))&&b.touched&&null!=(b=W2.billingForm.get("stateOrProvince"))&&b.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(26,null!=(T=W2.billingForm.get("stateOrProvince"))&&T.touched&&null!=(T=W2.billingForm.get("stateOrProvince"))&&T.hasError("required")?26:-1),e.R7$(),e.vxM(27,null!=(W=W2.billingForm.get("stateOrProvince"))&&W.invalid&&null!=(W=W2.billingForm.get("stateOrProvince"))&&null!=W.errors&&W.errors.maxlength?27:-1),e.R7$(3),e.SpI("",e.bMT(31,44,"BILLING._post_code")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(u1=W2.billingForm.get("postCode"))&&u1.touched&&null!=(u1=W2.billingForm.get("postCode"))&&u1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(33,null!=(a1=W2.billingForm.get("postCode"))&&a1.touched&&null!=(a1=W2.billingForm.get("postCode"))&&a1.hasError("required")?33:-1),e.R7$(),e.vxM(34,null!=(T1=W2.billingForm.get("postCode"))&&T1.invalid&&null!=(T1=W2.billingForm.get("postCode"))&&null!=T1.errors&&T1.errors.maxlength?34:-1),e.R7$(3),e.SpI("",e.bMT(38,46,"BILLING._street")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(Y1=W2.billingForm.get("street"))&&Y1.touched&&null!=(Y1=W2.billingForm.get("street"))&&Y1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(40,null!=(f2=W2.billingForm.get("street"))&&f2.touched&&null!=(f2=W2.billingForm.get("street"))&&f2.hasError("required")?40:-1),e.R7$(),e.vxM(41,null!=(M2=W2.billingForm.get("street"))&&M2.invalid&&null!=(M2=W2.billingForm.get("street"))&&null!=M2.errors&&M2.errors.maxlength?41:-1),e.R7$(3),e.SpI("",e.bMT(45,48,"BILLING._email")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(G2=W2.billingForm.get("email"))&&G2.touched&&null!=(G2=W2.billingForm.get("email"))&&G2.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(47,null!=(N2=W2.billingForm.get("email"))&&N2.invalid&&null!=(N2=W2.billingForm.get("email"))&&null!=N2.errors&&N2.errors.maxlength?47:-1),e.R7$(),e.vxM(48,null!=(a4=W2.billingForm.get("email"))&&a4.invalid&&null!=(a4=W2.billingForm.get("email"))&&null!=a4.errors&&a4.errors.pattern?48:-1),e.R7$(),e.vxM(49,null!=(B0=W2.billingForm.get("email"))&&B0.touched&&null!=(B0=W2.billingForm.get("email"))&&B0.hasError("required")?49:-1),e.R7$(3),e.JRh(e.bMT(53,50,"BILLING._phone_type")),e.R7$(15),e.SpI("",e.bMT(68,52,"BILLING._phone")," (*)"),e.R7$(5),e.Lme(" ",W2.phonePrefix.flag," ",W2.phonePrefix.code," "),e.R7$(3),e.vxM(75,1==W2.prefixCheck?75:-1),e.R7$(),e.Y8G("ngClass",null!=(K0=W2.billingForm.get("telephoneNumber"))&&K0.touched&&1==(null==(K0=W2.billingForm.get("telephoneNumber"))?null:K0.invalid)?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(77,null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.invalid&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&null!=r0.errors&&r0.errors.min&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.touched?77:null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.touched&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.hasError("required")?78:-1),e.R7$(3),e.vxM(80,W2.is_create?80:81)}}function R10(n,a){1&n&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_phone")))}function A10(n,a){1&n&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_email")))}function I10(n,a){if(1&n&&(e.j41(0,"div",2)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,R10,3,3,"div",55)(6,A10,3,3,"div",55),e.k0s(),e.j41(7,"button",56)(8,"span",7),e.EFF(9,"Close"),e.k0s(),e.qSk(),e.j41(10,"svg",57),e.nrm(11,"path",58),e.k0s()()()),2&n){let c,t;const l=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=l.billingForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(t=l.billingForm.get("email"))?null:t.invalid)?6:-1)}}function P10(n,a){if(1&n&&e.nrm(0,"error-message",3),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let lf1=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.cdr=t,this.router=l,this.accountService=i,this.eventMessage=u,this.billingForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),email:new p.MJ("",[p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"),p.k0.maxLength(320)]),country:new p.MJ("AT",[p.k0.required,p.k0.maxLength(250)]),city:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),stateOrProvince:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),postCode:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),street:new p.MJ("",[p.k0.required,p.k0.maxLength(1e3)]),telephoneNumber:new p.MJ("",[p.k0.required,p.k0.min(0)]),telephoneType:new p.MJ("Mobile")}),this.prefixes=[...qG].sort((C,b)=>this.getCountryName(C.text).localeCompare(this.getCountryName(b.text))),this.countries=iF,this.phonePrefix=qG[0],this.prefixCheck=!1,this.toastVisibility=!1,this.partyInfo={id:"",name:"",href:""},this.loading=!1,this.is_create=!1,this.errorMessage="",this.showError=!1,this.selectedCountry="",this.euCountries=[{code:"AT",name:"Austria"},{code:"BE",name:"Belgium"},{code:"BG",name:"Bulgaria"},{code:"HR",name:"Croatia"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"EE",name:"Estonia"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"DE",name:"Germany"},{code:"GR",name:"Greece"},{code:"HU",name:"Hungary"},{code:"IE",name:"Ireland"},{code:"IT",name:"Italy"},{code:"LV",name:"Latvia"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MT",name:"Malta"},{code:"NL",name:"Netherlands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"RO",name:"Romania"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"ES",name:"Spain"},{code:"SE",name:"Sweden"}],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initUserData()})}ngOnInit(){this.is_create=null==this.billAcc,this.initUserData(),0==this.is_create?this.setDefaultValues():this.detectCountry()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initUserData(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,console.log("init party info"),console.log(c),this.partyInfo={id:this.partyId,name:c.user,href:this.partyId,role:g1.c.SELLER_ROLE};else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,console.log("loggedOrg info"),console.log(t),this.partyInfo={id:this.partyId,name:t.name,href:this.partyId,role:g1.c.SELLER_ROLE}}}setDefaultValues(){if(null!=this.billAcc){const c=Kk(this.billAcc.telephoneNumber);if(c){let t=this.prefixes.filter(l=>l.code==="+"+c.countryCallingCode);t.length>0&&(this.phonePrefix=t[0]),this.billingForm.controls.telephoneNumber.setValue(c.nationalNumber)}this.billingForm.controls.name.setValue(this.billAcc.name),this.billingForm.controls.email.setValue(this.billAcc.email),this.billingForm.controls.country.setValue(this.billAcc.postalAddress.country),this.billingForm.controls.city.setValue(this.billAcc.postalAddress.city),this.billingForm.controls.stateOrProvince.setValue(this.billAcc.postalAddress.stateOrProvince),this.billingForm.controls.street.setValue(this.billAcc.postalAddress.street),this.billingForm.controls.postCode.setValue(this.billAcc.postalAddress.postCode),this.billingForm.controls.telephoneType.setValue(this.billAcc.telephoneType)}this.cdr.detectChanges()}resetBillingForm(){this.billingForm.reset({telephoneType:"Mobile"}),Object.values(this.billingForm.controls).forEach(c=>{c.setErrors(null),c.markAsPristine(),c.markAsUntouched(),c.updateValueAndValidity({onlySelf:!0,emitEvent:!1})})}createBilling(){this.localStorage.getObject("login_items");try{const t=Kk(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(t){if(!t.isValid())return console.log("NUMERO INVALIDO"),this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.billingForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.billingForm.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.loading=!0,this.accountService.postBillingAccount({name:this.billingForm.value.name,contact:[{contactMedium:[{mediumType:"Email",preferred:this.preferred,characteristic:{contactType:"Email",emailAddress:this.billingForm.value.email}},{mediumType:"PostalAddress",preferred:this.preferred,characteristic:{contactType:"PostalAddress",city:this.billingForm.value.city,country:this.billingForm.value.country,postCode:this.billingForm.value.postCode,stateOrProvince:this.billingForm.value.stateOrProvince,street1:this.billingForm.value.street}},{mediumType:"TelephoneNumber",preferred:this.preferred,characteristic:{contactType:this.billingForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.billingForm.value.telephoneNumber}}]}],relatedParty:[this.partyInfo],state:"Defined"}).subscribe({next:l=>{this.eventMessage.emitBillAccChange(!0),this.resetBillingForm(),this.loading=!1},error:l=>{this.loading=!1,console.error("There was an error while creating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while creating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}updateBilling(){this.localStorage.getObject("login_items");try{const t=Kk(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(t){if(!t.isValid())return console.log("NUMERO INVALIDO"),this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.billingForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.billingForm.invalid)return 1==this.billingForm.get("email")?.invalid?this.billingForm.controls.email.setErrors({invalidEmail:!0}):this.billingForm.controls.email.setErrors(null),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);null!=this.billAcc&&this.accountService.updateBillingAccount(this.billAcc.id,{name:this.billingForm.value.name,contact:[{contactMedium:[{mediumType:"Email",preferred:this.billAcc.selected,characteristic:{contactType:"Email",emailAddress:this.billingForm.value.email}},{mediumType:"PostalAddress",preferred:this.billAcc.selected,characteristic:{contactType:"PostalAddress",city:this.billingForm.value.city,country:this.billingForm.value.country,postCode:this.billingForm.value.postCode,stateOrProvince:this.billingForm.value.stateOrProvince,street1:this.billingForm.value.street}},{mediumType:"TelephoneNumber",preferred:this.billAcc.selected,characteristic:{contactType:this.billingForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.billingForm.value.telephoneNumber}}]}],relatedParty:[this.partyInfo],state:"Defined"}).subscribe({next:l=>{this.eventMessage.emitBillAccChange(!1),this.resetBillingForm()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}getCountryName(c){const t=c.match(/\+\d+\s+(.+)$/);return t?t[1]:c}onKeydown(c){if(!this.prefixCheck)return;const t=c.key.toLowerCase();if(!/^[a-z]$/.test(t))return;const l=this.prefixes.find(u=>this.getCountryName(u.text).toLowerCase().startsWith(t));if(!l||!this.prefixListRef)return;const i=this.prefixListRef.nativeElement.querySelector(`[data-country="${l.country}"]`);i&&i.scrollIntoView({block:"nearest"})}selectPrefix(c){console.log(c),this.prefixCheck=!1,this.phonePrefix=c}detectCountry(){let i=function cZ2(){return function GQ2(n,a){var c=Array.prototype.slice.call(a);return c.push(UQ2),n.apply(this,c)}(JG,arguments)}(navigator.language.split("-")[1].toUpperCase());if(i){let u=this.prefixes.filter(C=>C.code==="+"+i);u.length>0&&(this.phonePrefix=u[0])}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-billing-account-form"]],viewQuery:function(t,l){if(1&t&&e.GBs(d10,5),2&t){let i;e.mGM(i=e.lsd())&&(l.prefixListRef=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("keydown",function(u){return l.onKeydown(u)})},inputs:{billAcc:"billAcc",preferred:"preferred"},decls:4,vars:3,consts:[["prefixList",""],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-4"],["id","toast-warning","role","alert",1,"flex","m-2","items-center","w-fit","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],["novalidate","",1,"grid","h-full","grid-cols-2","gap-5","m-4",3,"formGroup"],[1,"col-span-2"],["for","title",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingTitle","id","title","formControlName","name","name","title","type","text",1,"mb-2","bg-gray-50","border","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["for","address.country",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingCountry","id","country","formControlName","country",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["for","address.city",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingCity","id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.state",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingState","id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.zip",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingZip","id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.street_address",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingAddress","id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingEmail","id","email","formControlName","email","name","email",1,"mb-2","bg-gray-50","border","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"col-span-2","lg:col-span-1"],["for","phoneType",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","phoneType","formControlName","telephoneType",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Mobile"],["value","Landline"],["value","Office"],["value","Home"],["value","Other"],["for","phoneNumber",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],[1,"w-full"],[1,"relative","flex","items-center"],["data-cy","billingPhoneCountry","type","button",1,"mb-2","flex-shrink-0","z-10","inline-flex","items-center","py-2.5","px-4","text-sm","font-medium","text-center","text-gray-900","bg-gray-100","border","border-gray-300","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-s-lg","hover:bg-gray-200","dark:hover:bg-primary-200","focus:ring-4","focus:outline-none","focus:ring-gray-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-2.5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"absolute","bottom-12","right-0","z-20","max-h-48","w-full","bg-white","divide-y","divide-gray-100","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","shadow","overflow-y-auto"],["data-cy","billingPhone","id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],[1,"flex","w-full","justify-end","col-span-2"],["data-cy","addBilling","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"disabled","ngClass"],[1,"font-medium"],[3,"value"],["aria-labelledby","dropdown-phone-button",1,"py-2","text-sm","text-gray-700"],["data-cy","phoneCountries","type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200"],["data-cy","phoneCountries","type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200",3,"click"],[1,"inline-flex","items-center"],["data-cy","addBilling","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"inline-flex","items-center","justify-center","flex-shrink-0","w-8","h-8","bg-red-700","text-red-200","rounded-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"],[1,"block","ms-3","text-sm","font-normal"],["type","button","data-dismiss-target","#toast-warning","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"]],template:function(t,l){1&t&&e.DNE(0,u10,6,0,"div",1)(1,T10,82,54)(2,I10,12,2,"div",2)(3,P10,1,1,"error-message",3),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.toastVisibility?2:-1),e.R7$(),e.vxM(3,l.showError?3:-1))},dependencies:[_.YU,_.Sq,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const j10=(n,a)=>({"break-all":n,"break-words":a});function $10(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"div",23),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",24)(3,"h2",25),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",26),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editBill=!1)}),e.qSk(),e.j41(7,"svg",27),e.nrm(8,"path",16),e.k0s(),e.joV(),e.j41(9,"span",6),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",28),e.nrm(13,"app-billing-account-form",29),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.editBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._edit")," "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("billAcc",c.data)}}function O10(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"div",30),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",31)(3,"button",32),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",33),e.nrm(5,"path",34),e.k0s(),e.joV(),e.j41(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",35),e.nrm(10,"path",36),e.k0s(),e.joV(),e.j41(11,"p",37),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"p",38)(15,"b"),e.EFF(16),e.k0s(),e.EFF(17),e.k0s(),e.j41(18,"div",39)(19,"button",40),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onDeletedBill(l.data))}),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.deleteBill?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,9,"BILLING._close_modal")),e.R7$(5),e.JRh(e.bMT(13,11,"BILLING._confirm_delete")),e.R7$(4),e.JRh(c.data.name),e.R7$(),e.E5c(": ",c.data.postalAddress.street,", ",c.data.postalAddress.city,", ",c.data.postalAddress.country,"."),e.R7$(3),e.SpI(" ",e.bMT(21,13,"BILLING._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(24,15,"BILLING._delete")," ")}}let gS1=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.accountService=t,this.eventMessage=l,this.position=0,this.data={id:"",href:"",name:"",email:"",postalAddress:{city:"",country:"",postCode:"",stateOrProvince:"",street:""},telephoneNumber:"",telephoneType:"",selected:!1},this.selectedEvent=new e.bkB,this.deletedEvent=new e.bkB,this.destroy$=new S.B,this.editBill=!1,this.deleteBill=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{0==i.value&&(this.editBill=!1)})}onClick(){1==this.editBill&&(this.editBill=!1),1==this.deleteBill&&(this.deleteBill=!1)}selectBillingAddress(c){this.selectedEvent.emit(this.data),this.data.selected=!0}deleteBAddr(){console.log("deleting "+this.data.id),this.deletedEvent.emit(this.data)}onDeletedBill(c){console.log("--- DELETE BILLING ADDRESS ---"),this.deleteBill=!1}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-billing-address"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{position:"position",data:"data"},outputs:{selectedEvent:"selectedEvent",deletedEvent:"deletedEvent"},decls:33,vars:23,consts:[["role","radio","aria-checked","true","tabindex","0"],[1,"group","relative","cursor-pointer","rounded","border","p-4","hover:border-primary-50","border-primary-100","shadow-sm",3,"click","ngClass"],[1,"mb-3","text-sm","font-semibold","capitalize","text-heading","dark:text-white","line-clamp-4","text-wrap","break-words",3,"ngClass"],[1,"text-sm","text-sub-heading","dark:text-gray-200","line-clamp-8","text-wrap","break-words"],[1,"absolute","top-4","flex","space-x-2","opacity-0","group-hover:opacity-100","right-4"],[1,"flex","h-5","w-5","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-50","dark:text-white",3,"click"],[1,"sr-only"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor",1,"h-3","w-3"],["d","M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"],["id","edit-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],["id","delete-bill-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],["tabindex","-1",1,"hidden","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full"],[1,"relative","p-4","w-full","max-w-md","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-700"],["type","button","data-modal-hide","popup-modal",1,"absolute","top-3","end-2.5","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"p-4","md:p-5","text-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"mx-auto","mb-4","text-gray-400","w-12","h-12","dark:text-gray-200"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],[1,"mb-5","text-lg","font-normal","text-gray-500","dark:text-gray-400"],["type","button",1,"text-white","bg-red-600","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","dark:focus:ring-red-800","font-medium","rounded-lg","text-sm","inline-flex","items-center","px-5","py-2.5","text-center",3,"click"],["type","button",1,"py-2.5","px-5","ms-3","text-sm","font-medium","text-gray-900","focus:outline-none","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","hover:text-secondary-400","focus:z-10","focus:ring-4","focus:ring-gray-100","dark:focus:ring-gray-700","dark:bg-gray-800","dark:text-gray-400","dark:border-gray-600","dark:hover:text-white","dark:hover:bg-gray-700"],[1,"w-full","max-w-2xl","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","relative",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"max-h-[80vh]","overflow-y-auto","p-4"],[3,"billAcc"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","dark:bg-secondary-100","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-white"],[1,"mb-4","text-gray-500","dark:text-white","text-wrap","break-words"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","rounded-lg","border","border-gray-200","dark:border-secondary-300","hover:bg-gray-100","dark:hover:bg-secondary-200","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-800","hover:bg-red-900","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-red-300",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(u){return l.selectBillingAddress(u)}),e.j41(2,"p",2),e.EFF(3),e.k0s(),e.j41(4,"p",3),e.EFF(5),e.k0s(),e.j41(6,"div",4)(7,"button",5),e.bIt("click",function(u){return l.editBill=!0,u.stopPropagation()}),e.j41(8,"span",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.qSk(),e.j41(11,"svg",7),e.nrm(12,"path",8),e.k0s()()()()(),e.DNE(13,$10,14,8,"div",9)(14,O10,25,17,"div",10),e.joV(),e.j41(15,"div",11)(16,"div",12)(17,"div",13)(18,"button",14),e.qSk(),e.j41(19,"svg",15),e.nrm(20,"path",16),e.k0s(),e.joV(),e.j41(21,"span",6),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"div",17),e.qSk(),e.j41(25,"svg",18),e.nrm(26,"path",19),e.k0s(),e.joV(),e.j41(27,"h3",20),e.EFF(28),e.k0s(),e.j41(29,"button",21),e.bIt("click",function(){return l.deleteBAddr()}),e.EFF(30," Yes, I'm sure "),e.k0s(),e.j41(31,"button",22),e.EFF(32,"No, cancel"),e.k0s()()()()()),2&t&&(e.R7$(),e.Y8G("ngClass",l.data.selected?"bg-primary-50/50 dark:bg-primary-100":"bg-gray-100 dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(20,j10,l.hasLongWord(l.data.name,20),!l.hasLongWord(l.data.name,20))),e.R7$(),e.JRh(l.data.name),e.R7$(2),e.SjE("",l.data.postalAddress.street,", ",l.data.postalAddress.postCode,", ",l.data.postalAddress.city,", ",l.data.postalAddress.stateOrProvince,", ",l.data.postalAddress.country,""),e.R7$(4),e.JRh(e.bMT(10,16,"BILLING._edit")),e.R7$(4),e.vxM(13,l.editBill?13:-1),e.R7$(),e.vxM(14,l.deleteBill?14:-1),e.R7$(),e.BMQ("id","popup-modal_"+l.position),e.R7$(7),e.JRh(e.bMT(23,18,"BILLING._close_modal")),e.R7$(6),e.SpI("Are you sure you want to delete the billing address called ",l.data.name,"?"),e.R7$(),e.BMQ("data-modal-hide","popup-modal_"+l.position),e.R7$(2),e.BMQ("data-modal-hide","popup-modal_"+l.position))},dependencies:[_.YU,lf1,s1.D9]})}}return n})();const _S1=(n,a)=>a.id,B10=(n,a)=>({"break-all":n,"break-words":a});function V10(n,a){1&n&&(e.j41(0,"div",0)(1,"div",30)(2,"span",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.qSk(),e.j41(5,"svg",32),e.nrm(6,"circle",33)(7,"path",34),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,1,"SHOPPING_CART._loading_purchase")))}function U10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",35),e.bIt("click",function(l){return e.eBV(c),e.XpG().addBill=!0,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",36),e.nrm(2,"path",37),e.k0s(),e.EFF(3," Add "),e.k0s()}}function G10(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-billing-address",39),e.bIt("selectedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onSelected(l))})("deletedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onDeleted(l))}),e.k0s()}if(2&n){const t=a.$index;e.Y8G("data",a.$implicit)("position",t)}}function H10(n,a){if(1&n&&(e.j41(0,"div",18),e.Z7z(1,G10,1,2,"app-billing-address",38,_S1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.billingAddresses)}}function Y10(n,a){1&n&&e.nrm(0,"app-billing-account-form",40),2&n&&e.Y8G("preferred",!0)}function q10(n,a){1&n&&(e.j41(0,"div",25),e.qSk(),e.j41(1,"svg",41),e.nrm(2,"path",42)(3,"path",43),e.k0s(),e.joV(),e.j41(4,"span",44),e.EFF(5,"Loading..."),e.k0s()())}function X10(n,a){if(1&n&&e.nrm(0,"img",49),2&n){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function W10(n,a){1&n&&e.nrm(0,"img",58)}function J10(n,a){1&n&&e.EFF(0," Estimated price: ")}function Q10(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function Z10(n,a){if(1&n&&(e.j41(0,"div",59)(1,"span",60),e.EFF(2),e.k0s(),e.j41(3,"span",61),e.DNE(4,J10,1,0),e.EFF(5),e.DNE(6,Q10,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.vxM(4,"usage"==c.priceType?4:-1),e.R7$(),e.Lme(" ",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(6,t.hasKey(c,"recurringChargePeriod")?6:-1)}}function K10(n,a){if(1&n&&(e.j41(0,"div",54),e.Z7z(1,Z10,7,5,"div",59,e.fX1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function e20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToProdDetails(l))}),e.DNE(4,X10,1,1,"img",49)(5,W10,1,0),e.k0s(),e.j41(6,"div",50)(7,"p",51),e.EFF(8),e.k0s()()(),e.j41(9,"div",52)(10,"div",53),e.DNE(11,K10,3,0,"div",54),e.k0s()()(),e.j41(12,"div",52)(13,"button",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.deleteProduct(l))}),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",57),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,B10,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.vxM(11,c.options.pricing?11:-1)}}function c20(n,a){if(1&n&&e.Z7z(0,e20,16,7,"div",45,_S1),2&n){const c=e.XpG();e.Dyx(c.items)}}function t20(n,a){1&n&&(e.j41(0,"div",26),e.qSk(),e.j41(1,"svg",62),e.nrm(2,"path",63),e.k0s(),e.joV(),e.j41(3,"span",44),e.EFF(4,"Info"),e.k0s(),e.j41(5,"p",64),e.EFF(6," You need to create at least one valid billing address. "),e.k0s()())}function n20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",28)(1,"div",65),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",66)(3,"h2",67),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addBill=!1)}),e.qSk(),e.j41(7,"svg",69),e.nrm(8,"path",57),e.k0s(),e.joV(),e.j41(9,"span",44),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",70),e.nrm(13,"app-billing-account-form",40),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.addBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._add"),": "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function l20(n,a){if(1&n&&e.nrm(0,"error-message",29),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}class eD{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c,t,l,i,u,C,b,T,W,u1){var a1=this;this.localStorage=a,this.account=c,this.orderService=t,this.eventMessage=l,this.priceService=i,this.cartService=u,this.paymentService=C,this.api=b,this.cdr=T,this.router=W,this.route=u1,this.faCartShopping=TL,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.TAX_RATE=g1.c.TAX_RATE,this.items=[],this.showBackDrop=!0,this.billingAddresses=[],this.loading=!1,this.loading_baddrs=!1,this.addBill=!1,this.relatedParty="",this.contact={email:"",username:""},this.preferred=!1,this.loading_purchase=!1,this.check_custom=!1,this.validBillAddr=!0,this.errorMessage="",this.showError=!1,this.providerId=null,this.loadingItems=!1,this.orderNote="",this.destroy$=new S.B,this.orderProduct=this.orderProduct.bind(this),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(function(){var T1=(0,C1.A)(function*(Y1){"BillAccChanged"===Y1.type&&a1.getBilling(),1==Y1.value&&(a1.addBill=!1),"ChangedSession"===Y1.type&&(console.log("changing session..."),yield a1.initCheckoutData()),"AddedCartItem"===Y1.type&&(a1.loadingItems=!0,console.log("Elemento a\xf1adido"),a1.cartService.getShoppingCart().then(function(){var f2=(0,C1.A)(function*(M2){console.log("---CARRITO API---"),console.log(M2),a1.items=M2,a1.providerId&&(yield a1.getProviderInfo(),a1.groupItemsByOwner(a1.providerId)),a1.cdr.detectChanges(),a1.getTotalPrice(),a1.loadingItems=!1,console.log("------------------")});return function(M2){return f2.apply(this,arguments)}}())),"RemovedCartItem"===Y1.type&&(a1.loadingItems=!0,a1.cartService.getShoppingCart().then(function(){var f2=(0,C1.A)(function*(M2){console.log("---CARRITO API---"),console.log(M2),a1.items=M2,a1.providerId&&(yield a1.getProviderInfo(),a1.groupItemsByOwner(a1.providerId)),a1.cdr.detectChanges(),a1.getTotalPrice(),a1.loadingItems=!1,console.log("------------------")});return function(M2){return f2.apply(this,arguments)}}()))});return function(Y1){return T1.apply(this,arguments)}}())}onClick(){1==this.addBill&&(this.addBill=!1,this.cdr.detectChanges())}hasKey(a,c){return c in a}getPrice(a){return null!=a.options.pricing?"custom"==a.options.pricing.priceType?(this.check_custom=!0,null):{priceType:a.options.pricing.priceType,price:a.options.pricing.price?.value,unit:a.options.pricing.price?.unit,text:a.options.pricing.priceType?.toLocaleLowerCase()==vn.PRICE.RECURRING?a.options.pricing.recurringChargePeriodType:a.options.pricing.priceType?.toLocaleLowerCase()==vn.PRICE.USAGE?"/ "+a.options.pricing?.unitOfMeasure?.units:""}:null}getTotalPrice(){this.totalPrice=[];let a=!1;this.check_custom=!1,this.cdr.detectChanges();let c={};for(let t=0;tt.options.pricing).map(t=>a.createProductPayload(t));console.log("Productos creados:",c);try{const t=a.createProductOrder(c);console.log("--- order ---"),console.log(t);const l=yield(0,t5._)(a.orderService.postProductOrder(t)),i=l.headers.get("X-Redirect-URL");console.log(l.headers),console.log(i),console.log("PROD ORDER DONE"),i?(console.log("redirectURL"),window.location.href=i):(console.log("non-redirectURL"),yield a.emptyShoppingCart(),a.goToInventory())}catch(t){a.handleError(t,"There was an error during purchase!")}finally{a.loading_purchase=!1,a.cdr.detectChanges()}})()}createProductPayload(a){let c=[];return a.options.pricing.length>0&&(c=[{productOfferingPrice:{id:a.options.pricing[0].id,href:a.options.pricing[0].id}}]),{id:a.id,action:"add",productOffering:{id:a.id,href:a.id},itemTotalPrice:c,product:{productCharacteristic:a.options.characteristics}}}createProductOrder(a){let c={productOrderItem:a,relatedParty:[{id:this.relatedParty,href:this.relatedParty,role:g1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBillingAddress.id,href:this.selectedBillingAddress.id},notificationContact:this.selectedBillingAddress.email};if(""!=this.orderNote){const t={text:this.orderNote,id:`urn:ngsi-ld:note:${L4()}`,author:this.relatedParty,date:(new Date).toISOString()};c.note=[t]}return c}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){try{const c=yield a.cartService.emptyShoppingCart();console.log(c),console.log("EMPTY")}catch(c){a.handleError(c,"There was an error while emptying the cart!")}})()}handleError(a,c){console.error(c,a),this.errorMessage=a?.error?.error?`Error: ${a.error.error}`:c,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}ngOnInit(){this.loadingItems=!0,this.formatter=new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}),console.log("--- Query Params ---"),console.log(this.route.snapshot.queryParams);const a=this.route.snapshot.queryParams;if(a.client&&a.action&&a.ref){let c={...a};if(c.ref.includes("?jwt")){let t=c.ref.split("?jwt");c.ref=t[0],c.jwt=t[1]}this.loading_purchase=!0,(0,t5._)(this.paymentService.completePayment(c)).then(t=>{this.loading_purchase=!1,console.log("--- Payment Response ---"),console.log(t),"accept"==a.action&&200==t.status?this.emptyShoppingCart().then(()=>this.goToInventory()):this.initCheckoutData()}).catch(t=>{this.loading_purchase=!0,console.log("--- Payment Error ---"),console.log(t),this.initCheckoutData()})}else this.initCheckoutData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCheckoutData(){var a=this;return(0,C1.A)(function*(){a.providerId=a.route.snapshot.paramMap.get("id");let c=a.localStorage.getObject("login_items");if(c&&(a.contact.email=c.email,a.contact.username=c.username),c.logged_as==c.id)a.relatedParty=c.partyId;else{let l=c.organizations.find(i=>i.id==c.logged_as);a.relatedParty=l.partyId}console.log("--- Login Info ---"),console.log(c);let t=yield a.cartService.getShoppingCart();console.log("---CARRITO API---"),console.log(t),a.items=t,a.providerId&&(yield a.getProviderInfo(),a.groupItemsByOwner(a.providerId),a.loadingItems=!1),a.cdr.detectChanges(),a.getTotalPrice(),console.log("------------------"),console.log("--- ITEMS ---"),console.log(a.items),a.loading_baddrs=!0,yield a.getBilling()})()}getProviderInfo(){var a=this;return(0,C1.A)(function*(){for(let c=0;ct.relatedParty?.find(i=>i.role===g1.c.SELLER_ROLE)?.id===a);console.log(c),this.items=c}getBilling(){var a=this;return(0,C1.A)(function*(){a.selectedBillingAddress=null;let c=!1;a.billingAddresses=[];let t=yield a.account.getBillingAccount();for(let l=0;l0),a.validBillAddr=!!a.selectedBillingAddress?.id,a.cdr.detectChanges()})()}onSelected(a){var c=this;return(0,C1.A)(function*(){try{c.validBillAddr=!0;for(let l of c.billingAddresses)l.selected=!1;c.selectedBillingAddress=a,console.log("billing addr selected...."),console.log(c.selectedBillingAddress);const t=JSON.parse(JSON.stringify(c.items));for(const l of t){console.log("---- cart item ----"),console.log(l);let u=(yield(0,e0.s)(c.priceService.calculatePrice({productOrder:{id:L4(),productOrderItem:[{action:"add",id:l.id,itemTotalPrice:0==l.options.pricing.length?[]:[{productOfferingPrice:{id:l.options.pricing[0].id,href:l.options.pricing[0].id,name:""}}],product:{productCharacteristic:l.options.characteristics},productOffering:{id:l.id,href:l.id},quantity:"1"}],billingAccount:{id:c.selectedBillingAddress.id,href:c.selectedBillingAddress.id}},usage:yield c.buildUsageFromCartItem(l)}))).orderTotalPrice;u=u.map(C=>({...C,id:l.options.pricing[0].id})),l.options.pricing=u}yield c.emptyShoppingCart(),c.items=t;for(const l of c.items)yield c.cartService.addItemShoppingCart(l);c.getTotalPrice(),c.cdr.detectChanges()}catch(t){c.validBillAddr=!1,c.cdr.detectChanges(),c.handleError(t,"Invalid biling address")}})()}buildUsageFromCartItem(a){var c=this;return(0,C1.A)(function*(){if(!a.options.pricing||0===a.options.pricing.length)return[];let t=[];const l=yield c.api.getOfferingPrice(a.options.pricing[0].id);if(l.isBundle)for(const i of l.bundledPopRelationship){const u=yield c.api.getOfferingPrice(i.id);u.usageSpecId&&u.unitOfMeasure&&t.push({usageSpecification:{id:u.usageSpecId},usageCharacteristic:[{name:u.unitOfMeasure.units,value:1}]})}else t.push(l);return t})()}onDeleted(a){console.log("Deleting billing account")}deleteProduct(a){var c=this;return(0,C1.A)(function*(){yield c.cartService.removeItemShoppingCart(a.id),console.log("deleted"),c.eventMessage.emitRemovedCartItem(a),c.cartService.getShoppingCart().then(function(){var t=(0,C1.A)(function*(l){console.log("---CARRITO API---"),console.log(l),c.items=l,c.providerId&&(yield c.getProviderInfo(),c.groupItemsByOwner(c.providerId),c.loadingItems=!1),c.cdr.detectChanges(),c.getTotalPrice(),console.log("------------------")});return function(l){return t.apply(this,arguments)}}())})()}goToProdDetails(a){this.router.navigate(["/search/",a.id])}hasLongWord(a,c=20){return!!a&&a.split(/\s+/).some(t=>t.length>c)}static{this.\u0275fac=function(c){return new(c||eD)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(D8),e.rXU(U2),e.rXU(X8),e.rXU(d8),e.rXU(oF),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(E2.nX))}}static{this.\u0275cmp=e.VBU({type:eD,selectors:[["app-checkout"]],hostBindings:function(c,t){1&c&&e.bIt("click",function(){return t.onClick()},!1,e.EBC)},decls:65,vars:36,consts:[[1,"absolute","bg-white","dark:bg-gray-400","dark:bg-opacity-60","bg-opacity-60","z-10","h-full","w-full","flex","items-center","justify-center"],[1,"container","mx-auto","px-4","py-8","lg:py-10","lg:px-8","xl:py-14","xl:px-16","2xl:px-20"],[1,"mb-4","pb-2","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"m-auto","flex","w-full","flex-col","items-center","rtl:space-x-reverse","lg:flex-row","lg:items-start","lg:space-x-8"],[1,"w-full","space-y-6"],[1,"bg-secondary-50","dark:bg-secondary-100","p-5","shadow-700","md:p-8","rounded","rounded-lg"],[1,"mb-5","flex","items-center","justify-between","md:mb-8"],[1,"flex","items-center","space-x-3","rtl:space-x-reverse","md:space-x-4"],[1,"flex","h-8","w-8","items-center","justify-center","rounded-full","bg-primary-100","text-base","text-white","lg:text-xl"],[1,"text-lg","capitalize","text-heading","lg:text-xl","dark:text-white"],[1,"w-full"],[1,""],[1,"special-label","dark:text-white"],[1,"text-lg","text-heading","lg:text-xl","dark:text-white"],["data-cy","orderAddBill",1,"flex","items-center","text-sm","font-semibold","text-accent","dark:text-white","transition-colors","duration-200","hover:text-accent-hover","focus:text-accent-hover","focus:outline-0"],["id","billing-addresses","role","radiogroup","aria-labelledby","billing-addresses"],["id","billing-addresses-label","role","none",1,"sr-only"],["role","none",1,"grid","grid-cols-1","gap-4","sm:grid-cols-2","md:grid-cols-3"],[1,"block"],["id","large-input","name","orderNote","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false","rows","4",1,"flex","w-full","min-h-fit","dark:text-white","dark:bg-secondary-300","dark:border-secondary-200","dark:focus:border-primary-100","items-center","rounded","px-4","py-3","text-sm","text-heading","transition","duration-300","ease-in-out","focus:outline-0","focus:ring-0","border","border-border-base","focus:border-accent",3,"ngModelChange","ngModel"],[1,"w-full","lg:w-3/4","rounded","rounded-lg","bg-secondary-50","dark:bg-secondary-100","p-4","mt-8","lg:mt-0"],[1,"mb-4","flex","flex-col","items-center","space-x-4","rtl:space-x-reverse"],[1,"text-2xl","text-start","font-bold","dark:text-white"],[1,"flex","flex-col","border-b","border-border-200","py-3"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["role","alert",1,"flex","items-center","p-4","text-sm","text-primary-50"],["data-cy","checkout",1,"inline-flex","items-center","justify-center","shrink-0","font-semibold","leading-none","rounded","outline-none","transition","duration-300","ease-in-out","focus:outline-0","focus:shadow","focus:ring-1","focus:ring-accent-700","bg-primary-50","dark:bg-primary-100","text-white","border","border-transparent","hover:bg-secondary-100","dark:hover:bg-primary-50","px-5","py-0","h-12","mt-5","w-full",3,"click","disabled","ngClass"],["id","add-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","items-center"],[1,"text-3xl","text-bold","mr-4","text-primary-100"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"animate-spin","h-8","w-8","text-primary-100"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],["data-cy","orderAddBill",1,"flex","items-center","text-sm","font-semibold","text-accent","dark:text-white","transition-colors","duration-200","hover:text-accent-hover","focus:text-accent-hover","focus:outline-0",3,"click"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","stroke-2","ltr:mr-0.5","rtl:ml-0.5"],["stroke-linecap","round","stroke-linejoin","round","d","M12 6v6m0 0v6m0-6h6m-6 0H6"],[3,"data","position"],[3,"selectedEvent","deletedEvent","data","position"],[3,"preferred"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],["data-cy","checkoutOffering",1,"flex","justify-between","w-full","mt-2","mb-2","rounded-lg","bg-white","border-secondary-50","dark:bg-primary-100","dark:border-secondary-200","border","shadow-lg"],[1,"flex","flex-col","w-full"],[1,"flex","justify-between","w-full"],["type","button",1,"flex","p-2","box-decoration-clone",3,"click"],["alt","",1,"rounded-lg","w-fit","h-[100px]",3,"src"],[1,"p-2","flex","items-center","w-2/3"],[1,"text-lg","text-gray-700","dark:text-gray-200","line-clamp-4","text-wrap","break-words",3,"ngClass"],[1,"p-2","flex","items-center"],[1,"p-2","flex","items-center","flex-row"],[1,"items-center","text-sm","text-white"],["type","button",1,"h-fit","text-gray-700","dark:text-white","hover:bg-gray-300","hover:text-white","dark:hover:text-secondary-400","focus:ring-4","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-[12px]","h-[12px]"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],["src","https://placehold.co/600x400/svg","alt","",1,"rounded-lg","w-fit","h-[100px]"],[1,"flex","place-content-center","flex-col"],[1,"font-bold","text-gray-900","dark:text-primary-50","mr-3"],[1,"text-xs","text-gray-900","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-center"],[1,"w-full","max-w-2xl","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","relative",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"max-h-[80vh]","overflow-y-auto","p-4"]],template:function(c,t){1&c&&(e.DNE(0,V10,8,3,"div",0),e.j41(1,"div",1)(2,"h1",2)(3,"span",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"span",9),e.EFF(12,"1"),e.k0s(),e.j41(13,"p",10),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"div",11)(17,"div",12)(18,"div",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"p",14),e.EFF(22),e.k0s()()()(),e.j41(23,"div",6)(24,"div",7)(25,"div",8)(26,"span",9),e.EFF(27,"2"),e.k0s(),e.j41(28,"p",10),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.DNE(31,U10,4,0,"button",15),e.k0s(),e.j41(32,"div",16)(33,"label",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.DNE(36,H10,3,0,"div",18)(37,Y10,1,1),e.k0s()(),e.j41(38,"div",6)(39,"div",7)(40,"div",8)(41,"span",9),e.EFF(42,"3"),e.k0s(),e.j41(43,"p",10),e.EFF(44),e.nI1(45,"translate"),e.k0s()()(),e.j41(46,"div",19)(47,"div")(48,"textarea",20),e.mxI("ngModelChange",function(i){return e.DH7(t.orderNote,i)||(t.orderNote=i),i}),e.EFF(49," "),e.k0s()()()()(),e.j41(50,"div",21)(51,"div",11)(52,"div",22)(53,"span",23),e.EFF(54),e.nI1(55,"translate"),e.k0s()(),e.j41(56,"div",24),e.DNE(57,q10,6,0,"div",25)(58,c20,2,0),e.k0s(),e.DNE(59,t20,7,0,"div",26),e.j41(60,"button",27),e.bIt("click",function(){return t.orderProduct()}),e.EFF(61),e.nI1(62,"translate"),e.k0s()()()()(),e.DNE(63,n20,14,8,"div",28)(64,l20,1,1,"error-message",29)),2&c&&(e.vxM(0,t.loading_purchase?0:-1),e.R7$(4),e.JRh(e.bMT(5,20,"SHOPPING_CART._checkout")),e.R7$(10),e.JRh(e.bMT(15,22,"SHOPPING_CART._contact")),e.R7$(5),e.JRh(e.bMT(20,24,"SHOPPING_CART._contact_person")),e.R7$(3),e.Lme("",t.contact.username," ",t.contact.email,""),e.R7$(7),e.JRh(e.bMT(30,26,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(31,t.billingAddresses.length>0?31:-1),e.R7$(3),e.JRh(e.bMT(35,28,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(36,t.billingAddresses.length>0?36:37),e.R7$(8),e.JRh(e.bMT(45,30,"SHOPPING_CART._order_note")),e.R7$(4),e.R50("ngModel",t.orderNote),e.R7$(6),e.JRh(e.bMT(55,32,"SHOPPING_CART._your_order")),e.R7$(3),e.vxM(57,t.loadingItems?57:58),e.R7$(2),e.vxM(59,t.validBillAddr?-1:59),e.R7$(),e.Y8G("disabled",0==t.items.length||!t.validBillAddr)("ngClass",0!=t.items.length&&t.validBillAddr?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(62,34,"SHOPPING_CART._checkout")," "),e.R7$(2),e.vxM(63,t.addBill?63:-1),e.R7$(),e.vxM(64,t.showError?64:-1))},dependencies:[_.YU,p.me,p.BC,p.vS,gS1,lf1,E0,s1.D9]})}}let s20=(()=>{class n{constructor(c){this.http=c,this.BASE_URL=g1.c.BASE_URL}sendEmail(c){return this.http.post(`${this.BASE_URL}/contact-us`,c)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function a20(n,a){if(1&n&&(e.j41(0,"option",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.SpI(" ",e.bMT(2,2,"ContactUs.fields.supportType.options."+c)," ")}}function o20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function i20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function r20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function d20(n,a){if(1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",null!=c.f.email.errors&&c.f.email.errors.email?e.bMT(2,1,"ContactUs.validation.email"):e.bMT(3,3,"ContactUs.validation.required")," ")}}function f20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function u20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function m20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function p20(n,a){1&n&&(e.j41(0,"span",33),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.privacyRequired")," "))}function h20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"div",11)(2,"h3",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",13),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"form",14),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(9,"div",15)(10,"label",16),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",17)(14,"select",18)(15,"option",19),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.Z7z(18,a20,3,4,"option",20,e.fX1),e.k0s()(),e.DNE(20,o20,3,3,"span",21),e.k0s(),e.j41(21,"div",22)(22,"div",15)(23,"label",16),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.nrm(26,"input",23),e.nI1(27,"translate"),e.DNE(28,i20,3,3,"span",21),e.k0s(),e.j41(29,"div",15)(30,"label",16),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"input",24),e.nI1(34,"translate"),e.DNE(35,r20,3,3,"span",21),e.k0s()(),e.j41(36,"div",15)(37,"label",16),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.nrm(40,"input",25),e.nI1(41,"translate"),e.DNE(42,d20,4,5,"span",21),e.k0s(),e.j41(43,"div",22)(44,"div",15)(45,"label",16),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.nrm(48,"input",26),e.nI1(49,"translate"),e.DNE(50,f20,3,3,"span",21),e.k0s(),e.j41(51,"div",15)(52,"label",16),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.nrm(55,"input",27),e.nI1(56,"translate"),e.DNE(57,u20,3,3,"span",21),e.k0s()(),e.j41(58,"div",15)(59,"label",16),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.nrm(62,"textarea",28),e.nI1(63,"translate"),e.DNE(64,m20,3,3,"span",21),e.k0s(),e.j41(65,"label",29),e.nrm(66,"input",30),e.j41(67,"span"),e.EFF(68),e.nI1(69,"translate"),e.j41(70,"a",31),e.EFF(71),e.nI1(72,"translate"),e.k0s(),e.EFF(73),e.nI1(74,"translate"),e.j41(75,"a",32),e.EFF(76),e.nI1(77,"translate"),e.k0s(),e.EFF(78),e.nI1(79,"translate"),e.k0s()(),e.DNE(80,p20,3,3,"span",33),e.j41(81,"label",34),e.nrm(82,"input",35),e.j41(83,"span"),e.EFF(84),e.nI1(85,"translate"),e.k0s()(),e.j41(86,"button",36),e.EFF(87),e.nI1(88,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,48,"ContactUs.form.title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,50,"ContactUs.form.subtitle")," "),e.R7$(2),e.Y8G("formGroup",c.form),e.R7$(3),e.SpI(" ",e.bMT(12,52,"ContactUs.fields.supportType.label")," "),e.R7$(3),e.AVh("contact-input-error",c.hasError("supportType"))("contact-select-placeholder",!c.f.supportType.value),e.R7$(2),e.SpI(" ",e.bMT(17,54,"ContactUs.fields.supportType.placeholder")," "),e.R7$(2),e.Dyx(c.supportOptions),e.R7$(2),e.vxM(20,c.hasError("supportType")?20:-1),e.R7$(4),e.SpI(" ",e.bMT(25,56,"ContactUs.fields.firstName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("firstName")),e.Y8G("placeholder",e.bMT(27,58,"ContactUs.fields.firstName.placeholder")),e.R7$(2),e.vxM(28,c.hasError("firstName")?28:-1),e.R7$(3),e.SpI(" ",e.bMT(32,60,"ContactUs.fields.lastName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("lastName")),e.Y8G("placeholder",e.bMT(34,62,"ContactUs.fields.lastName.placeholder")),e.R7$(2),e.vxM(35,c.hasError("lastName")?35:-1),e.R7$(3),e.SpI(" ",e.bMT(39,64,"ContactUs.fields.email.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("email")),e.Y8G("placeholder",e.bMT(41,66,"ContactUs.fields.email.placeholder")),e.R7$(2),e.vxM(42,c.hasError("email")?42:-1),e.R7$(4),e.SpI(" ",e.bMT(47,68,"ContactUs.fields.organization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("organization")),e.Y8G("placeholder",e.bMT(49,70,"ContactUs.fields.organization.placeholder")),e.R7$(2),e.vxM(50,c.hasError("organization")?50:-1),e.R7$(3),e.SpI(" ",e.bMT(54,72,"ContactUs.fields.roleInOrganization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("roleInOrganization")),e.Y8G("placeholder",e.bMT(56,74,"ContactUs.fields.roleInOrganization.placeholder")),e.R7$(2),e.vxM(57,c.hasError("roleInOrganization")?57:-1),e.R7$(3),e.SpI(" ",e.bMT(61,76,"ContactUs.fields.message.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("message")),e.Y8G("placeholder",e.bMT(63,78,"ContactUs.fields.message.placeholder")),e.R7$(2),e.vxM(64,c.hasError("message")?64:-1),e.R7$(4),e.SpI(" ",e.bMT(69,80,"ContactUs.checkboxes.privacy.prefix")," "),e.R7$(3),e.SpI(" ",e.bMT(72,82,"ContactUs.checkboxes.privacy.privacyPolicy")," "),e.R7$(2),e.SpI(" ",e.bMT(74,84,"ContactUs.checkboxes.privacy.middle")," "),e.R7$(3),e.SpI(" ",e.bMT(77,86,"ContactUs.checkboxes.privacy.termsOfService")," "),e.R7$(2),e.SpI(" ",e.bMT(79,88,"ContactUs.checkboxes.privacy.suffix")," "),e.R7$(2),e.vxM(80,c.hasError("privacyAccepted")?80:-1),e.R7$(4),e.SpI(" ",e.bMT(85,90,"ContactUs.checkboxes.marketing")," "),e.R7$(3),e.SpI(" ",e.bMT(88,92,"ContactUs.cta.submit")," ")}}function g20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",40),e.nrm(4,"fa-icon",41),e.k0s()(),e.j41(5,"h3",42),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",43),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",44)(12,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onContinueBrowsing())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.Y8G("icon",c.faThumbsUp),e.R7$(2),e.SpI(" ",e.bMT(7,4,"ContactUs.success.title")," "),e.R7$(3),e.SpI(" ",e.bMT(10,6,"ContactUs.success.description")," "),e.R7$(4),e.SpI(" ",e.bMT(14,8,"ContactUs.success.cta")," ")}}let _20=(()=>{class n{constructor(){this.fb=(0,e.WQX)(p.ok),this.router=(0,e.WQX)(E2.Ix),this.contactUsService=(0,e.WQX)(s20),this.faThumbsUp=wv1,this.unsub=new S.B,this.submitted=!1,this.submittedSuccessfully=!1,this.supportOptions=Tw1,this.form=this.fb.nonNullable.group({supportType:["",[p.k0.required]],firstName:["",[p.k0.required]],lastName:["",[p.k0.required]],email:["",[p.k0.required,p.k0.email]],organization:["",[p.k0.required]],roleInOrganization:["",[p.k0.required]],message:["",[p.k0.required]],privacyAccepted:[!1,[p.k0.requiredTrue]],marketingAccepted:[!1]})}get f(){return this.form.controls}hasError(c){const t=this.form.controls[c];return!!t&&t.invalid&&(t.touched||this.submitted)}onSubmit(){if(this.submitted=!0,this.form.markAllAsTouched(),this.form.invalid)return;const c=this.form.getRawValue();this.contactUsService.sendEmail(c).pipe((0,O1.Q)(this.unsub)).subscribe({next:()=>{this.submittedSuccessfully=!0}})}onContinueBrowsing(){this.submittedSuccessfully=!1,this.submitted=!1,this.form.reset({supportType:"",firstName:"",lastName:"",email:"",organization:"",roleInOrganization:"",message:"",privacyAccepted:!1,marketingAccepted:!1}),this.router.navigate(["/dashboard"])}ngOnDestroy(){this.unsub.next(),this.unsub.complete()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-contact-us"]],standalone:!0,features:[e.aNF],decls:18,vars:10,consts:[[1,"contact-section","relative","isolate","overflow-hidden","font-[Blinker]"],[1,"contact-glow","contact-glow-1"],[1,"contact-glow","contact-glow-2"],[1,"contact-glow","contact-glow-3"],[1,"contact-glow","contact-glow-4"],[1,"relative","z-10","mx-auto","flex","min-h-[887px]","w-full","max-w-[1440px]","flex-col","justify-center","gap-12","px-6","py-12","sm:px-8","md:px-10","md:py-16","lg:flex-row","lg:items-center","lg:justify-between","lg:px-16","xl:px-[160px]"],[1,"contact-copy","w-full","max-w-[453px]"],[1,"flex","flex-wrap","items-end","text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-[#0B1528]"],[1,"ml-3","text-[#3D71CC]"],[1,"mt-6","max-w-[453px]","text-[clamp(1rem,0.92rem+0.35vw,1.25rem)]","leading-[1.6]","text-[#4C5A6B]"],[1,"contact-card","w-full","max-w-[572px]","rounded-[16px]","bg-[#F7F9FD]","p-6","lg:p-[24px_32px]"],[1,"pb-3"],[1,"text-[24px]","font-bold","text-[#14274A]"],[1,"mt-1","text-[14px]","text-[#5A7AAA]"],["novalidate","",1,"flex","flex-col","gap-6",3,"ngSubmit","formGroup"],[1,"contact-field"],[1,"contact-label"],[1,"contact-select-wrap"],["formControlName","supportType",1,"contact-select"],["value","","disabled",""],[3,"value"],[1,"contact-error"],[1,"grid","grid-cols-1","gap-4","sm:grid-cols-2"],["type","text","formControlName","firstName",1,"contact-input",3,"placeholder"],["type","text","formControlName","lastName",1,"contact-input",3,"placeholder"],["type","email","formControlName","email",1,"contact-input",3,"placeholder"],["type","text","formControlName","organization",1,"contact-input",3,"placeholder"],["type","text","formControlName","roleInOrganization",1,"contact-input",3,"placeholder"],["rows","6","formControlName","message",1,"contact-textarea",3,"placeholder"],[1,"contact-checkbox"],["type","checkbox","formControlName","privacyAccepted"],["href","assets/documents/privacy.pdf","target","_blank",1,"contact-link"],["href","assets/documents/terms.pdf","target","_blank",1,"contact-link"],[1,"contact-error","-mt-4"],[1,"contact-checkbox","contact-checkbox-top"],["type","checkbox","formControlName","marketingAccepted"],["type","submit",1,"contact-submit"],[1,"contact-card","contact-card-success","w-full","max-w-[572px]","rounded-[16px]","bg-[#F7F9FD]","p-6","lg:p-[24px_32px]"],[1,"contact-success-content"],[1,"contact-success-icon-wrap"],[1,"contact-success-icon"],[3,"icon"],[1,"contact-success-title"],[1,"contact-success-description"],[1,"contact-success-cta"],["type","button",1,"contact-submit",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.j41(5,"div",5)(6,"div",6)(7,"h2",7),e.EFF(8),e.nI1(9,"translate"),e.j41(10,"span",8),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"p",9),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.DNE(16,h20,89,94,"div",10)(17,g20,15,10),e.k0s()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,4,"ContactUs.hero.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(12,6,"ContactUs.hero.titleAccent")," "),e.R7$(3),e.SpI(" ",e.bMT(15,8,"ContactUs.hero.description")," "),e.R7$(2),e.vxM(16,l.submittedSuccessfully?17:16))},dependencies:[_.MD,p.X1,p.qT,p.xH,p.y7,p.me,p.Zm,p.wz,p.BC,p.cb,p.j4,p.JD,s1.h,s1.D9,J2.dX,J2.aY],styles:['.contact-section[_ngcontent-%COMP%]{width:100%;background:#dde6f6;box-shadow:0 16px 24px #00000026;position:relative}.contact-copy[_ngcontent-%COMP%]{position:relative;z-index:4}.contact-card[_ngcontent-%COMP%]{position:relative;z-index:5;min-height:739px;border-radius:16px}.contact-card-success[_ngcontent-%COMP%]{min-height:340px;display:flex;flex-direction:column;justify-content:center;gap:16px}.contact-glow[_ngcontent-%COMP%]{position:absolute;border-radius:9999px;filter:blur(50px);pointer-events:none}.contact-glow-1[_ngcontent-%COMP%]{width:440px;height:440px;left:min(61.875vw,891px);top:-17.5px;background:#3d71cc;opacity:.2;z-index:0}.contact-glow-2[_ngcontent-%COMP%]{width:440px;height:440px;left:min(39.653vw,571px);top:349.5px;background:#668ed6;opacity:.2;z-index:1}.contact-glow-3[_ngcontent-%COMP%]{width:440px;height:440px;left:min(67.083vw,966px);top:349.5px;background:#8eace1;opacity:.2;z-index:2}.contact-glow-4[_ngcontent-%COMP%]{width:566px;height:566px;left:min(34.653vw,499px);top:-33.5px;background:#9eeeff;opacity:.2;z-index:3}.contact-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.contact-label[_ngcontent-%COMP%]{font-size:14px;line-height:16px;font-weight:600;letter-spacing:.5px;color:#4c5a6b}.contact-input[_ngcontent-%COMP%], .contact-textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #bcbfc7;background:#fff;color:#131b25;outline:none;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.contact-input[_ngcontent-%COMP%]{height:40px;border-radius:6px;padding:8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px}.contact-textarea[_ngcontent-%COMP%]{min-height:126px;resize:vertical;border-radius:6px;padding:8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px}.contact-input[_ngcontent-%COMP%]::placeholder, .contact-textarea[_ngcontent-%COMP%]::placeholder{color:#858b99}.contact-select-wrap[_ngcontent-%COMP%]{position:relative;width:100%}.contact-select[_ngcontent-%COMP%]{width:100%;height:40px;border:1px solid #bcbfc7;border-radius:6px;background:#fff;color:#131b25;padding:8px 40px 8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px;outline:none;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.contact-select-placeholder[_ngcontent-%COMP%]{color:#858b99}.contact-select[_ngcontent-%COMP%]:hover{border-color:#9da6b2}.contact-select[_ngcontent-%COMP%]:focus{border-color:#3d71cc;box-shadow:0 0 0 3px #3d71cc24}.contact-select-wrap[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:14px;width:10px;height:10px;transform:translateY(-70%) rotate(45deg);border-right:2px solid #4c5a6b;border-bottom:2px solid #4c5a6b;pointer-events:none}.contact-input[_ngcontent-%COMP%]:hover, .contact-textarea[_ngcontent-%COMP%]:hover{border-color:#9da6b2}.contact-input[_ngcontent-%COMP%]:focus, .contact-textarea[_ngcontent-%COMP%]:focus{border-color:#3d71cc;box-shadow:0 0 0 3px #3d71cc24}.contact-input-error[_ngcontent-%COMP%]{border-color:#d14343;box-shadow:0 0 0 3px #d1434314}.contact-error[_ngcontent-%COMP%]{font-size:12px;line-height:14px;color:#d14343}.contact-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-size:clamp(.95rem,.92rem + .08vw,1rem);line-height:24px;color:#4c5a6b}.contact-checkbox-top[_ngcontent-%COMP%]{align-items:flex-start}.contact-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;width:20px;height:20px;min-width:20px;border:1px solid #bcbfc7;border-radius:4px;accent-color:#2d58a7;cursor:pointer}.contact-link[_ngcontent-%COMP%]{font-weight:600;color:#2d58a7;text-decoration:none}.contact-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.contact-submit[_ngcontent-%COMP%]{display:inline-flex;width:100%;min-height:56px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#2d58a7;padding:16px 24px;color:#fff;font-size:clamp(1rem,.95rem + .18vw,1.125rem);font-weight:600;line-height:22px;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease,opacity .2s ease}.contact-submit[_ngcontent-%COMP%]:hover{background:#244a8d;box-shadow:0 10px 24px #2d58a738}.contact-submit[_ngcontent-%COMP%]:active{transform:translateY(1px)}.contact-submit[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}.contact-success-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.contact-success-icon-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.contact-success-icon[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:9999px;background:#dde6f6;display:flex;align-items:center;justify-content:center;color:#2d58a7;font-size:34px;line-height:1}.contact-success-title[_ngcontent-%COMP%]{width:100%;margin:0;text-align:center;color:#111827;font-size:clamp(2rem,1.85rem + .35vw,2.125rem);line-height:1.2;font-weight:700}.contact-success-description[_ngcontent-%COMP%]{width:100%;max-width:508px;margin:0;text-align:center;color:#4c5a6b;font-size:clamp(1.0625rem,.98rem + .2vw,1.25rem);line-height:1.6}.contact-success-cta[_ngcontent-%COMP%]{width:100%;padding-top:16px}@media (max-width: 1279px){.contact-card[_ngcontent-%COMP%]{min-height:auto}.contact-glow-1[_ngcontent-%COMP%]{left:auto;right:-60px;top:-40px}.contact-glow-2[_ngcontent-%COMP%]{left:42%;top:38%}.contact-glow-3[_ngcontent-%COMP%]{right:-90px;left:auto;top:48%}.contact-glow-4[_ngcontent-%COMP%]{left:28%;top:-60px}}@media (max-width: 1023px){.contact-section[_ngcontent-%COMP%]{box-shadow:none}.contact-glow[_ngcontent-%COMP%]{filter:blur(65px);transform:scale(.8)}}@media (max-width: 767px){.contact-glow-1[_ngcontent-%COMP%]{width:280px;height:280px;right:-60px;top:-20px}.contact-glow-2[_ngcontent-%COMP%]{width:260px;height:260px;left:-40px;top:44%}.contact-glow-3[_ngcontent-%COMP%]{width:240px;height:240px;right:-50px;top:72%}.contact-glow-4[_ngcontent-%COMP%]{width:320px;height:320px;left:18%;top:-40px}.contact-checkbox[_ngcontent-%COMP%]{align-items:flex-start}.contact-success-title[_ngcontent-%COMP%]{font-size:2rem;line-height:1.2}.contact-success-description[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.55}}']})}}return n})();const L20=(n,a)=>a.id;function C20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"a",5)(4,"h5",6),e.EFF(5),e.k0s()(),e.j41(6,"markdown",7),e.EFF(7),e.k0s(),e.j41(8,"div",8)(9,"button",9),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.searchByCategory(l))}),e.qSk(),e.j41(10,"svg",10)(11,"g",11),e.nrm(12,"path",12)(13,"path",13),e.k0s()(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()()}if(2&n){const c=a.$implicit;e.R7$(5),e.JRh(c.name),e.R7$(2),e.SpI(" ",null==c?null:c.description," "),e.R7$(7),e.SpI(" ",e.bMT(15,3,"DASHBOARD._view_serv")," ")}}let z20=(()=>{class n{constructor(c,t,l,i){this.eventMessage=c,this.localStorage=t,this.router=l,this.api=i,this.categories=[]}ngOnInit(){this.api.getDefaultCategories().then(c=>{for(let t=0;t{class n{constructor(){this.customerLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.customers._cards.access.title",hoverText:"DASHBOARD.customers._cards.access.desc",icon:of1},{html:"DASHBOARD.customers._cards.discovery.title",hoverText:"DASHBOARD.customers._cards.discovery.desc",icon:uN1},{html:"DASHBOARD.customers._cards.procurement.title",hoverText:"DASHBOARD.customers._cards.procurement.desc",icon:ew.b6I},{html:"DASHBOARD.customers._cards.ecosystem.title",hoverText:"DASHBOARD.customers._cards.ecosystem.desc",icon:ew.sOt}],this.steps=[{num:"01",title:"DASHBOARD.customers._steps.register.title",desc:"DASHBOARD.customers._steps.register.desc"},{num:"02",title:"DASHBOARD.customers._steps.search.title",desc:"DASHBOARD.customers._steps.search.desc"},{num:"03",title:"DASHBOARD.customers._steps.connect.title",desc:"DASHBOARD.customers._steps.connect.desc"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-customers"]],inputs:{customerLink:[e.Mj6.SignalBased,"customerLink"]},standalone:!0,features:[e.aNF],decls:23,vars:12,consts:[[1,"dc-wrap","font-[Blinker]"],["aria-hidden","true",1,"dc-bg"],[1,"dc-ellipse","dc-e1"],[1,"dc-ellipse","dc-e2"],[1,"dc-ellipse","dc-e3"],[1,"dc-ellipse","dc-e4"],[1,"dc-blur"],[1,"dc-content","mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-6","py-[44px]","sm:py-[56px]","lg:py-[64px]"],[1,"text-[clamp(34px,4.4vw,54px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-[#0b1220]"],[1,"mt-8","sm:mt-10","grid","grid-cols-1","lg:grid-cols-2","gap-5","sm:gap-6","items-stretch"],[1,"h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"dc-howcard","h-full"],[1,"dc-howcard__inner"],[1,"dc-howcard__title"],[1,"dc-steps"],["target","_blank",1,"dc-howcard__cta",3,"href"],[1,"dc-feature-card","cursor-pointer"],[1,"dc-feature-card__icon",3,"icon"],[1,"dc-feature-card__base"],[1,"dc-feature-card__content"],[1,"dc-feature-card__title",3,"innerHTML"],[1,"dc-feature-card__hover"],[1,"dc-feature-card__hover-text"],[1,"dc-step"],[1,"dc-step__num"],[1,"dc-step__text"],[1,"dc-step__title"],[1,"dc-step__desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),e.k0s(),e.j41(7,"div",7)(8,"h2",8),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",9)(12,"div",10),e.DNE(13,w30,3,0,"div",11),e.k0s(),e.j41(14,"div",12)(15,"div",13)(16,"h3",14),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,N30,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,6,"DASHBOARD.customers._sectitle")," "),e.R7$(4),e.vxM(13,l.featureCards.length?13:-1),e.R7$(4),e.SpI(" ",e.bMT(18,8,"DASHBOARD.customers._howItWorksTitle")," "),e.R7$(2),e.vxM(19,l.steps.length?19:-1),e.R7$(),e.Y8G("href",l.customerLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(22,10,"DASHBOARD.customers._cta")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:[".dc-wrap[_ngcontent-%COMP%]{position:relative;width:100%;isolation:isolate}.dc-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#f3f6ff}.dc-content[_ngcontent-%COMP%]{position:relative;z-index:1}.dc-ellipse[_ngcontent-%COMP%]{position:absolute;width:720px;height:720px;border-radius:9999px;transform:rotate(180deg);opacity:1;background:radial-gradient(circle at 35% 35%,#b6caecf2,#b6caeca6 38%,#b6caec00 72%);filter:blur(10px)}.dc-e1[_ngcontent-%COMP%]{left:-220px;top:-190px}.dc-e2[_ngcontent-%COMP%]{right:-260px;top:60px}.dc-e3[_ngcontent-%COMP%]{left:50%;top:-240px;transform:translate(-50%) rotate(180deg)}.dc-e4[_ngcontent-%COMP%]{left:140px;bottom:-360px}.dc-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f22e 25.7%,#fffafa47 94.73%);backdrop-filter:blur(90px);-webkit-backdrop-filter:blur(90px);transform:rotate(180deg)}.dc-feature-card[_ngcontent-%COMP%]{position:relative;min-height:240px;border-radius:8px;overflow:hidden;background:#f7f9fd;isolation:isolate;transition:background-color .45s ease,transform .45s ease,box-shadow .45s ease}.dc-feature-card[_ngcontent-%COMP%]:hover{background:#e2e9f5;transform:translateY(-2px);box-shadow:0 16px 38px #0d214a1f}.dc-feature-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:240px;transition:opacity .45s ease}.dc-feature-card__content[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:24px;gap:12px;position:relative;z-index:1}.dc-feature-card__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-size:30px;font-weight:700;line-height:36px;color:#2d58a7;display:flex;align-items:flex-end}.dc-feature-card__icon[_ngcontent-%COMP%]{position:absolute;right:-2.52px;bottom:-2.52px;width:120px;height:120px;font-size:120px;line-height:1;color:#dde6f6;transform:rotate(-15deg);transform-origin:center;z-index:0;transition:transform .5s ease,color .45s ease}.dc-feature-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:24px;background:transparent;opacity:0;transition:opacity .45s ease 60ms;pointer-events:none}.dc-feature-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;font-family:Blinker,sans-serif;font-size:18px;line-height:28px;font-weight:400;color:#0b1528}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__base[_ngcontent-%COMP%]{opacity:0}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__icon[_ngcontent-%COMP%]{transform:rotate(-15deg) scale(1.5);color:#c4d3ec}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__hover[_ngcontent-%COMP%]{opacity:1}.dc-howcard[_ngcontent-%COMP%]{border-radius:8px;background:#ffffffb3;border:2px solid #FFFFFF;backdrop-filter:blur(50px);-webkit-backdrop-filter:blur(50px);min-height:504px}.dc-howcard__inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:flex-end;padding:40px 40px 24px;gap:32px;font-family:Blinker,sans-serif}.dc-howcard__title[_ngcontent-%COMP%]{align-self:stretch;font-family:Blinker,sans-serif;font-weight:700;font-size:36px;line-height:43px;color:#111827}.dc-steps[_ngcontent-%COMP%]{align-self:stretch;flex:1 1 auto;display:flex;flex-direction:column;gap:24px}.dc-step[_ngcontent-%COMP%]{align-self:stretch;display:flex;flex-direction:row;align-items:flex-start;gap:16px}.dc-step__num[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:700;font-size:18px;line-height:22px;color:#2d58a7;flex:none}.dc-step__text[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px}.dc-step__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:600;font-size:20px;line-height:24px;color:#111827}.dc-step__desc[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:28px;color:#4c5a6b}.dc-howcard__cta[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:8px;height:40px;background:#2d58a7;border-radius:6px;font-family:Blinker,sans-serif;font-weight:600;font-size:14px;line-height:16px;letter-spacing:.5px;color:#fff;text-decoration:none;transition:filter .2s ease}.dc-howcard__cta[_ngcontent-%COMP%]:hover{filter:brightness(1.08)}@media (max-width: 1024px){.dc-howcard[_ngcontent-%COMP%]{min-height:0}.dc-howcard__inner[_ngcontent-%COMP%]{padding:32px 32px 24px;gap:24px}.dc-howcard__title[_ngcontent-%COMP%]{font-size:30px;line-height:1.2}}@media (max-width: 640px){.dc-howcard__inner[_ngcontent-%COMP%]{padding:24px;gap:20px}.dc-howcard__title[_ngcontent-%COMP%]{font-size:26px}.dc-step__title[_ngcontent-%COMP%]{font-size:18px}.dc-step__desc[_ngcontent-%COMP%]{font-size:16px;line-height:1.55}}@media (max-width: 1024px){.dc-ellipse[_ngcontent-%COMP%]{width:620px;height:620px;filter:blur(9px)}.dc-e2[_ngcontent-%COMP%]{right:-300px}}@media (max-width: 640px){.dc-ellipse[_ngcontent-%COMP%]{width:520px;height:520px;filter:blur(8px)}.dc-e1[_ngcontent-%COMP%]{left:-280px;top:-230px}.dc-e2[_ngcontent-%COMP%]{right:-320px;top:10px}.dc-e4[_ngcontent-%COMP%]{left:40px;bottom:-380px}.dc-feature-card[_ngcontent-%COMP%], .dc-feature-card__base[_ngcontent-%COMP%]{min-height:200px}.dc-feature-card__title[_ngcontent-%COMP%]{font-size:26px}.dc-feature-card__hover[_ngcontent-%COMP%]{padding:20px}.dc-feature-card__hover-text[_ngcontent-%COMP%]{font-size:16px;line-height:1.65}.dc-feature-card__hover-icon[_ngcontent-%COMP%]{font-size:104px}}"]})}}return n})();function D30(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",22),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",23),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n){const c=a.$implicit;e.R7$(),e.AVh("text-[#2B5BB8]",c.active)("text-[#526179]",!c.active),e.R7$(),e.SpI(" ",e.bMT(3,6,c.title)," "),e.R7$(3),e.SpI(" ",e.bMT(6,8,c.desc)," ")}}function T30(n,a){if(1&n&&(e.j41(0,"div",14),e.Z7z(1,D30,7,10,"div",21,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.milestones)}}let R30=(()=>{class n{constructor(){this.milestones=[{title:"DASHBOARD.ecosystem._milestones._live._title",desc:"DASHBOARD.ecosystem._milestones._live._desc",active:!0},{title:"DASHBOARD.ecosystem._milestones._tools._title",desc:"DASHBOARD.ecosystem._milestones._tools._desc",active:!1},{title:"DASHBOARD.ecosystem._milestones._federation._title",desc:"DASHBOARD.ecosystem._milestones._federation._desc",active:!1}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-ecosystem"]],standalone:!0,features:[e.aNF],decls:43,vars:31,consts:[[1,"w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-10","py-[54px]","sm:py-[68px]"],[1,"text-center","text-[clamp(34px,4.2vw,56px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-[#0b1220]"],[1,"mx-auto","mt-4","max-w-[860px]","text-center","text-[16px]","sm:text-[18px]","leading-[1.6]","text-[#526179]"],[1,"relative","mt-10","sm:mt-12","rounded-[16px]","border","border-[#E6ECF6]","bg-white","px-6","sm:px-10","lg:px-12","py-10","sm:py-12","shadow-[0_22px_60px_rgba(11,18,32,0.08)]"],[1,"grid","grid-cols-3","text-center","text-[16px]","sm:text-[18px]","font-medium","text-[#526179]"],[1,"relative","mt-7","sm:mt-8"],[1,"absolute","left-0","right-0","top-[12px]","z-0","h-[2px]","bg-[#DCE5F3]"],[1,"absolute","left-0","top-[12px]","z-0","h-[2px]","w-[calc(16.6667%_-_15px)]","bg-[#2B5BB8]"],[1,"absolute","left-0","top-[12px]","z-0","h-[2px]","w-[calc(16.6667%_-_15px)]","bg-gradient-to-l","from-[#2B5BB8]","to-transparent","opacity-60","blur-[1px]"],[1,"relative","z-10","grid","grid-cols-3"],[1,"flex","justify-center"],[1,"h-[18px]","w-[18px]","rounded-full","bg-[#2B5BB8]","ring-[6px]","ring-white","shadow-[0_10px_18px_rgba(43,91,184,0.25)]"],[1,"h-[18px]","w-[18px]","rounded-full","bg-[#DCE5F3]","ring-[6px]","ring-white"],[1,"mt-8","sm:mt-9","grid","grid-cols-1","md:grid-cols-3","gap-8","md:gap-10"],[1,"mt-14","sm:mt-16","rounded-[18px]","overflow-hidden","shadow-[0_30px_80px_rgba(7,18,38,0.35)]",2,"background","radial-gradient(900px 520px at 35% 25%, rgba(60, 110, 220, 0.35) 0%, rgba(60, 110, 220, 0) 60%),\n radial-gradient(900px 520px at 85% 35%, rgba(30, 220, 255, 0.10) 0%, rgba(30, 220, 255, 0) 60%),\n #071226"],[1,"px-6","sm:px-10","lg:px-14","py-12","sm:py-14","lg:py-16"],[1,"mx-auto","max-w-[980px]","text-center","text-[clamp(26px,3.2vw,44px)]","leading-[1.15]","tracking-[-0.02em]","font-extrabold","text-white"],[1,"mt-8","sm:mt-10","flex","flex-col","sm:flex-row","items-center","justify-center","gap-4","sm:gap-6"],["routerLink","/landing-page/customers",1,"inline-flex","items-center","justify-center","h-[44px]","w-full","sm:w-[270px]","rounded-[10px]","bg-[#2B5BB8]","text-white","text-[14px]","font-semibold","shadow-[0_18px_28px_rgba(0,0,0,0.35)]","hover:brightness-110","active:brightness-95","transition"],["routerLink","/landing-page/providers",1,"inline-flex","items-center","justify-center","h-[44px]","w-full","sm:w-[270px]","rounded-[10px]","bg-transparent","text-white","text-[14px]","font-semibold","border","border-white/25","hover:border-white/40","hover:bg-white/5","active:bg-white/10","transition"],[1,"text-center"],[1,"text-[18px]","sm:text-[20px]","font-extrabold","tracking-[0.08em]","uppercase"],[1,"mt-4","text-[14px]","sm:text-[15px]","leading-[1.7]","text-[#526179]"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"h2",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",4)(9,"div",5)(10,"div"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div"),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",6),e.nrm(20,"div",7)(21,"div",8)(22,"div",9),e.j41(23,"div",10)(24,"div",11),e.nrm(25,"div",12),e.k0s(),e.j41(26,"div",11),e.nrm(27,"div",13),e.k0s(),e.j41(28,"div",11),e.nrm(29,"div",13),e.k0s()()(),e.DNE(30,T30,3,0,"div",14),e.k0s(),e.j41(31,"div",15)(32,"div",16)(33,"h3",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"div",18)(37,"a",19),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"a",20),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(3),e.SpI(" ",e.bMT(4,15,"DASHBOARD.ecosystem._title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,17,"DASHBOARD.ecosystem._subtitle")," "),e.R7$(4),e.AVh("text-[#2B5BB8]",l.milestones[0].active),e.R7$(),e.SpI(" ",e.bMT(12,19,"DASHBOARD.ecosystem._nowLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[1].active),e.R7$(),e.SpI(" ",e.bMT(15,21,"DASHBOARD.ecosystem._nextLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[2].active),e.R7$(),e.SpI(" ",e.bMT(18,23,"DASHBOARD.ecosystem._beyondLabel")," "),e.R7$(13),e.vxM(30,l.milestones.length?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,25,"DASHBOARD.ecosystem._ctaTitle")," "),e.R7$(4),e.SpI(" ",e.bMT(39,27,"DASHBOARD.ecosystem._ctaCustomers")," "),e.R7$(3),e.SpI(" ",e.bMT(42,29,"DASHBOARD.ecosystem._ctaProviders")," "))},dependencies:[s1.h,s1.D9,E2.Wk],encapsulation:2})}}return n})();const UN1=(n,a)=>a.name;function A30(n,a){if(1&n&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.xc7("--logo-h",c.height,"px"),e.Y8G("src","assets/hero-logos/"+c.file,e.B4B)("alt",c.name)}}function I30(n,a){if(1&n&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.xc7("--logo-h",c.height,"px"),e.Y8G("src","assets/hero-logos/"+c.file,e.B4B)("alt","")}}let P30=(()=>{class n{constructor(){this.heroLogos=[{name:"Team Dev",file:"Team Dev.svg",height:52},{name:"Elliot Cloud",file:"Elliot Cloud.svg",height:27},{name:"Beia",file:"Beia.svg",height:48},{name:"E-group",file:"E-group.svg",height:54},{name:"Madison MK",file:"Madison MK.svg",height:40},{name:"Libelium",file:"Libelium.svg",height:32},{name:"CSI",file:"CSI.svg",height:39},{name:"Ionos",file:"Ionos.svg",height:31},{name:"Eht",file:"Eht.svg",height:31},{name:"Top ix",file:"Top ix.svg",height:39},{name:"BS Outscale",file:"BS Outscale.svg",height:31},{name:"Altia",file:"Altia.svg",height:36},{name:"CloudFerro",file:"CloudFerro.svg",height:32},{name:"Digitanimal",file:"Digitanimal.svg",height:36},{name:"Digitel TS",file:"Digitel TS.svg",height:40},{name:"Eng",file:"Eng.svg",height:32},{name:"European Dynamics",file:"European Dynamics.svg",height:36},{name:"Golem.at",file:"Golem.at.svg",height:36},{name:"Idom",file:"Idom.svg",height:32},{name:"Inno Focus",file:"Inno Focus.svg",height:36},{name:"Orange Business",file:"Orange Business.svg",height:32},{name:"Portel",file:"Portel.svg",height:36}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-hero"]],standalone:!0,features:[e.aNF],decls:40,vars:24,consts:[[1,"hero-shell","relative","isolate","w-full","overflow-hidden","font-[Blinker]"],[1,"hero-bg","absolute","inset-0"],["aria-hidden","true",1,"hero-blur","hero-blur-main"],["aria-hidden","true",1,"hero-blur","hero-blur-core"],["aria-hidden","true",1,"earth-wrapper"],["src","assets/images/dashboard/hero.png","alt",""],[1,"relative","z-[5]","mx-auto","flex","h-full","w-full","max-w-[1440px]","flex-col","items-center","px-5","pt-[96px]","pb-[80px]","text-center","sm:px-8","lg:px-20"],[1,"hero-title","text-white"],[1,"block"],[1,"hero-accent"],[1,"hero-sub","mt-8"],[1,"hidden","sm:block"],[1,"hero-actions","mt-8","flex","w-full","max-w-[548px]","flex-col","gap-4","sm:flex-row","sm:gap-6"],["routerLink","/landing-page/customers",1,"hero-btn","hero-btn--primary"],["routerLink","/landing-page/providers",1,"hero-btn","hero-btn--secondary"],["aria-label","Partner logos",1,"hero-marquee","mt-auto","pt-8"],[1,"hero-marquee__track"],["role","list",1,"hero-marquee__list"],[1,"hero-marquee__item"],["role","list","aria-hidden","true",1,"hero-marquee__list"],[3,"src","alt"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2)(3,"div",3),e.j41(4,"div",4),e.nrm(5,"img",5),e.k0s(),e.j41(6,"div",6)(7,"h1",7)(8,"span",8),e.EFF(9),e.nI1(10,"translate"),e.j41(11,"span",9),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"span",8),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"p",10),e.EFF(20),e.nI1(21,"translate"),e.nrm(22,"br",11),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"div",12)(26,"a",13),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"a",14),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.j41(32,"div",15)(33,"div",16)(34,"ul",17),e.Z7z(35,A30,2,4,"li",18,UN1),e.k0s(),e.j41(37,"ul",19),e.Z7z(38,I30,2,4,"li",18,UN1),e.k0s()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,8,"DASHBOARD.hero._titleLine1Part1")," "),e.R7$(3),e.JRh(e.bMT(13,10,"DASHBOARD.hero._titleLine1Accent")),e.R7$(2),e.SpI(" ",e.bMT(15,12,"DASHBOARD.hero._titleLine1Part2")," "),e.R7$(3),e.JRh(e.bMT(18,14,"DASHBOARD.hero._titleLine2")),e.R7$(3),e.SpI(" ",e.bMT(21,16,"DASHBOARD.hero._subtitleLine1")," "),e.R7$(3),e.SpI(" ",e.bMT(24,18,"DASHBOARD.hero._subtitleLine2")," "),e.R7$(4),e.SpI(" ",e.bMT(28,20,"DASHBOARD.hero._customerCta")," "),e.R7$(3),e.SpI(" ",e.bMT(31,22,"DASHBOARD.hero._providerCta")," "),e.R7$(5),e.Dyx(l.heroLogos),e.R7$(3),e.Dyx(l.heroLogos))},dependencies:[s1.h,s1.D9,E2.Wk],styles:["[_nghost-%COMP%]{display:block}.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px;background:linear-gradient(180deg,#0b1528,rgb(var(--theme-secondary-100)))}.hero-bg[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0b1528,rgb(var(--theme-secondary-100)))}.hero-blur[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);pointer-events:none;border-radius:9999px}.hero-blur-main[_ngcontent-%COMP%]{bottom:-4.5vw;width:55.5vw;height:21vw;background:linear-gradient(180deg,#1a3360,#0b1528);filter:blur(8.7vw);z-index:1}.hero-blur-core[_ngcontent-%COMP%]{bottom:2vw;width:19.7vw;height:5.3vw;background:#ffffffe6;filter:blur(3.5vw);z-index:2}.hero-title[_ngcontent-%COMP%]{width:100%;max-width:none;margin:0;font-weight:800;font-size:70px;line-height:84px;letter-spacing:1px;text-align:center;color:#fff;white-space:nowrap}.hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{white-space:nowrap}.hero-accent[_ngcontent-%COMP%]{color:#00b7e8}.hero-sub[_ngcontent-%COMP%]{width:100%;max-width:738px;margin-inline:auto;font-weight:400;font-size:20px;line-height:32px;text-align:center;color:#fff;opacity:.6}.hero-actions[_ngcontent-%COMP%]{height:48px}.hero-btn[_ngcontent-%COMP%]{flex:1 1 0;min-height:48px;padding:12px 20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-weight:600;font-size:16px;line-height:24px;letter-spacing:.5px;text-decoration:none;transition:all .2s ease}.hero-btn--primary[_ngcontent-%COMP%]{background:rgb(var(--theme-primary-100));color:#fff;border:2px solid rgb(var(--theme-primary-100))}.hero-btn--primary[_ngcontent-%COMP%]:hover{background:#3565be;border-color:#3565be}.hero-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid rgb(var(--theme-primary-100))}.hero-btn--secondary[_ngcontent-%COMP%]:hover{background:#2d58a71f}.hero-marquee[_ngcontent-%COMP%]{position:relative;z-index:6;flex:none;width:100%;max-width:1050px;margin-inline:auto;margin-bottom:64px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}.hero-marquee__track[_ngcontent-%COMP%]{display:flex;width:max-content;animation:_ngcontent-%COMP%_hero-marquee-scroll 60s linear infinite}.hero-marquee__list[_ngcontent-%COMP%]{display:flex;align-items:center;gap:72px;padding:0 36px 0 0;margin:0;list-style:none}.hero-marquee__item[_ngcontent-%COMP%]{flex:none;display:flex;align-items:center;height:56px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;height:var(--logo-h, 40px);width:auto;object-fit:contain;filter:brightness(0) invert(1);opacity:.92}@keyframes _ngcontent-%COMP%_hero-marquee-scroll{0%{transform:translate(0)}to{transform:translate(-50%)}}@media (prefers-reduced-motion: reduce){.hero-marquee__track[_ngcontent-%COMP%]{animation:none}}.earth-wrapper[_ngcontent-%COMP%]{position:absolute;left:50%;bottom:0;width:120vw;height:6.8vw;transform:translate(-50%);z-index:3;pointer-events:none;overflow:hidden}.earth-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto}@media (max-width: 1279px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{font-size:58px;line-height:70px;white-space:normal}.earth-wrapper[_ngcontent-%COMP%]{width:160vw;height:9vw}.hero-blur-core[_ngcontent-%COMP%]{bottom:3vw;width:28vw;height:8vw;filter:blur(5vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-6vw;width:75vw;height:28vw;filter:blur(11vw)}}@media (max-width: 1023px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{max-width:700px;font-size:48px;line-height:58px;letter-spacing:.4px;white-space:normal}.hero-sub[_ngcontent-%COMP%]{font-size:18px;line-height:30px;max-width:680px}.hero-actions[_ngcontent-%COMP%]{height:auto}.hero-marquee__list[_ngcontent-%COMP%]{gap:52px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(var(--logo-h, 40px) * .78)}.earth-wrapper[_ngcontent-%COMP%]{width:200vw;height:11vw}.hero-blur-core[_ngcontent-%COMP%]{bottom:5vw;width:35vw;height:10vw;filter:blur(7vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-7vw;width:95vw;height:33vw;filter:blur(13vw)}}@media (max-width: 767px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:640px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{max-width:100%;font-size:40px;line-height:48px;letter-spacing:0;text-wrap:balance}.hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{display:inline}.earth-wrapper[_ngcontent-%COMP%]{width:320vw;height:18vw;bottom:0}.hero-blur-core[_ngcontent-%COMP%]{bottom:14vw;width:50vw;height:14vw;filter:blur(10vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-10vw;width:130vw;height:45vw;filter:blur(18vw)}.hero-actions[_ngcontent-%COMP%]{margin-top:56px}.hero-sub[_ngcontent-%COMP%]{max-width:100%;font-size:18px;line-height:28px}.hero-btn[_ngcontent-%COMP%]{width:100%}.hero-actions[_ngcontent-%COMP%]{order:1}.hero-marquee[_ngcontent-%COMP%]{margin-top:32px!important;margin-bottom:0}.hero-marquee__list[_ngcontent-%COMP%]{gap:48px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:32px}.hero-marquee__track[_ngcontent-%COMP%]{animation-duration:45s}}"],changeDetection:0})}}return n})();function j30(n,a){if(1&n&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"div",19)(3,"div",20),e.nrm(4,"div",21),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",22)(7,"div",23),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("icon",c.icon),e.R7$(3),e.Y8G("innerHTML",e.bMT(5,3,c.html),e.npT),e.R7$(4),e.SpI(" ",e.bMT(9,5,c.hoverText)," ")}}function $30(n,a){if(1&n&&(e.j41(0,"div",11),e.Z7z(1,j30,10,7,"div",17,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.featureCards)}}function O30(n,a){if(1&n&&(e.j41(0,"div",24)(1,"div",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"div",27),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",28),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.num),e.R7$(3),e.SpI(" ",e.bMT(6,3,c.title)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,c.desc)," ")}}function B30(n,a){if(1&n&&(e.j41(0,"div",15),e.Z7z(1,O30,10,7,"div",24,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.steps)}}let V30=(()=>{class n{constructor(){this.providersLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.providers.features.market.title",hoverText:"DASHBOARD.providers.features.market.desc",icon:ew.YSf},{html:"DASHBOARD.providers.features.trust.title",hoverText:"DASHBOARD.providers.features.trust.desc",icon:ew.Z8x},{html:"DASHBOARD.providers.features.tools.title",hoverText:"DASHBOARD.providers.features.tools.desc",icon:ew.f2_},{html:"DASHBOARD.providers.features.portfolio.title",hoverText:"DASHBOARD.providers.features.portfolio.desc",icon:ew.qIE}],this.steps=[{num:"01",title:"DASHBOARD.providers.steps.onboard.title",desc:"DASHBOARD.providers.steps.onboard.desc"},{num:"02",title:"DASHBOARD.providers.steps.verify.title",desc:"DASHBOARD.providers.steps.verify.desc"},{num:"03",title:"DASHBOARD.providers.steps.publish.title",desc:"DASHBOARD.providers.steps.publish.desc"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-providers"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"]},standalone:!0,features:[e.aNF],decls:23,vars:12,consts:[[1,"dp-wrap","font-[Blinker]"],["aria-hidden","true",1,"dp-bg"],[1,"dp-ellipse","dp-e1"],[1,"dp-ellipse","dp-e2"],[1,"dp-ellipse","dp-e3"],[1,"dp-ellipse","dp-e4"],[1,"dp-blur"],[1,"mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-6","py-[44px]","sm:py-[56px]","lg:py-[64px]"],[1,"text-[clamp(34px,4.4vw,56px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-white"],[1,"mt-8","sm:mt-10","grid","grid-cols-1","lg:grid-cols-2","gap-5","sm:gap-6","items-stretch"],[1,"h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"dp-howcard","h-full"],[1,"dp-howcard__inner"],[1,"dp-howcard__title"],[1,"dp-steps"],["target","_blank",1,"dp-howcard__cta",3,"href"],[1,"dp-feature-card","cursor-pointer"],[1,"dp-feature-card__icon",3,"icon"],[1,"dp-feature-card__base"],[1,"dp-feature-card__content"],[1,"dp-feature-card__title",3,"innerHTML"],[1,"dp-feature-card__hover"],[1,"dp-feature-card__hover-text"],[1,"dp-step"],[1,"dp-step__num"],[1,"dp-step__text"],[1,"dp-step__title"],[1,"dp-step__desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),e.k0s(),e.j41(7,"div",7)(8,"h2",8),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",9)(12,"div",10),e.DNE(13,$30,3,0,"div",11),e.k0s(),e.j41(14,"div",12)(15,"div",13)(16,"h3",14),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,B30,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,6,"DASHBOARD.providers._title")," "),e.R7$(4),e.vxM(13,l.featureCards.length?13:-1),e.R7$(4),e.SpI(" ",e.bMT(18,8,"DASHBOARD.providers._howDomeWorks")," "),e.R7$(2),e.vxM(19,l.steps.length?19:-1),e.R7$(),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(22,10,"DASHBOARD.providers._cta")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:[".dp-wrap[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;isolation:isolate;background:#0f1b33}.dp-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.dp-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.dp-bg){position:relative;z-index:2}.dp-ellipse[_ngcontent-%COMP%]{position:absolute;border-radius:9999px;background:#14274a;transform:rotate(180deg);filter:blur(70px);opacity:.95}.dp-e1[_ngcontent-%COMP%]{inset:-9.75px 868.5px 136.25px -111.75px}.dp-e2[_ngcontent-%COMP%]{inset:114.75px -225px 244.25px 1215px}.dp-e3[_ngcontent-%COMP%]{inset:0 469.5px 308px}.dp-e4[_ngcontent-%COMP%]{inset:407.25px 892.5px 46.25px 192px}.dp-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f208 25.7%,#fffafa12 94.73%);opacity:1}.dp-feature-card[_ngcontent-%COMP%]{position:relative;min-height:240px;border-radius:8px;overflow:hidden;background:#111827;border:.75px solid rgba(255,255,255,.07);box-shadow:0 22px 60px #00000073;isolation:isolate;transition:background-color .45s ease,transform .45s ease,box-shadow .45s ease}.dp-feature-card[_ngcontent-%COMP%]:hover{background:#18233b;transform:translateY(-2px)}.dp-feature-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:240px;transition:opacity .45s ease}.dp-feature-card__content[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:24px;gap:12px;position:relative;z-index:1}.dp-feature-card__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-size:30px;font-weight:700;line-height:36px;color:#fff;display:flex;align-items:flex-end}.dp-feature-card__icon[_ngcontent-%COMP%]{position:absolute;right:-2.52px;bottom:-2.52px;width:120px;height:120px;font-size:120px;line-height:1;color:#2d58a7;opacity:.3;transform:rotate(-15deg);transform-origin:center;z-index:0;transition:transform .5s ease,opacity .45s ease}.dp-feature-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:24px;background:transparent;opacity:0;transition:opacity .45s ease 60ms;pointer-events:none}.dp-feature-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;font-family:Blinker,sans-serif;font-size:18px;line-height:28px;font-weight:400;color:#ffffffe0}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__base[_ngcontent-%COMP%]{opacity:0}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__icon[_ngcontent-%COMP%]{transform:rotate(-15deg) scale(1.5);opacity:.5}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__hover[_ngcontent-%COMP%]{opacity:1}.dp-howcard[_ngcontent-%COMP%]{border-radius:8px;background:#11182780;border:1px solid #111827;box-shadow:0 26px 70px #00000073;min-height:504px}.dp-howcard__inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:flex-end;padding:40px 40px 24px;gap:32px;font-family:Blinker,sans-serif}.dp-howcard__title[_ngcontent-%COMP%]{align-self:stretch;font-family:Blinker,sans-serif;font-weight:700;font-size:36px;line-height:43px;color:#fff}.dp-steps[_ngcontent-%COMP%]{align-self:stretch;flex:1 1 auto;display:flex;flex-direction:column;gap:24px}.dp-step[_ngcontent-%COMP%]{align-self:stretch;display:flex;flex-direction:row;align-items:flex-start;gap:16px}.dp-step__num[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:700;font-size:24px;line-height:29px;color:#06b6d4;flex:none}.dp-step__text[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px}.dp-step__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:600;font-size:20px;line-height:24px;color:#fff}.dp-step__desc[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:28px;color:#bcbfc7}.dp-howcard__cta[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:8px;height:40px;background:#2d58a7;border-radius:6px;font-family:Blinker,sans-serif;font-weight:600;font-size:14px;line-height:16px;letter-spacing:.5px;color:#fff;text-decoration:none;transition:filter .2s ease}.dp-howcard__cta[_ngcontent-%COMP%]:hover{filter:brightness(1.1)}@media (max-width: 1024px){.dp-e2[_ngcontent-%COMP%]{inset:110px -180px auto auto;width:360px;height:360px}.dp-e3[_ngcontent-%COMP%]{inset:0 auto auto 50%;width:260px;height:260px;transform:translate(-50%) rotate(180deg)}.dp-howcard[_ngcontent-%COMP%]{min-height:0}.dp-howcard__inner[_ngcontent-%COMP%]{padding:32px 32px 24px;gap:24px}.dp-howcard__title[_ngcontent-%COMP%]{font-size:30px;line-height:1.2}}@media (max-width: 640px){.dp-e1[_ngcontent-%COMP%]{inset:-30px auto auto -180px;width:320px;height:320px}.dp-e2[_ngcontent-%COMP%]{right:-160px;top:80px;width:300px;height:300px}.dp-e3[_ngcontent-%COMP%]{width:220px;height:220px;top:-10px}.dp-e4[_ngcontent-%COMP%]{inset:auto auto -120px 20px;width:260px;height:260px}.dp-feature-card[_ngcontent-%COMP%], .dp-feature-card__base[_ngcontent-%COMP%]{min-height:200px}.dp-feature-card__title[_ngcontent-%COMP%]{font-size:26px}.dp-howcard__inner[_ngcontent-%COMP%]{padding:24px;gap:20px}.dp-howcard__title[_ngcontent-%COMP%]{font-size:26px}.dp-step__title[_ngcontent-%COMP%]{font-size:18px}.dp-step__desc[_ngcontent-%COMP%]{font-size:16px;line-height:1.55}}"]})}}return n})();var U30=y(8338);const G30=(n,a)=>a.id,H30=n=>["/search",n];function Y30(n,a){if(1&n&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),e.nrm(4,"div",13)(5,"img",14),e.k0s()(),e.j41(6,"div",15)(7,"h3",16),e.EFF(8),e.k0s(),e.j41(9,"div",17),e.nrm(10,"p",18),e.k0s(),e.j41(11,"a",19),e.EFF(12),e.nI1(13,"translate"),e.k0s()()()()),2&n){const c=a.$implicit,t=e.XpG();e.xc7("width",100/t.visibleItems,"%"),e.R7$(4),e.xc7("background-image","url("+t.getProductImage(c)+")"),e.R7$(),e.Y8G("src",t.getProductImage(c),e.B4B),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(2),e.Y8G("innerHTML",c.description,e.npT),e.R7$(),e.Y8G("routerLink",e.eq3(11,H30,c.id)),e.R7$(),e.SpI(" ",e.bMT(13,9,"DASHBOARD.marketplace.viewService")," ")}}let q30=(()=>{class n{constructor(c){this.cdr=c,this.faArrowRight=qL1,this.productOfferings=e.hFB.required(),this.visibleItems=3}ngOnInit(){this.updateVisibleItems()}onResize(){this.updateVisibleItems()}updateVisibleItems(){const c=window.innerWidth;this.visibleItems=c<768?1:c<1024?2:3,this.cdr.markForCheck()}getProductImage(c){let t=[];if(c?.attachment){const l=c.attachment.filter(i=>"Profile Picture"===i.name)??[];t=c.attachment.filter(i=>"Picture"===i.attachmentType)??[],0!==l.length&&(t=l)}return t.length>0?t.at(0)?.url:"https://placehold.co/600x400/svg"}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-services"]],hostBindings:function(t,l){1&t&&e.bIt("resize",function(){return l.onResize()},!1,e.tSv)},inputs:{productOfferings:[e.Mj6.SignalBased,"productOfferings"]},standalone:!0,features:[e.aNF],decls:17,vars:13,consts:[[1,"bg-[#f5f7fb]","py-24"],[1,"max-w-[1180px]","mx-auto","px-6"],[1,"flex","flex-col","gap-6","mb-16","md:flex-row","md:items-start","md:justify-between"],[1,"text-[32px]","md:text-[38px]","lg:text-[42px]","font-extrabold","text-[#0f172a]","leading-tight"],[1,"mt-4","text-base","md:text-lg","text-slate-600"],["href","/search",1,"flex","items-center","gap-2","text-blue-700","font-semibold"],[3,"icon"],[3,"items","visible","loop"],[1,"shrink-0","px-3","md:px-4",3,"width"],[1,"shrink-0","px-3","md:px-4"],[1,"flex","flex-col","w-full","h-[460px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","font-[Blinker]"],[1,"px-2","pt-2"],[1,"relative","h-[180px]","w-full","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"flex-1","flex","flex-col","px-4","pt-4","pb-4","min-h-0"],[1,"text-[20px]","font-bold","leading-tight","line-clamp-2","text-[#14274A]","mb-2","break-words"],[1,"flex-1","min-h-0","overflow-hidden"],[1,"text-[14px]","font-normal","leading-[22px]","text-[#0B1528]","line-clamp-3",3,"innerHTML"],[1,"mt-4","border-2","border-blue-700","text-blue-700","rounded-lg","py-2.5","font-semibold","flex","items-center","justify-center","gap-2","hover:bg-blue-700","hover:text-white","transition-all",3,"routerLink"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",4),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"a",5),e.EFF(11),e.nI1(12,"translate"),e.nrm(13,"fa-icon",6),e.k0s()(),e.j41(14,"app-carousel",7),e.Z7z(15,Y30,14,13,"div",8,G30),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,7,"DASHBOARD.marketplace.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,9,"DASHBOARD.marketplace.subtitle")," "),e.R7$(3),e.SpI(" ",e.bMT(12,11,"DASHBOARD.marketplace.browseFullCatalog")," "),e.R7$(2),e.Y8G("icon",l.faArrowRight),e.R7$(),e.Y8G("items",l.productOfferings())("visible",l.visibleItems)("loop",!0),e.R7$(),e.Dyx(l.productOfferings()))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9,U30.g,E2.Wk],changeDetection:0})}}return n})(),X30=(()=>{class n{constructor(){this.stats=e.hFB.required()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-stats"]],inputs:{stats:[e.Mj6.SignalBased,"stats"]},standalone:!0,features:[e.aNF],decls:29,vars:17,consts:[[1,"stats-section","w-full","font-[Blinker]"],[1,"stats-shell","mx-auto","w-full","max-w-[1440px]"],[1,"stats-inner","mx-auto","flex","w-full","max-w-[1120px]","flex-col","items-center","gap-6"],[1,"stats-heading","flex","w-full","flex-col","items-center","gap-4","pb-10","text-center"],[1,"stats-title","m-0"],[1,"stats-subtitle","m-0"],[1,"stats-grid","grid","w-full","grid-cols-1","gap-6","md:grid-cols-3"],[1,"stats-card"],[1,"stats-number"],[1,"stats-text","m-0"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",5),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",6)(11,"article",7)(12,"div",8),e.EFF(13),e.k0s(),e.j41(14,"p",9),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.j41(17,"article",7)(18,"div",8),e.EFF(19," 10+ "),e.k0s(),e.j41(20,"p",9),e.EFF(21),e.nI1(22,"translate"),e.k0s()(),e.j41(23,"article",7)(24,"div",8),e.EFF(25),e.k0s(),e.j41(26,"p",9),e.EFF(27),e.nI1(28,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,7,"DASHBOARD.stats.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,9,"DASHBOARD.stats.subtitle")," "),e.R7$(5),e.SpI(" ",l.stats().services," "),e.R7$(2),e.SpI(" ",e.bMT(16,11,"DASHBOARD.stats.services")," "),e.R7$(6),e.SpI(" ",e.bMT(22,13,"DASHBOARD.stats.sectors")," "),e.R7$(4),e.SpI(" ",l.stats().providers," "),e.R7$(2),e.SpI(" ",e.bMT(28,15,"DASHBOARD.stats.providers")," "))},dependencies:[s1.h,s1.D9],styles:['[_nghost-%COMP%]{display:block}.stats-section[_ngcontent-%COMP%]{background:#fff}.stats-shell[_ngcontent-%COMP%]{padding:80px 160px}.stats-inner[_ngcontent-%COMP%]{gap:24px}.stats-heading[_ngcontent-%COMP%]{padding-bottom:40px}.stats-title[_ngcontent-%COMP%]{max-width:735px;margin:0;font-family:Blinker,sans-serif;font-weight:700;font-size:56px;line-height:67px;letter-spacing:0;color:#111827}.stats-subtitle[_ngcontent-%COMP%]{width:100%;max-width:1120px;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:24px;line-height:29px;text-align:center;color:#324153}.stats-grid[_ngcontent-%COMP%]{gap:24px}.stats-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-height:182px;padding:24px 24px 16px;gap:8px;background:#f7f9fd;border-radius:16px;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease}.stats-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#2d58a7,#6f8fc9);opacity:0;transition:opacity .35s ease;z-index:0}.stats-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.stats-card[_ngcontent-%COMP%]:hover:before{opacity:1}.stats-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #2d58a740}.stats-number[_ngcontent-%COMP%]{width:100%;min-height:96px;display:flex;align-items:flex-end;font-family:Blinker,sans-serif;font-weight:700;font-size:80px;line-height:96px;letter-spacing:1px;color:#2d58a7;transition:color .3s ease}.stats-text[_ngcontent-%COMP%]{width:100%;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:16px;line-height:19px;color:#324153;transition:color .3s ease}.stats-card[_ngcontent-%COMP%]:hover .stats-number[_ngcontent-%COMP%], .stats-card[_ngcontent-%COMP%]:hover .stats-text[_ngcontent-%COMP%]{color:#fff}@media (max-width: 1279px){.stats-shell[_ngcontent-%COMP%]{padding:72px 64px}.stats-title[_ngcontent-%COMP%]{font-size:48px;line-height:58px;max-width:680px}.stats-subtitle[_ngcontent-%COMP%]{font-size:22px;line-height:28px}.stats-number[_ngcontent-%COMP%]{font-size:72px;line-height:88px;min-height:88px}}@media (max-width: 1023px){.stats-shell[_ngcontent-%COMP%]{padding:64px 32px}.stats-heading[_ngcontent-%COMP%]{padding-bottom:32px}.stats-title[_ngcontent-%COMP%]{max-width:100%;font-size:42px;line-height:50px}.stats-subtitle[_ngcontent-%COMP%]{font-size:20px;line-height:26px}.stats-card[_ngcontent-%COMP%]{min-height:170px}.stats-number[_ngcontent-%COMP%]{font-size:68px;line-height:80px;min-height:80px}}@media (max-width: 767px){.stats-shell[_ngcontent-%COMP%]{padding:56px 20px}.stats-inner[_ngcontent-%COMP%]{gap:20px}.stats-heading[_ngcontent-%COMP%]{gap:12px;padding-bottom:24px}.stats-title[_ngcontent-%COMP%]{font-size:34px;line-height:42px}.stats-subtitle[_ngcontent-%COMP%]{font-size:18px;line-height:24px}.stats-grid[_ngcontent-%COMP%]{gap:16px}.stats-card[_ngcontent-%COMP%]{min-height:auto;padding:20px 20px 16px;border-radius:14px}.stats-number[_ngcontent-%COMP%]{min-height:auto;font-size:56px;line-height:64px;letter-spacing:.5px}.stats-text[_ngcontent-%COMP%]{font-size:15px;line-height:20px}}'],changeDetection:0})}}return n})(),W30=(()=>{class n{constructor(){this.faShieldCheck=A2.R1H,this.faEye=A2.pS3,this.faPuzzle=A2._Xl,this.faClipboard=bC1}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-whatsdome"]],standalone:!0,features:[e.aNF],decls:60,vars:34,consts:[[1,"relative","overflow-x-hidden","overflow-y-hidden","font-[Blinker]"],[1,"absolute","inset-0","z-0","min-h-full"],[1,"ellipse","effect1"],[1,"ellipse","effect2"],[1,"ellipse","effect3"],[1,"ellipse","effect4"],["src","assets/logos/DOME_Icon_White.svg","alt","","aria-hidden","true",1,"dome-watermark","hidden","md:block"],[1,"blur-overlay"],[1,"relative","z-10","grid","min-h-[100svh]","w-full","place-items-center","py-10","md:py-0"],[1,"w-full","max-w-[1180px]","px-5","sm:px-8","md:px-10","lg:px-12"],[1,"grid","grid-cols-1","items-center","gap-10","md:gap-12","lg:grid-cols-12","lg:gap-10"],[1,"lg:col-span-5"],[1,"text-[clamp(2rem,1.2rem+2.6vw,3.5rem)]","font-extrabold","leading-[1.05]","tracking-[-0.03em]","text-slate-900"],[1,"mt-6","max-w-[420px]","text-[clamp(0.95rem,0.82rem+0.35vw,1.125rem)]","leading-[1.7]","text-slate-600","sm:mt-8"],[1,"lg:col-span-7"],[1,"flex","flex-col","gap-6","sm:gap-8","lg:gap-10"],[1,"hover-card","flex","items-center","gap-4","sm:gap-5","lg:gap-6"],[1,"icon-badge"],[3,"icon"],[1,"feature-title"],[1,"feature-desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"img",6)(7,"div",7),e.k0s(),e.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11)(12,"h1",12),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"p",13),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17),e.nrm(22,"fa-icon",18),e.k0s(),e.j41(23,"div")(24,"h3",19),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"p",20),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"div",16)(31,"div",17),e.nrm(32,"fa-icon",18),e.k0s(),e.j41(33,"div")(34,"h3",19),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"p",20),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div",16)(41,"div",17),e.nrm(42,"fa-icon",18),e.k0s(),e.j41(43,"div")(44,"h3",19),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"p",20),e.EFF(48),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"div",16)(51,"div",17),e.nrm(52,"fa-icon",18),e.k0s(),e.j41(53,"div")(54,"h3",19),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.j41(57,"p",20),e.EFF(58),e.nI1(59,"translate"),e.k0s()()()()()()()()()),2&t&&(e.R7$(13),e.SpI(" ",e.bMT(14,14,"DASHBOARD.whatsdome._title")," "),e.R7$(3),e.SpI(" ",e.bMT(17,16,"DASHBOARD.whatsdome._desc")," "),e.R7$(6),e.Y8G("icon",l.faShieldCheck),e.R7$(3),e.SpI(" ",e.bMT(26,18,"DASHBOARD.whatsdome.features.trusted.title")," "),e.R7$(3),e.SpI(" ",e.bMT(29,20,"DASHBOARD.whatsdome.features.trusted.desc")," "),e.R7$(4),e.Y8G("icon",l.faEye),e.R7$(3),e.SpI(" ",e.bMT(36,22,"DASHBOARD.whatsdome.features.transparency.title")," "),e.R7$(3),e.SpI(" ",e.bMT(39,24,"DASHBOARD.whatsdome.features.transparency.desc")," "),e.R7$(4),e.Y8G("icon",l.faPuzzle),e.R7$(3),e.SpI(" ",e.bMT(46,26,"DASHBOARD.whatsdome.features.interoperability.title")," "),e.R7$(3),e.SpI(" ",e.bMT(49,28,"DASHBOARD.whatsdome.features.interoperability.desc")," "),e.R7$(4),e.Y8G("icon",l.faClipboard),e.R7$(3),e.SpI(" ",e.bMT(56,30,"DASHBOARD.whatsdome.features.fairAccess.title")," "),e.R7$(3),e.SpI(" ",e.bMT(59,32,"DASHBOARD.whatsdome.features.fairAccess.desc")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:["[_nghost-%COMP%]{--primary-100: #b6caec}.ellipse[_ngcontent-%COMP%]{position:absolute;background:var(--primary-100);border-radius:9999px;transform:rotate(180deg)}.effect1[_ngcontent-%COMP%]{left:-7.76%;top:-1.15%;width:47.43%;height:85.08%}.effect2[_ngcontent-%COMP%]{left:84.37%;top:13.53%;width:31.25%;height:57.66%}.effect3[_ngcontent-%COMP%]{left:32.6%;top:0%;width:34.79%;height:63.67%}.effect4[_ngcontent-%COMP%]{left:13.33%;top:48.02%;width:24.68%;height:46.51%}.blur-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f208 25.7%,#fffafa12 94.73%);backdrop-filter:blur(187.5px);-webkit-backdrop-filter:blur(187.5px);transform:rotate(180deg)}.icon-badge[_ngcontent-%COMP%]{width:clamp(52px,4vw,60px);height:clamp(52px,4vw,60px);min-width:clamp(52px,4vw,60px);flex-shrink:0;aspect-ratio:1 / 1;border-radius:9999px;background:#fff;box-shadow:0 8px 24px #0f172a14;display:flex;align-items:center;justify-content:center;transition:all .35s ease}.icon-badge[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:clamp(22px,1.8vw,28px);color:#1f5bb5}.feature-title[_ngcontent-%COMP%]{font-weight:700;font-size:clamp(1rem,.85rem + .6vw,1.25rem);line-height:1.2;color:#0f172a}.feature-desc[_ngcontent-%COMP%]{margin-top:6px;font-size:clamp(.875rem,.8rem + .25vw,1rem);line-height:1.6;color:#111827}.dome-watermark[_ngcontent-%COMP%]{position:absolute;left:-157px;bottom:-138px;width:652px;height:auto;opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none;filter:blur(.2px);z-index:1}.hover-card[_ngcontent-%COMP%]{padding:clamp(16px,2vw,22px) clamp(18px,2.2vw,26px);border-radius:clamp(20px,2vw,28px);transition:background .35s ease,box-shadow .35s ease,transform .35s ease}.hover-card[_ngcontent-%COMP%]:hover{background:#ffffffbf;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transform:translateY(-4px);box-shadow:0 20px 40px #0f172a14,0 4px 10px #0f172a0d}.hover-card[_ngcontent-%COMP%]:hover .icon-badge[_ngcontent-%COMP%]{background:var(--primary-100);transform:scale(1.05)}@media (max-width: 1024px){.dome-watermark[_ngcontent-%COMP%]{width:340px;left:-95px;bottom:-120px;opacity:.8}}@media (max-width: 640px){.dome-watermark[_ngcontent-%COMP%]{width:260px;left:-80px;bottom:-95px;opacity:.8}.hover-card[_ngcontent-%COMP%]{align-items:flex-start;gap:14px}.feature-desc[_ngcontent-%COMP%]{margin-top:4px}}"],changeDetection:0})}}return n})();class cw{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}getStats(){return(0,e0.s)(this.http.get(`${cw.BASE_URL}/stats`))}static{this.\u0275fac=function(c){return new(c||cw)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:cw,factory:cw.\u0275fac,providedIn:"root"})}}function J30(n,a){if(1&n&&e.nrm(0,"app-dashboard-stats",1),2&n){const c=e.XpG(2);e.Y8G("stats",c.stats)}}function Q30(n,a){if(1&n&&e.nrm(0,"app-dashboard-services",2),2&n){const c=e.XpG(2);e.Y8G("productOfferings",c.productOfferings)}}function Z30(n,a){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-dashboard-hero"),e.DNE(2,J30,1,1,"app-dashboard-stats",1),e.nrm(3,"app-dashboard-whatsdome"),e.DNE(4,Q30,1,1,"app-dashboard-services",2),e.nrm(5,"app-dashboard-customers",3)(6,"app-dashboard-providers",4)(7,"app-dashboard-ecosystem"),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.stats?2:-1),e.R7$(2),e.vxM(4,c.productOfferings?4:-1),e.R7$(),e.Y8G("customerLink",c.customersLink),e.R7$(),e.Y8G("providersLink",c.providersLink)}}function K30(n,a){if(1&n&&(e.j41(0,"a",24),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",t.hasLongWord(c,20))("break-words",!t.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function e60(n,a){if(1&n&&e.DNE(0,K30,2,11,"a",23),2&n){const c=a.$index,t=e.XpG(2);e.vxM(0,t.currentIndexServ===c?0:-1)}}function c60(n,a){if(1&n&&(e.j41(0,"a",26),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",t.hasLongWord(c,20))("break-words",!t.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function t60(n,a){if(1&n&&e.DNE(0,c60,2,11,"a",25),2&n){const c=a.$index,t=e.XpG(2);e.vxM(0,t.currentIndexPub===c?0:-1)}}function n60(n,a){if(1&n){const c=e.RV6();e.j41(0,"section",21)(1,"form",27)(2,"div",28)(3,"div",29)(4,"input",30),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.filterSearch(l))}),e.k0s(),e.j41(6,"button",31),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.filterSearch(l))}),e.qSk(),e.j41(7,"svg",32),e.nrm(8,"path",33),e.k0s(),e.joV(),e.j41(9,"span",34),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()()()}if(2&n){const c=e.XpG(2);e.Y8G("ngClass",c.isFilterPanelShown?"sticky top-[118px] backdrop-blur-sm z-20":"sticky top-[72px] backdrop-blur-sm z-20"),e.R7$(4),e.FS9("placeholder",e.bMT(5,4,"DASHBOARD._search_ph")),e.Y8G("formControl",c.searchField),e.R7$(6),e.JRh(e.bMT(11,6,"DASHBOARD._search"))}}function l60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"section",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"h1",10),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",11),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToSearch())}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.joV(),e.j41(16,"div",15)(17,"div",16)(18,"div",17)(19,"p",18),e.EFF(20),e.k0s(),e.Z7z(21,e60,1,1,null,null,e.fX1),e.k0s(),e.j41(23,"div",17)(24,"p",19),e.EFF(25),e.k0s(),e.Z7z(26,t60,1,1,null,null,e.fX1),e.k0s(),e.j41(28,"a",20),e.qSk(),e.j41(29,"svg",13),e.nrm(30,"path",14),e.k0s(),e.EFF(31),e.nI1(32,"translate"),e.k0s()()()()()(),e.DNE(33,n60,12,8,"section",21),e.joV(),e.nrm(34,"bae-off-featured",22),e.k0s()}if(2&n){const c=e.XpG();e.R7$(2),e.xc7("background-image","url("+(null==c.currentTheme||null==c.currentTheme.assets?null:c.currentTheme.assets.jumboBgUrl)+")"),e.R7$(4),e.JRh(e.bMT(7,10,"DASHBOARD._header")),e.R7$(3),e.JRh(e.bMT(10,12,"DASHBOARD._subheader")),e.R7$(5),e.SpI(" ",e.bMT(15,14,"DASHBOARD._browse_serv")," "),e.R7$(6),e.SpI(" ",c.services.length," verified services"),e.R7$(),e.Dyx(c.services),e.R7$(4),e.SpI(" ",c.publishers.length," registered providers"),e.R7$(),e.Dyx(c.publishers),e.R7$(2),e.FS9("href",c.domeRegister,e.B4B),e.R7$(3),e.SpI(" ",e.bMT(32,16,"HEADER._register_here")," "),e.R7$(2),e.vxM(33,c.searchEnabled?33:-1)}}let s60=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.productService=c,this.domSanitizer=t,this.route=l,this.loginService=i,this.localStorage=u,this.eventMessage=C,this.cdr=b,this.router=T,this.statsService=W,this.themeService=u1,this.customersLink=g1.c.DOME_CUSTOMER_REGISTER_LINK,this.providersLink=g1.c.DOME_REGISTER_LINK,this.unSub=new S.B,this.MAX_CATEGORIES_PER_PRODUCT_OFFERING=3,this.providerThemeName=g1.c.providerThemeName,this.currentTheme=null,this.isFilterPanelShown=!1,this.searchField=new p.MJ,this.searchEnabled=g1.c.SEARCH_ENABLED,this.domeRegister=g1.c.DOME_REGISTER_LINK,this.services=[],this.publishers=[],this.currentIndexServ=0,this.currentIndexPub=0,this.delay=2e3}ngOnInit(){this.themeService.currentTheme$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{this.currentTheme=c}),this.getFirstThreeRandomProductOfferings(),this.checkRouteForToken(),this.getStats()}startTagTransition(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.rotationIntervalId=setInterval(()=>{this.services.length>0&&(this.currentIndexServ=(this.currentIndexServ+1)%this.services.length),this.publishers.length>0&&(this.currentIndexPub=(this.currentIndexPub+1)%this.publishers.length)},this.delay)}getStats(){this.statsService.getStats().then(c=>{this.services=c?.services||[],this.publishers=c?.organizations||[],this.stats={services:this.services.length,providers:this.publishers.length},this.startTagTransition()})}checkRouteForToken(){if(null!=this.route.snapshot.queryParamMap.get("token"))this.loginService.getLogin(this.route.snapshot.queryParamMap.get("token")).then(c=>{const t={id:c.id,user:c.username,email:c.email,token:c.accessToken,expire:c.expire,partyId:c.partyId,roles:c.roles,organizations:c.organizations,logged_as:c.id};null!=t.organizations&&t.organizations.length>0&&(t.logged_as=t.organizations[0].id),this.localStorage.addLoginInfo(t),this.eventMessage.emitLogin(t),D2()}),this.router.navigate(["/dashboard"]);else{const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&(console.log(c),console.log("moment"),console.log(c.expire),console.log($2()().unix()),console.log(c.expire-$2()().unix()),console.log(c.expire-$2()().unix()<=5))}this.cdr.detectChanges(),console.log("----")}getFirstThreeRandomProductOfferings(){this.productService.getAllProducts().pipe((0,P2.T)(c=>c.map(t=>({...t,description:t.description?this.domSanitizer.sanitize(e.WPN.HTML,t.description)??void 0:t.description}))),(0,P2.T)(c=>{const t=new Set,l=Math.min(15,c.length);for(;t.sizec[i])}),(0,O1.Q)(this.unSub)).subscribe(c=>{this.productService.getProductsDetails(c).then(t=>{this.productOfferings=t.filter(l=>l.attachment?.some(i=>"Picture"===i.attachmentType||"Profile Picture"===i.name))})})}goToSearch(){this.router.navigate(["/search"])}filterSearch(c){c.preventDefault(),this.router.navigate(""!=this.searchField.value&&null!=this.searchField.value?["/search",{keywords:this.searchField.value}]:["/search"])}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}ngOnDestroy(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.unSub.next(),this.unSub.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(m.up),e.rXU(E2.nX),e.rXU(kn),e.rXU(z2.s),e.rXU(U2),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(cw),e.rXU(cF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard"]],standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"page"],[3,"stats"],[3,"productOfferings"],[3,"customerLink"],[3,"providersLink"],[1,"dark:bg-tertiary-50"],["id","jumbo",1,"w-full"],[1,"pt-8","pb-8","px-4","w-full","text-left","lg:pt-16","lg:px-12","bg-cover","bg-right-bottom","items-center","justify-between"],[1,"flex","flex-col","md:flex-row","justify-between","px-4","mx-auto","max-w-screen-xl"],["data-cy","mainText"],[1,"mb-4","text-left","text-4xl","font-extrabold","tracking-tight","md:text-5xl","lg:text-6xl","text-secondary-50"],[1,"text-left","mb-8","text-lg","font-normal","lg:text-xl","text-secondary-50"],["data-cy","browseServicesDashboard","id","browseServices",1,"inline-flex","justify-left","items-center","border","border-1","border-white","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","hover:bg-primary-50",3,"click"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"mr-2","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"mt-4","md:mt-0","bg-secondary-300","bg-opacity-50","rounded-lg","w-full","md:w-1/4","h-[300px]"],[1,"w-full","p-8","rounded-lg","shadow-lg","h-[300px]","flex","flex-col","justify-between"],[1,"flex","flex-col"],["data-cy","vServices",1,"mb-2","text-left","text-lg","font-normal","lg:text-xl","text-secondary-50","h-fit"],["data-cy","rPublishers",1,"mb-2","text-left","text-lg","font-normal","lg:text-xl","text-secondary-50"],["data-cy","publishOff","id","registerHere","target","_blank",1,"flex","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"href"],[1,"content","mx-auto","pt-8","pb-5","px-4","mx-auto","max-w-screen-xl","lg:pb-5","lg:pt-16","w-full","flex","items-center",3,"ngClass"],["data-cy","offFeatured"],["data-cy","nameServices",1,"text-md","text-wrap","line-clamp-2","mb-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in",3,"display","webkitBoxOrient","webkitLineClamp","break-all","break-words"],["data-cy","nameServices",1,"text-md","text-wrap","line-clamp-2","mb-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in"],["data-cy","nameOrgs",1,"text-md","text-wrap","line-clamp-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in",3,"display","webkitBoxOrient","webkitLineClamp","break-all","break-words"],["data-cy","nameOrgs",1,"text-md","text-wrap","line-clamp-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in"],[1,"mx-5","w-full"],[1,"flex"],[1,"relative","w-full"],["type","search","id","dashboardSearchBar","required","",1,"block","p-2.5","w-full","z-20","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-secondary-500","dark:border-s-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:border-blue-500",3,"keydown.enter","formControl","placeholder"],["type","submit","id","dashboardSearchButton",1,"absolute","top-0","end-0","p-2.5","text-sm","font-medium","h-full","text-white","bg-primary-100","rounded-e-lg","border","border-secondary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","dark:border-secondary-400",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"],[1,"sr-only"]],template:function(t,l){1&t&&e.DNE(0,Z30,8,4,"div",0)(1,l60,35,18),2&t&&e.vxM(0,"DOME"===l.providerThemeName?0:1)},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.me,p.BC,p.cb,p.YS,p.l_,z20,_.YU,W30,P30,X30,q30,E30,V30,R30],styles:["[_nghost-%COMP%]{display:block;--dome-dashboard-blue-900: #0a1a45;--dome-dashboard-blue-700: #153a8a;--dome-dashboard-blue-600: #1c4dd8;--dome-dashboard-blue-500: #2a63ff;--dome-dashboard-blue-100: #e8efff;--dome-dashboard-gray-900: #1a1a1a;--dome-dashboard-gray-700: #4a4f5c;--dome-dashboard-gray-500: #7c8191;--dome-dashboard-gray-300: #cfd5e5;--dome-dashboard-gray-200: #e3e6ef;--dome-dashboard-gray-100: #f6f8fc;--dome-dashboard-radius-card: 14px;--dome-dashboard-radius-section: 18px;--dome-dashboard-max-w: 1240px;--dome-dashboard-shadow-soft: 0 4px 20px rgba(0, 0, 0, .04)}.page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.page[_ngcontent-%COMP%]{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--dome-dashboard-gray-100);color:var(--dome-dashboard-gray-900);line-height:1.6}.page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:600;letter-spacing:-.02em}.page[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%}.page[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{padding:5rem 0}.section-inner[_ngcontent-%COMP%]{max-width:var(--dome-dashboard-max-w);margin:0 auto;padding:0 1.5rem}.section-header[_ngcontent-%COMP%]{text-align:center;max-width:760px;margin:0 auto 3rem}.section-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.8rem;font-size:2rem}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--dome-dashboard-gray-700);font-size:1.05rem}.hero[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--dome-dashboard-blue-900),var(--dome-dashboard-blue-600));padding:6rem 0;color:#fff}.hero-inner[_ngcontent-%COMP%]{max-width:var(--dome-dashboard-max-w);margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1.4fr 1fr;gap:3rem;align-items:center}.hero-eyebrow[_ngcontent-%COMP%]{text-transform:uppercase;font-size:.75rem;opacity:.85;letter-spacing:.15em;margin-bottom:1rem}.hero-title[_ngcontent-%COMP%]{font-size:clamp(2.4rem,5vw,3.2rem);margin:0 0 1.2rem;line-height:1.2}.hero-subtitle[_ngcontent-%COMP%]{font-size:1.15rem;max-width:560px;opacity:.95;margin-bottom:1.8rem}.hero-ctas[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.hero-aside[_ngcontent-%COMP%]{background:#ffffff1a;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:1.5rem;border-radius:var(--dome-dashboard-radius-card);border:1px solid rgba(255,255,255,.2)}.hero-aside[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;font-size:1.15rem}.hero-aside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:1.1rem;margin-bottom:1rem}.dd-btn-outline-inverse[_ngcontent-%COMP%]{border-color:#fff;color:#fff}.dd-btn-outline-inverse[_ngcontent-%COMP%]:hover{background:#ffffff1f}.dd-mt-1r[_ngcontent-%COMP%]{margin-top:1rem}.dd-mt-15r[_ngcontent-%COMP%]{margin-top:1.5rem}.dd-mt-auto[_ngcontent-%COMP%]{margin-top:auto}.dd-bg-white[_ngcontent-%COMP%]{background:#fff}.dd-hero-browse-link[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}.dd-hero-browse-link[_ngcontent-%COMP%]:hover{opacity:.9}.card-grid-4[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:1.7rem}.card-grid-2[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:1.7rem}.card[_ngcontent-%COMP%]{background:#fff;border-radius:var(--dome-dashboard-radius-card);padding:1.6rem;border:1px solid var(--dome-dashboard-gray-200);box-shadow:var(--dome-dashboard-shadow-soft);transition:.2s ease}.card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 6px 26px #0000000f}.card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;font-size:1.1rem;margin-bottom:.4rem;color:var(--dome-dashboard-blue-700)}.card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--dome-dashboard-gray-700);font-size:.95rem;margin:0}.dd-marketplace-search[_ngcontent-%COMP%]{width:100%;padding:.9rem 1.2rem;border-radius:10px;border:1px solid var(--dome-dashboard-gray-300);font-size:1rem}.service-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:2rem}.service-card[_ngcontent-%COMP%]{border-radius:var(--dome-dashboard-radius-card);border:1px solid var(--dome-dashboard-gray-200);background:#fff;padding:1.7rem;display:flex;flex-direction:column;gap:.9rem;box-shadow:var(--dome-dashboard-shadow-soft);transition:.2s}.service-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 26px #00000012}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--dome-dashboard-blue-100);color:var(--dome-dashboard-blue-600);padding:.2rem .6rem;border-radius:6px;font-size:.85rem;font-weight:600}.tag-list[_ngcontent-%COMP%]{display:flex;gap:.4rem;flex-wrap:wrap}.tag[_ngcontent-%COMP%]{background:var(--dome-dashboard-gray-100);border:1px solid var(--dome-dashboard-gray-200);border-radius:6px;padding:.25rem .6rem;font-size:.8rem;color:var(--dome-dashboard-gray-700)}.dd-marketplace-catalog-link[_ngcontent-%COMP%]{color:var(--dome-dashboard-blue-700);text-decoration:underline}.dd-marketplace-catalog-link[_ngcontent-%COMP%]:hover{color:var(--dome-dashboard-blue-600)}.split-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:4rem}.column-title[_ngcontent-%COMP%]{font-size:2.2rem;color:var(--dome-dashboard-blue-900);margin-bottom:2rem;text-align:center;border-bottom:2px solid var(--dome-dashboard-blue-600);display:inline-block;width:100%;padding-bottom:.5rem}.sub-section-title[_ngcontent-%COMP%]{margin:0 0 1rem;font-size:1.25rem}.why-use[_ngcontent-%COMP%]{margin-bottom:2.5rem}.how-works[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:360px}.how-works[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:0;padding-left:1.2rem}.how-works[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.9rem;color:var(--dome-dashboard-gray-700)}.roadmap-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;color:var(--dome-dashboard-blue-600);margin-bottom:.3rem;letter-spacing:.05em}.final-cta[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1.5rem}.dd-final-cta-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}@media (max-width: 992px){.hero-inner[_ngcontent-%COMP%]{grid-template-columns:1fr}.split-container[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:3rem}.how-works[_ngcontent-%COMP%]{min-height:auto}.service-grid[_ngcontent-%COMP%], .roadmap[_ngcontent-%COMP%], .card-grid-4[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 700px){.service-grid[_ngcontent-%COMP%], .roadmap[_ngcontent-%COMP%], .card-grid-4[_ngcontent-%COMP%], .card-grid-2[_ngcontent-%COMP%]{grid-template-columns:1fr}}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;border-radius:8px;font-weight:500;font-size:.95rem;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap}.btn-primary[_ngcontent-%COMP%]{background:var(--dome-dashboard-blue-600);color:#fff;border:1px solid var(--dome-dashboard-blue-600)}.btn-primary[_ngcontent-%COMP%]:hover{background:var(--dome-dashboard-blue-700);border-color:var(--dome-dashboard-blue-700);box-shadow:0 4px 14px #1c4dd840}.btn-outline[_ngcontent-%COMP%]{background:transparent;color:var(--dome-dashboard-blue-700);border:1px solid var(--dome-dashboard-blue-600)}.btn-outline[_ngcontent-%COMP%]:hover{background:var(--dome-dashboard-blue-100);color:var(--dome-dashboard-blue-700);box-shadow:0 3px 10px #1c4dd826}.btn-outline-inverse[_ngcontent-%COMP%]{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.9)}.btn-outline-inverse[_ngcontent-%COMP%]:hover{background:#ffffff26;color:#fff;border-color:#fff}.roadmap[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}.roadmap-item[_ngcontent-%COMP%]{background:#fff;padding:1.8rem;border-radius:var(--dome-dashboard-radius-card);border:1px solid var(--dome-dashboard-gray-200);box-shadow:var(--dome-dashboard-shadow-soft)}.roadmap-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;color:var(--dome-dashboard-blue-600);margin-bottom:.35rem;letter-spacing:.05em}.roadmap-item[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 .6rem;color:var(--dome-dashboard-gray-900)}.roadmap-item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--dome-dashboard-gray-700)}.final-cta[_ngcontent-%COMP%]{background:var(--dome-dashboard-blue-900);color:#fff;text-align:center;padding:4rem 0}.final-cta[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;margin:0 0 1.5rem;padding:0 1.5rem}.final-cta-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;padding:0 1.5rem}@media (max-width: 992px){.roadmap[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 700px){.roadmap[_ngcontent-%COMP%]{grid-template-columns:1fr}}.text-truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:6;line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.disc[_ngcontent-%COMP%]{list-style-type:disc}.description-wrapper[_ngcontent-%COMP%]{height:10rem}.c-color[_ngcontent-%COMP%]{color:#324153!important}"]})}}return n})();const uf1=(n,a)=>({"break-all":n,"break-words":a});function a60(n,a){if(1&n&&(e.j41(0,"a",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.Mz_("href","mailto: ",c.characteristic.emailAddress,"",e.B4B),e.R7$(),e.SpI(" ",c.characteristic.emailAddress," ")}}function o60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.LHq(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince," ")}}function i60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function r60(n,a){if(1&n&&(e.j41(0,"tr",34)(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",36),e.EFF(4),e.k0s(),e.j41(5,"td",37),e.DNE(6,a60,2,3,"a",38)(7,o60,1,4)(8,i60,1,1),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.SpI(" ",(null==c.characteristic?null:c.characteristic.contactType)||c.mediumType," "),e.R7$(2),e.vxM(6,"Email"==c.mediumType?6:"PostalAddress"==c.mediumType?7:8)}}function d60(n,a){1&n&&(e.j41(0,"div",35)(1,"div",39),e.qSk(),e.j41(2,"svg",40),e.nrm(3,"path",41),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}let f60=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.cdr=c,this.route=t,this.router=l,this.elementRef=i,this.localStorage=u,this.eventMessage=C,this.accService=b,this.location=T,this.logo="https://placehold.co/600x400/svg",this.description=void 0}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),console.log("--- Details ID:"),console.log(this.id),this.accService.getOrgInfo(this.id).then(c=>{this.orgInfo=c,console.log(this.orgInfo);for(let t=0;tl.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2),e.rXU(x0.O),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-organization-details"]],decls:57,vars:43,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","lg:grid","lg:grid-cols-60/40"],[1,"flex","lg:hidden","overflow-hidden","justify-center","items-center","bg-white","rounded-t-lg","w-full"],["alt","Organization profile image",1,"rounded-t-lg","object-contain","dark:text-white",3,"src"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white","line-clamp-3","text-wrap","break-words",3,"ngClass"],[1,"pt-2","line-clamp-5","h-fit"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline","line-clamp-2","text-wrap","break-words",3,"href","ngClass"],[1,"hidden","lg:block","overflow-hidden","rounded-r-lg"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Organization profile image",1,"object-contain","max-h-[300px]","z-10","p-8","dark:text-white",3,"src"],[1,"w-full","h-full","bg-secondary-50","rounded-lg","p-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-b"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-4","lg:p-12"],[1,"text-2xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg","bg-gray-200","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200","border","dark:border-gray-700","border-gray-300"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white","border-b","border-gray-300","dark:border-gray-700"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","border-gray-300","dark:border-gray-700"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"href"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"button",5),e.bIt("click",function(){return l.back()}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",13)(18,"div",14),e.nrm(19,"img",15),e.k0s(),e.j41(20,"div",16)(21,"div",17)(22,"h5",18),e.EFF(23),e.k0s()(),e.j41(24,"div",19)(25,"a",20),e.EFF(26),e.k0s()()(),e.j41(27,"div",21)(28,"div",22),e.nrm(29,"div",23)(30,"img",24),e.k0s()()(),e.j41(31,"div",25)(32,"div",26)(33,"h2",27),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"markdown",28),e.j41(37,"h2",27),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"div",29)(41,"table",30)(42,"thead",31)(43,"tr")(44,"th",32),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"th",32),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"th",33),e.EFF(51),e.nI1(52,"translate"),e.k0s()()(),e.j41(53,"tbody"),e.Z7z(54,r60,9,3,"tr",34,e.fX1,!1,d60,7,3,"div",35),e.k0s()()()()()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,20,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,22,"ORGANIZATION._details")),e.R7$(4),e.FS9("src",l.logo,e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(34,uf1,l.hasLongWord(null==l.orgInfo?null:l.orgInfo.tradingName,20),!l.hasLongWord(null==l.orgInfo?null:l.orgInfo.tradingName,20))),e.R7$(),e.JRh(null==l.orgInfo?null:l.orgInfo.tradingName),e.R7$(2),e.FS9("href",l.website,e.B4B),e.Y8G("ngClass",e.l_i(37,uf1,l.hasLongWord(l.website,20),!l.hasLongWord(l.website,20))),e.R7$(),e.JRh(l.website),e.R7$(3),e.muq("background-image: url(",l.logo,");filter: blur(20px);"),e.R7$(),e.FS9("src",l.logo,e.B4B),e.R7$(4),e.JRh(e.bMT(35,24,"ORGANIZATION._details")),e.R7$(2),e.Y8G("ngClass",e.l_i(40,uf1,l.hasLongWord(l.description,20),!l.hasLongWord(l.description,20)))("data",l.description),e.R7$(2),e.JRh(e.bMT(39,26,"PROFILE._contact_info")),e.R7$(7),e.SpI(" ",e.bMT(46,28,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(49,30,"PROFILE._contact_title")," "),e.R7$(3),e.SpI(" ",e.bMT(52,32,"PROFILE._info")," "),e.R7$(3),e.Dyx(null==l.orgInfo?null:l.orgInfo.contactMedium))},dependencies:[_.YU,N0,s1.D9]})}}return n})();const R5=[{id:1,name:"SecNumCloud",mandatory:!1,domesupported:!0},{id:2,name:"BSI-C5",mandatory:!1,domesupported:!0},{id:3,name:"CISPE",mandatory:!1,domesupported:!0},{id:4,name:"EU Cloud CoC",mandatory:!1,domesupported:!0},{id:5,name:"CSA CCM",mandatory:!1,domesupported:!0},{id:6,name:"ISO/IEC 27001",mandatory:!1,domesupported:!0},{id:7,name:"TISAX",mandatory:!1,domesupported:!0},{id:8,name:"SWIPO",mandatory:!1,domesupported:!0}],u60=(n,a)=>({"break-all":n,"break-words":a});function m60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"label",4)(2,"input",5),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.k0s(),e.nrm(3,"div",6),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(2),e.Y8G("formControl",c.control)}}function p60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"input",8),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.k0s(),e.j41(2,"span",9),e.EFF(3),e.k0s()()}if(2&n){let c,t;const l=e.XpG(3);e.R7$(),e.Y8G("min",null==(c=l.getSliderRange())?null:c.min)("max",null==(t=l.getSliderRange())?null:t.max)("formControl",l.control),e.R7$(2),e.Lme("",l.control.value," ",l.getUnit(),"")}}function h60(n,a){if(1&n&&(e.j41(0,"option",12),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(4);e.Y8G("ngValue",c.value),e.R7$(),e.Lme(" ",c.value," ",t.getUnit()," ")}}function g60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"select",10),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.DNE(2,h60,2,3,"option",11),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("formControl",c.control),e.R7$(),e.Y8G("ngForOf",c.characteristic.productSpecCharacteristicValue)}}function _60(n,a){if(1&n&&e.DNE(0,m60,4,1,"div",3)(1,p60,4,5)(2,g60,3,2),2&n){const c=e.XpG(2);e.vxM(0,c.isBoolean()?0:c.isSlider()?1:2)}}function L60(n,a){if(1&n&&(e.j41(0,"div",0)(1,"h4",1),e.EFF(2),e.k0s(),e.nrm(3,"markdown",2),e.k0s(),e.DNE(4,_60,3,1)),2&n){const c=e.XpG();e.R7$(2),e.JRh(c.characteristic.name),e.R7$(),e.Y8G("ngClass",e.l_i(4,u60,c.hasLongWord(c.characteristic.description,20),!c.hasLongWord(c.characteristic.description,20)))("data",c.characteristic.description),e.R7$(),e.vxM(4,c.isDisabled?-1:4)}}function C60(n,a){if(1&n&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"span",15),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(2),e.Lme("",c.control.value," ",c.getUnit(),"")}}let GN1=(()=>{class n{constructor(){this.readOnly=!1,this.isDisabled=!1,this.canBeDisabled=!1,this.valueChange=new e.bkB,this.control=new p.MJ}ngOnInit(){const c=this.characteristic.productSpecCharacteristicValue?.find(l=>l.isDefault),t=c?.value??c?.valueFrom;console.log("defaultValue: ",t),void 0!==t&&(this.control=new p.MJ({value:t,disabled:this.readOnly}))}onControlCommit(){this.readOnly||this.valueChange.emit({characteristicId:this.characteristic.id,selectedValue:this.control.value})}isSlider(){return this.characteristic.productSpecCharacteristicValue?.some(t=>void 0!==t.valueFrom&&void 0!==t.valueTo)||!1}isBoolean(){const c=this.characteristic.productSpecCharacteristicValue;return!(!c||0===c.length)&&c.every(t=>"boolean"==typeof t.value)}getSliderRange(){const c=this.characteristic.productSpecCharacteristicValue?.find(t=>void 0!==t.valueFrom&&void 0!==t.valueTo);return c?{min:c.valueFrom,max:c.valueTo}:null}getUnit(){return this.characteristic.productSpecCharacteristicValue?.[0].unitOfMeasure}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-characteristic"]],inputs:{characteristic:"characteristic",readOnly:"readOnly",isDisabled:"isDisabled",canBeDisabled:"canBeDisabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"my-2"],[1,"text-lg","font-semibold","text-primary-100","dark:text-gray-300"],[1,"text-gray-500","dark:text-gray-400","text-wrap","break-words",3,"ngClass","data"],[1,"flex","items-center"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox",1,"sr-only","peer",3,"change","formControl"],[1,"relative","w-9","h-5","bg-gray-300","border","border-gray-400","peer-focus:outline-none","peer-focus:ring-4","peer-focus:ring-blue-300","dark:peer-focus:ring-blue-800","rounded-full","peer","dark:bg-gray-600","dark:border-gray-500","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-[1px]","after:start-[1px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-4","after:w-4","after:transition-all","dark:after:border-gray-500","peer-checked:bg-blue-600","dark:peer-checked:bg-blue-600"],[1,"flex","items-center","space-x-2"],["type","range",1,"w-full","h-2","bg-gray-300","border","border-gray-300","rounded-lg","appearance-none","cursor-pointer","dark:bg-gray-600","dark:border-gray-500",3,"change","min","max","formControl"],[1,"min-w-24","flex","justify-center","text-sm","text-gray-600","dark:text-gray-400"],[1,"block","w-full","px-3","py-2","border","border-gray-300","rounded-lg","text-sm","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-300","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-600",3,"change","formControl"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"grid","grid-cols-2","items-center"],[1,"text-base","font-semibold","text-primary-100","dark:text-gray-400","flex","justify-between","content-center"],[1,"pl-4","min-w-24","flex","text-sm","text-gray-600","dark:text-gray-400"]],template:function(t,l){1&t&&e.DNE(0,L60,5,7)(1,C60,5,3),2&t&&e.vxM(0,l.readOnly?1:0)},dependencies:[_.Sq,_.YU,p.X1,p.xH,p.y7,p.me,p.MR,p.Zm,p.wz,p.BC,p.l_,N0]})}}return n})(),z60=(()=>{class n{constructor(c){this.api=c,this.usagePriceComponentsCache=new Map}getAppliedMetrics(c,t){var l=this;return(0,C1.A)(function*(){const i=yield l.getUsagePriceComponents(c);if(0===i.length)return[];const u=new Map;for(const C of t||[])C?.id&&u.set(C.id,C.value);return i.filter(C=>l.isPriceComponentApplied(C,u)).map(C=>({priceId:C?.id,usageSpecId:C?.usageSpecId,unitOfMeasure:l.getMetricName(C?.unitOfMeasure),value:0}))})()}clearCache(c){c?this.usagePriceComponentsCache.delete(c):this.usagePriceComponentsCache.clear()}getUsagePriceComponents(c){var t=this;return(0,C1.A)(function*(){if(!c)return[];const l=c?.id?String(c.id):"";if(l&&t.usagePriceComponentsCache.has(l))return t.usagePriceComponentsCache.get(l)||[];const u=(yield t.resolvePriceComponents(c)).filter(C=>t.isUsagePriceComponent(C));return l&&t.usagePriceComponentsCache.set(l,u),u})()}resolvePriceComponents(c){var t=this;return(0,C1.A)(function*(){if(!c)return[];const l=Array.isArray(c?.bundledPopRelationship)?c.bundledPopRelationship:[];if(0===l.length)return[c];const i=[];for(const u of l)if(u?.id)try{const C=yield t.api.getOfferingPrice(u.id);C&&i.push(C)}catch(C){console.error("Error loading price component for applied metrics evaluation",C)}return i})()}isUsagePriceComponent(c){return"usage"===String(c?.priceType||"").toLowerCase()&&!!c?.usageSpecId&&!!this.getMetricName(c?.unitOfMeasure)}isPriceComponentApplied(c,t){const l=Array.isArray(c?.prodSpecCharValueUse)?c.prodSpecCharValueUse:[];return 0===l.length||l.every(i=>this.matchesCharacteristicUse(i,t))}matchesCharacteristicUse(c,t){const l=c?.id;if(!l||!t.has(l))return!1;const i=t.get(l),u=Array.isArray(c?.productSpecCharacteristicValue)?c.productSpecCharacteristicValue:[];return 0===u.length||u.some(C=>this.matchesRequiredValue(i,C))}matchesRequiredValue(c,t){if(void 0!==t?.valueFrom||void 0!==t?.valueTo){const u=Number(c);if(Number.isNaN(u))return!1;const C=void 0!==t?.valueFrom,b=void 0!==t?.valueTo;return!(C&&uNumber(t.valueTo))}if(void 0===t?.value)return!1;const i=t.value;if("boolean"==typeof i){const u=this.normalizeBoolean(c);return null!==u&&u===i}if("number"==typeof i){const u=Number(c);return!Number.isNaN(u)&&u===i}return String(c)===String(i)}normalizeBoolean(c){if("boolean"==typeof c)return c;if("string"==typeof c){const t=c.toLowerCase();if("true"===t)return!0;if("false"===t)return!1}return null}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(o0.F))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const M60=(n,a)=>a.name,cD=(n,a)=>a.id,x60=(n,a)=>a.unitOfMeasure,eH=(n,a)=>({"break-all":n,"break-words":a}),b60=(n,a)=>({"border-primary-100 text-wrap border":n,"border-transparent outline outline-2 outline-teal-500 bg-teal-50 dark:bg-teal-900/40 ring-1 ring-teal-500":a}),y60=()=>[];function F60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.k0s()}}function v60(n,a){if(1&n&&(e.j41(0,"div",20)(1,"span",21),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.SpI(" ",c.value," ")}}function k60(n,a){if(1&n&&(e.j41(0,"div",10)(1,"h6",18),e.EFF(2,"Current characteristics:"),e.k0s(),e.j41(3,"div",19),e.Z7z(4,v60,4,2,"div",20,M60),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.Dyx(c.existingCharacteristics)}}function w60(n,a){1&n&&(e.qSk(),e.j41(0,"svg",27),e.nrm(1,"path",30),e.k0s())}function S60(n,a){1&n&&(e.j41(0,"span",28),e.EFF(1,"PROFILE"),e.k0s())}function N60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.onPricePlanSelected(l))}),e.j41(1,"div",25)(2,"span",26),e.DNE(3,w60,2,0,":svg:svg",27),e.EFF(4),e.k0s(),e.DNE(5,S60,2,0,"span",28),e.k0s(),e.nrm(6,"markdown",29),e.k0s()}if(2&n){let c,t;const l=a.$implicit,i=e.XpG(2);e.Y8G("ngClass",e.l_i(7,b60,l.id!==(null==(c=i.form.get("selectedPricePlan"))||null==c.value?null:c.value.id),l.id===(null==(c=i.form.get("selectedPricePlan"))||null==c.value?null:c.value.id))),e.BMQ("data-cy","pricePlan-"+l.name),e.R7$(3),e.vxM(3,l.id===(null==(t=i.form.get("selectedPricePlan"))||null==t.value?null:t.value.id)?3:-1),e.R7$(),e.SpI(" ",l.name," "),e.R7$(),e.vxM(5,l.prodSpecCharValueUse?5:-1),e.R7$(),e.Y8G("ngClass",e.l_i(10,eH,i.hasLongWord(l.description,20),!i.hasLongWord(l.description,20)))("data",l.description)}}function E60(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"The offering is free"),e.k0s())}function D60(n,a){if(1&n&&(e.j41(0,"p",22),e.EFF(1),e.j41(2,"b"),e.EFF(3),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"p",22),e.EFF(6,"Please, select the price plan:"),e.k0s(),e.Z7z(7,N60,7,13,"div",23,cD,!1,E60,2,0,"div")),2&n){const c=e.XpG();e.R7$(),e.SpI("","modify"===c.mode?"Select the new price model and characteristics for":"In order to add"," "),e.R7$(2),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(),e.JRh("modify"===c.mode?".":" to your cart you have to select the price model and the set of characteristics you prefer."),e.R7$(3),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice)}}function T60(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-characteristic",34),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.Y8G("characteristic",c)("readOnly",!0)}}function R60(n,a){if(1&n&&e.DNE(0,T60,1,2,"app-characteristic",33),2&n){const c=a.$implicit;e.vxM(0,null!=c.name&&c.name.endsWith("- enabled")?-1:0)}}function A60(n,a){if(1&n&&(e.j41(0,"p",31),e.EFF(1,"This price plan has an associate profile. That means that the following characteristics are already set for you."),e.k0s(),e.j41(2,"div",32),e.Z7z(3,R60,1,1,null,null,cD),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Dyx(c.filteredCharacteristics)}}function I60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39)(1,"div",40)(2,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function P60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Boolean toggles"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,I60,3,4,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.booleanCharacteristics)}}function j60(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",42)(1,"input",43),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(4);return e.Njj(u.onToggleChange(l,i.name))}),e.k0s(),e.nrm(2,"div",44),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("checked",!t.disabledCharacteristics.includes(c.id))}}function $60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39),e.DNE(1,j60,3,1,"label",42),e.j41(2,"div",40)(3,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.vxM(1,t.canBeDisabledChars.includes(c.id)&&!t.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function O60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Choices"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,$60,4,5,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.choiceCharacteristics)}}function B60(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",42)(1,"input",43),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(4);return e.Njj(u.onToggleChange(l,i.name))}),e.k0s(),e.nrm(2,"div",44),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("checked",!t.disabledCharacteristics.includes(c.id))}}function V60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39),e.DNE(1,B60,3,1,"label",42),e.j41(2,"div",40)(3,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.vxM(1,t.canBeDisabledChars.includes(c.id)&&!t.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function U60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Ranges"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,V60,4,5,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.rangeCharacteristics)}}function G60(n,a){if(1&n&&(e.j41(0,"p",31),e.EFF(1,"Please select the characteristics you need to suit this offer to you."),e.k0s(),e.j41(2,"div",35),e.DNE(3,P60,6,0,"div",36)(4,O60,6,0,"div",36)(5,U60,6,0,"div",36),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.vxM(3,c.booleanCharacteristics.length>0?3:-1),e.R7$(),e.vxM(4,c.choiceCharacteristics.length>0?4:-1),e.R7$(),e.vxM(5,c.rangeCharacteristics.length>0?5:-1)}}function H60(n,a){if(1&n&&e.DNE(0,A60,5,0)(1,G60,6,3),2&n){const c=e.XpG();e.vxM(0,c.hasProfile?0:c.filteredCharacteristics.length>0?1:-1)}}function Y60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",47)(1,"h5",48),e.EFF(2),e.k0s(),e.j41(3,"input",49),e.bIt("input",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2);return e.Njj(u.onMetricChange(l,i))}),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,eH,t.hasLongWord(c.unitOfMeasure,20),!t.hasLongWord(c.unitOfMeasure,20))),e.R7$(),e.JRh(c.unitOfMeasure),e.R7$(),e.FS9("placeholder",c.value)}}function q60(n,a){if(1&n&&(e.j41(0,"p",45),e.EFF(1,"You can change the metric values to simulate final prices"),e.k0s(),e.j41(2,"div",46),e.Z7z(3,Y60,4,6,"div",47,x60),e.k0s()),2&n){const c=e.XpG();e.R7$(3),e.Dyx(c.metrics||e.lJ4(0,y60))}}function X60(n,a){if(1&n&&(e.j41(0,"div",11)(1,"h5",50),e.EFF(2,"Terms and conditions:"),e.k0s(),e.j41(3,"div",51),e.nrm(4,"markdown",52),e.k0s(),e.j41(5,"div",53),e.nrm(6,"input",54),e.j41(7,"label",55),e.EFF(8,"I accept the terms and conditions"),e.k0s()()()),2&n){const c=e.XpG();e.R7$(4),e.Y8G("ngClass",e.l_i(2,eH,c.hasLongWord(c.tsAndCs.description,20),!c.hasLongWord(c.tsAndCs.description,20)))("data",c.tsAndCs.description)}}function W60(n,a){1&n&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",56),e.nrm(2,"path",57)(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading price..."),e.k0s()())}function J60(n,a){1&n&&(e.j41(0,"div",59)(1,"p"),e.EFF(2,"This offer includes a custom price plan. This implies that the service price plan has been created externally to the DOME Marketplace and is entirely determined by the service provider. The final price will be calculated after the product order is submitted to the service provider."),e.k0s()())}function Q60(n,a){1&n&&(e.j41(0,"div",59)(1,"p"),e.EFF(2,"This offer is free"),e.k0s()())}function Z60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function K60(n,a){if(1&n&&(e.j41(0,"div",60)(1,"span",61),e.EFF(2),e.k0s(),e.j41(3,"span",62),e.EFF(4),e.DNE(5,Z60,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.Lme("",t.formatPrice(c.price.taxIncludedAmount.value)," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(5,t.hasKey(c,"recurringChargePeriod")?5:-1)}}function e80(n,a){if(1&n&&(e.j41(0,"div",59),e.Z7z(1,K60,6,4,"div",60,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.price)}}function c80(n,a){1&n&&(e.j41(0,"p",63),e.EFF(1,"Please, select a price plan to get its price"),e.k0s())}let cH=(()=>{class n{handleEscape(c){"Escape"===c.key&&this.isOpen&&this.onClose()}constructor(c,t,l,i,u,C){this.fb=c,this.priceService=t,this.cartService=l,this.eventMessage=i,this.cdr=u,this.pricePlanMetricsService=C,this.drawerId="drawer-default",this.prodSpec={},this.isOpen=!1,this.width="w-80",this.mode="cart",this.inventoryProductId=null,this.existingCharacteristics=[],this.closeDrawer=new e.bkB,this.modifySubmit=new e.bkB,this.selectedPricePlan=null,this.isLoading=!1,this.price=[],this.hasProfile=!1,this.isCustom=!1,this.isFree=!1,this.images=[],this.toastVisibility=!1,this.orderChars=[],this.selectedPriceComponents=[],this.selectedUsageSpecId=null,this.selectedUnitOfMeasure=null,this.metrics=[],this.groupedMetrics={},this.characteristics=[],this.filteredCharacteristics=[],this.booleanCharacteristics=[],this.choiceCharacteristics=[],this.rangeCharacteristics=[],this.disabledCharacteristics=[],this.canBeDisabledChars=[],this.boundHandleEscape=b=>this.handleEscape(b),this.form=this.fb.group({selectedPricePlan:[null,p.k0.required],characteristics:this.fb.group({}),tsAccepted:[!1,p.k0.requiredTrue]})}ngOnInit(){document.addEventListener("keydown",this.boundHandleEscape),this.toggleBodyScroll(this.isOpen),this.tsAndCs={description:""},console.log("---- producto"),console.log(this.productOff),this.productOff?.productOfferingTerm?.forEach(t=>{console.log(t.name),console.log("----"),"procurement"!=t.name&&(console.log("---- Setting the term"),this.tsAndCs=t)}),this.isFree=0===this.productOff?.productOfferingPrice?.length,this.isFree&&(this.form.get("selectedPricePlan")?.setValue({}),this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics()),""==this.tsAndCs.description&&(this.form.controls.tsAccepted.setValue(!0),this.cdr.detectChanges()),console.log(this.tsAndCs);let c=this.productOff?.attachment?.filter(t=>"Profile Picture"===t.name)??[];console.log("profile..."),console.log(c),this.images=0==c.length?this.productOff?.attachment?.filter(t=>"Picture"===t.attachmentType)??[]:c}ngOnChanges(c){if(c.isOpen&&this.toggleBodyScroll(!!c.isOpen.currentValue),c.prodSpec&&this.isFree&&(this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics(),this.updateOrderChars()),!0===c.isOpen?.currentValue){this.tsAndCs={description:""};const t=this.productOff?.productOfferingTerm?.find(l=>"License"===l.name);t&&(this.tsAndCs={description:t.description}),""==this.tsAndCs.description?(this.form.controls.tsAccepted.setValue(!0),this.cdr.detectChanges()):(this.form.controls.tsAccepted.setValue(!1),this.cdr.detectChanges()),console.log(this.tsAndCs)}if(c.productOff&&c.productOff.currentValue){console.log("Changes..."),console.log(this.productOff),this.isFree=0===this.productOff?.productOfferingPrice?.length,this.isFree&&(this.form.get("selectedPricePlan")?.setValue({}),this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics());let t=this.productOff?.attachment?.filter(l=>"Profile Picture"===l.name)??[];this.images=0==t.length?this.productOff?.attachment?.filter(l=>"Picture"===l.attachmentType)??[]:t}}ngOnDestroy(){document.removeEventListener("keydown",this.boundHandleEscape),this.toggleBodyScroll(!1)}onClose(){this.isOpen=!1,this.toggleBodyScroll(!1),this.closeDrawer.emit()}toggleBodyScroll(c){document.body.style.overflow=c?"hidden":"",document.documentElement.style.overflow=c?"hidden":""}disableChars(){}filterCharacteristics(){this.filteredCharacteristics=[],this.booleanCharacteristics=[],this.choiceCharacteristics=[],this.rangeCharacteristics=[],this.disabledCharacteristics=[],this.canBeDisabledChars=[],this.characteristics.filter(l=>l.name?.endsWith(" - enabled")).filter(l=>{const i=l.productSpecCharacteristicValue?.[0]?.value;return"false"===String(i).toLowerCase()}).map(l=>l.name?.replace(/ - enabled$/,"").trim()),this.filteredCharacteristics=this.characteristics.filter(l=>{const i=R5.some(T=>T.name===l.name),u="credentialsConfiguration"===l.valueType,C="authorizationPolicy"===l.valueType,b=l?.name?.startsWith("Compliance:");return!(i||b||u||C)});const t=this.fb.group({});this.filteredCharacteristics.forEach(l=>{if(null!=l.id){const i=l.productSpecCharacteristicValue?.find(u=>u.isDefault)?.value??l.productSpecCharacteristicValue?.find(u=>u.isDefault)?.valueFrom;if(t.addControl(l.id,this.fb.control(i??null,p.k0.required)),!l.name?.endsWith("- enabled")&&this.filteredCharacteristics.some(u=>u.name===l.name+" - enabled")){this.canBeDisabledChars.push(l.id);const C=this.filteredCharacteristics.find(b=>b.name===l.name+" - enabled")?.productSpecCharacteristicValue?.find(b=>b.isDefault);C?"false"===String(C.value).toLowerCase()&&this.disabledCharacteristics.push(l.id):this.disabledCharacteristics.push(l.id)}}}),this.form.setControl("characteristics",t),this.groupCharacteristics()}isBooleanCharacteristic(c){const t=c.productSpecCharacteristicValue;return!(!t||0===t.length)&&t.every(l=>"boolean"==typeof l?.value)}isRangeCharacteristic(c){return c.productSpecCharacteristicValue?.some(t=>void 0!==t?.valueFrom&&void 0!==t?.valueTo)??!1}isEnabledCharacteristic(c){return c.name?.endsWith("- enabled")??!1}groupCharacteristics(){const c=this.filteredCharacteristics.filter(t=>!this.isEnabledCharacteristic(t));this.booleanCharacteristics=c.filter(t=>this.isBooleanCharacteristic(t)),this.rangeCharacteristics=c.filter(t=>!this.isBooleanCharacteristic(t)&&this.isRangeCharacteristic(t)),this.choiceCharacteristics=c.filter(t=>!this.isBooleanCharacteristic(t)&&!this.isRangeCharacteristic(t))}onToggleChange(c,t){var l=this;return(0,C1.A)(function*(){const u=c.target.checked;let C=l.filteredCharacteristics.find(u1=>u1.name==t+" - enabled");const b=l.form.get("characteristics");C&&C.id&&b.get(C.id)?.setValue(u);const T=C?.name?.replace(/- enabled$/,"").trim(),W=l.filteredCharacteristics.find(u1=>u1.name===T);W&&(u?l.disabledCharacteristics=l.disabledCharacteristics.filter(u1=>u1!==W.id):l.disabledCharacteristics.includes(W.id)||l.disabledCharacteristics.push(W.id)),yield l.refreshAppliedMetrics(),yield l.calculatePrice()})()}onPricePlanSelected(c){var t=this;return(0,C1.A)(function*(){t.metrics=[],console.log("precio"),console.log(c),t.form.get("selectedPricePlan")?.setValue(c),t.isCustom="custom"===c.priceType,c.prodSpecCharValueUse?(t.characteristics=c.prodSpecCharValueUse,t.hasProfile=!0):(t.characteristics=t.prodSpec.productSpecCharacteristic||[],t.hasProfile=!1),t.filterCharacteristics(),t.selectedPricePlan=c,yield t.refreshAppliedMetrics(),console.log(t.selectedPricePlan),yield t.calculatePrice()})()}onUsageSpecChange(c){this.selectedUsageSpecId=c.target.value,this.selectedUnitOfMeasure=null}onMetricChange(c,t){t.value=c.target.valueAsNumber,console.log("Metric changed:",t.unitOfMeasure,"Value:",t.value),console.log(this.metrics),this.calculatePrice()}get usageSpecIds(){return Object.keys(this.groupedMetrics)}onValueChange(c){var t=this;return(0,C1.A)(function*(){t.form.get("characteristics").get(c.characteristicId)?.setValue(c.selectedValue),yield t.refreshAppliedMetrics(),yield t.calculatePrice()})()}metricKey(c){return c?.usageSpecId&&c?.unitOfMeasure?`${c.usageSpecId}:${c.unitOfMeasure}`:""}getSelectedCharacteristicsForMetrics(){const c=this.form.get("characteristics")?.value||{},t=[];for(const l of this.getKeys(c))this.disabledCharacteristics.includes(l)||t.push({id:l,value:c[l]});return t}refreshAppliedMetrics(){var c=this;return(0,C1.A)(function*(){if(!c.selectedPricePlan)return void(c.metrics=[]);const t=c.getSelectedCharacteristicsForMetrics(),l=new Map;for(const i of c.metrics){const u=c.metricKey(i);u&&l.set(u,i.value??0)}try{const i=yield c.pricePlanMetricsService.getAppliedMetrics(c.selectedPricePlan,t);c.metrics=(Array.isArray(i)?i:[]).map(u=>{const C=c.metricKey(u);return C?{...u,value:l.has(C)?l.get(C):u.value??0}:u})}catch(i){console.error("Error refreshing applied metrics",i)}})()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}isFormValid(){return this.form.valid}get objectKeys(){return Object.keys}hasKey(c,t){return t in c}getKeys(c){return Object.keys(c)}getValues(c){return Object.values(c)}formatPrice(c){const t=("number"==typeof c?c.toString():(c??"").toString()).trim(),l=parseFloat(t);return isNaN(l)?String(c??""):(Math.round(+(t+"e2"))/100).toFixed(2)}updateOrderChars(){const c=this.form.get("characteristics")?.value;console.log("chars...."),console.log(c),console.log("general chars..."),console.log(this.filteredCharacteristics),console.log("keys of selected chars..."),console.log(this.getKeys(c)),this.orderChars=[];for(let t=0;ti.id===this.getKeys(c)[t]);if(console.log(this.filteredCharacteristics[l]),!this.disabledCharacteristics.includes(this.filteredCharacteristics[l].id)){let i=this.getValues(c)[t];const u=this.filteredCharacteristics[l];if(u.productSpecCharacteristicValue?.some(T=>"boolean"==typeof T?.value)&&"string"==typeof i){const T=i.toLowerCase();("true"===T||"false"===T)&&(i="true"===T)}let b=u.valueType;b||"boolean"!=typeof i?b||isNaN(Number(i))?b||(b="string"):b="number":b="boolean",null==i&&"number"==b&&(i=0),u.name?.endsWith("- enabled")||this.orderChars.push({name:u.name,value:i,valueType:b})}}console.log("Calculating the price with..."),console.log(this.orderChars)}calculatePrice(){var c=this;return(0,C1.A)(function*(t=!1){if(c.updateOrderChars(),c.isFree&&(c.price=[],c.isLoading=!1),c.isCustom||c.isFree)return;const l=c.form.get("selectedPricePlan")?.value;let i={id:c.productOff?.id,action:"modify"===c.mode?"modify":"add",quantity:"1",productOffering:{id:c.productOff?.id,href:c.productOff?.id},itemTotalPrice:[{productOfferingPrice:{id:l.id,href:l.href,name:l.name}}],product:{productCharacteristic:c.orderChars}};"modify"===c.mode&&c.inventoryProductId&&(i.product.id=c.inventoryProductId);let u=[];c.metrics.length>0&&(u=c.metrics.map(W=>({usageSpecification:{id:W.usageSpecId},usageCharacteristic:[{name:W.unitOfMeasure,value:t?1:W.value}]})));let C=[];C.push(i);const T={productOrder:{id:L4(),productOrderItem:C},usage:u};if(l){console.log("--- prod ---"),console.log(i),console.log("--- prod ---"),c.isLoading=!0;try{const W=yield(0,e0.s)(c.priceService.calculatePrice(T));return console.log("calculate price..."),console.log(W.orderTotalPrice),c.price=W.orderTotalPrice,c.price=c.price.map(u1=>({...u1,id:c.selectedPricePlan.id})),void(c.isLoading=!1)}catch{return c.isLoading=!1,void console.error("Error al calcular el precio")}}}).apply(this,arguments)}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}createOrder(){var c=this;return(0,C1.A)(function*(){if(c.form.invalid)return void console.error("Form is invalid");const t=c.form.value,l={productId:c.productOff?.id,pricePlan:t.selectedPricePlan,characteristics:c.orderChars,tsAccepted:t.tsAccepted,priceSummary:c.price};try{yield c.calculatePrice(!0)}catch(u){return void console.error("Error calculating price:",u)}if("modify"===c.mode){const u=t.selectedPricePlan;return c.modifySubmit.emit({id:c.productOff?.id,action:"modify",quantity:"1",productOffering:{id:c.productOff?.id,href:c.productOff?.id},itemTotalPrice:[{productOfferingPrice:{id:u.id,href:u.href,name:u.name}}],product:{id:c.inventoryProductId,productCharacteristic:c.orderChars}}),void c.onClose()}const i=c.buildProdOptions(t.tsAccepted);c.isCustom&&(i.options.pricing=[{id:l.pricePlan.id}]);try{yield c.cartService.addItemShoppingCart(i),console.log("Update successful"),c.eventMessage.emitAddedCartItem(i),console.log("Order Payload:",l)}catch(u){console.error("There was an error while updating the cart:",u)}c.onClose()})()}buildProdOptions(c){return{id:this.productOff?.id,name:this.productOff?.name,image:this.getProductImage(),href:this.productOff?.href,options:{characteristics:this.orderChars,pricing:this.price},termsAccepted:c}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(X8),e.rXU(d8),e.rXU(U2),e.rXU(e.gRc),e.rXU(z60))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plan-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscape(u)},!1,e.EBC)},inputs:{drawerId:"drawerId",productOff:"productOff",prodSpec:"prodSpec",isOpen:"isOpen",width:"width",mode:"mode",inventoryProductId:"inventoryProductId",existingCharacteristics:"existingCharacteristics"},outputs:{closeDrawer:"closeDrawer",modifySubmit:"modifySubmit"},standalone:!0,features:[e.OA$,e.aNF],decls:27,vars:27,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","z-30"],["data-cy","toCartDrawer","tabindex","-1","aria-labelledby","drawer-add-to-cart-label",1,"fixed","top-[75px]","bottom-0","right-0","z-40","overflow-clip","transition-transform","translate-x-full","bg-secondary-50","dark:bg-gray-800","flex","flex-col",3,"id","ngClass"],[1,"flex-1","min-h-0","p-4","overflow-y-auto",3,"formGroup"],["id","drawer-right-label",1,"inline-flex","items-center","text-wrap","break-words","mb-4","text-base","font-semibold","text-primary-100","dark:text-gray-400",3,"ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4","me-2.5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","inline-flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"mb-4","rounded-lg","border","border-gray-200","bg-gray-50","dark:bg-gray-700","dark:border-gray-600","p-3"],[1,"mb-6","text-sm","text-gray-500","dark:text-gray-400"],["data-cy","bottom-banner",1,"shrink-0","p-4","w-full","grid","grid-cols-1","gap-4","bg-primary-100","text-white","overflow-hidden","transition-all","duration-300","ease-in-out"],["role","status"],["data-cy","addToCart","type","button",1,"flex","items-center","justify-center","gap-x-2","px-4","py-2","text-sm","font-medium","text-center","text-white","bg-green-400","hover:bg-green-500","rounded-lg","focus:ring-4","focus:ring-blue-300","dark:bg-blue-600","dark:hover:bg-blue-700","focus:outline-none","dark:focus:ring-blue-800",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2","mr-2","ml-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-30",3,"click"],[1,"text-sm","font-semibold","text-gray-700","dark:text-gray-300","mb-2"],[1,"grid","grid-cols-2","gap-1"],[1,"text-xs","text-gray-600","dark:text-gray-400"],[1,"font-medium"],[1,"mb-6","text-sm","text-gray-500","dark:text-gray-400","text-wrap","break-words"],[1,"price-plan","flex","flex-col","rounded-lg","border","border-dashed","border-primary-100","bg-white","dark:bg-gray-800","p-2","m-2","gap-1","cursor-pointer","hover:bg-sky-50","transition-all","duration-200",3,"ngClass"],[1,"price-plan","flex","flex-col","rounded-lg","border","border-dashed","border-primary-100","bg-white","dark:bg-gray-800","p-2","m-2","gap-1","cursor-pointer","hover:bg-sky-50","transition-all","duration-200",3,"click","ngClass"],[1,"text-base","font-semibold","text-primary-100","dark:text-gray-400","flex","justify-between","content-center","text-wrap","break-words"],[1,"flex","items-center","gap-1.5"],["viewBox","0 0 20 20","fill","currentColor","aria-hidden","true",1,"w-4","h-4","text-teal-600","dark:text-teal-400","shrink-0"],[1,"bg-indigo-100","text-indigo-800","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded-full","dark:bg-indigo-900","dark:text-indigo-300"],[1,"text-gray-500","dark:text-gray-400","text-wrap",3,"ngClass","data"],["fill-rule","evenodd","d","M16.704 5.29a1 1 0 010 1.42l-7.5 7.5a1 1 0 01-1.42 0l-3.5-3.5a1 1 0 011.42-1.42l2.79 2.79 6.79-6.79a1 1 0 011.42 0z","clip-rule","evenodd"],[1,"mt-6","text-sm","text-gray-500","dark:text-gray-400"],[1,"rounded-lg","border","border-dashed","border-primary-100","bg-white","p-2","m-2","dark:bg-gray-800"],[3,"characteristic","readOnly"],[3,"valueChange","characteristic","readOnly"],["data-cy","prdSpecMetrics",1,"rounded-lg","border","border-dashed","border-primary-100","bg-white","p-3","m-2","dark:bg-gray-800","space-y-4","mb-4"],[1,"space-y-2"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-primary-100","dark:text-gray-300"],[1,"grid","grid-cols-1","md:grid-cols-2","xl:grid-cols-3","gap-2"],["data-cy","offerChar",1,"flex","w-full","items-start","gap-2","rounded-lg","border","border-gray-200","bg-white","dark:bg-gray-800/80","dark:border-gray-700","p-2"],[1,"flex-1","min-w-0"],[3,"valueChange","characteristic","readOnly","isDisabled","canBeDisabled"],[1,"inline-flex","items-center","cursor-pointer","w-fit","justify-start","items-start","mt-1"],["type","checkbox",1,"sr-only","peer",3,"change","checked"],[1,"relative","w-9","h-5","bg-gray-300","border","border-gray-400","peer-focus:outline-none","peer-focus:ring-4","peer-focus:ring-blue-300","dark:peer-focus:ring-blue-800","rounded-full","peer","dark:bg-gray-600","dark:border-gray-500","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-[1px]","after:start-[1px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-4","after:w-4","after:transition-all","dark:after:border-gray-500","peer-checked:bg-blue-600","dark:peer-checked:bg-blue-600"],[1,"mt-4","text-sm","text-gray-500","dark:text-gray-400"],[1,"grid","grid-cols-4","gap-2","mb-4"],["data-cy","offerMetric",1,"flex","flex-col"],[1,"text-wrap","break-words","text-base","text-primary-100","dark:text-gray-400",3,"ngClass"],["type","number",1,"mt-1","block","w-full","rounded-md","border-gray-300","shadow-sm","focus:border-blue-500","focus:ring-blue-500","sm:text-sm","dark:bg-secondary-300","dark:text-white",3,"input","placeholder"],[1,"text-wrap","break-words","text-base","font-semibold","text-primary-100","dark:text-gray-400"],[1,"max-h-[300px]","overflow-y-auto","mb-2"],[1,"text-gray-500","dark:text-gray-400","text-wrap","break-words",3,"ngClass","data"],[1,"flex","items-center"],["type","checkbox","id","tsAccepted","data-cy","acceptTermsCheckbox","formControlName","tsAccepted",1,"mr-2"],["for","tsAccepted",1,"text-sm"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","mr-2","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08163 50.5908C9.08163 74.0305 26.5603 91.5092 50 91.5092C73.4397 91.5092 90.9184 74.0305 90.9184 50.5908C90.9184 27.1511 73.4397 9.67243 50 9.67243C26.5603 9.67243 9.08163 27.1511 9.08163 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5531C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7236 75.2124 7.41289C69.5422 4.10218 63.2754 1.94025 56.7226 1.0519C51.7666 0.367443 46.7392 0.44645 41.8357 1.27873C39.367 1.69499 37.845 4.19778 38.4821 6.62326C39.1192 9.04873 41.5723 10.4813 44.0609 10.1066C47.851 9.53687 51.7191 9.47254 55.5402 10.0039C60.864 10.7506 65.9921 12.6349 70.6331 15.5398C75.274 18.4447 79.3324 22.3039 82.5849 26.8796C85.1253 30.4771 87.1292 34.4217 88.5286 38.585C89.2857 40.9124 91.5428 41.8781 93.9676 41.0409Z","fill","currentFill"],[1,"text-sm","text-white"],["data-cy","previewPrices",1,"flex","justify-between","mb-2"],[1,"font-medium","capitalize"],[1,"font-bold"],[1,"text-sm","text-white","dark:text-gray-400"]],template:function(t,l){if(1&t&&(e.DNE(0,F60,1,0,"div",0),e.j41(1,"div",1)(2,"form",2)(3,"h5",3),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.EFF(6),e.k0s(),e.joV(),e.j41(7,"button",6),e.bIt("click",function(){return l.onClose()}),e.qSk(),e.j41(8,"svg",7),e.nrm(9,"path",8),e.k0s(),e.joV(),e.j41(10,"span",9),e.EFF(11,"Close menu"),e.k0s()(),e.DNE(12,k60,6,0,"div",10)(13,D60,10,4)(14,H60,2,1)(15,q60,5,1)(16,X60,9,5,"div",11),e.k0s(),e.j41(17,"div",12),e.DNE(18,W60,6,0,"div",13)(19,J60,3,0)(20,Q60,3,0)(21,e80,3,0)(22,c80,2,0),e.j41(23,"button",14),e.bIt("click",function(){return l.createOrder()}),e.EFF(24),e.qSk(),e.j41(25,"svg",15),e.nrm(26,"path",16),e.k0s()()()()),2&t){let i,u;e.vxM(0,l.isOpen?0:-1),e.R7$(),e.AVh("translate-x-0",l.isOpen)("translate-x-full",!l.isOpen),e.Y8G("id",l.drawerId)("ngClass",l.width),e.R7$(),e.Y8G("formGroup",l.form),e.R7$(),e.Y8G("ngClass",e.l_i(24,eH,l.hasLongWord(null==l.productOff?null:l.productOff.name,20),!l.hasLongWord(null==l.productOff?null:l.productOff.name,20))),e.R7$(3),e.E5c("","modify"===l.mode?"Modifying":"Adding"," ",null==l.productOff?null:l.productOff.name," ","modify"===l.mode?"":"to cart",""),e.R7$(6),e.vxM(12,"modify"===l.mode&&l.existingCharacteristics.length>0?12:-1),e.R7$(),e.vxM(13,l.isFree?-1:13),e.R7$(),e.vxM(14,null!=(i=l.form.get("selectedPricePlan"))&&i.value?14:-1),e.R7$(),e.vxM(15,l.metrics.length>0?15:-1),e.R7$(),e.vxM(16,null!=(u=l.form.get("selectedPricePlan"))&&u.value&&null!=(u=l.form.get("characteristics"))&&u.valid&&""!=l.tsAndCs.description?16:-1),e.R7$(2),e.vxM(18,l.isLoading?18:l.isCustom?19:l.isFree?20:l.price?21:22),e.R7$(5),e.AVh("opacity-50",!l.isFormValid())("cursor-not-allowed",!l.isFormValid()),e.Y8G("disabled",!l.isFormValid()),e.R7$(),e.SpI(" ","modify"===l.mode?"Modify Characteristics":"Add to cart"," ")}},dependencies:[GN1,N0,_.YU,p.X1,p.qT,p.Zm,p.BC,p.cb,p.j4,p.JD,p.YN],styles:[".transition-transform[_ngcontent-%COMP%]{transition:transform .3s ease-in-out}"]})}}return n})();const HN1=(n,a)=>a.id,t80=(n,a)=>a.value,n80=(n,a)=>a.name,tD=(n,a)=>({"break-all":n,"break-words":a});function l80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",38)(4,"div",39)(5,"h5",40),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function s80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",38)(4,"div",44)(5,"h5",45),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(3),e.Y8G("ngClass",e.l_i(6,tD,i.hasLongWord(t.name,20),!i.hasLongWord(t.name,20))),e.R7$(),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(9,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function a80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",46)(4,"div",47)(5,"h2",48),e.EFF(6),e.k0s()(),e.nrm(7,"markdown",49),e.k0s()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function o80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",50)(4,"div",51)(5,"h5",52),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function i80(n,a){if(1&n&&e.DNE(0,l80,9,8,"div",35)(1,s80,9,12)(2,a80,8,8)(3,o80,9,8),2&n){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:"custom"===c.priceType?2:3)}}function r80(n,a){if(1&n&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34),e.Z7z(4,i80,4,1,null,null,HN1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_price"),":"),e.R7$(3),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice)}}function d80(n,a){1&n&&(e.j41(0,"div",53)(1,"div",38)(2,"div",51)(3,"h5",52),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",54),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function f80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"input",59),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),i=l.$implicit,u=l.$index,C=e.XpG().$index,b=e.XpG(2);return e.Njj(b.onCharChange(C,u,i))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+i+l)("name","char-radio-"+i),e.R7$(),e.Y8G("for","char-radio-"+i+l),e.R7$(),e.JRh(t.value)}}function u80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"input",61),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),i=l.$implicit,u=l.$index,C=e.XpG().$index,b=e.XpG(2);return e.Njj(b.onCharChange(C,u,i))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+i+l)("name","char-radio-"+i),e.R7$(),e.Y8G("for","char-radio-"+i+l),e.R7$(),e.JRh(t.value)}}function m80(n,a){if(1&n&&(e.j41(0,"div",57),e.DNE(1,f80,4,4,"div",58)(2,u80,4,4),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,1==(null==c?null:c.isDefault)?1:2)}}function p80(n,a){if(1&n&&(e.j41(0,"div",55)(1,"h5",56),e.EFF(2),e.k0s(),e.Z7z(3,m80,3,1,"div",57,t80),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function h80(n,a){if(1&n&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,p80,5,1,"div",55,HN1)),2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_char"),":"),e.R7$(2),e.Dyx(c.prodSpec.productSpecCharacteristic)}}function g80(n,a){1&n&&(e.j41(0,"div",62)(1,"div",63),e.qSk(),e.j41(2,"svg",64),e.nrm(3,"path",65),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CARD._no_chars")," "))}function _80(n,a){if(1&n&&(e.j41(0,"p",69)(1,"span",70),e.EFF(2),e.k0s()(),e.j41(3,"div",71),e.nrm(4,"markdown",72),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(2),e.Y8G("data",c.description)}}function L80(n,a){if(1&n){const c=e.RV6();e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,_80,5,2,null,null,n80),e.j41(5,"div",58)(6,"input",66),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.selected_terms=!l.selected_terms)}),e.k0s(),e.j41(7,"label",67),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",26)(11,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addProductToCart(l.productOff,!0))}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",28),e.nrm(15,"path",29),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,5,"CARD._terms"),":"),e.R7$(2),e.Dyx(null==c.productOff?null:c.productOff.productOfferingTerm),e.R7$(5),e.JRh(e.bMT(9,7,"CARD._accept_terms")),e.R7$(3),e.Y8G("disabled",!c.selected_terms)("ngClass",c.selected_terms?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"CARD._checkout")," ")}}function C80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",62)(1,"div",63),e.qSk(),e.j41(2,"svg",64),e.nrm(3,"path",65),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",26)(8,"button",73),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addProductToCart(l.productOff,!0))}),e.EFF(9),e.nI1(10,"translate"),e.qSk(),e.j41(11,"svg",28),e.nrm(12,"path",29),e.k0s()()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,2,"CARD._no_terms")," "),e.R7$(4),e.SpI(" ",e.bMT(10,4,"CARD._checkout")," "))}function z80(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let YN1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.cartService=T,this.eventMessage=W,this.images=[],this.cartSelection=!0,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.formattedPrices=[],this.errorMessage="",this.showError=!1}onClick(){this.hideCartSelection()}ngOnInit(){this.toggleCartSelection()}toggleCartSelection(){if(console.log("Add to cart..."),console.log(this.productOff),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):1==this.productOff?.productOfferingPrice.length&&(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[0]),this.cdr.detectChanges()),null!=this.productOff?.productOfferingTerm&&(console.log("terms"),console.log(this.productOff?.productOfferingTerm),this.check_terms=!0,this.cdr.detectChanges()),null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;lthis.showError=!1,3e3)}resetSelections(){this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}hideCartSelection(){this.eventMessage.emitCloseCartCard(void 0),this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.formattedPrices=[],this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}onPriceChange(c){this.selected_price=c,console.log("change price"),console.log(this.selected_price)}onCharChange(c,t,l){this.selected_chars[c].value={isDefault:!0,value:l.value};let u=this.selected_chars[c].characteristic.productSpecCharacteristicValue;if(null!=u)for(let C=0;Cl.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(d8),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["cart-card"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpec:"prodSpec",images:"images",cartSelection:"cartSelection"},decls:58,vars:23,consts:[["id","cart-selection-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],[1,"relative","w-full","max-w-7xl","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-secondary-100","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","pr-2","pt-2","rounded-t","dark:border-gray-600"],["type","button","data-modal-hide","cart-selection-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","h-full","p-8","justify-center"],[1,"flex","flex-col","w-full","justify-center"],[1,"flex","items-center","w-full"],["id","step-chars",1,"flex","w-full","cursor-pointer","items-center","text-white","after:content-['']","after:w-full","after:h-1","after:border-b","after:border-primary-100","after:border-4","after:inline-block",3,"click"],["id","circle-chars",1,"flex","items-center","justify-center","w-12","h-12","bg-primary-100","rounded-full","shrink-0"],["id","step-price",1,"flex","w-full","cursor-pointer","items-center","text-gray-400","dark:text-white","after:content-['']","after:w-full","after:h-1","after:border-b","after:border-gray-400","after:border-4","after:inline-block",3,"click"],["id","circle-price",1,"flex","items-center","justify-center","w-12","h-12","bg-white","dark:bg-secondary-100","border-2","border-gray-400","rounded-full","shrink-0"],["id","step-terms",1,"flex","items-center","w-fit","text-gray-400","dark:text-white","cursor-pointer",3,"click"],["id","circle-terms",1,"flex","items-center","justify-center","w-12","h-12","bg-white","dark:bg-secondary-100","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","w-full","mt-2","justify-between"],[1,"flex","items-center","w-1/3","justify-start"],["id","text-chars",1,"flex","w-fit","text-primary-100","justify-start"],[1,"flex","items-center","w-1/3","justify-center"],["id","text-price",1,"flex","w-fit","text-gray-400","justify-center"],[1,"flex","items-center","w-1/3","justify-end"],["id","text-terms",1,"flex","w-fit","text-gray-400","justify-end"],[1,"border","border-gray-300","bg-secondary-50/95","rounded-lg","mt-4"],["id","price",1,"hidden","pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],[1,"flex","justify-end"],["type","button",1,"flex","w-1/3","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["id","char",1,"pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],["id","terms",1,"hidden","pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"text-3xl","font-semibold","tracking-tight","text-primary-100"],[1,"grid","grid-flow-row","lg:grid-flow-col","gap-8","p-4"],[1,"flex","items-center"],["checked","","type","radio","value","","name","price-radio",1,"hidden","peer","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id"],[1,"inline-flex","items-center","justify-center","w-full","p-5","peer-checked:border","rounded-lg","cursor-pointer","peer-checked:border-primary-100",3,"for"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full"],[1,"pl-4","pr-4"],[1,"w-full","p-4","text-wrap","break-words",3,"ngClass","data"],["checked","","type","radio","value","","name","price-radio",1,"hidden","peer","items-center","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"mx-auto","bg-white","border","border-gray-200","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","text-3xl","font-extrabold","mb-2"],[1,"w-full","text-wrap","break-words","p-4",3,"ngClass","data"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full","justify-center"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700"],[1,"min-h-19","pb-2"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100"],[1,"flex"],[1,"flex","items-center","mb-4"],["checked","","type","radio","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id","name"],[1,"ms-2","text-sm","font-medium","text-gray-900","text-wrap","break-all",3,"for"],["type","radio","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id","name"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-2/3","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],["id","terms-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"change"],["for","terms-checkbox",1,"ms-2","text-sm","font-medium","text-gray-900"],["type","button",1,"flex","w-1/2","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click","disabled","ngClass"],[1,"text-gray-900","text-bold"],[1,"font-bold"],[1,"max-h-[300px]","overflow-y-auto","mb-4"],[1,"text-lg","font-normal",3,"data"],["type","button",1,"flex","w-1/2","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(3,"div",3)(4,"button",4),e.bIt("click",function(){return l.hideCartSelection()}),e.qSk(),e.j41(5,"svg",5),e.nrm(6,"path",6),e.k0s(),e.joV(),e.j41(7,"span",7),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9)(12,"ol",10)(13,"li",11),e.bIt("click",function(){return l.clickShowChar(!0)}),e.j41(14,"span",12),e.EFF(15," 1 "),e.k0s()(),e.j41(16,"li",13),e.bIt("click",function(){return l.clickShowPrice(!0)}),e.j41(17,"span",14),e.EFF(18," 2 "),e.k0s()(),e.j41(19,"li",15),e.bIt("click",function(){return l.clickShowTerms(!0)}),e.j41(20,"span",16),e.EFF(21," 3 "),e.k0s()()(),e.j41(22,"ol",17)(23,"li",18)(24,"span",19),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"li",20)(28,"span",21),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"li",22)(32,"span",23),e.EFF(33),e.nI1(34,"translate"),e.k0s()()()(),e.j41(35,"div",24)(36,"div",25),e.DNE(37,r80,6,3)(38,d80,9,6),e.j41(39,"div",26)(40,"button",27),e.bIt("click",function(){return l.clickShowTerms(!1)}),e.EFF(41),e.nI1(42,"translate"),e.qSk(),e.j41(43,"svg",28),e.nrm(44,"path",29),e.k0s()()()(),e.joV(),e.j41(45,"div",30),e.DNE(46,h80,5,3)(47,g80,7,3),e.j41(48,"div",26)(49,"button",27),e.bIt("click",function(){return l.clickShowPrice(!1)}),e.EFF(50),e.nI1(51,"translate"),e.qSk(),e.j41(52,"svg",28),e.nrm(53,"path",29),e.k0s()()()(),e.joV(),e.j41(54,"div",31),e.DNE(55,L80,16,11)(56,C80,13,6),e.k0s()()()()()(),e.DNE(57,z80,1,1,"error-message",32)),2&t&&(e.Y8G("ngClass",l.cartSelection?"backdrop-blur-sm":""),e.R7$(8),e.JRh(e.bMT(9,11,"CARD._close")),e.R7$(17),e.SpI(" ",e.bMT(26,13,"CARD._chars")," "),e.R7$(4),e.SpI(" ",e.bMT(30,15,"CARD._price_plan")," "),e.R7$(4),e.SpI(" ",e.bMT(34,17,"CARD._terms")," "),e.R7$(4),e.vxM(37,l.check_prices?37:38),e.R7$(4),e.SpI(" ",e.bMT(42,19,"CARD._next")," "),e.R7$(5),e.vxM(46,l.check_char?46:47),e.R7$(4),e.SpI(" ",e.bMT(51,21,"CARD._next")," "),e.R7$(5),e.vxM(55,1==l.check_terms?55:56),e.R7$(2),e.vxM(57,l.showError?57:-1))},dependencies:[_.YU,N0,E0,s1.D9]})}}return n})();const M80=["relationshipsContent"],x80=["detailsContent"],b80=["charsContent"],y80=["attachContent"],F80=["agreementsContent"],v80=["textDiv"],k80=["termsText"],w80=["descriptionText"],S80=["agreementsScrollAnchor"],N80=["relScrollAnchor"],E80=["attachScrollAnchor"],D80=["charsScrollAnchor"],T80=["detailsScrollAnchor"],Nn=(n,a)=>a.id,R80=(n,a)=>a.value,n5=(n,a)=>({"break-all":n,"break-words":a});function A80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openDescriptionModal())}),e.EFF(1," Read more "),e.k0s()}}function I80(n,a){if(1&n&&(e.j41(0,"div",41),e.qSk(),e.j41(1,"svg",42),e.nrm(2,"path",43),e.k0s(),e.joV(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(4),e.JRh(null==c.characteristic?null:c.characteristic.emailAddress)}}function P80(n,a){1&n&&e.DNE(0,I80,5,1,"div",41),2&n&&e.vxM(0,"Email"===a.$implicit.mediumType?0:-1)}function j80(n,a){if(1&n&&e.Z7z(0,P80,1,1,null,null,e.fX1),2&n){const c=e.XpG(2);e.Dyx(c.orgInfo.contactMedium)}}function $80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",16),e.DNE(1,j80,2,0),e.j41(2,"div",37),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",39),e.k0s(),e.joV(),e.j41(5,"a",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(6),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.orgInfo.contactMedium?1:-1),e.R7$(5),e.JRh(c.orgInfo.tradingName)}}function O80(n,a){if(1&n&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.JRh(c.name)}}function B80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-[#163b99]"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function V80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(l){return e.eBV(c),e.XpG(2).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function U80(n,a){if(1&n&&e.DNE(0,B80,5,5,"button",44)(1,V80,3,3),2&n){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function G80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-[#163b99]"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function H80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(l){return e.eBV(c),e.XpG(2).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function Y80(n,a){if(1&n&&e.DNE(0,G80,5,5,"button",49)(1,H80,3,3),2&n){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function q80(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",64),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Identification number"),e.k0s(),e.j41(7,"span",59),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.prodSpec.productNumber)}}function X80(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",65),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Brand"),e.k0s(),e.j41(7,"span",59),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.prodSpec.brand)}}function W80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",39),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Owner"),e.k0s(),e.j41(7,"a",66),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(8),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.orgInfo.tradingName)}}function J80(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"How does it work?"),e.k0s(),e.nrm(3,"markdown",14),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("ngClass",e.l_i(2,n5,c.hasLongWord(c.prodSpec.description,20),!c.hasLongWord(c.prodSpec.description,20)))("data",c.prodSpec.description)}}function Q80(n,a){if(1&n&&(e.j41(0,"div",69)(1,"span",70),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",71),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function Z80(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h3",68),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,Q80,5,2,"div",69,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._service_spec")),e.R7$(2),e.Dyx(c.serviceSpecs)}}function K80(n,a){if(1&n&&(e.j41(0,"div",69)(1,"span",70),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",71),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function ee0(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h3",68),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,K80,5,2,"div",69,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._resource_spec")),e.R7$(2),e.Dyx(c.resourceSpecs)}}function ce0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faArrowProgress)}}function te0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faArrowRightArrowLeft)}}function ne0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faObjectExclude)}}function le0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faSwap)}}function se0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",74),e.EFF(2),e.k0s(),e.j41(3,"div",75)(4,"p",76),e.EFF(5),e.k0s(),e.DNE(6,ce0,1,1,"fa-icon",77)(7,te0,1,1)(8,ne0,1,1)(9,le0,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.JRh(c.relationshipType),e.R7$(),e.vxM(6,"dependency"==c.relationshipType?6:"migration"==c.relationshipType?7:"exclusivity"==c.relationshipType?8:"substitution"==c.relationshipType?9:-1)}}function ae0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",72),e.Z7z(4,se0,10,7,"div",73,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_DETAILS._product_rels")),e.R7$(3),e.Dyx(c.prodSpec.productSpecificationRelationship)}}function oe0(n,a){if(1&n&&(e.j41(0,"div",28)(1,"div",52)(2,"div",53)(3,"div",54)(4,"div",55),e.qSk(),e.j41(5,"svg",56),e.nrm(6,"path",57),e.k0s()(),e.joV(),e.j41(7,"div")(8,"span",58),e.EFF(9,"Offer version"),e.k0s(),e.j41(10,"span",59),e.EFF(11),e.k0s()()(),e.j41(12,"div",54)(13,"div",55),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",60),e.k0s()(),e.joV(),e.j41(16,"div")(17,"span",58),e.EFF(18,"Last update"),e.k0s(),e.j41(19,"span",59),e.EFF(20),e.nI1(21,"date"),e.k0s()()(),e.j41(22,"div",54)(23,"div",55),e.qSk(),e.j41(24,"svg",56),e.nrm(25,"path",61),e.k0s()(),e.joV(),e.j41(26,"div")(27,"span",58),e.EFF(28,"Product name"),e.k0s(),e.j41(29,"span",59),e.EFF(30),e.k0s()()(),e.DNE(31,q80,9,1,"div",54)(32,X80,9,1,"div",54)(33,W80,9,1,"div",54),e.k0s()(),e.DNE(34,J80,4,5,"div",62)(35,Z80,6,3,"div",63)(36,ee0,6,3,"div",63)(37,ae0,6,3),e.k0s()),2&n){const c=e.XpG();e.R7$(11),e.SpI("v",(null==c.productOff?null:c.productOff.version)||"1.0",""),e.R7$(9),e.JRh(e.i5U(21,10,null==c.productOff?null:c.productOff.lastUpdate,"dd/MM/yy, HH:mm")),e.R7$(10),e.JRh(c.prodSpec.name),e.R7$(),e.vxM(31,c.prodSpec.productNumber?31:-1),e.R7$(),e.vxM(32,c.prodSpec.brand?32:-1),e.R7$(),e.vxM(33,null!=c.orgInfo?33:-1),e.R7$(),e.vxM(34,c.prodSpec.description?34:-1),e.R7$(),e.vxM(35,c.serviceSpecs.length>0?35:-1),e.R7$(),e.vxM(36,c.resourceSpecs.length>0?36:-1),e.R7$(),e.vxM(37,null!=c.prodSpec.productSpecificationRelationship&&c.prodSpec.productSpecificationRelationship.length>0?37:-1)}}function ie0(n,a){if(1&n&&e.nrm(0,"markdown",82),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,n5,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function re0(n,a){1&n&&(e.j41(0,"span",83),e.EFF(1,"Optional"),e.k0s())}function de0(n,a){if(1&n&&(e.j41(0,"div",85)(1,"span",86),e.EFF(2,"Default"),e.k0s(),e.j41(3,"span",87),e.EFF(4),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.R7$(3),e.Y8G("ngClass",t.getBooleanDefaultValue(c)?"bg-green-100 text-green-700":"bg-gray-200 text-gray-700"),e.R7$(),e.SpI(" ",t.getBooleanDefaultValue(c)?"Enabled":"Disabled"," ")}}function fe0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",90),e.nrm(1,"path",92),e.k0s())}function ue0(n,a){if(1&n&&(e.j41(0,"span",91),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.Y8G("title",t.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(t.getCharacteristicValuePreview(c))}}function me0(n,a){if(1&n&&(e.j41(0,"span",91),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.Y8G("title",t.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(t.getCharacteristicRangePreview(c))}}function pe0(n,a){if(1&n&&(e.j41(0,"div",88)(1,"div",89),e.DNE(2,fe0,2,0,":svg:svg",90),e.k0s(),e.DNE(3,ue0,2,2,"span",91)(4,me0,2,2),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("ngClass",null!=c&&c.isDefault?"bg-[#1f4fbf] border-[#1f4fbf]":"border-gray-300 bg-white"),e.R7$(),e.vxM(2,null!=c&&c.isDefault?2:-1),e.R7$(),e.vxM(3,null!=c.value?3:4)}}function he0(n,a){if(1&n&&e.Z7z(0,pe0,5,3,"div",88,R80),2&n){const c=e.XpG().$implicit;e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function ge0(n,a){if(1&n&&(e.j41(0,"div",79)(1,"h3",81),e.EFF(2),e.k0s(),e.DNE(3,ie0,1,5,"markdown",82)(4,re0,2,0,"span",83),e.j41(5,"div",84),e.DNE(6,de0,5,2,"div",85)(7,he0,2,0),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(5,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.vxM(3,c.description?3:-1),e.R7$(),e.vxM(4,t.isOptionalCharacteristic(c)?4:-1),e.R7$(2),e.vxM(6,t.isBooleanCharacteristic(c)?6:7)}}function _e0(n,a){1&n&&(e.j41(0,"div",80),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PRODUCT_DETAILS._no_chars")," "))}function Le0(n,a){if(1&n&&(e.j41(0,"div",78)(1,"h2",67),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",72),e.Z7z(5,ge0,8,8,"div",79,Nn,!1,_e0,3,3,"div",80),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"PRODUCT_DETAILS._product_chars")),e.R7$(3),e.Dyx(c.prodChars)}}function Ce0(n,a){1&n&&(e.j41(0,"div",93),e.EFF(1," No features available for this product. "),e.k0s())}function ze0(n,a){if(1&n&&e.DNE(0,Le0,8,4,"div",78)(1,Ce0,2,0),2&n){const c=e.XpG();e.vxM(0,null!=c.prodSpec.productSpecCharacteristic&&c.prodChars.length>0?0:1)}}function Me0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",97),e.EFF(2),e.k0s(),e.nrm(3,"markdown",98),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,n5,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function xe0(n,a){1&n&&e.DNE(0,Me0,4,10,"div",73),2&n&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function be0(n,a){1&n&&(e.j41(0,"div",96)(1,"h3",99),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",76),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(6,4,"SHOPPING_CART._free_desc")))}function ye0(n,a){if(1&n&&(e.j41(0,"div",95),e.Z7z(1,xe0,1,1,null,null,Nn),e.DNE(3,be0,7,6,"div",96),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function Fe0(n,a){if(1&n&&(e.j41(0,"div",100)(1,"div",101)(2,"h3",102),e.EFF(3),e.k0s()(),e.j41(4,"div",103),e.nrm(5,"markdown",98),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass","recurring"==c.priceType?"bg-green-500":"usage"==c.priceType?"bg-yellow-300":"bg-[#1f4fbf]"),e.R7$(),e.Y8G("ngClass",e.l_i(5,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(8,n5,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function ve0(n,a){1&n&&(e.j41(0,"div",100)(1,"div",104)(2,"h3",105),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",106),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(7,4,"SHOPPING_CART._free_desc")))}function ke0(n,a){if(1&n&&(e.j41(0,"div",95),e.Z7z(1,Fe0,6,11,"div",100,Nn),e.DNE(3,ve0,8,6,"div",100),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function we0(n,a){if(1&n&&e.DNE(0,ye0,4,1,"div",95)(1,ke0,4,1),2&n){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function Se0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",74),e.EFF(2),e.k0s(),e.nrm(3,"markdown",98),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,n5,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function Ne0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1,"Usage metrics"),e.k0s(),e.j41(2,"div",72),e.Z7z(3,Se0,4,10,"div",73,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Dyx(c.usageMetrics)}}function Ee0(n,a){if(1&n&&(e.j41(0,"h2",94),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,we0,2,1)(4,Ne0,5,0)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"PRODUCT_DETAILS._product_pricing")),e.R7$(2),e.vxM(3,null!=(null==c.productOff?null:c.productOff.productOfferingPrice)?3:-1),e.R7$(),e.vxM(4,c.usageMetrics.length>0?4:-1)}}function De0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"No level"),e.k0s())}function Te0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Baseline"),e.k0s())}function Re0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Professional"),e.k0s())}function Ae0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Professional+"),e.k0s())}function Ie0(n,a){if(1&n&&(e.j41(0,"a",111),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("href",c.selfAtt,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,"PRODUCT_DETAILS._self_attestation")," ")}}function Pe0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",114),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToLink(l.href))}),e.j41(1,"div",115),e.nrm(2,"fa-icon",116),e.k0s(),e.j41(3,"h3",117),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.Y8G("icon",t.faAtom),e.R7$(2),e.JRh(c.name)}}function je0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Key Capabilities"),e.k0s(),e.j41(3,"div",112),e.Z7z(4,Pe0,5,2,"div",113,Nn),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.complianceProf)}}function $e0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",114),e.bIt("click",function(){let l;const i=e.eBV(c).$implicit,u=e.XpG(3);return e.Njj(u.goToLink(null==i.productSpecCharacteristicValue||null==(l=i.productSpecCharacteristicValue.at(0))?null:l.value))}),e.j41(1,"div",115),e.nrm(2,"fa-icon",116),e.k0s(),e.j41(3,"h3",117),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.Y8G("icon",t.faAtom),e.R7$(2),e.JRh(t.normalizeName(c.name))}}function Oe0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Additional certifications"),e.k0s(),e.j41(3,"div",112),e.Z7z(4,$e0,5,2,"div",113,Nn),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.additionalCerts)}}function Be0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.toggleTermsReadMore())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.SpI(" ",c.showTermsMore?"Read less":"Read more"," ")}}function Ve0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",118)(4,"div",119),e.nrm(5,"fa-icon",120),e.k0s(),e.j41(6,"div",121,1),e.nrm(8,"markdown",122),e.k0s(),e.DNE(9,Be0,2,1,"button",123),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,7,"PRODUCT_DETAILS._license")),e.R7$(4),e.Y8G("icon",c.faScaleBalanced),e.R7$(),e.AVh("line-clamp-5",!c.showTermsMore),e.R7$(2),e.Y8G("ngClass",e.l_i(9,n5,c.hasLongWord(null==c.licenseTerm?null:c.licenseTerm.description,20),!c.hasLongWord(null==c.licenseTerm?null:c.licenseTerm.description,20)))("data",null==c.licenseTerm?null:c.licenseTerm.description),e.R7$(),e.vxM(9,c.showReadMoreButton?9:-1)}}function Ue0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"p",125),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"PRODUCT_DETAILS._sla")),e.R7$(3),e.SpI("",null==c.productOff||null==c.productOff.serviceLevelAgreement?null:c.productOff.serviceLevelAgreement.name,".")}}function Ge0(n,a){if(1&n&&e.DNE(0,Ve0,10,12)(1,Ue0,5,4),2&n){const c=e.XpG(2);e.vxM(0,c.licenseTerm&&""!=(null==c.licenseTerm?null:c.licenseTerm.description)?0:-1),e.R7$(),e.vxM(1,null!=c.productOff&&c.productOff.serviceLevelAgreement?1:-1)}}function He0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",126)(1,"h3",127),e.EFF(2),e.k0s(),e.j41(3,"button",128),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToLink(l.url))}),e.nrm(4,"fa-icon",129),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("icon",t.faDownload)}}function Ye0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",72),e.Z7z(4,He0,5,6,"div",126,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_DETAILS._product_att")),e.R7$(3),e.Dyx(c.attatchments)}}function qe0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Certification"),e.k0s(),e.j41(3,"div",107)(4,"div",54)(5,"div",108),e.qSk(),e.j41(6,"svg",109),e.nrm(7,"path",92),e.k0s()(),e.joV(),e.j41(8,"div"),e.DNE(9,De0,2,0,"h3",110)(10,Te0,2,0)(11,Re0,2,0)(12,Ae0,2,0),e.j41(13,"p",76),e.EFF(14),e.k0s()()(),e.DNE(15,Ie0,3,4,"a",111),e.k0s()(),e.DNE(16,je0,6,0,"div",62)(17,Oe0,6,0,"div",62)(18,Ge0,2,2)(19,Ye0,6,3)),2&n){const c=e.XpG();e.R7$(9),e.vxM(9,"NL"==c.complianceLevel?9:"BL"==c.complianceLevel?10:"P"==c.complianceLevel?11:12),e.R7$(5),e.JRh(c.complianceDescription),e.R7$(),e.vxM(15,c.selfAtt?15:-1),e.R7$(),e.vxM(16,c.complianceProf.length>0?16:-1),e.R7$(),e.vxM(17,c.additionalCerts.length>0?17:-1),e.R7$(),e.vxM(18,c.licenseTerm||null!=c.productOff&&c.productOff.serviceLevelAgreement?18:-1),e.R7$(),e.vxM(19,c.attatchments.length>0?19:-1)}}function Xe0(n,a){if(1&n&&(e.j41(0,"div",29)(1,"h2",130),e.EFF(2,"Ready to get started?"),e.k0s(),e.j41(3,"p",131),e.EFF(4),e.k0s(),e.j41(5,"a",132),e.EFF(6," Join DOME Marketplace "),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.SpI("Join thousands of companies using ",null==c.productOff?null:c.productOff.name,""),e.R7$(),e.Y8G("href",c.customersLink,e.B4B)}}function We0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",30)(1,"div",133),e.qSk(),e.j41(2,"svg",134),e.nrm(3,"path",135),e.k0s(),e.joV(),e.j41(4,"div",136),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",137)(8,"button",138),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deleteProduct(l.lastAddedProd))}),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",139),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",140),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",141),e.nrm(16,"path",142),e.k0s()()()(),e.joV(),e.j41(17,"div",143),e.nrm(18,"div",144),e.k0s()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,3,"CARD._added_card"),". "),e.R7$(4),e.JRh(e.bMT(10,5,"CARD._undo")),e.R7$(4),e.JRh(e.bMT(14,7,"CARD._close_toast")))}function Je0(n,a){if(1&n&&e.nrm(0,"cart-card",31),2&n){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function Qe0(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Ze0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-quote-request-modal",145),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showQuoteModal?"backdrop-blur-sm":"")("productOff",c.productOff)("prodSpec",c.prodSpec)("orgInfo",c.orgInfo)("customerId",c.customerId)("isOpen",c.showQuoteModal)}}function Ke0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDescriptionModal())}),e.j41(1,"div",147),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",148)(3,"h3",149),e.EFF(4),e.k0s(),e.j41(5,"button",150),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDescriptionModal())}),e.qSk(),e.j41(6,"svg",151),e.nrm(7,"path",142),e.k0s()()(),e.joV(),e.j41(8,"div",152),e.nrm(9,"markdown",14),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(5),e.Y8G("ngClass",e.l_i(3,n5,c.hasLongWord(null==c.productOff?null:c.productOff.description,20),!c.hasLongWord(null==c.productOff?null:c.productOff.description,20)))("data",null==c.productOff?null:c.productOff.description)}}let e50=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1,T1){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.cartService=T,this.eventMessage=W,this.accService=u1,this.usageService=a1,this.location=T1,this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.category="none",this.categories=[],this.price="",this.images=[],this.attatchments=[],this.prodSpec={},this.complianceProf=[],this.additionalCerts=[],this.complianceLevel="NL",this.complianceDescription="No level. This product hasnt reached any compliance level yet.",this.serviceSpecs=[],this.resourceSpecs=[],this.check_logged=!1,this.customersLink=g1.c.DOME_CUSTOMER_REGISTER_LINK,this.cartSelection=!1,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.toastVisibility=!1,this.checkCustom=!1,this.prodChars=[],this.usageMetrics=[],this.selfAtt="",this.errorMessage="",this.showError=!1,this.showTermsMore=!1,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.showReadMoreButton=!1,this.showDescriptionReadMore=!1,this.showDescriptionModal=!1,this.customerId="",this.orgInfo=void 0,this.showQuoteModal=!1,this.productAlreadyInCart=!1,this.activeTab="overview",this.faScaleBalanced=A2.iRu,this.faArrowProgress=A2.SZt,this.faArrowRightArrowLeft=A2.tNR,this.faObjectExclude=A2.tP3,this.faSwap=A2.FJA,this.faGlobe=A2.Bwz,this.faBook=A2.LBj,this.faShieldHalved=A2.fLc,this.faAtom=A2.RSf,this.faDownload=A2.cbP,this.stepsElements=["step-chars","step-price","step-terms","step-checkout"],this.stepsText=["text-chars","text-price","text-terms","text-checkout"],this.stepsCircles=["circle-chars","circle-price","circle-terms","circle-checkout"],this.licenseTerm=void 0,this.isLoaded=!1,this.isManualScroll=!1,this.destroy$=new S.B,this.isDrawerOpen=!1,this.showTermsMore=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(Y1=>{if("CloseCartCard"===Y1.type){if(this.hideCartSelection(),null!=Y1.value){this.lastAddedProd=Y1.value,this.toastVisibility=!0,this.cdr.detectChanges();let f2=document.getElementById("progress-bar"),M2=document.getElementById("toast-add-cart");null!=f2&&null!=M2&&(f2.style.width="0%",f2.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}else"CloseQuoteRequest"===Y1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==Y1.type||"AddedCartItem"==Y1.type)&&this.cartService.getShoppingCart().then(f2=>{this.productAlreadyInCart=!!f2.some(G2=>G2.id===this.productOff?.id)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),document.body.style.overflow=""}ngOnInit(){var c=this;return(0,C1.A)(function*(){D2();let t=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0)if(c.check_logged=!0,c.cdr.detectChanges(),t.logged_as==t.id)c.customerId=t.partyId;else{let T=t.organizations.find(W=>W.id==t.logged_as);c.customerId=T.partyId}else c.check_logged=!1,c.cdr.detectChanges();window.scrollTo(0,0),c.id=c.route.snapshot.paramMap.get("id"),console.log("--- Details ID:"),console.log(c.id);let l=yield c.api.getProductById(c.id),i=yield c.api.getProductSpecification(l.productSpecification.id);c.prodSpec=i,c.getOwner();let u=l.productOfferingPrice,C=[];if(void 0!==u&&(C=yield c.api.getProductPrices(u.map(T=>T.id)),C.some(T=>"custom"==T?.priceType)&&(c.checkCustom=!0)),yield c.loadUsageMetrics(C),null!=c.prodSpec.productSpecCharacteristic){c.prodChars=c.prodSpec.productSpecCharacteristic.filter(W=>!W.name.startsWith("Compliance:")&&!W.name?.endsWith(" - enabled")),c.additionalCerts=c.prodSpec.productSpecCharacteristic.filter(W=>{const u1=W.name.replace("Compliance:","").trim();return W.name.startsWith("Compliance:")&&!R5.some(a1=>a1.name===u1)&&"Compliance:SelfAtt"!=W.name}),console.log("--- additional"),console.log(c.additionalCerts);const T=W=>W?.replace(/compliance:/i,"").trim()??"";for(let W=0;WT(T1.name)===R5[W].name);if(u1){let T1=R5[W];T1.href=u1.productSpecCharacteristicValue?.at(0)?.value,c.complianceProf.push(T1)}const a1=c.prodChars.findIndex(T1=>T(T1.name)===R5[W].name);-1!==a1&&c.prodChars.splice(a1,1)}console.log(c.complianceProf)}if(null!=c.prodSpec.serviceSpecification)for(let T=0;T"Profile Picture"===T.name)??[];if(console.log("profile..."),console.log(b),0==b.length?(c.images=c.productOff?.attachment?.filter(T=>"Picture"===T.attachmentType)??[],c.attatchments=c.productOff?.attachment?.filter(T=>"Picture"!=T.attachmentType)??[]):(c.images=b,c.attatchments=c.productOff?.attachment?.filter(T=>"Profile Picture"!=T.name)??[]),c.licenseTerm=c.productOff?.productOfferingTerm?.find(T=>"License"===T.name),null!=c.prodSpec.productSpecCharacteristic){let T=c.prodSpec.productSpecCharacteristic.find(W=>"Compliance:SelfAtt"===W.name);T&&(c.selfAtt=T.productSpecCharacteristicValue?.at(0)?.value)}if(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec),c.complianceDescription=c.getComplianceDescription(),c.check_logged){const W=(yield c.cartService.getShoppingCart()).some(u1=>u1.id===c.productOff?.id);c.productAlreadyInCart=W,c.cdr.detectChanges()}})()}loadUsageMetrics(c){var t=this;return(0,C1.A)(function*(){if(!c||0===c.length)return void(t.usageMetrics=[]);const l=new Map,i=new Map,u=Array.from(new Set(c.flatMap(T=>(Array.isArray(T?.bundledPopRelationship)?T.bundledPopRelationship:[]).map(W=>W?.id).filter(W=>null!=W))));let C=[];if(u.length>0)try{C=yield t.api.getProductPrices(u)}catch(T){console.error("Error loading linked product offering prices",T)}const b=new Map(C.map(T=>[T.id,T]));for(const T of c)yield t.collectUsageMetricsFromPrice(T,l,i,b);t.usageMetrics=Array.from(l.values())})()}collectUsageMetricsFromPrice(c,t,l,i){var u=this;return(0,C1.A)(function*(){if(!c)return;const C=Array.isArray(c.bundledPopRelationship)?c.bundledPopRelationship:[];if(C.length>0)for(const b of C){if(!b?.id)continue;const T=i.get(b.id);T&&(yield u.addMetricFromPrice(T,t,l))}else yield u.addMetricFromPrice(c,t,l)})()}addMetricFromPrice(c,t,l){var i=this;return(0,C1.A)(function*(){const u=c?.usageSpecId,C=i.getMetricName(c?.unitOfMeasure);if(!u||!C)return;const b=`${u}:${C}`;if(t.has(b))return;let T=l.get(u);if(void 0===T){try{T=yield i.usageService.getUsageSpec(u)}catch{T=null}l.set(u,T)}t.set(b,{id:b,usageSpecId:u,name:C,description:T?.description||c?.description||"No description available."})})()}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}toggleQuoteModal(){this.showQuoteModal=!0}getComplianceDescription(){switch(this.complianceLevel){case"NL":return"No level. This product hasn't reached any compliance level yet.";case"BL":return'Basic level. Reached when the provider signs the "self attestation" document (attached below).';case"P":return'Professional level. The provider has signed the "self attestation" document (attached below) and the product includes the following certifications: BSI-C5, CISPE, EU Cloud CoC, CSA CCM, ISO/IEC 27001, TISAX and SWIPO.';case"PP":return'Professional level. The provider has signed the "self attestation" document (attached below) and the product includes the following certifications: BSI-C5, CISPE, EU Cloud CoC, CSA CCM, ISO/IEC 27001, TISAX, SWIPO and CNDCP (Climate Neutral Data Centre Pact).';default:return""}}isVerified(c){return 1==c.verified}isCustom(){return this.checkCustom}ngAfterViewChecked(){this.termsTextRef&&!this.showReadMoreButton&&setTimeout(()=>this.checkOverflow(),0),this.descriptionTextRef&&!this.showDescriptionReadMore&&setTimeout(()=>this.checkDescriptionOverflow(),0)}checkOverflow(){const c=this.termsTextRef?.nativeElement;c&&(this.showReadMoreButton=c.scrollHeight>c.clientHeight)}checkDescriptionOverflow(){const c=this.descriptionTextRef?.nativeElement;if(c){const t=c.scrollHeight>c.clientHeight+1;t!==this.showDescriptionReadMore&&(this.showDescriptionReadMore=t,this.cdr.detectChanges())}}openDescriptionModal(){this.showDescriptionModal=!0,document.body.style.overflow="hidden"}closeDescriptionModal(){this.showDescriptionModal=!1,document.body.style.overflow=""}setImageHeight(){this.textDivHeight=this.textDiv.nativeElement.offsetHeight}toggleCartSelection(){if(console.log("Add to cart..."),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):this.selected_price=this.productOff?.productOfferingPrice[0],this.cdr.detectChanges()),null!=this.productOff?.productOfferingTerm&&(this.licenseTerm=this.productOff.productOfferingTerm.find(c=>"License"===c.name),this.check_terms=!!this.licenseTerm),null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;l{this.toastVisibility=!1},3500))}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}resetSelections(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}deleteProduct(c){var t=this;return(0,C1.A)(function*(){void 0!==c&&(yield t.cartService.removeItemShoppingCart(c.id),console.log("removed"),t.eventMessage.emitRemovedCartItem(c)),t.toastVisibility=!1})()}hideCartSelection(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}goTo(c){this.router.navigate([c])}back(){this.location.back()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}goToDetails(){this.activeTab="overview"}goToChars(){this.activeTab="features"}goToAttach(){this.activeTab="overview"}goToAgreements(){this.activeTab="compliance"}goToRelationships(){this.activeTab="overview"}tabClass(c){return this.activeTab===c?"bg-white text-[#14274A] font-semibold":"text-[#526179] font-medium hover:text-[#14274A] hover:bg-white/50"}toggleTermsReadMore(){this.showTermsMore=!this.showTermsMore;const c=this.termsTextRef.nativeElement;this.showTermsMore?c.classList.remove("line-clamp-5"):c.classList.add("line-clamp-5")}goToLink(c){window.open(c,"_blank")}getOwner(){let c=this.prodSpec?.relatedParty;if(c)for(let t=0;t{this.orgInfo=l,console.log(this.orgInfo)})}goToOrgDetails(c){this.router.navigate(["/org-details",c])}openDrawer(){this.isDrawerOpen=!0}closeDrawer(){this.isDrawerOpen=!1}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getCharacteristicValueLabel(c){const t=this.formatCharacteristicScalar(c?.value),l=this.getUnitLabel(c?.unitOfMeasure);return l?`${t} (${l})`:t}getCharacteristicValuePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicValueLabel(c))}getCharacteristicRangeLabel(c){const t=this.formatCharacteristicScalar(c?.valueFrom),l=this.formatCharacteristicScalar(c?.valueTo),i=this.getUnitLabel(c?.unitOfMeasure),u=`${t} - ${l}`;return i?`${u} (${i})`:u}getCharacteristicRangePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicRangeLabel(c))}isOptionalCharacteristic(c){const t=(c?.name??"").toString().trim();if(!t||!this.prodSpec?.productSpecCharacteristic)return!1;const l=`${t} - enabled`.toLowerCase();return this.prodSpec.productSpecCharacteristic.some(i=>(i?.name??"").toString().trim().toLowerCase()===l)}isBooleanCharacteristic(c){const t=c?.productSpecCharacteristicValue;return!(!Array.isArray(t)||0===t.length)&&t.every(l=>"boolean"==typeof l?.value)}getBooleanDefaultValue(c){const t=c?.productSpecCharacteristicValue;return!(!Array.isArray(t)||0===t.length)&&!0===(t.find(i=>!0===i?.isDefault)??t[0])?.value}formatCharacteristicScalar(c){if(null==c)return"";if("object"==typeof c)try{return JSON.stringify(c)}catch{return String(c)}return String(c)}getUnitLabel(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}truncateCharacteristicLabel(c,t=120){return c?c.length>t?`${c.slice(0,t)}...`:c:""}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(d8),e.rXU(U2),e.rXU(x0.O),e.rXU(c5),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-details"]],viewQuery:function(t,l){if(1&t&&(e.GBs(M80,5),e.GBs(x80,5),e.GBs(b80,5),e.GBs(y80,5),e.GBs(F80,5),e.GBs(v80,5),e.GBs(k80,5),e.GBs(w80,5),e.GBs(S80,5),e.GBs(N80,5),e.GBs(E80,5),e.GBs(D80,5),e.GBs(T80,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.relationshipsContent=i.first),e.mGM(i=e.lsd())&&(l.detailsContent=i.first),e.mGM(i=e.lsd())&&(l.charsContent=i.first),e.mGM(i=e.lsd())&&(l.attachContent=i.first),e.mGM(i=e.lsd())&&(l.agreementsContent=i.first),e.mGM(i=e.lsd())&&(l.textDiv=i.first),e.mGM(i=e.lsd())&&(l.termsTextRef=i.first),e.mGM(i=e.lsd())&&(l.descriptionTextRef=i.first),e.mGM(i=e.lsd())&&(l.agreementsScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.relScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.attachScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.charsScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.detailsScrollAnchor=i.first)}},decls:54,vars:42,consts:[["descriptionText",""],["termsText",""],[1,"min-h-screen","bg-white","font-[Blinker]"],[1,"mx-auto","max-w-[1200px]","px-8"],[1,"flex","items-center","gap-2","pt-4","pb-6","text-[16px]","text-[#526179]"],[1,"cursor-pointer","hover:text-[#1f4fbf]","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","d","m8.25 4.5 7.5 7.5-7.5 7.5"],[1,"font-medium","text-[#1f4fbf]"],[1,"grid","grid-cols-1","lg:grid-cols-[1fr_500px]","gap-8","pb-8"],[1,"flex","flex-col"],[1,"text-[32px]","font-bold","leading-tight","text-[#14274A]","mb-4",3,"ngClass"],[1,"mb-5"],[1,"line-clamp-5","overflow-hidden"],[1,"text-[16px]","leading-[26px]","text-[#0B1528]",3,"ngClass","data"],[1,"mt-2","text-[14px]","font-medium","text-[#1f4fbf]","hover:underline"],[1,"flex","flex-col","gap-2","mb-5"],[1,"flex","items-center","flex-wrap","gap-2"],[1,"inline-flex","items-center","px-3","py-1","rounded-full","text-[13px]","font-medium","border","border-[#8EACE1]","text-[#14274A]","bg-[#8EACE1]/10"],[1,"relative","hidden","lg:block","rounded-2xl","bg-[#EBECEE]","aspect-[2/1]","overflow-hidden"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"relative","lg:hidden","rounded-2xl","bg-[#EBECEE]","aspect-[2/1]","overflow-hidden"],["id","tabs-container",1,"sticky","top-[88px]","z-20","bg-white","pt-2","shadow-[0_4px_8px_-4px_rgba(11,18,32,0.08)]"],[1,"flex","items-center","justify-between","rounded-[16px]","bg-[#EBECEE]","p-1","overflow-hidden"],[1,"flex","w-full","gap-1"],[1,"flex-1","py-1","px-2","text-[16px]","leading-[24px]","tracking-[0.5px]","text-center","rounded-[12px]","transition-colors",3,"click","ngClass"],[1,"pt-6","pb-8"],["id","details-container"],[1,"rounded-2xl","bg-[#14274A]","px-8","py-16","text-center","mt-8"],["id","toast-add-cart","role","alert",1,"flex","grid","grid-flow-row","mr-2","items-center","w-auto","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[3,"productOff","prodSpec","images","cartSelection"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/50","backdrop-blur-sm","p-4"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],[1,"mt-2","text-[14px]","font-medium","text-[#1f4fbf]","hover:underline",3,"click"],[1,"flex","items-center","gap-2","text-[15px]","text-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","d","M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"],[1,"cursor-pointer","hover:underline",3,"click"],[1,"flex","items-center","gap-2","text-[15px]","text-[#526179]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"],["data-cy","openAddToCartDrawer","type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"disabled","ngClass"],["data-cy","openAddToCartDrawer","type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 18 21",1,"w-4","h-4"],["d","M15 12a1 1 0 0 0 .962-.726l2-7A1 1 0 0 0 17 3H3.77L3.175.745A1 1 0 0 0 2.208 0H1a1 1 0 0 0 0 2h.438l.6 2.255v.019l2 7 .746 2.986A3 3 0 1 0 9 17a2.966 2.966 0 0 0-.184-1h2.368c-.118.32-.18.659-.184 1a3 3 0 1 0 3-3H6.78l-.5-2H15Z"],["type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","hover:bg-[#163b99]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click"],["data-cy","openAddToCartDrawer","type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"disabled","ngClass"],["data-cy","openAddToCartDrawer","type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click","disabled","ngClass"],["type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","hover:bg-[#163b99]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click"],[1,"rounded-[16px]","bg-[#F7F9FD]","border","border-[#DDE6F6]","py-4","px-6","mb-8"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"flex","items-center","gap-4"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-full","bg-[#eef2fb]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"],[1,"text-[14px]","text-[#8896A8]","block"],[1,"text-[16px]","font-semibold","text-[#14274A]"],["stroke-linecap","round","stroke-linejoin","round","d","M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"],["stroke-linecap","round","stroke-linejoin","round","d","m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"],[1,"mb-8"],[1,"mb-6"],["stroke-linecap","round","stroke-linejoin","round","d","M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"],[1,"text-[16px]","font-semibold","text-[#1f4fbf]","cursor-pointer","hover:underline",3,"click"],[1,"text-[24px]","font-bold","text-[#14274A]","mb-4"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-3"],[1,"mb-2"],[1,"font-semibold","text-[#14274A]"],[1,"text-[16px]","text-[#0B1528]","inline",3,"data"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-4","mb-8"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-2","break-words",3,"ngClass"],[1,"flex","items-center","justify-between"],[1,"text-[14px]","text-[#526179]"],[1,"text-xl","text-[#1f4fbf]",3,"icon"],["id","chars-container"],[1,"relative","rounded-2xl","bg-white","border","border-[#EBECEE]","p-6"],[1,"col-span-3","text-center","py-8","text-[#526179]"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-2","break-words","pr-20",3,"ngClass"],[1,"text-[13px]","text-[#526179]","mb-3",3,"ngClass","data"],[1,"absolute","top-4","right-4","inline-flex","items-center","rounded-md","bg-[#eef2fb]","px-2","py-1","text-xs","font-medium","text-[#1f4fbf]"],[1,"mt-3"],[1,"flex","items-center","gap-2"],[1,"text-sm","font-medium","text-[#526179]"],[1,"inline-flex","items-center","rounded-md","px-2","py-1","text-xs","font-medium",3,"ngClass"],[1,"flex","items-center","gap-2","mb-1"],[1,"h-4","w-4","shrink-0","rounded-full","border",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-4","w-4","text-white"],[1,"text-sm","text-[#526179]","break-all",3,"title"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],[1,"text-center","py-12","text-[#526179]"],["data-cy","pricePlanTitle",1,"text-[24px]","font-bold","text-[#14274A]","mb-4"],[1,"grid","gap-4","mb-8","grid-cols-1","md:grid-cols-2","lg:grid-cols-3"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","text-center"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-2","break-words",3,"ngClass"],[1,"text-[14px]","text-[#526179]",3,"ngClass","data"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-2"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","overflow-hidden"],[1,"px-6","py-4",3,"ngClass"],[1,"text-[18px]","font-bold","text-white","text-center","break-words",3,"ngClass"],[1,"p-6"],[1,"bg-[#1f4fbf]","px-6","py-4"],[1,"text-[18px]","font-bold","text-white","text-center"],[1,"p-6","text-[14px]","text-[#526179]","text-center"],[1,"rounded-2xl","bg-[#eef2fb]","border","border-[#D8DADE]","p-6"],[1,"flex","h-10","w-10","shrink-0","items-center","justify-center","rounded-full","bg-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-5","w-5","text-white"],[1,"text-[18px]","font-bold","text-[#14274A]"],["target","_blank",1,"inline-block","mt-3","font-medium","text-[#1f4fbf]","hover:underline","text-[14px]",3,"href"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-4"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","cursor-pointer","hover:shadow-md","transition-shadow"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","cursor-pointer","hover:shadow-md","transition-shadow",3,"click"],[1,"flex","h-12","w-12","items-center","justify-center","rounded-xl","bg-[#eef2fb]","mb-4"],[1,"text-[#1f4fbf]","text-xl",3,"icon"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-1"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-8","mb-8"],[1,"flex","justify-end","mb-4"],[1,"text-2xl","text-[#1f4fbf]",3,"icon"],[1,"overflow-hidden"],[1,"text-[16px]","text-[#526179]","break-words",3,"ngClass","data"],[1,"mt-4","text-[#1f4fbf]","font-medium","text-[14px]","hover:underline"],[1,"mt-4","text-[#1f4fbf]","font-medium","text-[14px]","hover:underline",3,"click"],[1,"text-[16px]","text-[#526179]","mb-8"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","flex","items-center","justify-between"],[1,"text-[18px]","font-bold","text-[#14274A]","break-words",3,"ngClass"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","bg-[#eef2fb]","hover:bg-[#dde6f6]","transition-colors","text-[#1f4fbf]","shrink-0","ml-4",3,"click"],[1,"text-lg",3,"icon"],[1,"text-[32px]","font-bold","text-white","mb-3"],[1,"text-[16px]","text-gray-300","mb-6"],["target","_blank","rel","noopener noreferrer",1,"inline-flex","items-center","px-8","py-3.5","rounded-lg","bg-[#1f4fbf]","text-white","text-[16px]","font-medium","hover:bg-[#163b99]","transition-colors",3,"href"],[1,"flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 18 20",1,"w-[18px]","h-[18px]","text-gray-800","dark:text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 15a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 0h8m-8 0-1-4m9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-9-4h10l2-7H3m2 7L3 4m0 0-.792-3H1"],[1,"text-sm","font-normal"],[1,"flex","items-center","ms-auto","space-x-2","rtl:space-x-reverse","p-1.5"],["type","button",1,"px-3","py-2","text-xs","font-medium","text-center","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","dark:bg-gray-800","dark:text-white","dark:border-gray-600","dark:hover:bg-gray-700","dark:hover:border-gray-600","dark:focus:ring-gray-700",3,"click"],["type","button","data-dismiss-target","#toast-add-cart","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700",3,"click"],[1,"sr-only"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"flex","w-full","mt-2","rounded-full","h-2.5","dark:bg-gray-700"],["id","progress-bar",1,"flex","bg-green-600","h-2.5","rounded-full","dark:bg-green-500","transition-width","delay-200","duration-3000","ease-out",2,"width","0px"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"click","ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/50","backdrop-blur-sm","p-4",3,"click"],[1,"relative","w-full","max-w-2xl","max-h-[80vh]","bg-white","rounded-2xl","shadow-2xl","flex","flex-col",3,"click"],[1,"flex","items-center","justify-between","px-6","py-4","border-b","border-[#EBECEE]"],[1,"text-[20px]","font-bold","text-[#14274A]","break-words","pr-8"],[1,"flex","items-center","justify-center","h-8","w-8","rounded-full","text-gray-400","hover:bg-gray-100","hover:text-gray-900","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],[1,"px-6","py-4","overflow-y-auto"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"nav",4)(3,"a",5),e.bIt("click",function(){return e.eBV(i),e.Njj(l.back())}),e.EFF(4,"All categories"),e.k0s(),e.qSk(),e.j41(5,"svg",6),e.nrm(6,"path",7),e.k0s(),e.joV(),e.j41(7,"span",8),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"h1",11),e.EFF(13),e.k0s(),e.j41(14,"div",12)(15,"div",13,0),e.nrm(17,"markdown",14),e.k0s(),e.DNE(18,A80,2,0,"button",15),e.k0s(),e.DNE(19,$80,7,2,"div",16),e.j41(20,"div",17),e.Z7z(21,O80,2,1,"span",18,Nn),e.k0s()(),e.j41(23,"div",19),e.nrm(24,"div",20)(25,"img",21),e.k0s(),e.j41(26,"div",22),e.nrm(27,"div",20)(28,"img",21),e.k0s()(),e.j41(29,"div",23)(30,"div",24)(31,"div",25)(32,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="overview")}),e.EFF(33," Overview "),e.k0s(),e.j41(34,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="features")}),e.EFF(35," Features "),e.k0s(),e.j41(36,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="pricing")}),e.EFF(37," Pricing "),e.k0s(),e.j41(38,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="compliance")}),e.EFF(39," Compliance "),e.k0s()(),e.DNE(40,U80,2,1),e.k0s(),e.DNE(41,Y80,2,1),e.k0s(),e.j41(42,"div",27),e.DNE(43,oe0,38,13,"div",28)(44,ze0,2,1)(45,Ee0,5,5)(46,qe0,20,7)(47,Xe0,7,2,"div",29),e.k0s()()(),e.DNE(48,We0,19,9,"div",30)(49,Je0,1,4,"cart-card",31)(50,Qe0,1,1,"error-message",32)(51,Ze0,1,6,"app-quote-request-modal",33)(52,Ke0,10,6,"div",34),e.j41(53,"app-price-plan-drawer",35),e.bIt("closeDrawer",function(){return e.eBV(i),e.Njj(l.closeDrawer())}),e.k0s()}2&t&&(e.R7$(8),e.JRh(e.bMT(9,34,"PRODUCT_DETAILS._details")),e.R7$(4),e.Y8G("ngClass",e.l_i(36,n5,l.hasLongWord(null==l.productOff?null:l.productOff.name,20),!l.hasLongWord(null==l.productOff?null:l.productOff.name,20))),e.R7$(),e.JRh(null==l.productOff?null:l.productOff.name),e.R7$(4),e.Y8G("ngClass",e.l_i(39,n5,l.hasLongWord(null==l.productOff?null:l.productOff.description,20),!l.hasLongWord(null==l.productOff?null:l.productOff.description,20)))("data",null==l.productOff?null:l.productOff.description),e.R7$(),e.vxM(18,l.showDescriptionReadMore?18:-1),e.R7$(),e.vxM(19,null!=l.orgInfo?19:-1),e.R7$(2),e.Dyx(l.categories),e.R7$(3),e.xc7("background-image","url("+l.getProductImage()+")"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(2),e.xc7("background-image","url("+l.getProductImage()+")"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(4),e.Y8G("ngClass",l.tabClass("overview")),e.R7$(2),e.Y8G("ngClass",l.tabClass("features")),e.R7$(2),e.Y8G("ngClass",l.tabClass("pricing")),e.R7$(2),e.Y8G("ngClass",l.tabClass("compliance")),e.R7$(2),e.vxM(40,l.check_logged?40:-1),e.R7$(),e.vxM(41,l.check_logged?41:-1),e.R7$(2),e.vxM(43,"overview"===l.activeTab?43:-1),e.R7$(),e.vxM(44,"features"===l.activeTab?44:-1),e.R7$(),e.vxM(45,"pricing"===l.activeTab?45:-1),e.R7$(),e.vxM(46,"compliance"===l.activeTab?46:-1),e.R7$(),e.vxM(47,l.check_logged?-1:47),e.R7$(),e.vxM(48,l.toastVisibility?48:-1),e.R7$(),e.vxM(49,l.cartSelection?49:-1),e.R7$(),e.vxM(50,l.showError?50:-1),e.R7$(),e.vxM(51,l.showQuoteModal?51:-1),e.R7$(),e.vxM(52,l.showDescriptionModal?52:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"))},dependencies:[_.YU,J2.aY,Ud1,N0,cH,E0,YN1,_.vh,s1.D9],styles:[".container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;background-size:cover;background-repeat:no-repeat;background-position:center}"]})}}return n})();const mf1=(n,a)=>a.id,nD=(n,a)=>({"break-all":n,"break-words":a});function c50(n,a){if(1&n&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,nD,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function t50(n,a){if(1&n&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,c50,5,6,"p",36,mf1),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,1,"PRODUCT_DETAILS._service_spec"),":"),e.R7$(2),e.Dyx(c.serviceSpecs)}}function n50(n,a){if(1&n&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,nD,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function l50(n,a){if(1&n&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,n50,5,6,"p",36,mf1),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,1,"PRODUCT_DETAILS._resource_spec"),":"),e.R7$(2),e.Dyx(c.resourceSpecs)}}function s50(n,a){1&n&&(e.j41(0,"div",38)(1,"div",39)(2,"div",40)(3,"h5",41),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",42),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function a50(n,a){if(1&n&&(e.j41(0,"div",43)(1,"div",44)(2,"h2",45),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",46),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(null==c.pricePlan?null:c.pricePlan.name),e.R7$(),e.Y8G("ngClass",e.l_i(3,nD,c.hasLongWord(null==c.pricePlan?null:c.pricePlan.description,20),!c.hasLongWord(null==c.pricePlan?null:c.pricePlan.description,20)))("data",null==c.pricePlan?null:c.pricePlan.description)}}function o50(n,a){if(1&n&&(e.j41(0,"div",33),e.DNE(1,s50,9,6,"div",38)(2,a50,5,6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0==(null==c.prod||null==c.prod.productPrice?null:c.prod.productPrice.length)?1:2)}}function i50(n,a){if(1&n&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function r50(n,a){if(1&n&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function d50(n,a){if(1&n&&(e.j41(0,"div",50)(1,"div",52)(2,"h3",53),e.EFF(3),e.k0s(),e.j41(4,"div",54),e.nrm(5,"input",55),e.DNE(6,i50,2,2,"label",56)(7,r50,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function f50(n,a){1&n&&(e.j41(0,"div",51)(1,"div",57),e.qSk(),e.j41(2,"svg",58),e.nrm(3,"path",59),e.k0s(),e.joV(),e.j41(4,"span",60),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",61),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function u50(n,a){if(1&n&&(e.j41(0,"div",34,1)(2,"h2",47),e.EFF(3,"Configuration options"),e.k0s(),e.j41(4,"div",48)(5,"div",49),e.Z7z(6,d50,8,2,"div",50,mf1,!1,f50,9,3,"div",51),e.k0s()()()),2&n){const c=e.XpG();e.R7$(6),e.Dyx(c.prod.productCharacteristic)}}let m50=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.eventMessage=T,this.inventoryServ=W,this.location=u1,this.check_logged=!1,this.images=[],this.attatchments=[],this.serviceSpecs=[],this.resourceSpecs=[],this.prod={},this.prodSpec={},this.checkCustom=!1,this.faScaleBalanced=A2.iRu,this.faArrowProgress=A2.SZt,this.faArrowRightArrowLeft=A2.tNR,this.faObjectExclude=A2.tP3,this.faSwap=A2.FJA,this.faGlobe=A2.Bwz,this.faBook=A2.LBj,this.faShieldHalved=A2.fLc,this.faAtom=A2.RSf,this.faDownload=A2.cbP}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(D2(),c.handleLoginState(),c.id=c.route.snapshot.paramMap.get("id"),c.id)try{c.prod=yield c.inventoryServ.getProduct(c.id),c.checkCustom=c.prod?.productPrice?.some(l=>"custom"===l.priceType)??!1;const t=yield c.api.getProductById(c.prod.productOffering.id);c.prodSpec=yield c.api.getProductSpecification(t.productSpecification.id),c.prod.productPrice.length>0&&(c.pricePlan=yield c.loadPricePlan(c.prod.productPrice[0].productOfferingPrice.id)),c.productOff={id:t.id,name:t.name,category:t.category,description:t.description,lastUpdate:t.lastUpdate,attachment:c.prodSpec?.attachment??[],productOfferingPrice:c.prod.productPrice,productSpecification:t.productSpecification,productOfferingTerm:t.productOfferingTerm,serviceLevelAgreement:t.serviceLevelAgreement,version:t.version},console.log(c.productOff),c.organizeAttachments(),c.completeCharacteristics(),yield c.fetchSpecifications(),c.cdr.detectChanges()}catch(t){console.error("Error fetching product details:",t)}})()}completeCharacteristics(){this.prod.productCharacteristic=this.prod?.productCharacteristic?.map(c=>(this.prodSpec?.productSpecCharacteristic?.forEach(t=>{c.name===t.name&&t.productSpecCharacteristicValue&&t.productSpecCharacteristicValue.length>0&&t.productSpecCharacteristicValue[0].unitOfMeasure&&(c.unitOfMeasure=t.productSpecCharacteristicValue[0].unitOfMeasure)}),c))}handleLoginState(){const c=this.localStorage.getObject("login_items"),t=c&&Object.keys(c).length>0&&c.expire-$2()().unix()-4>0;this.check_logged=t,this.cdr.detectChanges()}organizeAttachments(){const c=this.productOff?.attachment?.filter(t=>"Profile Picture"===t.name)??[];0===c.length?(this.images=this.productOff?.attachment?.filter(t=>"Picture"===t.attachmentType)??[],this.attatchments=this.productOff?.attachment?.filter(t=>"Picture"!==t.attachmentType)??[]):(this.images=c,this.attatchments=this.productOff?.attachment?.filter(t=>"Profile Picture"!==t.name)??[])}fetchSpecifications(){var c=this;return(0,C1.A)(function*(){const t=c.prodSpec?.serviceSpecification?.map(C=>c.api.getServiceSpec(C.id))??[],l=c.prodSpec?.resourceSpecification?.map(C=>c.api.getResourceSpec(C.id))??[],[i,u]=yield Promise.all([Promise.all(t),Promise.all(l)]);c.serviceSpecs=i,c.resourceSpecs=u})()}loadPricePlan(c){var t=this;return(0,C1.A)(function*(){return yield t.api.getOfferingPrice(c)})()}back(){this.location.back()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2),e.rXU(f8),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-inv-detail"]],decls:45,vars:27,consts:[["detailsContent",""],["charsContent",""],[1,"container","mx-auto","pt-2","pb-8"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","lg:grid","lg:grid-cols-60/40"],[1,"flex","lg:hidden","overflow-hidden","justify-center","items-center","bg-white","rounded-t-lg","w-full"],["alt","Product image",1,"rounded-t-lg","h-5/6","w-5/6","object-contain","dark:text-white",3,"src"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"pt-2","line-clamp-5","h-fit"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"hidden","lg:block","overflow-hidden","rounded-r-lg"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"object-contain","h-5/6","w-5/6","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],[1,"w-full","h-full","bg-secondary-50","rounded-b-lg","p-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-b"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-8","lg:p-12"],["id","details-container"],[1,"text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"pb-2"],[1,"text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-8","pt-12"],[1,"grid","grid-flow-row","gap-4","lg:grid-cols-2","lg:auto-cols-auto","justify-items-center","p-2"],["id","chars-container"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"pl-4","dark:text-gray-200"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"flex","justify-center","mb-2","p-4","font-normal","text-gray-700"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","dark:text-white","text-3xl","font-extrabold","mb-2"],[1,"dark:text-gray-200","w-full","p-4","text-wrap","break-words",3,"ngClass","data"],[1,"text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12","dark:text-primary-50"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"text-center"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return e.eBV(i),e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"div",16),e.nrm(19,"img",17),e.k0s(),e.j41(20,"div",18)(21,"div",19)(22,"h5",20),e.EFF(23),e.k0s()(),e.j41(24,"div",21),e.nrm(25,"markdown",22),e.k0s(),e.j41(26,"div",21),e.EFF(27),e.k0s()(),e.j41(28,"div",23)(29,"div",24),e.nrm(30,"div",25)(31,"img",26),e.k0s()()(),e.j41(32,"div",27)(33,"div",28)(34,"div",29)(35,"h2",30,0),e.EFF(37,"Description"),e.k0s(),e.nrm(38,"markdown",22),e.DNE(39,t50,6,3,"div",31)(40,l50,6,3,"div",31),e.j41(41,"h2",32),e.EFF(42,"Price Plan"),e.k0s(),e.DNE(43,o50,3,1,"div",33),e.k0s(),e.DNE(44,u50,9,1,"div",34),e.k0s()()()}2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,17,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,19,"PRODUCT_DETAILS._details")),e.R7$(4),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(4),e.JRh(null==l.productOff?null:l.productOff.name),e.R7$(2),e.Y8G("ngClass",e.l_i(21,nD,l.hasLongWord(null==l.productOff?null:l.productOff.description,20),!l.hasLongWord(null==l.productOff?null:l.productOff.description,20)))("data",null==l.productOff?null:l.productOff.description),e.R7$(2),e.SpI(" Start Date: ",l.prod.startDate," "),e.R7$(3),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(7),e.Y8G("ngClass",e.l_i(24,nD,l.hasLongWord(l.prodSpec.description,20),!l.hasLongWord(l.prodSpec.description,20)))("data",l.prodSpec.description),e.R7$(),e.vxM(39,l.serviceSpecs.length>0?39:-1),e.R7$(),e.vxM(40,l.resourceSpecs.length>0?40:-1),e.R7$(3),e.vxM(43,null!=(null==l.prod?null:l.prod.productPrice)?43:-1),e.R7$(),e.vxM(44,null!=l.prod.productCharacteristic&&l.prod.productCharacteristic.length>0?44:-1))},dependencies:[_.YU,N0,s1.D9]})}}return n})(),qN1=(()=>{class n{constructor(){this.category={name:"Default"},this.faAddressCard=mc,this.faCloud=A2.jBL}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-badge"]],inputs:{category:"category"},decls:4,vars:2,consts:[[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2","max-w-full"],[1,"text-primary-50","mr-2",3,"icon"],[1,"truncate"]],template:function(t,l){1&t&&(e.j41(0,"a",0),e.nrm(1,"fa-icon",1),e.j41(2,"p",2),e.EFF(3),e.k0s()()),2&t&&(e.R7$(),e.Y8G("icon",l.faCloud),e.R7$(2),e.SpI(" ",l.category.name," "))},dependencies:[J2.aY],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]})}}return n})();const UL=(n,a)=>a.id,p50=()=>[],En=(n,a)=>({"break-all":n,"break-words":a});function h50(n,a){1&n&&(e.j41(0,"div",31),e.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Loading..."),e.k0s()())}function g50(n,a){1&n&&e.nrm(0,"bae-badge",46),2&n&&e.Y8G("category",a.$implicit)}function _50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(3).openModifyFromCard(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",58),e.EFF(8),e.nI1(9,"translate"),e.nrm(10,"div",59),e.k0s(),e.j41(11,"button",60),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(3).showUnsubscribeModal(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(12,"svg",61),e.nrm(13,"path",62),e.k0s(),e.joV(),e.j41(14,"span",35),e.EFF(15,"Unsubscribe"),e.k0s()(),e.j41(16,"div",58),e.EFF(17),e.nI1(18,"translate"),e.nrm(19,"div",59),e.k0s()()}if(2&n){const c=e.XpG().$index;e.R7$(),e.BMQ("data-tooltip-target","modify-default-"+c),e.R7$(4),e.JRh(e.bMT(6,7,"PRODUCT_INVENTORY._modify_chars")),e.R7$(2),e.BMQ("id","modify-default-"+c),e.R7$(),e.SpI(" ",e.bMT(9,9,"PRODUCT_INVENTORY._modify_chars")," "),e.R7$(3),e.BMQ("data-tooltip-target","unsubscribe-default-"+c),e.R7$(5),e.BMQ("id","unsubscribe-default-"+c),e.R7$(),e.SpI(" ",e.bMT(18,11,"PRODUCT_INVENTORY._unsubscribe")," ")}}function L50(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function C50(n,a){if(1&n&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function z50(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function M50(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function x50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",39),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectProduct(l))}),e.j41(2,"div",40),e.nrm(3,"div",41)(4,"img",42),e.k0s()(),e.j41(5,"div",43)(6,"div",44)(7,"div",45),e.Z7z(8,g50,1,1,"bae-badge",46,UL),e.k0s(),e.j41(10,"div",47)(11,"a",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToProductDetails(l.product))}),e.j41(12,"h5",49),e.EFF(13),e.k0s()(),e.DNE(14,_50,20,13,"div",50),e.k0s(),e.nrm(15,"markdown",51),e.j41(16,"div",52)(17,"div"),e.EFF(18),e.k0s(),e.j41(19,"div",53),e.DNE(20,L50,2,1,"span",54)(21,C50,2,1)(22,z50,2,1)(23,M50,2,1),e.k0s()()()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(3);e.R7$(3),e.muq("background-image: url(",l.getProductImage(c.product),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(c.product),e.B4B),e.Y8G("id","img-"+t),e.R7$(4),e.Dyx(null==c.product?null:c.product.category),e.R7$(5),e.JRh(null==c.product?null:c.product.name),e.R7$(),e.vxM(14,"active"==c.status?14:-1),e.R7$(),e.Y8G("data",null==c.product?null:c.product.description),e.R7$(3),e.SpI("V: ",(null==c.product?null:c.product.version)||"latest",""),e.R7$(2),e.vxM(20,"active"==c.status?20:"created"==c.status?21:"suspended"==c.status?22:"terminated"==c.status?23:-1)}}function b50(n,a){1&n&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_INVENTORY._not_found")))}function y50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",66)(1,"button",67),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",68),e.nrm(4,"path",69),e.k0s()()()}}function F50(n,a){if(1&n&&e.DNE(0,y50,5,0,"div",66),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function v50(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Loading..."),e.k0s()())}function k50(n,a){if(1&n&&(e.j41(0,"div",36),e.Z7z(1,x50,24,10,"div",37,UL,!1,b50,3,3,"div",38),e.k0s(),e.DNE(4,F50,1,1)(5,v50,6,0)),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.inventory),e.R7$(3),e.vxM(4,c.loading_more?5:4)}}function w50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"h2",10),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",11)(7,"div",12)(8,"div",13),e.nrm(9,"fa-icon",14),e.j41(10,"h2",15),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",16),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",17),e.nrm(17,"path",18),e.k0s()(),e.joV(),e.j41(18,"div",19)(19,"h6",20),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",21)(23,"li",22)(24,"input",23),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("created"))}),e.k0s(),e.j41(25,"label",24),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",22)(29,"input",25),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("active"))}),e.k0s(),e.j41(30,"label",26),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",22)(34,"input",27),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("suspended"))}),e.k0s(),e.j41(35,"label",28),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",22)(39,"input",29),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("terminated"))}),e.k0s(),e.j41(40,"label",30),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()()()(),e.DNE(43,h50,6,0,"div",31)(44,k50,6,2)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,10,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,12,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,14,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,16,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,18,"PRODUCT_INVENTORY._created")," "),e.R7$(5),e.SpI(" ",e.bMT(32,20,"PRODUCT_INVENTORY._active")," "),e.R7$(5),e.SpI(" ",e.bMT(37,22,"PRODUCT_INVENTORY._suspended")," "),e.R7$(5),e.SpI(" ",e.bMT(42,24,"PRODUCT_INVENTORY._terminated")," "),e.R7$(2),e.vxM(43,c.loading?43:44)}}function S50(n,a){if(1&n&&(e.j41(0,"div",107)(1,"div",108)(2,"h2",109),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",110),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function N50(n,a){1&n&&e.DNE(0,S50,5,10,"div",107),2&n&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function E50(n,a){1&n&&(e.j41(0,"div",106)(1,"div",111)(2,"div",112)(3,"h5",113),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",114),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function D50(n,a){if(1&n&&(e.j41(0,"div",105),e.Z7z(1,N50,1,1,null,null,UL),e.DNE(3,E50,9,6,"div",106),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function T50(n,a){if(1&n&&(e.j41(0,"div",116)(1,"div",117)(2,"h5",118),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function R50(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",120)(2,"h5",121),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function A50(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",112)(2,"h5",122),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function I50(n,a){if(1&n&&e.DNE(0,T50,6,10,"div",116)(1,R50,6,10)(2,A50,6,10),2&n){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function P50(n,a){1&n&&(e.j41(0,"div",115)(1,"div",112)(2,"h5",113),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",123),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(7,4,"SHOPPING_CART._free_desc")))}function j50(n,a){if(1&n&&(e.j41(0,"div",105),e.Z7z(1,I50,3,1,null,null,UL),e.DNE(3,P50,8,6,"div",115),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function $50(n,a){if(1&n&&e.DNE(0,D50,4,1,"div",105)(1,j50,4,1),2&n){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function O50(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",102)(1,"td",124)(2,"a",125),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectService(l.id))}),e.EFF(3),e.k0s()(),e.j41(4,"td",126),e.EFF(5),e.k0s(),e.j41(6,"td",127),e.EFF(7),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function B50(n,a){1&n&&(e.j41(0,"div",103)(1,"div",128),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function V50(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",102)(1,"td",124)(2,"a",125),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectResource(l.id))}),e.EFF(3),e.k0s()(),e.j41(4,"td",126),e.EFF(5),e.k0s(),e.j41(6,"td",127),e.EFF(7),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function U50(n,a){1&n&&(e.j41(0,"div",103)(1,"div",128),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function G50(n,a){if(1&n&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function H50(n,a){if(1&n&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function Y50(n,a){if(1&n&&(e.j41(0,"div",134)(1,"div",136)(2,"h3",137),e.EFF(3),e.k0s(),e.j41(4,"div",138),e.nrm(5,"input",139),e.DNE(6,G50,2,2,"label",140)(7,H50,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function q50(n,a){1&n&&(e.j41(0,"div",135)(1,"div",141),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",142),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function X50(n,a){if(1&n&&(e.j41(0,"div",104,1)(2,"h2",131),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",132)(6,"div",133),e.Z7z(7,Y50,8,2,"div",134,UL,!1,q50,9,3,"div",135),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._chars")),e.R7$(4),e.Dyx(c.selectedProduct.productCharacteristic)}}function W50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",71)(2,"nav",72)(3,"ol",73)(4,"li",74)(5,"button",75),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",76),e.nrm(7,"path",77),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",78)(11,"div",22),e.qSk(),e.j41(12,"svg",79),e.nrm(13,"path",80),e.k0s(),e.joV(),e.j41(14,"span",81),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",82)(18,"div",83)(19,"div",84)(20,"h5",85),e.EFF(21),e.k0s()()(),e.j41(22,"div",86)(23,"div",87),e.nrm(24,"div",88)(25,"img",89),e.k0s()()(),e.j41(26,"div",90)(27,"div",91)(28,"div",92)(29,"h2",93,0),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"markdown",94),e.j41(34,"h2",95),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.DNE(37,$50,2,1),e.k0s(),e.j41(38,"div")(39,"h2",95),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"div",96)(43,"div",97)(44,"table",98)(45,"thead",99)(46,"tr")(47,"th",100),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"th",100),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"th",101),e.EFF(54),e.nI1(55,"translate"),e.k0s()()(),e.j41(56,"tbody"),e.Z7z(57,O50,8,7,"tr",102,UL,!1,B50,7,3,"div",103),e.k0s()()()()(),e.j41(60,"div")(61,"h2",95),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"div",96)(65,"div",97)(66,"table",98)(67,"thead",99)(68,"tr")(69,"th",100),e.EFF(70),e.nI1(71,"translate"),e.k0s(),e.j41(72,"th",100),e.EFF(73),e.nI1(74,"translate"),e.k0s(),e.j41(75,"th",101),e.EFF(76),e.nI1(77,"translate"),e.k0s()()(),e.j41(78,"tbody"),e.Z7z(79,V50,8,7,"tr",102,UL,!1,U50,7,3,"div",103),e.k0s()()()()(),e.DNE(82,X50,10,4,"div",104),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,23,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,25,"PRODUCT_INVENTORY._prod_details")),e.R7$(6),e.JRh(null==c.selectedProduct.product?null:c.selectedProduct.product.name),e.R7$(3),e.muq("background-image: url(",c.getProductImage(c.selectedProduct.product),");filter: blur(20px);"),e.R7$(),e.FS9("src",c.getProductImage(c.selectedProduct.product),e.B4B),e.R7$(6),e.JRh(e.bMT(32,27,"PRODUCT_INVENTORY._description")),e.R7$(2),e.Y8G("ngClass",e.l_i(47,En,c.hasLongWord(null==c.selectedProduct.product?null:c.selectedProduct.product.description,20),!c.hasLongWord(null==c.selectedProduct.product?null:c.selectedProduct.product.description,20)))("data",null==c.selectedProduct.product?null:c.selectedProduct.product.description),e.R7$(2),e.JRh(e.bMT(36,29,"PRODUCT_INVENTORY._pricing")),e.R7$(2),e.vxM(37,null!=(null==c.productOff?null:c.productOff.productOfferingPrice)?37:-1),e.R7$(3),e.JRh(e.bMT(41,31,"PRODUCT_INVENTORY._services")),e.R7$(8),e.SpI(" ",e.bMT(49,33,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(52,35,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(55,37,"OFFERINGS._status")," "),e.R7$(3),e.Dyx(c.selectedServices),e.R7$(5),e.JRh(e.bMT(63,39,"PRODUCT_INVENTORY._resources")),e.R7$(8),e.SpI(" ",e.bMT(71,41,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(74,43,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(77,45,"OFFERINGS._status")," "),e.R7$(3),e.Dyx(c.selectedResources),e.R7$(3),e.vxM(82,null!=c.selectedProduct.productCharacteristic&&c.selectedProduct.productCharacteristic.length>0?82:-1)}}function J50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",143),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",144)(3,"button",145),e.bIt("click",function(l){return e.eBV(c),e.XpG().unsubscribeModal=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s(),e.joV(),e.j41(6,"span",35),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",148),e.nrm(10,"path",149),e.k0s(),e.joV(),e.j41(11,"p",150),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",151)(15,"button",152),e.bIt("click",function(l){return e.eBV(c),e.XpG().unsubscribeModal=!1,e.Njj(l.stopPropagation())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.unsubscribeProduct())}),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.unsubscribeModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,6,"PRODUCT_INVENTORY._close_modal")),e.R7$(5),e.Lme("",e.bMT(13,8,"PRODUCT_INVENTORY._cancel_sub")," (",c.prodToUnsubscribe.product.name,")"),e.R7$(4),e.SpI(" ",e.bMT(17,10,"PRODUCT_INVENTORY._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(20,12,"PRODUCT_INVENTORY._yes_sure")," ")}}function Q50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",143),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",144)(3,"button",145),e.bIt("click",function(l){return e.eBV(c),e.XpG().renewModal=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s(),e.joV(),e.j41(6,"span",35),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",148),e.nrm(10,"path",154),e.k0s(),e.joV(),e.j41(11,"p",150),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",151)(15,"button",152),e.bIt("click",function(l){return e.eBV(c),e.XpG().renewModal=!1,e.Njj(l.stopPropagation())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.renewProduct(l.prodToRenew.id))}),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.renewModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,6,"PRODUCT_INVENTORY._close_modal")),e.R7$(5),e.Lme("",e.bMT(13,8,"PRODUCT_INVENTORY._renew_sub")," (",c.prodToRenew.product.name,")"),e.R7$(4),e.SpI(" ",e.bMT(17,10,"PRODUCT_INVENTORY._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(20,12,"PRODUCT_INVENTORY._yes_sure")," ")}}function Z50(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function K50(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-billing-address",165),e.bIt("selectedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onBillingSelected(l))}),e.k0s()}if(2&n){const t=a.$index;e.Y8G("data",a.$implicit)("position",t)}}function ec0(n,a){1&n&&(e.j41(0,"p",161),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._no_billing")))}function cc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",6)(1,"div",156),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",157)(3,"button",145),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showBillingSelector=!1)}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s()(),e.joV(),e.j41(6,"h3",158),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",159),e.Z7z(10,K50,1,2,"app-billing-address",160,UL,!1,ec0,3,3,"p",161),e.k0s(),e.j41(13,"div",162)(14,"button",163),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showBillingSelector=!1)}),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"button",164),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmModify())}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(7),e.JRh(e.bMT(8,9,"PRODUCT_INVENTORY._select_billing")),e.R7$(3),e.Dyx(c.billingAddresses),e.R7$(5),e.SpI(" ",e.bMT(16,11,"PRODUCT_INVENTORY._cancel")," "),e.R7$(2),e.AVh("opacity-50",!c.selectedBillingAddress)("cursor-not-allowed",!c.selectedBillingAddress),e.Y8G("disabled",!c.selectedBillingAddress),e.R7$(),e.SpI(" ",e.bMT(19,13,"PRODUCT_INVENTORY._confirm_modify")," ")}}let tc0=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.priceService=u,this.router=C,this.orderService=b,this.eventMessage=T,this.paginationService=W,this.accountService=u1,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.prodId=void 0,this.inventory=[],this.nextInventory=[],this.partyId="",this.loading=!1,this.bgColor=[],this.products=[],this.unsubscribeModal=!1,this.renewModal=!1,this.prices=[],this.filters=["active","created"],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_LIMIT,this.searchField=new p.MJ,this.keywordFilter=void 0,this.selectedResources=[],this.selectedServices=[],this.errorMessage="",this.showError=!1,this.showDetails=!1,this.checkCustom=!1,this.checkFrom=!0,this.destroy$=new S.B,this.isModifyDrawerOpen=!1,this.billingAddresses=[],this.selectedBillingAddress=null,this.showBillingSelector=!1,this.pendingModifyPayload=null,this.searchInputListener=a1=>{console.log("Input updated"),""==this.searchField.value&&(this.keywordFilter=void 0,this.getInventory(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{"ChangedSession"===a1.type&&this.initInventory()})}ngOnInit(){null==this.prodId&&(this.checkFrom=!1),this.initInventory();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}onClick(){1==this.unsubscribeModal&&(this.unsubscribeModal=!1,this.cdr.detectChanges()),1==this.prodToRenew&&(this.prodToRenew=!1,this.cdr.detectChanges())}getProductImage(c){let t=[];if(c?.attachment){let l=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[];t=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[],0!=l.length&&(t=l)}return t.length>0?t?.at(0)?.url:"https://placehold.co/600x400/svg"}goToProductDetails(c){document.querySelector("body > div[modal-backdrop]")?.remove(),console.log("info"),console.log(c),this.router.navigate(["product-inventory",c?.id])}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.keywordFilter,filters:t.filters,partyId:t.partyId};yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.inventory,t.nextInventory,l,t.paginationService.getInventory.bind(t.paginationService)).then(i=>{if(t.page_check=i.page_check,t.inventory=i.items,t.nextInventory=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1,D2(),null!=t.prodId&&t.checkFrom){let u=t.inventory.findIndex(C=>C.id==t.prodId);t.selectProduct(t.inventory[u]),t.checkFrom=!1}})})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),console.log(this.filters),this.filters.push(c)),this.getInventory(!1)}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0;try{yield c.getInventory(!0)}finally{c.loading_more=!1}})()}filterInventoryByKeywords(){this.keywordFilter=this.searchField.value,this.getInventory(!1)}unsubscribeProduct(){var c=this;return(0,C1.A)(function*(){const t=c.prodToUnsubscribe,l={id:t.productOffering.id,action:"delete",productOffering:{id:t.productOffering.id,href:t.productOffering.id},product:{id:t.id,productCharacteristic:[]}};c.unsubscribeModal=!1,yield c.onModifySubmit(l)})()}showUnsubscribeModal(c){this.unsubscribeModal=!0,this.prodToUnsubscribe=c}showRenewModal(c){this.renewModal=!0,this.prodToRenew=c}renewProduct(c){console.log(c)}selectProduct(c){var t=this;return(0,C1.A)(function*(){t.selectedProduct=c,console.log("selecting prod"),console.log(t.selectedProduct),t.selectedResources=[],t.selectedServices=[],console.log("is prod spec undefined?"),console.log(t.selectedProduct.product);let l=yield t.api.getProductSpecification(t.selectedProduct.product.productSpecification.id);if(t.selectedProdSpec=l,null!=l.serviceSpecification)for(let b=0;bl.length>t)}openModifyFromCard(c){var t=this;return(0,C1.A)(function*(){yield t.selectProduct(c),t.showDetails=!1,t.isModifyDrawerOpen=!0})()}onModifySubmit(c){var t=this;return(0,C1.A)(function*(){t.pendingModifyPayload=c,yield t.getBilling(),t.showBillingSelector=!0})()}getBilling(){var c=this;return(0,C1.A)(function*(){c.selectedBillingAddress=null,c.billingAddresses=[];let t=yield c.accountService.getBillingAccount();for(let l=0;l{c.showError=!1},3e3)}c.showBillingSelector=!1})()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(X8),e.rXU(E2.Ix),e.rXU(D8),e.rXU(U2),e.rXU(w6),e.rXU(x0.O))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-products"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prodId:"prodId"},decls:8,vars:13,consts:[["detailsContent",""],["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],["tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[3,"closeDrawer","modifySubmit","mode","productOff","prodSpec","isOpen","inventoryProductId","existingCharacteristics","width"],[1,"backdrop-blur-sm","fixed","inset-0","z-50","flex","justify-center","items-center"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","created","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","created",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","suspended","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","suspended",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","terminated","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-600","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","terminated",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"grid","grid-cols-1","place-items-center","sm:grid-cols-2","lg:grid-cols-3","gap-4"],["data-cy","productInventory",1,"w-full","h-full","bg-secondary-50","dark:bg-secondary-100","dark:border-secondary-100","rounded-lg","border-secondary-50","border"],[1,"min-h-19","dark:text-gray-600","text-center","dark:text-gray-400"],[1,"rounded","overflow-hidden","cursor-pointer",3,"click"],[1,"relative","h-48","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"h-5/6","w-5/6","object-contain","z-10","dark:text-white",3,"id","src"],[1,"bg-cover","bg-right-bottom","bg-opacity-25","rounded-lg",2,"background-image","url(assets/logos/dome-logo-element-colour.png)"],[1,"px-5","py-5","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg"],[1,"h-[30px]","overflow-y-hidden","overflow-x-hidden"],[1,"ml-2",3,"category"],[1,"flex","flex-row","justify-between"],[1,"flex","cursor-pointer",3,"click"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"flex","gap-1"],[1,"min-h-19","h-19","line-clamp-2","text-gray-600","dark:text-gray-400",3,"data"],[1,"flex","w-full","justify-between","mt-2.5","mb-5","text-gray-500","font-mono"],[1,"flex","items-center","justify-center","rounded-lg"],[1,"bg-blue-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","modifyInvProduct","type","button",1,"flex","h-fit","text-primary-100","border","border-primary-100","hover:bg-primary-100","hover:text-white","focus:ring-4","focus:outline-none","focus:ring-blue-400","font-medium","rounded-full","text-sm","p-2","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m14.304 4.844 2.852 2.852M7 7H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4.5m2.409-9.91a2.017 2.017 0 0 1 0 2.853l-6.844 6.844L8 14l.713-3.565 6.844-6.844a2.015 2.015 0 0 1 2.852 0Z"],["role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","rounded-lg","shadow-sm","opacity-0","tooltip","bg-primary-100"],["data-popper-arrow","",1,"tooltip-arrow"],["data-cy","terminateInvProduct","type","button",1,"flex","h-fit","text-red-600","border","border-red-600","hover:bg-red-600","hover:text-white","focus:ring-4","focus:outline-none","focus:ring-red-400","font-medium","rounded-full","text-sm","p-2","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],[1,"bg-blue-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-6","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","bg-secondary-50","rounded-lg","dark:bg-secondary-100","lg:grid","lg:grid-cols-80/20"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"hidden","lg:block","overflow-hidden","rounded-lg","mr-4"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"object-contain","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],[1,"p-4"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-8","lg:p-12"],["id","details-container"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-8","pt-12"],[1,"bg-secondary-50","dark:bg-secondary-100","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["id","chars-container"],[1,"grid","gap-4","p-2","justify-center","justify-items-center","[grid-template-columns:repeat(auto-fit,minmax(250px,max-content))]"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","dark:text-white","text-3xl","font-extrabold","mb-2","break-words",3,"ngClass"],[1,"dark:text-gray-200","w-full","p-4","text-wrap","break-words",3,"ngClass","data"],[1,"mx-auto","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"flex","justify-center","mb-2","p-4","font-normal","text-gray-700"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full"],[1,"mx-auto","bg-white","dark:bg-secondary-200","dark:border-gray-800","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full","text-wrap"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full","break-words",3,"ngClass"],[1,"pl-4","pr-4"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"flex","justify-center","mb-4","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700","dark:text-white"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12","dark:text-primary-50"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-white","rounded-lg","shadow","dark:bg-gray-800","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","dark:text-gray-500","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-gray-300"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:text-white","dark:hover:bg-gray-600","dark:focus:ring-gray-600",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-600","rounded-lg","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","dark:bg-red-500","dark:hover:bg-red-600","dark:focus:ring-red-900",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m16 10 3-3m0 0-3-3m3 3H5v3m3 4-3 3m0 0 3 3m-3-3h14v-3"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-blue-600","rounded-lg","hover:bg-blue-700","focus:ring-4","focus:outline-none","focus:ring-blue-300","dark:bg-blue-500","dark:hover:bg-blue-600","dark:focus:ring-blue-900",3,"click"],[1,"relative","p-4","w-full","max-w-2xl","max-h-[80vh]","overflow-y-auto",3,"click"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-800","p-6"],[1,"text-xl","font-semibold","text-primary-100","dark:text-white","mb-4"],[1,"grid","grid-cols-1","gap-4","mb-6"],[3,"data","position"],[1,"text-gray-500","dark:text-gray-400","text-center"],[1,"flex","justify-end","gap-4"],["type","button",1,"py-2","px-4","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:text-white","dark:hover:bg-gray-600",3,"click"],["type","button",1,"py-2","px-4","text-sm","font-medium","text-white","bg-green-500","rounded-lg","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300",3,"click","disabled"],[3,"selectedEvent","data","position"]],template:function(t,l){1&t&&(e.j41(0,"div",2),e.DNE(1,w50,45,26)(2,W50,83,50)(3,J50,21,14,"div",3)(4,Q50,21,14,"div",3)(5,Z50,1,1,"error-message",4),e.j41(6,"app-price-plan-drawer",5),e.bIt("closeDrawer",function(){return l.isModifyDrawerOpen=!1})("modifySubmit",function(u){return l.onModifySubmit(u)}),e.k0s(),e.DNE(7,cc0,20,15,"div",6),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1),e.R7$(2),e.vxM(3,l.unsubscribeModal?3:-1),e.R7$(),e.vxM(4,l.renewModal?4:-1),e.R7$(),e.vxM(5,l.showError?5:-1),e.R7$(),e.Y8G("mode","modify")("productOff",l.productOff)("prodSpec",l.selectedProdSpec)("isOpen",l.isModifyDrawerOpen)("inventoryProductId",null==l.selectedProduct?null:l.selectedProduct.id)("existingCharacteristics",(null==l.selectedProduct?null:l.selectedProduct.productCharacteristic)||e.lJ4(12,p50))("width","w-2/3"),e.R7$(),e.vxM(7,l.showBillingSelector?7:-1))},dependencies:[_.YU,J2.aY,N0,cH,qN1,gS1,E0,s1.D9]})}}return n})();const XN1=(n,a)=>a.id,WN1=(n,a)=>({"break-all":n,"break-words":a});function nc0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function lc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43)(2,"a",44),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectResource(l))}),e.EFF(3),e.k0s()(),e.j41(4,"td",45),e.EFF(5),e.k0s(),e.j41(6,"td",46),e.EFF(7),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.nI1(10,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,WN1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.resourceStatus," "),e.R7$(2),e.SpI(" ",e.i5U(10,5,c.startOperatingDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function sc0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",47),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function ac0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",52),e.nrm(4,"path",53),e.k0s()()()}}function oc0(n,a){if(1&n&&e.DNE(0,ac0,5,0,"div",50),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function ic0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function rc0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",40),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,lc0,11,11,"tr",41,XN1,!1,sc0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,oc0,1,1)(23,ic0,6,0),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,6,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"PRODUCT_INVENTORY._start_date")," "),e.R7$(3),e.Dyx(c.resources),e.R7$(4),e.vxM(22,c.loading_more?23:22)}}function dc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",6)(7,"div",7)(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"h2",10),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",11),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",12),e.nrm(17,"path",13),e.k0s()(),e.joV(),e.j41(18,"div",14)(19,"h6",15),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",16)(23,"li",17)(24,"input",18),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("standby"))}),e.k0s(),e.j41(25,"label",19),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",17)(29,"input",20),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("alarm"))}),e.k0s(),e.j41(30,"label",21),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",17)(34,"input",22),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("available"))}),e.k0s(),e.j41(35,"label",23),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",17)(39,"input",24),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("reserved"))}),e.k0s(),e.j41(40,"label",25),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"li",17)(44,"input",26),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("suspended"))}),e.k0s(),e.j41(45,"label",27),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.j41(48,"li",17)(49,"input",28),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("unknown"))}),e.k0s(),e.j41(50,"label",29),e.EFF(51),e.nI1(52,"translate"),e.k0s()()()()()()(),e.DNE(53,nc0,6,0,"div",30)(54,rc0,24,14)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,12,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,14,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,16,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,18,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,20,"PRODUCT_INVENTORY._standby")," "),e.R7$(5),e.SpI(" ",e.bMT(32,22,"PRODUCT_INVENTORY._alarm")," "),e.R7$(5),e.SpI(" ",e.bMT(37,24,"PRODUCT_INVENTORY._available")," "),e.R7$(5),e.SpI(" ",e.bMT(42,26,"PRODUCT_INVENTORY._reserved")," "),e.R7$(5),e.SpI(" ",e.bMT(47,28,"PRODUCT_INVENTORY._suspended")," "),e.R7$(5),e.SpI(" ",e.bMT(52,30,"PRODUCT_INVENTORY._unknown")," "),e.R7$(2),e.vxM(53,c.loading?53:54)}}function fc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function uc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function mc0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"div",75)(2,"h3",76),e.EFF(3),e.k0s(),e.j41(4,"div",77),e.nrm(5,"input",78),e.DNE(6,fc0,2,2,"label",79)(7,uc0,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function pc0(n,a){1&n&&(e.j41(0,"div",74)(1,"div",80),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",81),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function hc0(n,a){if(1&n&&(e.j41(0,"div",69,0)(2,"h2",70),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",71)(6,"div",72),e.Z7z(7,mc0,8,2,"div",73,XN1,!1,pc0,9,3,"div",74),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._res_details")),e.R7$(4),e.Dyx(c.selectedRes.resourceCharacteristic)}}function gc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",55)(2,"nav",56)(3,"ol",57)(4,"li",58)(5,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",60),e.nrm(7,"path",61),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",62)(11,"div",17),e.qSk(),e.j41(12,"svg",63),e.nrm(13,"path",64),e.k0s(),e.joV(),e.j41(14,"span",65),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",66)(18,"h2",67),e.EFF(19),e.k0s(),e.nrm(20,"markdown",68),e.nI1(21,"translate"),e.DNE(22,hc0,10,4,"div",69),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,6,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"PRODUCT_INVENTORY._res_details")),e.R7$(4),e.JRh(c.selectedRes.name),e.R7$(),e.Y8G("ngClass",e.l_i(12,WN1,c.hasLongWord(c.selectedRes.description,20),!c.hasLongWord(c.selectedRes.description,20)))("data",c.selectedRes.description?c.selectedRes.description:e.bMT(21,10,"CATALOGS._no_desc")),e.R7$(2),e.vxM(22,null!=c.selectedRes.resourceCharacteristic&&c.selectedRes.resourceCharacteristic.length>0?22:-1)}}let _c0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.router=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.resourceId=void 0,this.prodId=void 0,this.partyId="",this.loading=!1,this.resources=[],this.nextResources=[],this.status=[],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_RES_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initInventory()})}ngOnInit(){null!=this.resourceId&&this.api.getResourceSpec(this.resourceId).then(c=>{this.selectResource(c),console.log("entre"),console.log(c)}),this.initInventory()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={partyId:t.partyId,filters:t.status};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.resources,t.nextResources,l,t.inventoryService.getResourceInventory.bind(t.inventoryService));t.page_check=i.page_check,t.resources=i.items,t.nextResources=i.nextItems,t.page=i.page,console.log(t.resources)}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getInventory(!0)})()}selectResource(c){this.selectedRes=c,this.showDetails=!0}back(){null!=this.prodId?(this.eventMessage.emitOpenProductInvDetails(this.prodId),this.showDetails=!1):this.showDetails=!1}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getInventory(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-resources"]],inputs:{resourceId:"resourceId",prodId:"prodId"},decls:3,vars:1,consts:[["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","standby","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","standby",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","alarm","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","alarm",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","available","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","available",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","reserved","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","reserved",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","suspended","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","suspended",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","unknown","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","unknown",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-4","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"p-4"],[1,"text-2xl","font-extrabold","text-primary-100","text-center","dark:text-primary-50","pb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900","pb-4","text-center",3,"ngClass","data"],["id","chars-container"],[1,"text-xl","font-bold","dark:text-white","pb-4","px-4"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"]],template:function(t,l){1&t&&(e.j41(0,"div",1),e.DNE(1,dc0,55,32)(2,gc0,23,15),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[_.YU,J2.aY,N0,_.vh,s1.D9]})}}return n})();const JN1=(n,a)=>a.id,QN1=(n,a)=>({"break-all":n,"break-words":a});function Lc0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Cc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43)(2,"a",44),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectService(l))}),e.EFF(3),e.k0s()(),e.j41(4,"td",45),e.EFF(5),e.k0s(),e.j41(6,"td",46),e.EFF(7),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.nI1(10,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,QN1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.state," "),e.R7$(2),e.SpI(" ",e.i5U(10,5,c.startDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function zc0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",47),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function Mc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",52),e.nrm(4,"path",53),e.k0s()()()}}function xc0(n,a){if(1&n&&e.DNE(0,Mc0,5,0,"div",50),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function bc0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function yc0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",40),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,Cc0,11,11,"tr",41,JN1,!1,zc0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,xc0,1,1)(23,bc0,6,0),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,6,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"PRODUCT_INVENTORY._start_date")," "),e.R7$(3),e.Dyx(c.services),e.R7$(4),e.vxM(22,c.loading_more?23:22)}}function Fc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",6)(7,"div",7)(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"h2",10),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",11),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",12),e.nrm(17,"path",13),e.k0s()(),e.joV(),e.j41(18,"div",14)(19,"h6",15),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",16)(23,"li",17)(24,"input",18),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("feasibilityChecked"))}),e.k0s(),e.j41(25,"label",19),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",17)(29,"input",20),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("designed"))}),e.k0s(),e.j41(30,"label",21),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",17)(34,"input",22),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("reserved"))}),e.k0s(),e.j41(35,"label",23),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",17)(39,"input",24),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("inactive"))}),e.k0s(),e.j41(40,"label",25),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"li",17)(44,"input",26),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("active"))}),e.k0s(),e.j41(45,"label",27),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.j41(48,"li",17)(49,"input",28),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("terminated"))}),e.k0s(),e.j41(50,"label",29),e.EFF(51),e.nI1(52,"translate"),e.k0s()()()()()()(),e.DNE(53,Lc0,6,0,"div",30)(54,yc0,24,14)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,12,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,14,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,16,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,18,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,20,"PRODUCT_INVENTORY._feasibility")," "),e.R7$(5),e.SpI(" ",e.bMT(32,22,"PRODUCT_INVENTORY._designed")," "),e.R7$(5),e.SpI(" ",e.bMT(37,24,"PRODUCT_INVENTORY._reserved")," "),e.R7$(5),e.SpI(" ",e.bMT(42,26,"PRODUCT_INVENTORY._inactive")," "),e.R7$(5),e.SpI(" ",e.bMT(47,28,"PRODUCT_INVENTORY._active")," "),e.R7$(5),e.SpI(" ",e.bMT(52,30,"PRODUCT_INVENTORY._terminated")," "),e.R7$(2),e.vxM(53,c.loading?53:54)}}function vc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function kc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function wc0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"div",75)(2,"h3",76),e.EFF(3),e.k0s(),e.j41(4,"div",77),e.nrm(5,"input",78),e.DNE(6,vc0,2,2,"label",79)(7,kc0,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function Sc0(n,a){1&n&&(e.j41(0,"div",74)(1,"div",80),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",81),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function Nc0(n,a){if(1&n&&(e.j41(0,"div",69,0)(2,"h2",70),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",71)(6,"div",72),e.Z7z(7,wc0,8,2,"div",73,JN1,!1,Sc0,9,3,"div",74),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._serv_chars")),e.R7$(4),e.Dyx(c.selectedServ.serviceCharacteristic)}}function Ec0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",55)(2,"nav",56)(3,"ol",57)(4,"li",58)(5,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",60),e.nrm(7,"path",61),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",62)(11,"div",17),e.qSk(),e.j41(12,"svg",63),e.nrm(13,"path",64),e.k0s(),e.joV(),e.j41(14,"span",65),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",66)(18,"h2",67),e.EFF(19),e.k0s(),e.nrm(20,"markdown",68),e.nI1(21,"translate"),e.DNE(22,Nc0,10,4,"div",69),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,6,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"PRODUCT_INVENTORY._serv_details")),e.R7$(4),e.JRh(c.selectedServ.name),e.R7$(),e.Y8G("ngClass",e.l_i(12,QN1,c.hasLongWord(c.selectedServ.description,20),!c.hasLongWord(c.selectedServ.description,20)))("data",c.selectedServ.description?c.selectedServ.description:e.bMT(21,10,"CATALOGS._no_desc")),e.R7$(2),e.vxM(22,null!=c.selectedServ.serviceCharacteristic&&c.selectedServ.serviceCharacteristic.length>0?22:-1)}}let Dc0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.router=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.serviceId=void 0,this.prodId=void 0,this.partyId="",this.loading=!1,this.services=[],this.nextServices=[],this.status=[],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_SERV_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initInventory()})}ngOnInit(){null!=this.serviceId&&this.api.getServiceSpec(this.serviceId).then(c=>{this.selectService(c)}),this.initInventory()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={partyId:t.partyId,filters:t.status};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.services,t.nextServices,l,t.inventoryService.getServiceInventory.bind(t.inventoryService));t.page_check=i.page_check,t.services=i.items,t.nextServices=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getInventory(!0)})()}selectService(c){this.selectedServ=c,this.showDetails=!0}back(){null!=this.prodId?(this.eventMessage.emitOpenProductInvDetails(this.prodId),this.showDetails=!1):this.showDetails=!1}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getInventory(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-services"]],inputs:{serviceId:"serviceId",prodId:"prodId"},decls:3,vars:1,consts:[["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","feasibilityChecked","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","feasibilityChecked",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","designed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","designed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","reserved","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","reserved",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","inactive","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","inactive",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","active","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","terminated","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","terminated",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-4","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"p-4"],[1,"text-2xl","font-extrabold","text-primary-100","text-center","dark:text-primary-50","pb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900","pb-4","text-center",3,"ngClass","data"],["id","chars-container"],[1,"text-xl","font-bold","dark:text-white","pb-4","px-4"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"]],template:function(t,l){1&t&&(e.j41(0,"div",1),e.DNE(1,Fc0,55,32)(2,Ec0,23,15),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[_.YU,J2.aY,N0,_.vh,s1.D9]})}}return n})();function Tc0(n,a){if(1&n&&e.nrm(0,"inventory-products",19),2&n){const c=e.XpG();e.Y8G("prodId",c.openProdId)}}function Rc0(n,a){if(1&n&&e.nrm(0,"inventory-services",20),2&n){const c=e.XpG();e.Y8G("serviceId",c.openServiceId)("prodId",c.openProdId)}}function Ac0(n,a){if(1&n&&e.nrm(0,"inventory-resources",21),2&n){const c=e.XpG();e.Y8G("resourceId",c.openResourceId)("prodId",c.openProdId)}}let Ic0=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t,this.show_prods=!0,this.show_serv=!1,this.show_res=!1,this.show_orders=!1,this.openServiceId=void 0,this.openResourceId=void 0,this.openProdId=void 0,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(l=>{"OpenServiceDetails"===l.type&&(this.openServiceId=l.value?.serviceId,this.openProdId=l.value?.prodId,this.getServices()),"OpenResourceDetails"===l.type&&(this.openResourceId=l.value?.resourceId,this.openProdId=l.value?.prodId,this.getResources()),"OpenProductInvDetails"===l.type&&(this.openProdId=l.value,this.goToOffers())})}ngOnInit(){D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){D2()}goToOffers(){D2(),this.selectProd(),this.show_serv=!1,this.show_res=!1,this.show_orders=!1,this.show_prods=!0}getServices(){this.selectServ(),this.show_orders=!1,this.show_prods=!1,this.show_res=!1,this.show_serv=!0,this.cdr.detectChanges(),D2()}getResources(){this.selectRes(),this.show_orders=!1,this.show_prods=!1,this.show_serv=!1,this.show_res=!0,this.cdr.detectChanges(),D2()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectProd(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectServ(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectRes(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-inventory"]],decls:44,vars:24,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],["data-cy","inventoryProducts",1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["data-cy","inventoryProducts","id","prod-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","inventoryServices","id","serv-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","inventoryResources","id","res-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"prodId"],[3,"serviceId","prodId"],[3,"resourceId","prodId"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3,"My inventory"),e.k0s()(),e.j41(4,"div",3)(5,"h1",4)(6,"span",2),e.EFF(7,"My inventory"),e.k0s()(),e.j41(8,"div",5)(9,"button",6),e.qSk(),e.j41(10,"svg",7),e.nrm(11,"path",8),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.joV(),e.j41(14,"div",9)(15,"ul",10)(16,"li")(17,"a",11),e.bIt("click",function(){return l.goToOffers()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"li")(21,"a",12),e.bIt("click",function(){return l.getServices()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"li")(25,"a",12),e.bIt("click",function(){return l.getResources()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()(),e.j41(28,"div",13)(29,"div",14)(30,"div",15)(31,"button",16),e.bIt("click",function(){return l.goToOffers()}),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"button",17),e.bIt("click",function(){return l.getServices()}),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"button",18),e.bIt("click",function(){return l.getResources()}),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div"),e.DNE(41,Tc0,1,1,"inventory-products",19)(42,Rc0,1,2,"inventory-services",20)(43,Ac0,1,2,"inventory-resources",21),e.k0s()()()),2&t&&(e.R7$(12),e.SpI(" ",e.bMT(13,10,"PRODUCT_INVENTORY._inventory")," "),e.R7$(6),e.JRh(e.bMT(19,12,"PRODUCT_INVENTORY._products")),e.R7$(4),e.JRh(e.bMT(23,14,"PRODUCT_INVENTORY._services")),e.R7$(4),e.JRh(e.bMT(27,16,"PRODUCT_INVENTORY._resources")),e.R7$(6),e.SpI(" ",e.bMT(33,18,"PRODUCT_INVENTORY._products")," "),e.R7$(3),e.SpI(" ",e.bMT(36,20,"PRODUCT_INVENTORY._services")," "),e.R7$(3),e.SpI(" ",e.bMT(39,22,"PRODUCT_INVENTORY._resources")," "),e.R7$(3),e.vxM(41,l.show_prods?41:-1),e.R7$(),e.vxM(42,l.show_serv?42:-1),e.R7$(),e.vxM(43,l.show_res?43:-1))},dependencies:[tc0,_c0,Dc0,s1.D9]})}}return n})();const Pc0=["confirmModal"],jc0=["noteContainer"],ZN1=(n,a)=>a.id,$c0=n=>({"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50 group":n}),Oc0=(n,a)=>({"translate-x-0":n,"translate-x-full":a}),Bc0=(n,a)=>({"justify-end":n,"justify-start":a}),Vc0=(n,a)=>({"bg-blue-200 text-blue-900":n,"bg-gray-200 text-gray-800":a});function Uc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",4)(1,"a",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onRoleChange(l.sellerRole))}),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",60),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,$c0,c.role==c.sellerRole)),e.R7$(),e.Y8G("ngClass",c.role!==c.sellerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 dark:text-primary-50"),e.R7$(2),e.SpI(" ",e.bMT(5,3,"PRODUCT_ORDERS._as_provider")," ")}}function Gc0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.actionFilters.join(", ")," ")}}function Hc0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_action")," ")}function Yc0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.filters.join(", ")," ")}}function qc0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_state")," ")}function Xc0(n,a){1&n&&(e.j41(0,"div",44),e.qSk(),e.j41(1,"svg",61),e.nrm(2,"path",62)(3,"path",63),e.k0s(),e.joV(),e.j41(4,"span",64),e.EFF(5,"Loading..."),e.k0s()())}function Wc0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Jc0(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Qc0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Zc0(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Kc0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function e70(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function c70(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function t70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function n70(n,a){1&n&&(e.qSk(),e.j41(0,"svg",84),e.nrm(1,"path",90),e.k0s())}function l70(n,a){1&n&&(e.qSk(),e.j41(0,"svg",91),e.nrm(1,"path",92),e.k0s())}function s70(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",72)(1,"td",74)(2,"span",75),e.EFF(3),e.k0s()(),e.j41(4,"td",76),e.DNE(5,Wc0,2,1,"span",77)(6,Jc0,2,1)(7,Qc0,2,1)(8,Zc0,2,1)(9,Kc0,2,1)(10,e70,2,1)(11,c70,2,1)(12,t70,2,0),e.k0s(),e.j41(13,"td",74),e.EFF(14),e.k0s(),e.j41(15,"td",76),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"td",76)(19,"button",78),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(20,"svg",79)(21,"g",80),e.nrm(22,"path",81)(23,"path",82),e.k0s()()(),e.joV(),e.j41(24,"button",83),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleDrawer(i),e.Njj(l.stopPropagation())}),e.DNE(25,n70,2,0,":svg:svg",84)(26,l70,2,0),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("title",c.id),e.R7$(),e.SpI("...",c.id.slice(-6),""),e.R7$(2),e.vxM(5,"inProgress"==c.state?5:"completed"===c.state?6:"partial"===c.state?7:"failed"===c.state?8:"pending"===c.state?9:"acknowledged"===c.state?10:"cancelled"===c.state||"cancelled"===c.state?11:12),e.R7$(9),e.SpI(" ",c.billingAccount.name," "),e.R7$(2),e.SpI(" ",e.i5U(17,6,null==c?null:c.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(9),e.vxM(25,t.hasNotes(c)?25:26)}}function a70(n,a){1&n&&(e.j41(0,"div",73)(1,"span",93),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function o70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",94)(1,"button",95),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",96),e.nrm(4,"path",97),e.k0s()()()}}function i70(n,a){if(1&n&&e.DNE(0,o70,5,0,"div",94),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function r70(n,a){1&n&&(e.j41(0,"div",98),e.qSk(),e.j41(1,"svg",61),e.nrm(2,"path",62)(3,"path",63),e.k0s(),e.joV(),e.j41(4,"span",64),e.EFF(5,"Loading..."),e.k0s()())}function d70(n,a){if(1&n&&(e.j41(0,"div",65)(1,"div",66)(2,"table",67)(3,"thead",68)(4,"tr")(5,"th",69),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",70),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",69),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",70),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",71),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody"),e.Z7z(21,s70,27,9,"tr",72,ZN1),e.k0s()(),e.DNE(23,a70,4,3,"div",73),e.k0s(),e.DNE(24,i70,1,1)(25,r70,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"PRODUCT_INVENTORY._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"PRODUCT_INVENTORY._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"PRODUCT_ORDERS._date")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"PRODUCT_ORDERS._actions")," "),e.R7$(3),e.Dyx(c.orders),e.R7$(2),e.vxM(23,0==c.orders.length?23:-1),e.R7$(),e.vxM(24,c.loading_more?25:24)}}function f70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function u70(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function m70(n,a){if(1&n&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function p70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function h70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function g70(n,a){if(1&n&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function _70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function L70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function C70(n,a){if(1&n&&(e.j41(0,"td",76),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",null!==(c=t.productOfferingPrice.name)&&void 0!==c?c:"Custom"," ")}}function z70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" Bundled price plan: ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.name," ")}}function M70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.unitOfMeasure?null:c.productOfferingPrice.unitOfMeasure.units," ")}}function x70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.recurringChargePeriodType," ")}}function b70(n,a){if(1&n&&(e.EFF(0),e.DNE(1,M70,1,1)(2,x70,1,1)),2&n){const c=e.XpG(3).$implicit;e.Lme(" ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.price?null:c.productOfferingPrice.price.value," ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.price?null:c.productOfferingPrice.price.unit," "),e.R7$(),e.vxM(1,null!=c&&null!=c.productOfferingPrice&&c.productOfferingPrice.unitOfMeasure?1:-1),e.R7$(),e.vxM(2,null!=c&&null!=c.productOfferingPrice&&c.productOfferingPrice.recurringChargePeriodType?2:-1)}}function y70(n,a){if(1&n&&(e.j41(0,"td",76),e.DNE(1,z70,1,1)(2,b70,3,4),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.vxM(1,(null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.bundledPopRelationship?null:c.productOfferingPrice.bundledPopRelationship.length)>1?1:2)}}function F70(n,a){if(1&n&&e.DNE(0,C70,2,1,"td",76)(1,y70,3,1),2&n){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function v70(n,a){1&n&&(e.j41(0,"td",76),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function k70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function w70(n,a){if(1&n&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function S70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function N70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function E70(n,a){if(1&n&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function D70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function T70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function R70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function A70(n,a){if(1&n&&(e.j41(0,"span",128),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function I70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function P70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.openModal("acknowledged",l))}),e.qSk(),e.j41(1,"svg",130),e.nrm(2,"path",131),e.k0s()(),e.joV(),e.j41(3,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.openModal("cancelled",l))}),e.qSk(),e.j41(4,"svg",133),e.nrm(5,"path",134),e.k0s()()}}function j70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("inProgress",l))}),e.qSk(),e.j41(1,"svg",137),e.nrm(2,"path",138)(3,"path",139),e.k0s()()}}function $70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("completed",l))}),e.qSk(),e.j41(1,"svg",141),e.nrm(2,"path",142),e.k0s()(),e.joV(),e.j41(3,"button",143),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("failed",l))}),e.qSk(),e.j41(4,"svg",141),e.nrm(5,"path",144),e.k0s()()}}function O70(n,a){if(1&n&&e.DNE(0,j70,4,0,"button",135)(1,$70,6,0),2&n){const c=e.XpG(3).$implicit;e.vxM(0,"acknowledged"===c.productOrderItem.state?0:"inProgress"===c.productOrderItem.state?1:-1)}}function B70(n,a){1&n&&(e.j41(0,"td",127),e.EFF(1," n/a "),e.k0s())}function V70(n,a){if(1&n&&e.DNE(0,O70,2,1)(1,B70,2,0),2&n){const c=e.XpG(4);e.vxM(0,c.role==c.sellerRole?0:1)}}function U70(n,a){if(1&n&&e.DNE(0,P70,6,0)(1,V70,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.vxM(0,c.productOrderItem.state||t.role!=t.sellerRole?1:0)}}function G70(n,a){if(1&n&&(e.j41(0,"tr",119)(1,"td",125),e.nrm(2,"img",126),e.k0s(),e.j41(3,"td",76),e.EFF(4),e.k0s(),e.DNE(5,F70,2,1)(6,v70,3,3),e.j41(7,"td",76),e.DNE(8,k70,2,1,"span",111)(9,w70,2,1)(10,S70,2,1)(11,N70,2,1)(12,E70,2,1)(13,D70,2,1)(14,T70,2,0),e.k0s(),e.j41(15,"td",76),e.DNE(16,R70,2,1,"span",111)(17,A70,2,1)(18,I70,2,1),e.k0s(),e.j41(19,"td",127),e.DNE(20,U70,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("src",t.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6),e.R7$(3),e.vxM(8,"inProgress"===c.productOrderItem.state?8:"completed"===c.productOrderItem.state?9:"failed"===c.productOrderItem.state?10:"pending"===c.productOrderItem.state?11:"acknowledged"===c.productOrderItem.state?12:"cancelled"===c.productOrderItem.state||"cancelled"===c.productOrderItem.state?13:14),e.R7$(8),e.vxM(16,"add"===c.productOrderItem.action?16:"delete"===c.productOrderItem.action?17:"modify"===c.productOrderItem.action?18:-1),e.R7$(4),e.vxM(20,t.hasProcurementAutomaticTerm(c)?-1:20)}}function H70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",45)(1,"div",99),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",100)(3,"h2",101),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",102),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showOrderDetails=!1)}),e.qSk(),e.j41(7,"svg",103),e.nrm(8,"path",104),e.k0s(),e.joV(),e.j41(9,"span",64),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",105)(13,"div",106)(14,"div",107)(15,"p",108),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"h3",109),e.EFF(19),e.k0s()(),e.j41(20,"div",110)(21,"p",108),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,f70,2,1,"span",111)(25,u70,2,1)(26,m70,2,1)(27,p70,2,1)(28,h70,2,1)(29,g70,2,1)(30,_70,2,1)(31,L70,2,0),e.k0s(),e.j41(32,"div",107)(33,"p",108),e.EFF(34," Date "),e.k0s(),e.j41(35,"h3",109),e.EFF(36),e.nI1(37,"date"),e.k0s()(),e.j41(38,"div",112)(39,"p",108),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",113)(43,"p",108),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.j41(46,"h3",109),e.EFF(47),e.nI1(48,"async"),e.k0s()(),e.j41(49,"div",114)(50,"p",108),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"h3",109),e.EFF(54),e.k0s()(),e.j41(55,"div",114)(56,"p",108),e.EFF(57),e.nI1(58,"translate"),e.k0s(),e.j41(59,"h3",109),e.EFF(60),e.k0s()(),e.j41(61,"div",107)(62,"a",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCustomerDeatils())}),e.EFF(63),e.nI1(64,"translate"),e.k0s()(),e.j41(65,"table",116)(66,"thead",117)(67,"tr")(68,"th",70),e.EFF(69),e.nI1(70,"translate"),e.k0s(),e.j41(71,"th",70),e.EFF(72),e.nI1(73,"translate"),e.k0s(),e.j41(74,"th",70),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"th",70),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"th",70),e.EFF(81),e.nI1(82,"translate"),e.k0s(),e.j41(83,"th",70),e.EFF(84),e.nI1(85,"translate"),e.k0s()()(),e.j41(86,"tbody",118),e.Z7z(87,G70,21,6,"tr",119,ZN1),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showOrderDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,25,"PRODUCT_ORDERS._order_details")),e.R7$(6),e.JRh(e.bMT(11,27,"CARD._close")),e.R7$(6),e.SpI(" ",e.bMT(17,29,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",c.orderToShow.id," "),e.R7$(3),e.SpI(" ",e.bMT(23,31,"PRODUCT_INVENTORY._state")," "),e.R7$(2),e.vxM(24,"inProgress"===c.orderToShow.state?24:"partial"===c.orderToShow.state?25:"completed"===c.orderToShow.state?26:"failed"===c.orderToShow.state?27:"pending"===c.orderToShow.state?28:"acknowledged"===c.orderToShow.state?29:"cancelled"===c.orderToShow.state||"cancelled"===c.orderToShow.state?30:31),e.R7$(12),e.SpI(" ",e.i5U(37,33,null==c.orderToShow?null:c.orderToShow.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(4),e.SpI(" ",e.bMT(41,36,"PRODUCT_ORDERS._customer_info")," "),e.R7$(4),e.SpI(" ",e.bMT(45,38,"PRODUCT_ORDERS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(48,40,c.customerName$)," "),e.R7$(4),e.SpI(" ",e.bMT(52,42,"PRODUCT_ORDERS._billing_address")," "),e.R7$(3),e.LHq(" ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.city,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.street1,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.country," (",c.orderToShow.billingAccount.name,") "),e.R7$(3),e.SpI(" ",e.bMT(58,44,"PRODUCT_ORDERS._email")," "),e.R7$(3),e.SpI(" ",c.orderToShow.billingAccount.contact[0].contactMedium[0].characteristic.emailAddress," "),e.R7$(3),e.SpI(" ",e.bMT(64,46,"PRODUCT_ORDERS._show_customer_details")," "),e.R7$(6),e.SpI(" ",e.bMT(70,48,"PRODUCT_ORDERS._img")," "),e.R7$(3),e.SpI(" ",e.bMT(73,50,"PRODUCT_ORDERS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(76,52,"PRODUCT_ORDERS._price_plan")," "),e.R7$(3),e.SpI(" ",e.bMT(79,54,"PRODUCT_ORDERS._state")," "),e.R7$(3),e.SpI(" ",e.bMT(82,56,"PRODUCT_ORDERS._items_action")," "),e.R7$(3),e.SpI(" ",e.bMT(85,58,"PRODUCT_ORDERS._actions")," "),e.R7$(3),e.Dyx(c.orderToShow.productOrderItems)}}function Y70(n,a){1&n&&(e.j41(0,"div",159),e.nrm(1,"div",160),e.j41(2,"p",161),e.EFF(3,"Loading notes..."),e.k0s()())}function q70(n,a){1&n&&(e.j41(0,"div",165)(1,"p"),e.EFF(2,"No notes in this order."),e.k0s()())}function X70(n,a){if(1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"async"),e.bVm()),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,t.getUsername(c.author))," ")}}function W70(n,a){if(1&n&&(e.j41(0,"div",166)(1,"div",167)(2,"p",168),e.EFF(3),e.k0s(),e.j41(4,"span",169),e.EFF(5),e.nI1(6,"date"),e.DNE(7,X70,3,3,"ng-container",170),e.k0s()()()),2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(9,Bc0,c.author===t.partyId,c.author!==t.partyId)),e.R7$(),e.Y8G("ngClass",e.l_i(12,Vc0,c.author===t.partyId,c.author!==t.partyId)),e.R7$(2),e.JRh(c.text),e.R7$(2),e.Lme(" ",c.author===t.partyId?t.currentUser:t.userCache.get(c.author)||"Loading..."," - ",e.i5U(6,6,c.date,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(2),e.Y8G("ngIf",!t.userCache.has(c.author))}}function J70(n,a){if(1&n&&(e.j41(0,"div",162,1),e.DNE(2,q70,3,0,"div",163)(3,W70,8,15,"div",164),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("ngIf",0===(null==c.selectedOrder?null:c.selectedOrder.note.length)),e.R7$(),e.Y8G("ngForOf",null==c.selectedOrder?null:c.selectedOrder.note)}}function Q70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",145),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s(),e.j41(1,"div",146)(2,"div",147)(3,"h5",148),e.qSk(),e.j41(4,"svg",149),e.nrm(5,"path",150),e.k0s(),e.EFF(6," Order Notes "),e.k0s(),e.joV(),e.j41(7,"button",151),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.qSk(),e.j41(8,"svg",152),e.nrm(9,"path",104),e.k0s()()(),e.DNE(10,Y70,4,0,"div",153)(11,J70,4,2,"div",154),e.joV(),e.j41(12,"div",155)(13,"div",156)(14,"textarea",157),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.newNoteText,l)||(i.newNoteText=l),e.Njj(l)}),e.bIt("keyup.enter",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addNote())}),e.k0s(),e.j41(15,"button",158),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addNote())}),e.EFF(16),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(5,Oc0,c.isDrawerOpen,!c.isDrawerOpen)),e.R7$(9),e.Y8G("ngIf",c.isLoading),e.R7$(),e.Y8G("ngIf",!c.isLoading),e.R7$(3),e.R50("ngModel",c.newNoteText),e.R7$(2),e.SpI(" ",c.isUpdating?"Saving...":"Send"," ")}}function Z70(n,a){if(1&n&&(e.j41(0,"div",57)(1,"div",171)(2,"div",19),e.qSk(),e.j41(3,"svg",172),e.nrm(4,"path",173),e.k0s(),e.joV(),e.j41(5,"h3",174),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",175),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let K70=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.localStorage=c,this.api=t,this.cdr=l,this.router=i,this.accountService=u,this.orderService=C,this.eventMessage=b,this.paginationService=T,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.showError=!1,this.errorMessage="",this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.actionFilters=[],this.check_custom=!1,this.buyerRole=g1.c.BUYER_ROLE,this.sellerRole=g1.c.SELLER_ROLE,this.isSeller=!1,this.role=this.buyerRole,this.actionType="",this.selectedItem=null,this.isDrawerOpen=!1,this.drawerInstance=null,this.selectedOrder=null,this.newNoteText="",this.isLoading=!1,this.isUpdating=!1,this.userCache=new Map,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.JSON=JSON,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(W=>{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}openModal(c,t){this.actionType=c,this.selectedItem=t,this.modalInstance?this.modalInstance.show():console.error("Modal instance is not initialized!")}closeModal(){this.modalInstance&&this.modalInstance.hide()}handleError(c){this.errorMessage=c,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}confirmAction(){var c=this;return(0,C1.A)(function*(){return c.updateLifecycle(c.actionType,c.selectedItem)})()}updateLifecycle(c,t){var l=this;return(0,C1.A)(function*(){if(!l.orderToShow)return void console.error("No order selected! Is this possible?");console.log("Transitioning to...",c,t),l.selectedItem=t;const i=l.selectedItem.productOrderItem.state;try{l.selectedItem.productOrderItem.state=c;const u={productOrderItem:l.orderToShow.productOrderItem},C=yield l.orderService.updateOrder(l.orderToShow.id,u);console.log("Order state updated successfully:",C),l.orderToShow.state=C.state}catch(u){l.selectedItem.productOrderItem.state=i,l.handleError("Error updating order state"),console.error("Error updating order:",u)}try{const u={text:`Order state updated to ${c}`,id:`urn:ngsi-ld:note:${L4()}`,author:l.partyId,date:(new Date).toISOString()};l.orderToShow.note||(l.orderToShow.note=[]),l.orderToShow.note.push(u);const C={note:l.orderToShow.note},b=yield l.orderService.updateOrder(l.orderToShow.id,C);console.log("Order note added successfully:",b)}catch(u){console.error("Error updating order notes:",u)}l.closeModal()})()}ngOnInit(){this.loading=!0,this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,this.currentUser=c.user,c.roles.map(l=>l.name).includes(this.sellerRole)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2();const c=document.getElementById("drawer-notes");c&&(this.drawerInstance=new HY2(c,{placement:"right",backdrop:!1})),setTimeout(()=>{this.confirmModal&&(this.modalInstance=new gw1(this.confirmModal.nativeElement))},100)}toggleDrawer(c){this.selectedOrder=c,this.drawerInstance&&(this.isLoading=!0,this.drawerInstance.show(),setTimeout(()=>{this.isLoading=!1,this.selectedOrder?.note?.length&&this.selectedOrder.note.sort((t,l)=>new Date(t.date).getTime()-new Date(l.date).getTime()),this.scrollToBottom()},1e3)),this.isDrawerOpen=!0}closeDrawer(){this.drawerInstance&&(this.drawerInstance.hide(),this.newNoteText=""),this.isDrawerOpen=!1}handleEscapeKey(c){this.closeDrawer()}scrollToBottom(){this.noteContainer&&setTimeout(()=>{this.noteContainer.nativeElement.scrollTop=this.noteContainer.nativeElement.scrollHeight},100)}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role,actionFilters:t.actionFilters},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){console.log("-order-info-NEXT--"),yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?this.filters.splice(t,1):this.filters.push(c),this.getOrders(!1)}onActionFilterChange(c){const t=this.actionFilters.findIndex(l=>l===c);-1!==t?this.actionFilters.splice(t,1):this.actionFilters.push(c),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i"procurement"===t.name&&"automatic"===t.description)}hasNotes(c){return!!c.note}addNote(){var c=this;return(0,C1.A)(function*(){if(!c.newNoteText.trim())return;const t={text:c.newNoteText,id:`urn:ngsi-ld:note:${L4()}`,author:c.partyId,date:(new Date).toISOString()};c.selectedOrder.note.push(t),c.newNoteText="",c.isUpdating=!0,c.scrollToBottom();try{const l={note:c.selectedOrder.note};yield c.orderService.updateOrder(c.selectedOrder.id,l),console.log("Order notes updated successfully")}catch(l){c.handleError("Error updating order notes"),console.error("Error updating order notes:",l),c.selectedOrder.note.pop()}finally{c.isUpdating=!1}})()}goToCustomerDeatils(){const c=this.orderToShow.relatedParty.find(t=>t.role?.toLowerCase()===this.buyerRole.toLowerCase());window.open(this.router.serializeUrl(this.router.createUrlTree(["/org-details",c?.id])),"_blank")}getCustomerName(){var c=this;return(0,C1.A)(function*(){if(c.orderToShow?.relatedParty){const t=c.orderToShow.relatedParty.find(l=>l.role?.toLowerCase()===c.buyerRole.toLowerCase());if(t?.id)return c.getUsername(t.id)}return""})()}getUsername(c){var t=this;return(0,C1.A)(function*(){if(t.userCache.has(c))return t.userCache.get(c);try{let l;if(c.startsWith("urn:ngsi-ld:individual:")){const i=yield t.accountService.getUserInfo(c);l=`${i?.givenName||""} ${i?.familyName||""}`.trim()||`Unknown (${c})`}else l=c.startsWith("urn:ngsi-ld:organization:")?(yield t.accountService.getOrgInfo(c))?.tradingName||`Unknown Organization (${c})`:`Unknown (${c})`;return t.userCache.set(c,l),l}catch(l){return console.error("Error fetching name for",c,l),`Unknown (${c})`}})()}formatDate(c){const t=new Date(c);return`${t.toLocaleDateString()} ${t.toLocaleTimeString()}`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(D8),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-order-info"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Pc0,5),e.GBs(jc0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.confirmModal=i.first),e.mGM(i=e.lsd())&&(l.noteContainer=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:115,vars:57,consts:[["confirmModal",""],["noteContainer",""],[1,"border-b","border-gray-200","dark:border-gray-700","mb-2"],[1,"flex","flex-wrap","-mb-px","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"me-2"],["data-cy","asCustomerTab","aria-current","page",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","group",3,"click","ngClass"],["aria-hidden","true","fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM464 64l0 242.7-25.4-25.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l80-80c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L528 306.7 528 64c0-17.7-14.3-32-32-32s-32 14.3-32 32z"],[1,"w-full","h-fit","mb-4","flex","flex-col"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownActionButton","data-dropdown-toggle","dropdownAction","type","button",1,"text-black","border","border-primary-100sa","dark:text-white","w-full","justify-between","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-2","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdownAction",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","border","dark:bg-secondary-200"],["aria-labelledby","dropdownActionButton",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","actionAdd","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionAdd",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","actionModify","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionModify",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","actionDelete","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionDelete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","dropdownStateButton","data-dropdown-toggle","dropdown","type","button",1,"text-black","border","border-primary-100sa","dark:text-white","w-full","justify-between","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-2","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","border","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-bold","text-gray-900","dark:text-white"],["aria-labelledby","dropdownStateButton",1,"space-y-2","text-sm"],["id","acknowledged","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","acknowledged",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","inProgress","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","inProgress",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","partial","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","partial",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","completed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","completed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","failed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","failed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","pending","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","pending",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","cancelled","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","cancelled",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","order-details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],["id","confirmModal","tabindex","-1","aria-hidden","true",1,"fixed","top-0","left-0","right-0","z-50","hidden","w-full","p-4","overflow-x-hidden","overflow-y-auto","md:inset-0","h-[calc(100%-1rem)]","max-h-full","bg-black","bg-opacity-50"],[1,"relative","w-full","max-w-md","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-700"],[1,"flex","items-start","justify-between","p-4","border-b","rounded-t","dark:border-gray-600","bg-primary-100"],[1,"text-xl","font-semibold","text-secondary-50","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ml-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"p-6","text-center"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","items-center","p-6","space-x-4","border-t","border-gray-200","rounded-b","dark:border-gray-600"],["data-cy","confirmActionBtn","type","button",1,"text-white","bg-blue-600","hover:bg-blue-800","focus:ring-4","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-blue-500","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["data-cy","cancelActionBtn","type","button",1,"text-gray-500","bg-white","border","border-gray-300","focus:outline-none","hover:bg-gray-100","focus:ring-4","focus:ring-gray-200","font-medium","rounded-lg","text-sm","px-5","py-2.5","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:bg-gray-600","dark:focus:ring-gray-600",3,"click"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["data-cy","asProviderTab",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","hover:text-gray-600","hover:border-gray-300","dark:hover:text-gray-300","group",3,"click","ngClass"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM598.6 121.4l-80-80c-12.5-12.5-32.8-12.5-45.3 0l-80 80c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L464 141.3 464 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-242.7 25.4 25.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,""],[1,"m-4","relative","overflow-x-auto","border","border-primary-100","dark:border-secondary-50","sm:rounded-lg"],["data-cy","ordersTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-secondary-50","dark:bg-primary-50","dark:text-secondary-100"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","text-center","align-middle"],["scope","col",1,"px-6","py-3","text-center","align-middle"],["scope","col",1,"text-center","align-middle"],[1,"border-b","bg-gray-100","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"text-center","items-center","w-full","col-span-2"],[1,"hidden","md:table-cell","px-6","py-4","text-center","align-middle"],[3,"title"],[1,"px-6","py-4","text-center","align-middle"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","viewOrderDetails","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],["data-cy","orderNotesButton","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-[18px]","h-[18px]","text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-purple-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-purple-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-amber-500","dark:bg-amber-900","text-amber-900","dark:text-amber-100","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-amber-950"],["fill","#ffffff","d","M64 0C28.7 0 0 28.7 0 64L0 256c0 35.3 28.7 64 64 64l32 0 0 48c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L202.7 320 352 320c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L64 0zM352 352l-96 0 0 32c0 35.3 28.7 64 64 64l117.3 0 81.1 60.8c4.8 3.6 11.3 4.2 16.8 1.5s8.8-8.2 8.8-14.3l0-48 32 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-128 0 0 128c0 53-43 96-96 96z"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-[18px]","h-[18px]","text-white"],["fill","#ffffff","d","M0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-80-96 0c-35.3 0-64-28.7-64-64L0 64zM232 296c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"],[1,"text-gray-900","dark:text-primary-50","text-sm","text-center","w-full","font-medium"],[1,"flex","pb-6","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"w-full","md:w-3/4","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-2","rounded-t","dark:border-gray-600","shadow-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],["data-cy","orderDetailsModal",1,"w-full","h-full"],[1,"p-4","relative","overflow-x-auto","rounded-lg"],[1,"flex","flex-row","gap-2","pb-2","text-gray-600"],[1,"w-fit","text-base","font-bold","shrink-0","dark:text-white"],[1,"text-base","dark:text-gray-200"],["data-cy","globalState",1,"flex","flex-row","gap-2","pb-2","text-gray-600"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400","w-fit"],[1,"flex","flex-row","gap-2","text-gray-600"],[1,"flex","flex-row","gap-2","pb-2","pt-2","ml-2","text-gray-600"],[1,"flex","flex-row","gap-2","pb-2","ml-2","text-gray-600"],[1,"cursor-pointer","text-blue-600",3,"click"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200","rounded-lg","border","border-1","border-secondary-50","dark:border-gray-800"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["data-cy","orderItems"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"bg-blue-100","dark:bg-secondary-100","text-purple-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-purple-500","w-fit"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500","w-fit"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","text-center","align-middle","flex","justify-center","items-center"],["alt","Product image",1,"w-16","object-contain","z-10","dark:text-white",3,"src"],[1,"px-6","py-4","text-center","align-middle","flex","justify-center"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500","w-fit"],["data-cy","acknowledgeOrder","type","button","title","Acknowledge the order item",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["stroke","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M319.1 0c14.8-.4 27.9 9.3 31.8 23.6l74 271.2 17.7-35.4c10.8-21.7 33-35.4 57.2-35.4L608 224c17.7 0 32 14.3 32 32s-14.3 32-32 32l-108.2 0L444.6 398.3c-5.9 11.9-18.6 18.8-31.8 17.5s-24.2-10.6-27.7-23.4L323.7 167.3 255.3 486.7c-3.1 14.4-15.5 24.8-30.2 25.3s-27.8-9.1-31.8-23.2L135.9 288 32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l103.9 0c28.6 0 53.7 18.9 61.5 46.4L219.6 348 288.7 25.3C291.8 10.9 304.4 .4 319.1 0z"],["data-cy","rejectOrder","type","button","title","Reject the order item",1,"text-red-950","bg-red-500","hover:bg-red-600","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["stroke","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M96 80c0-26.5 21.5-48 48-48l288 0c26.5 0 48 21.5 48 48l0 304L96 384 96 80zm145 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47z"],["data-cy","startOrderTreatment","type","button","title","Start Order Treatment",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],["data-cy","startOrderTreatment","type","button","title","Start Order Treatment",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["opacity",".4","d","M32 80l0 352c0 5.8 3.1 11.1 8.2 14s11.2 2.7 16.2-.3l288-176c4.8-2.9 7.7-8.1 7.7-13.7s-2.9-10.7-7.7-13.7l-288-176c-4.9-3-11.1-3.1-16.2-.3s-8.2 8.2-8.2 14z",1,"fa-secondary"],["d","M56.3 66.3c-4.9-3-11.1-3.1-16.2-.3s-8.2 8.2-8.2 14l0 352c0 5.8 3.1 11.1 8.2 14s11.2 2.7 16.2-.3l288-176c4.8-2.9 7.7-8.1 7.7-13.7s-2.9-10.7-7.7-13.7l-288-176zM24.5 38.1C39.7 29.6 58.2 30 73 39L361 215c14.3 8.7 23 24.2 23 41s-8.7 32.2-23 41L73 473c-14.8 9.1-33.4 9.4-48.5 .9S0 449.4 0 432L0 80C0 62.6 9.4 46.6 24.5 38.1z",1,"fa-primary"],["data-cy","completeOrder","type","button","title","Order Completely Treated",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5L321 99.1l19-5.8c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1l-5.8 19 17.5 9.3c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7L412.9 321l5.8 19c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7l-19-5.8-9.3 17.5c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5L191 412.9l-19 5.8c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340l5.8-19-17.5-9.3C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7L99.1 191l-5.8-19c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2l19 5.8 9.3-17.5zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209l17-17L352 158.1l-17 17-111 111-47-47-17-17L126.1 256l17 17 64 64 17 17 17-17L369 209z"],["data-cy","failOrder","type","button","title","Order Completely Failed",1,"text-red-950","bg-red-500","hover:bg-red-600","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm24-384l0 24 0 112 0 24-48 0 0-24 0-112 0-24 48 0zM232 368l0-48 48 0 0 48-48 0z"],[1,"fixed","inset-0","top-0","left-0","right-0","h-screen","bg-black","bg-opacity-50","z-40",3,"click"],["id","drawer-notes","tabindex","-1","aria-labelledby","drawer-notes-label",1,"fixed","top-0","right-0","z-50","h-screen","p-4","overflow-y-auto","transition-transform","bg-secondary-50","w-5/12","dark:bg-primary-100","flex","flex-col",3,"ngClass"],[1,"flex","justify-between","items-center","border-b","pb-3"],["id","drawer-notes-label",1,"flex","items-center","text-base","font-semibold","text-gray-500","dark:text-gray-400"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 448 512",1,"w-4","h-4","mr-2"],["d","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"],["type","button","aria-controls","drawer-notes",1,"flex","items-center","justify-center","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],["class","flex flex-col items-center justify-center flex-1",4,"ngIf"],["id","note-dialog","class","flex flex-col space-y-3 mt-4 overflow-y-auto flex-1 p-2",4,"ngIf"],[1,"border-t","pt-3"],[1,"flex","flex-col"],["data-cy","orderNotesTextField","placeholder","Write a new note...",1,"w-full","p-2","text-sm","border","rounded-lg","resize-none","h-20",3,"ngModelChange","keyup.enter","ngModel"],["data-cy","orderNotesSendButton",1,"mt-2","px-4","py-2","text-sm","font-semibold","text-white","bg-blue-500","rounded-lg","hover:bg-blue-600",3,"click"],[1,"flex","flex-col","items-center","justify-center","flex-1"],[1,"animate-spin","rounded-full","h-8","w-8","border-t-4","border-blue-500"],[1,"text-gray-500","mt-2"],["id","note-dialog",1,"flex","flex-col","space-y-3","mt-4","overflow-y-auto","flex-1","p-2"],["class","text-center text-gray-500",4,"ngIf"],["data-cy","orderNotesMessages","class","flex",3,"ngClass",4,"ngFor","ngForOf"],[1,"text-center","text-gray-500"],["data-cy","orderNotesMessages",1,"flex",3,"ngClass"],[1,"max-w-xs","p-3","rounded-lg","shadow-md",3,"ngClass"],[1,"text-sm"],[1,"text-xs","block","mt-1","text-gray-500"],[4,"ngIf"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"ul",3)(2,"li",4)(3,"a",5),e.bIt("click",function(){return e.eBV(i),e.Njj(l.onRoleChange(l.buyerRole))}),e.qSk(),e.j41(4,"svg",6),e.nrm(5,"path",7),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.DNE(8,Uc0,6,7,"li",4),e.k0s()(),e.joV(),e.j41(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11),e.nrm(13,"fa-icon",12),e.j41(14,"h2",13),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.j41(17,"button",14),e.bIt("click",function(C){return e.eBV(i),e.Njj(C.stopPropagation())}),e.DNE(18,Gc0,1,1)(19,Hc0,2,3),e.qSk(),e.j41(20,"svg",15),e.nrm(21,"path",16),e.k0s()(),e.joV(),e.j41(22,"div",17)(23,"ul",18)(24,"li",19)(25,"input",20),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("add"))}),e.k0s(),e.j41(26,"label",21),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"li",19)(30,"input",22),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("modify"))}),e.k0s(),e.j41(31,"label",23),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"li",19)(35,"input",24),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("delete"))}),e.k0s(),e.j41(36,"label",25),e.EFF(37),e.nI1(38,"translate"),e.k0s()()()()(),e.j41(39,"div",10)(40,"div",11),e.nrm(41,"fa-icon",12),e.j41(42,"h2",13),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"button",26),e.bIt("click",function(C){return e.eBV(i),e.Njj(C.stopPropagation())}),e.DNE(46,Yc0,1,1)(47,qc0,2,3),e.qSk(),e.j41(48,"svg",15),e.nrm(49,"path",16),e.k0s()(),e.joV(),e.j41(50,"div",27)(51,"h6",28),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"ul",29)(55,"li",19)(56,"input",30),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("acknowledged"))}),e.k0s(),e.j41(57,"label",31),e.EFF(58),e.nI1(59,"translate"),e.k0s()(),e.j41(60,"li",19)(61,"input",32),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("inProgress"))}),e.k0s(),e.j41(62,"label",33),e.EFF(63),e.nI1(64,"translate"),e.k0s()(),e.j41(65,"li",19)(66,"input",34),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("partial"))}),e.k0s(),e.j41(67,"label",35),e.EFF(68),e.nI1(69,"translate"),e.k0s()(),e.j41(70,"li",19)(71,"input",36),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("completed"))}),e.k0s(),e.j41(72,"label",37),e.EFF(73),e.nI1(74,"translate"),e.k0s()(),e.j41(75,"li",19)(76,"input",38),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("failed"))}),e.k0s(),e.j41(77,"label",39),e.EFF(78),e.nI1(79,"translate"),e.k0s()(),e.j41(80,"li",19)(81,"input",40),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("pending"))}),e.k0s(),e.j41(82,"label",41),e.EFF(83),e.nI1(84,"translate"),e.k0s()(),e.j41(85,"li",19)(86,"input",42),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("cancelled"))}),e.k0s(),e.j41(87,"label",43),e.EFF(88),e.nI1(89,"translate"),e.k0s()()()()()()(),e.DNE(90,Xc0,6,0,"div",44)(91,d70,26,17)(92,H70,89,60,"div",45),e.j41(93,"div",46,0)(95,"div",47)(96,"div",48)(97,"div",49)(98,"h3",50),e.EFF(99," Confirm Action "),e.k0s(),e.j41(100,"button",51),e.bIt("click",function(){return e.eBV(i),e.Njj(l.closeModal())}),e.EFF(101," \u2716 "),e.k0s()(),e.j41(102,"div",52)(103,"p",53),e.EFF(104," Are you sure you want to update this order item to "),e.j41(105,"strong"),e.EFF(106),e.k0s(),e.EFF(107," status? "),e.k0s()(),e.j41(108,"div",54)(109,"button",55),e.bIt("click",function(){return e.eBV(i),e.Njj(l.confirmAction())}),e.EFF(110," Yes, Confirm "),e.k0s(),e.j41(111,"button",56),e.bIt("click",function(){return e.eBV(i),e.Njj(l.closeModal())}),e.EFF(112," Cancel "),e.k0s()()()()(),e.DNE(113,Q70,17,8)(114,Z70,9,1,"div",57)}2&t&&(e.R7$(3),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50"),e.R7$(),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 dark:text-primary-50"),e.R7$(2),e.SpI(" ",e.bMT(7,29,"PRODUCT_ORDERS._as_customer")," "),e.R7$(2),e.vxM(8,l.isSeller?8:-1),e.R7$(5),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(16,31,"PRODUCT_ORDERS._filter_action")),e.R7$(3),e.vxM(18,l.actionFilters.length>0?18:19),e.R7$(7),e.Y8G("checked",l.actionFilters.includes("add")),e.R7$(2),e.SpI(" ",e.bMT(28,33,"PRODUCT_ORDERS._action_add")," "),e.R7$(3),e.Y8G("checked",l.actionFilters.includes("modify")),e.R7$(2),e.SpI(" ",e.bMT(33,35,"PRODUCT_ORDERS._action_modify")," "),e.R7$(3),e.Y8G("checked",l.actionFilters.includes("delete")),e.R7$(2),e.SpI(" ",e.bMT(38,37,"PRODUCT_ORDERS._action_delete")," "),e.R7$(4),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(44,39,"PRODUCT_ORDERS._filter_state")),e.R7$(3),e.vxM(46,l.filters.length>0?46:47),e.R7$(6),e.SpI(" ",e.bMT(53,41,"PRODUCT_ORDERS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(59,43,"PRODUCT_ORDERS._acknowledged")," "),e.R7$(5),e.SpI(" ",e.bMT(64,45,"PRODUCT_ORDERS._in_progress")," "),e.R7$(5),e.SpI(" ",e.bMT(69,47,"PRODUCT_ORDERS._partial")," "),e.R7$(5),e.SpI(" ",e.bMT(74,49,"PRODUCT_ORDERS._completed")," "),e.R7$(5),e.SpI(" ",e.bMT(79,51,"PRODUCT_ORDERS._failed")," "),e.R7$(5),e.SpI(" ",e.bMT(84,53,"PRODUCT_ORDERS._pending")," "),e.R7$(5),e.SpI(" ",e.bMT(89,55,"PRODUCT_ORDERS._cancelled")," "),e.R7$(2),e.vxM(90,l.loading&&!l.loading_more?90:91),e.R7$(2),e.vxM(92,l.showOrderDetails?92:-1),e.R7$(14),e.JRh(l.actionType),e.R7$(7),e.vxM(113,l.isDrawerOpen?113:-1),e.R7$(),e.vxM(114,l.showError?114:-1))},dependencies:[s1.h,s1.D9,J2.dX,J2.aY,_.MD,_.YU,_.Sq,_.bT,_.Jj,_.vh,BL,p.me,p.BC,p.vS]})}}return n})();const KN1=(n,a)=>a.id,et0=n=>({"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group":n});function ct0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",2)(1,"a",8),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onRoleChange(l.sellerRole))}),e.qSk(),e.j41(2,"svg",9),e.nrm(3,"path",10),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,et0,c.role==c.sellerRole)),e.R7$(),e.Y8G("ngClass",c.role!==c.sellerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 dark:text-blue-500"),e.R7$(2),e.SpI(" ",e.bMT(5,3,"INVOICES._as_provider")," ")}}function tt0(n,a){1&n&&(e.j41(0,"div",6),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13),e.k0s(),e.joV(),e.j41(4,"span",14),e.EFF(5,"Loading..."),e.k0s()())}function nt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"input",37),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.editableInvoiceName,l)||(i.editableInvoiceName=l),e.Njj(l)}),e.k0s()}if(2&n){const c=e.XpG(3);e.R50("ngModel",c.editableInvoiceName)}}function lt0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.billNo," ")}}function st0(n,a){if(1&n&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(null==c?null:c.state)}}function at0(n,a){if(1&n&&(e.j41(0,"span",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(null==c?null:c.state)}}function ot0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.state," ")}}function it0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),i=l.$implicit,u=l.$index,C=e.XpG(2);return e.Njj(C.saveInvoice(u,i))}),e.nrm(1,"fa-icon",41),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faSave)}}function rt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),i=l.$implicit,u=l.$index,C=e.XpG(2);return e.Njj(C.editInvoice(u,i))}),e.nrm(1,"fa-icon",41),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faEdit)}}function dt0(n,a){if(1&n&&e.DNE(0,it0,2,1,"button",39)(1,rt0,2,1),2&n){const c=e.XpG().$index,t=e.XpG(2);e.vxM(0,t.editingIndex===c?0:1)}}function ft0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",22)(1,"td",24),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"td",24),e.DNE(5,nt0,1,1,"input",25)(6,lt0,1,1),e.k0s(),e.j41(7,"td",26),e.EFF(8),e.k0s(),e.j41(9,"td",26),e.DNE(10,st0,2,1,"span",27)(11,at0,2,1)(12,ot0,1,1),e.k0s(),e.j41(13,"td",24)(14,"div",28)(15,"button",29),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(16,"svg",30)(17,"g",31),e.nrm(18,"path",32)(19,"path",33),e.k0s()()(),e.joV(),e.j41(20,"button",34),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.downloadInvoice(l))}),e.qSk(),e.j41(21,"svg",35),e.nrm(22,"path",36),e.k0s()(),e.DNE(23,dt0,2,1),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.R7$(2),e.SpI(" ",e.i5U(3,6,null==c?null:c.billDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.vxM(5,l.role==l.sellerRole&&l.editingIndex===t?5:6),e.R7$(3),e.Lme(" ",null==c?null:c.taxIncludedAmount.value,"",null==c?null:c.taxIncludedAmount.unit," "),e.R7$(2),e.vxM(10,"settled"===(null==c?null:c.state)?10:"new"===(null==c?null:c.state)?11:12),e.R7$(13),e.vxM(23,l.role==l.sellerRole?23:-1)}}function ut0(n,a){1&n&&(e.j41(0,"div",23)(1,"span",42),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function mt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",43)(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s()()()}}function pt0(n,a){if(1&n&&e.DNE(0,mt0,5,0,"div",43),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function ht0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13),e.k0s(),e.joV(),e.j41(4,"span",14),e.EFF(5,"Loading..."),e.k0s()())}function gt0(n,a){if(1&n&&(e.j41(0,"div",15)(1,"div",16)(2,"table",17)(3,"thead",18)(4,"tr")(5,"th",19),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",19),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",20),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",20),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",21),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody"),e.Z7z(21,ft0,24,9,"tr",22,KN1),e.k0s()(),e.DNE(23,ut0,4,3,"div",23),e.k0s(),e.DNE(24,pt0,1,1)(25,ht0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"INVOICES._date")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"INVOICES._billno")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"INVOICES._tax_included_amount")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"INVOICES._status")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"INVOICES._actions")," "),e.R7$(3),e.Dyx(c.invoices),e.R7$(2),e.vxM(23,0==c.invoices.length?23:-1),e.R7$(),e.vxM(24,c.loading_more?25:24)}}function _t0(n,a){1&n&&(e.j41(0,"div",56),e.qSk(),e.j41(1,"svg",57),e.nrm(2,"path",12)(3,"path",13),e.k0s()())}function Lt0(n,a){1&n&&(e.j41(0,"p",58),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INVOICES._no_billing_rates")," "))}function Ct0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"p",63),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",64),e.EFF(5),e.nI1(6,"date"),e.nI1(7,"date"),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,3,"INVOICES._period_coverage"),": "),e.R7$(3),e.Lme(" ",e.i5U(6,5,c.periodCoverage.startDateTime,"dd/MM/yyyy")," - ",e.i5U(7,8,c.periodCoverage.endDateTime,"dd/MM/yyyy")," ")}}function zt0(n,a){if(1&n&&(e.j41(0,"div",60)(1,"div",61)(2,"div",62)(3,"p",63),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"p",64),e.EFF(7),e.k0s()(),e.j41(8,"div",62)(9,"p",63),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",64),e.EFF(13),e.k0s()(),e.j41(14,"div",62)(15,"p",63),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",65),e.EFF(19),e.k0s()(),e.j41(20,"div",62)(21,"p",63),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"p",66),e.EFF(25),e.k0s()(),e.j41(26,"div",62)(27,"p",63),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"p",67)(31,"u")(32,"a",68),e.EFF(33),e.k0s()()()(),e.DNE(34,Ct0,8,11,"div",62),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",e.bMT(5,14,"INVOICES._name"),": "),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(3),e.SpI(" ",e.bMT(11,16,"INVOICES._description"),": "),e.R7$(3),e.SpI(" ",c.description," "),e.R7$(3),e.SpI(" ",e.bMT(17,18,"INVOICES._type"),": "),e.R7$(3),e.SpI(" ",c.type," "),e.R7$(3),e.SpI(" ",e.bMT(23,20,"INVOICES._tax_included_amount"),": "),e.R7$(3),e.Lme(" ",null==c.taxIncludedAmount?null:c.taxIncludedAmount.value,"",null==c.taxIncludedAmount?null:c.taxIncludedAmount.unit," "),e.R7$(3),e.SpI(" ",e.bMT(29,22,"INVOICES._product_acbr_ref"),": "),e.R7$(4),e.Mz_("href","/product-inventory/",null==c.product?null:c.product.href,"",e.B4B),e.R7$(),e.SpI(" ",null==c.product?null:c.product.href," "),e.R7$(),e.vxM(34,c.periodCoverage?34:-1)}}function Mt0(n,a){if(1&n&&(e.j41(0,"div",59),e.Z7z(1,zt0,35,24,"div",60,KN1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.appliedCustomerBillingRates)}}function xt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",48),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",49)(3,"h2",50),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showInvoiceDetails=!1)}),e.qSk(),e.j41(7,"svg",52),e.nrm(8,"path",53),e.k0s(),e.joV(),e.j41(9,"span",14),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",54)(13,"div",55),e.DNE(14,_t0,4,0,"div",56)(15,Lt0,3,3)(16,Mt0,3,0),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showInvoiceDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,4,"INVOICES._applied_billing_rates")),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(4),e.vxM(14,c.loadingACBRs?14:0===c.appliedCustomerBillingRates.length?15:16)}}let bt0=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.invoicesService=u,this.eventMessage=C,this.paginationService=b,this.router=T,this.loading=!1,this.invoices=[],this.nextInvoices=[],this.partyId="",this.showInvoiceDetails=!1,this.appliedCustomerBillingRates=[],this.loadingACBRs=!1,this.dateRange=new p.MJ,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.INVOICE_LIMIT=g1.c.INVOICE_LIMIT,this.sellerRole=g1.c.SELLER_ROLE,this.buyerRole=g1.c.BUYER_ROLE,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=this.buyerRole,this.name="",this.show_orders=!0,this.show_billing=!1,this.editingIndex=null,this.editableInvoiceName="",this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faEdit=A2.MT7,this.faSave=A2.hSh,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(W=>{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showInvoiceDetails&&(this.showInvoiceDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.dateRange.setValue("month"),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(this.sellerRole)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.invoices=[],this.getInvoices(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getInvoices(c){var t=this;return(0,C1.A)(function*(){console.log("-getOrders--"),0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.INVOICE_LIMIT,c,t.invoices,t.nextInvoices,{filters:t.filters,partyId:t.partyId,selectedDate:t.selectedDate,invoices:t.invoices,role:t.role,name:t.name},t.paginationService.getInvoices.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.invoices),t.page_check=i.page_check,t.invoices=i.items,t.name=i.name,t.nextInvoices=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){console.log("-invoice-info-NEXT--"),yield c.getInvoices(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getInvoices(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}filterOrdersByDate(){if("month"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString()}else if("months"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(c.getMonth()-3),this.selectedDate=c.toISOString()}else if("year"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(0),c.setFullYear(c.getFullYear()-1),this.selectedDate=c.toISOString()}else this.selectedDate=void 0;this.getInvoices(!1)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{console.log("actualizado invoice")},error:i=>{t.billNo=l,console.error("There was an error while updating!",i)}}),this.editingIndex=null}downloadInvoice(c){console.log("Downloading invoice"),window.open(`${g1.c.BASE_URL}/invoicing/invoices/${c.id}?format=xml-html`,"_blank")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(E5),e.rXU(U2),e.rXU(w6),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-invoices-info"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:12,vars:8,consts:[[1,"border-b","border-gray-200","dark:border-gray-700","mb-2"],[1,"flex","flex-wrap","-mb-px","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"me-2"],["aria-current","page",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","group",3,"click","ngClass"],["aria-hidden","true","fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM464 64l0 242.7-25.4-25.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l80-80c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L528 306.7 528 64c0-17.7-14.3-32-32-32s-32 14.3-32 32z"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","invoice-details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],[1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","hover:text-gray-600","hover:border-gray-300","dark:hover:text-gray-300","group",3,"click","ngClass"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM598.6 121.4l-80-80c-12.5-12.5-32.8-12.5-45.3 0l-80 80c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L464 141.3 464 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-242.7 25.4 25.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,""],[1,"m-4","relative","overflow-x-auto","border","border-primary-100","dark:border-secondary-50","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-secondary-50","dark:bg-primary-50","dark:text-secondary-100"],["scope","col",1,"px-6","py-3","text-center","align-middle"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","text-center","align-middle"],["scope","col",1,"text-center","align-middle"],["data-cy","invoiceRow",1,"border-b","bg-gray-100","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"text-center","items-center","w-full","col-span-2"],[1,"px-6","py-4","text-center","align-middle"],["type","text","id","invoicename",1,"mb-2","border-gray-300","dark:border-secondary-200","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModel"],[1,"md:table-cell","px-6","py-4","text-center","align-middle"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"flex","flex-row","justify-center","items-center"],["data-cy","invoiceDetails","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],["type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 15v2a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-2m-8 1V4m0 12-4-4m4 4 4-4"],["type","text","id","invoicename",1,"mb-2","border-gray-300","dark:border-secondary-200","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","px-2.5","py-0.5","rounded","border","border-blue-400"],["type","button",1,"text-white","bg-green-500","hover:bg-green-700","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],["type","button",1,"text-white","bg-green-500","hover:bg-green-700","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],[1,"text-[18px]","text-white","align-middle",3,"icon"],[1,"text-gray-900","dark:text-primary-50","text-sm","text-center","w-full","font-medium"],[1,"flex","pb-6","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["data-cy","invoiceDetail",1,"w-full","md:w-3/4","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-2","rounded-t","dark:border-gray-600","shadow-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["type","button","data-modal-hide","delete-bill-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"w-full","h-full"],[1,"p-4","relative","overflow-x-auto","rounded-lg"],["role","status",1,"w-full","h-24","flex","justify-center","items-center"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],[1,"text-gray-500","dark:text-gray-400","text-sm"],[1,"max-h-96","overflow-y-auto","pr-2"],["data-cy","acbr",1,"mb-4","p-4","bg-gray-50","dark:bg-secondary-300","rounded-lg","border","border-gray-200","dark:border-gray-600"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-row","gap-2"],[1,"text-sm","font-bold","text-gray-700","dark:text-white"],[1,"text-sm","text-gray-600","dark:text-gray-200"],["data-cy","acbrType",1,"text-sm","text-gray-600","dark:text-gray-200"],["data-cy","acbrPrice",1,"text-sm","text-gray-600","dark:text-gray-200"],[1,"text-sm","text-blue-100","dark:text-blue-200","font-mono"],[3,"href"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"ul",1)(2,"li",2)(3,"a",3),e.bIt("click",function(){return l.onRoleChange(l.buyerRole)}),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.DNE(8,ct0,6,7,"li",2),e.k0s()(),e.DNE(9,tt0,6,0,"div",6)(10,gt0,26,17)(11,xt0,17,8,"div",7)),2&t&&(e.R7$(3),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500"),e.R7$(),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 dark:text-blue-500"),e.R7$(2),e.SpI(" ",e.bMT(7,6,"INVOICES._as_customer")," "),e.R7$(2),e.vxM(8,l.isSeller?8:-1),e.R7$(),e.vxM(9,l.loading&&!l.loading_more?9:10),e.R7$(2),e.vxM(11,l.showInvoiceDetails?11:-1))},dependencies:[s1.h,s1.D9,J2.dX,J2.aY,_.MD,_.YU,_.vh,p.YN,p.me,p.BC,p.vS]})}}return n})();function yt0(n,a){1&n&&e.nrm(0,"app-order-info")}function Ft0(n,a){1&n&&e.nrm(0,"app-invoices-info")}let vt0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.orderService=u,this.eventMessage=C,this.paginationService=b,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=g1.c.BUYER_ROLE,this.show_orders=!0,this.show_invoices=!1,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0;let c=document.getElementById("order-button"),t=document.getElementById("bill-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{class n{constructor(){this.products=[],this.nextProducts=[],this.page=0,this.page_check=!0,this.keywords=void 0}hasState(){return this.products.length>0}save(c){Object.assign(this,c)}clear(){this.products=[],this.nextProducts=[],this.page=0,this.page_check=!0,this.keywords=void 0}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var cE1=y(7745);const kt0=(n,a)=>a.id,tE1=(n,a)=>({"break-all":n,"break-words":a});function wt0(n,a){if(1&n&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.SpI("(",null==c.data?null:c.data.count,")")}}function St0(n,a){if(1&n){const c=e.RV6();e.j41(0,"input",1,0),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.checked,l)||(i.checked=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",2),e.bIt("click",function(){e.eBV(c);const l=e.sdS(1),i=e.XpG(2);return e.Njj(i.onClick(l.checked))}),e.j41(3,"div",3)(4,"div",4),e.EFF(5),e.DNE(6,wt0,2,1,"span",5),e.k0s(),e.nrm(7,"fa-icon",6),e.k0s()()}if(2&n){const c=e.XpG(2);e.R50("ngModel",c.checked),e.Y8G("id",c.option),e.R7$(2),e.Y8G("for",c.option)("ngClass",c.isParent&&c.isFirst?c.labelClassParentFirst:c.isParent&&c.isLast?c.labelClassParentLast:c.isParent?c.labelClassParent:c.labelClass),e.R7$(2),e.Y8G("ngClass",e.l_i(8,tE1,c.hasLongWord(null==c.data?null:c.data.name,20),!c.hasLongWord(null==c.data?null:c.data.name,20))),e.R7$(),e.SpI(" ",null==c.data?null:c.data.name," "),e.R7$(),e.vxM(6,null!=c.data&&c.data.count?6:-1),e.R7$(),e.Y8G("icon",c.checked?c.faCircleCheck:c.faCircle)}}function Nt0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){const c=e.XpG(4);e.R7$(),e.SpI("(",c.data.count,")")}}function Et0(n,a){if(1&n&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",21),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function Dt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",7)(1,"div",8)(2,"span",9),e.EFF(3),e.DNE(4,Nt0,2,1,"span",10),e.k0s(),e.j41(5,"div",11)(6,"div",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onClickCategory(l.data))}),e.nrm(7,"input",13)(8,"fa-icon",14),e.k0s(),e.j41(9,"button",15),e.qSk(),e.j41(10,"svg",16),e.nrm(11,"path",17),e.k0s()()()()(),e.joV(),e.j41(12,"div",18)(13,"div",19)(14,"ul",20),e.Z7z(15,Et0,2,1,"li",null,kt0),e.k0s()()()}if(2&n){const c=e.XpG(3);e.Y8G("id","accordion-heading-"+c.simplifiedId),e.R7$(),e.Y8G("ngClass",c.checkClasses(c.isFirst,c.isLast,c.data)),e.R7$(),e.Y8G("ngClass",e.l_i(11,tE1,c.hasLongWord(c.data.name,20),!c.hasLongWord(c.data.name,20))),e.R7$(),e.SpI("",c.data.name," "),e.R7$(),e.vxM(4,c.data.count?4:-1),e.R7$(3),e.Y8G("checked",c.isCheckedCategory(c.data)),e.R7$(),e.Y8G("icon",c.isCheckedCategory(c.data)?c.faCircleCheck:c.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+c.simplifiedId)("aria-controls","accordion-body-"+c.simplifiedId),e.R7$(3),e.Y8G("id","accordion-body-"+c.simplifiedId),e.BMQ("aria-labelledby","accordion-heading-"+c.simplifiedId),e.R7$(3),e.Dyx(c.data.children)}}function Tt0(n,a){if(1&n&&e.DNE(0,Dt0,17,14),2&n){const c=e.XpG(2);e.vxM(0,c.data?0:-1)}}function Rt0(n,a){if(1&n&&e.DNE(0,St0,8,11)(1,Tt0,1,1),2&n){const c=e.XpG();e.vxM(0,0==(null==c.data||null==c.data.children?null:c.data.children.length)?0:1)}}let At0=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.eventMessage=t,this.cdr=l,this.faCircleCheck=A2.QRE,this.faCircle=Sr1,this.checked=!1,this.checkedCategories=[],this.labelClass="inline-flex items-center justify-between w-full px-5 py-3 text-gray-500 bg-white border-2 rounded-lg cursor-pointer dark:hover:text-gray-300 dark:border-gray-700 peer-checked:border-primary-50 hover:text-gray-600 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:bg-tertiary-100 dark:hover:bg-primary-50",this.labelClassParentFirst="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.labelClassParentLast="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.labelClassParent="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border-t border-r border-l border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.classListFirst="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLast="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classList="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListFirstChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLastChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.isParent=!1,this.isFirst=!1,this.isLast=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{const u=i.value;if("AddedFilter"===i.type&&u?.id===this.data?.id?this.checked=!0:"RemovedFilter"===i.type&&u?.id===this.data?.id&&(this.checked=!1),"AddedFilter"!==i.type||this.isCheckedCategory(u)){if("RemovedFilter"===i.type&&this.isCheckedCategory(u)){const C=this.checkedCategories.findIndex(b=>b===u.id);-1!==C&&(this.checkedCategories.splice(C,1),this.cdr.detectChanges()),console.log(this.isCheckedCategory(u))}}else this.checkedCategories.push(u.id),this.cdr.detectChanges()})}ngOnInit(){this.data?.id&&(this.simplifiedId=this.data.sanitizedId?this.data.sanitizedId:this.data.id.split(":").pop());const c=this.localStorage.getObject("selected_categories")||[];c.length>0&&c.findIndex(l=>l.id===this.data?.id)>-1&&(this.checked=!0),this.option=this.data?.id,this.isParent&&this.isFirst?this.labelClass="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600":this.isParent&&this.isLast&&(this.labelClass="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onClick(c){if(c){this.localStorage.removeCategoryFilter(this.data),this.eventMessage.emitRemovedFilter(this.data);const t=this.checkedCategories.findIndex(l=>l===this.data.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(this.data.id),this.localStorage.addCategoryFilter(this.data),this.eventMessage.emitAddedFilter(this.data);this.checked=!this.checked,this.eventMessage.emitFiltersCommitted()}onClickCategory(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const t=this.checkedCategories.findIndex(l=>l===c.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c);this.eventMessage.emitFiltersCommitted()}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let t=!1;if(null!=c)for(let l=0;ll.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-category-item"]],inputs:{data:"data",isParent:"isParent",isFirst:"isFirst",isLast:"isLast"},decls:1,vars:1,consts:[["optioninput",""],["type","checkbox","value","",1,"hidden","peer",3,"ngModelChange","ngModel","id"],[3,"click","for","ngClass"],[1,"flex","w-full","justify-between","items-center"],["data-cy","searchCategoryName",1,"w-full","text-base","text-left","font-semibold","text-wrap","break-words",3,"ngClass"],[1,"ml-2","text-sm","text-gray-400"],["data-cy","searchCategorySelect",1,"mr-7","text-2xl",3,"icon"],[3,"id"],[3,"ngClass"],["data-cy","searchCategoryName",1,"text-left","justify-start","text-wrap","break-words",3,"ngClass"],[1,"ml-1","text-sm","text-gray-400"],[1,"justify-end","inline-flex"],["data-cy","searchCategorySelect",1,"justify-end",3,"click"],["type","checkbox","value","",1,"hidden","peer",3,"checked"],[1,"text-2xl",3,"icon"],["data-cy","searchCategoryDropdown","type","button","aria-expanded","false",1,"ml-4"],["data-accordion-icon","","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-3","h-3","rotate-180","shrink-0"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5 5 1 1 5"],[1,"hidden",3,"id"],[1,"p-2","border","border-gray-200","dark:border-gray-700","dark:bg-gray-900"],[1,"grid","w-full","gap-2"],[3,"data"]],template:function(t,l){1&t&&e.DNE(0,Rt0,2,1),2&t&&e.vxM(0,null!=l.data&&l.data.children?0:-1)},dependencies:[_.YU,J2.aY,p.Zm,p.BC,p.vS,n]})}}return n})();const pf1=(n,a)=>a.id,It0=(n,a)=>({"break-all":n,"break-words":a});function Pt0(n,a){1&n&&(e.j41(0,"h2",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CATEGORIES._categories")))}function jt0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",5),e.nrm(1,"path",7),e.k0s())}function $t0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.onClick(l))}),e.j41(1,"div",4),e.DNE(2,jt0,2,0,":svg:svg",5),e.k0s(),e.j41(3,"span",6),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",t.isCheckedCategory(c)?"bg-[#2D58A7] border-[#2D58A7] text-white":"border-[#C0C7D1] bg-white"),e.R7$(),e.vxM(2,t.isCheckedCategory(c)?2:-1),e.R7$(2),e.JRh(c.name)}}function Ot0(n,a){if(1&n&&(e.j41(0,"ul",1),e.Z7z(1,$t0,5,3,"li",2,pf1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.allFilterItems)}}function Bt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"span",11),e.nrm(2,"fa-icon",12),e.j41(3,"span"),e.EFF(4),e.k0s()(),e.j41(5,"div",13)(6,"div",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.onClick(l))}),e.nrm(7,"input",15)(8,"fa-icon",16),e.k0s(),e.j41(9,"button",17),e.qSk(),e.j41(10,"svg",18),e.nrm(11,"path",19),e.k0s()()()()}if(2&n){const c=e.XpG(2),t=c.$implicit,l=c.$index,i=c.$index,u=c.$count,C=e.XpG(2);e.Y8G("ngClass",C.checkClasses(0===i,i===u-1,t)),e.R7$(),e.Y8G("ngClass",e.l_i(8,It0,C.hasLongWord(null==t?null:t.name,20),!C.hasLongWord(null==t?null:t.name,20))),e.R7$(),e.Y8G("icon",C.iconForCategory(null==t?null:t.name)),e.R7$(2),e.JRh(null==t?null:t.name),e.R7$(3),e.Y8G("checked",C.isCheckedCategory(t)),e.R7$(),e.Y8G("icon",C.isCheckedCategory(t)?C.faCircleCheck:C.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+l)("aria-controls","accordion-body-"+l)}}function Vt0(n,a){if(1&n&&e.nrm(0,"bae-category-item",20),2&n){const c=e.XpG(2),l=c.$index,i=c.$count;e.Y8G("data",c.$implicit)("isParent",!0)("isFirst",0===l)("isLast",l===i-1)}}function Ut0(n,a){if(1&n&&e.DNE(0,Bt0,12,11,"div",10)(1,Vt0,1,4),2&n){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:1)}}function Gt0(n,a){if(1&n&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",24),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function Ht0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",22)(2,"ul",23),e.Z7z(3,Gt0,2,1,"li",null,pf1),e.k0s()()()),2&n){const c=e.XpG(2),t=c.$implicit,l=c.$index;e.Y8G("id","accordion-body-"+l),e.BMQ("aria-labelledby","accordion-heading-"+l),e.R7$(3),e.Dyx(t.children)}}function Yt0(n,a){if(1&n&&e.DNE(0,Ht0,5,2,"div",21),2&n){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:-1)}}function qt0(n,a){if(1&n&&(e.j41(0,"h2",9),e.DNE(1,Ut0,2,1),e.k0s(),e.DNE(2,Yt0,1,1)),2&n){const c=a.$implicit;e.Y8G("id","accordion-heading-"+a.$index),e.R7$(),e.vxM(1,c.children?1:-1),e.R7$(),e.vxM(2,c.children?2:-1)}}function Xt0(n,a){}function Wt0(n,a){if(1&n&&(e.j41(0,"div",8),e.Z7z(1,qt0,3,3,null,null,pf1,!1,Xt0,0,0),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.categories)}}let nE1=(()=>{class n{get allFilterItems(){const c=[],t=l=>{for(const i of l)i.children&&i.children.length>0?t(i.children):c.push(i)};return t(this.categories),c}constructor(c,t,l,i){this.localStorage=c,this.eventMessage=t,this.api=l,this.cdr=i,this.classListFirst="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLast="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classList="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListFirstChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.classListLastChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.classListChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.labelClass="text-gray-500 bg-white border-2 rounded-lg cursor-pointer dark:hover:text-gray-300 dark:border-gray-700 peer-checked:border-primary-50 hover:text-gray-600 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:bg-tertiary-100 dark:hover:bg-primary-50",this.categories=[],this.checkedCategories=[],this.selected=[],this.dismissSubject=new S.B,this.cs=[],this.selectedCategories=new e.bkB,this.catalogId=void 0,this.showTitle=!0,this.simpleMode=!1,this.selectedRootId=void 0,this.selectedRootName=void 0,this.aiSearchEnabled=g1.c.AI_SEARCH_ENABLED,this.aiFacets={},this.dynamicAiCategories=[],this.configuredAiCategories=[],this.faCircleCheck=A2.QRE,this.faCircle=Sr1,this.iconForCategory=cE1.nc,this.destroy$=new S.B,this.categories=[],this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u=>{const C=u.value;if("AddedFilter"!==u.type||this.isCheckedCategory(C))if("RemovedFilter"===u.type&&this.isCheckedCategory(C)){const b=this.checkedCategories.findIndex(T=>T===C.id);-1!==b&&(this.checkedCategories.splice(b,1),this.cdr.detectChanges())}else"AiSearchFacets"===u.type&&this.aiSearchEnabled?(this.aiFacets=u.value||{},this.updateAiFacetCategories(),this.cdr.detectChanges()):"AiSearchCleared"===u.type&&this.aiSearchEnabled&&(this.aiFacets={},this.categories=[...this.cloneCategories(this.dynamicAiCategories),...this.cloneCategories(this.configuredAiCategories)],D2(),this.cdr.detectChanges());else this.checkedCategories.push(C.id),this.cdr.detectChanges()})}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.selected=c.localStorage.getObject("selected_categories")||[];for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}notifyDismiss(c){this.dismissSubject.next(c),this.removeCategory(c)}addCategory(c){-1==this.selected.indexOf(c,0)&&(this.selected.push(c),this.checkedCategories.push(c.id),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitAddedFilter(c),this.eventMessage.emitFiltersCommitted())}removeCategory(c){const t=this.selected.indexOf(c,0);if(t>-1){this.selected.splice(t,1),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitRemovedFilter(c);const l=this.checkedCategories.findIndex(i=>i===c.id);-1!==l&&this.checkedCategories.splice(l,1),this.eventMessage.emitFiltersCommitted()}}isRoot(c,t){const l=this.categories.indexOf(c,0);let i=this.categories[l].children;return null!=i&&i.length>0?i:[]}onClick(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const t=this.checkedCategories.findIndex(l=>l===c.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c);this.selectedRootId&&this.syncParentFilterForSimpleMode(),this.eventMessage.emitFiltersCommitted()}syncParentFilterForSimpleMode(){const c=this.selectedRootId;if(!c)return;const t=this.localStorage.getObject("selected_categories")||[],l=new Set(this.allFilterItems.map(C=>C?.id).filter(C=>!!C)),i=t.some(C=>!!C?.id&&l.has(C.id)),u=t.find(C=>C?.id===c);if(i)u&&(this.localStorage.removeCategoryFilter(u),this.eventMessage.emitRemovedFilter(u));else if(!u){const C={id:c,name:this.selectedRootName||"Category"};this.localStorage.addCategoryFilter(C),this.eventMessage.emitAddedFilter(C)}}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let t=!1;if(null!=c)for(let l=0;ll.length>t)}updateAiFacetCategories(){const c=this.applyFacetCountsToDynamicCategories(this.dynamicAiCategories,this.aiFacets),t=this.applyFacetCountsToConfiguredCategories(this.configuredAiCategories,this.aiFacets);this.categories=[...c,...t],D2()}applyFacetCountsToDynamicCategories(c,t){return(c||[]).map(l=>{const i=this.getFacetDataForDynamicRoot(l,t);return this.applyDynamicCategoryCounts(l,i,t)})}getFacetDataForDynamicRoot(c,t){const l=[String(c.id||""),this.toAiFacetKey(c.name||""),String(c.name||"")].filter(Boolean);for(const i of l)if(t?.[i])return t[i];return{}}applyDynamicCategoryCounts(c,t,l){const i=(c.children||[]).map(C=>this.applyDynamicCategoryCounts(C,t,l)),u=this.resolveDynamicCategoryCount(c,t,l);return{...c,count:"number"==typeof u&&Number.isFinite(u)&&u>0?u:void 0,children:i}}resolveDynamicCategoryCount(c,t,l){const i=this.readCountFromFacetMap(t,c.name,c.id);if(Number.isFinite(i)&&i>0)return i;const u=l?.[String(c.id||"")]||l?.[String(c.name||"")];if(u&&"object"==typeof u){const b=this.sumFacetCounts(u);if(b>0)return b}const C=this.findGlobalFacetCount(c,l);return C>0?C:void 0}readCountFromFacetMap(c,t,l){if(!c)return;const i=void 0!==t?Number(c[t]):NaN;if(Number.isFinite(i)&&i>0)return i;const u=void 0!==l?Number(c[l]):NaN;return Number.isFinite(u)&&u>0?u:void 0}findGlobalFacetCount(c,t){let l=0;for(const i of Object.values(t||{})){const u=this.readCountFromFacetMap(i,c.name,c.id);u&&u>0&&(l+=u)}return l}sumFacetCounts(c){return Object.values(c||{}).reduce((t,l)=>{const i=Number(l);return Number.isFinite(i)&&i>0?t+i:t},0)}applyFacetCountsToConfiguredCategories(c,t){return(c||[]).map(l=>{const i=String(l.id||""),u=t?.[i]||{};return{...l,children:this.applyFacetCountsRecursively(l.children||[],u)}})}applyFacetCountsRecursively(c,t){return(c||[]).map(l=>{const i=this.applyFacetCountsRecursively(l.children||[],t),C=Number(t[l.name]);return{...l,count:Number.isFinite(C)&&C>0?C:void 0,children:i}})}cloneCategories(c){return(c||[]).map(t=>({...t,children:this.cloneCategories(t.children||[])}))}convertDynamicCategoriesToAiFilterCategories(c){return(c||[]).map(t=>{const l=this.toAiFacetKey(t.name||"");return this.convertDynamicCategoryNode(t,l,!0)})}convertDynamicCategoryNode(c,t,l){const i=l?t:`${t}::${c.name}`;return{...c,id:i,sanitizedId:l?this.sanitizeIdForCss(t):`${this.sanitizeIdForCss(t)}-${this.sanitizeIdForCss(c.name||"")}`,children:(c.children||[]).map(u=>this.convertDynamicCategoryNode(u,t,!1))}}loadCatalogCategories(){var c=this;return(0,C1.A)(function*(){if(c.categories=[],c.selectedRootId){const u=yield c.api.getCategoriesByParentId(c.selectedRootId).catch(()=>[]);return void(c.categories=Array.isArray(u)?u:[])}if(null!=c.catalogId&&""!==String(c.catalogId).trim()){const u=yield c.api.getCatalog(c.catalogId).catch(()=>null),C=Array.isArray(u?.category)?u.category:[];if(C.length>0){const b=yield Promise.all(C.map(function(){var T=(0,C1.A)(function*(W){if(!W?.id)return null;const u1=yield c.api.getCategoryById(W.id).catch(()=>null),a1=u1?.parentId?String(u1.parentId):"";return u1?.id&&!0===u1.isRoot&&!a1?c.loadCategorySubtree(u1):null});return function(W){return T.apply(this,arguments)}}()));return void(c.categories=b.filter(T=>null!==T))}}const l=yield c.api.getLaunchedCategories(),i=Array.isArray(l)?l:[];for(const u of i)c.findChildren(u,i)})()}ngOnChanges(c){var t=this;return(0,C1.A)(function*(){const l=c.selectedRootId;l&&!l.firstChange&&(yield t.loadCatalogCategories(),t.cdr.detectChanges(),D2())})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}formatFacetName(c){return c.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}convertFiltersToCategories(c){return c.map(t=>this.convertFilterToCategory(t))}convertFilterToCategory(c){const t=c.name;return{id:c.name,name:this.formatFacetName(c.name),isRoot:!0,children:(c.children||[]).map(l=>this.convertOptionToCategory(t,l)),sanitizedId:this.sanitizeIdForCss(c.name)}}convertOptionToCategory(c,t){return{id:`${c}::${t.name}`,name:t.label?.trim()||t.name,isRoot:!1,children:[],sanitizedId:`${this.sanitizeIdForCss(c)}-${this.sanitizeIdForCss(t.name)}`}}sanitizeIdForCss(c){return c.replace(/\s+/g,"-").replace(/[()]/g,"").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase()}toAiFacetKey(c){return(c||"").trim().toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(o0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-categories-filter"]],inputs:{catalogId:"catalogId",showTitle:"showTitle",simpleMode:"simpleMode",selectedRootId:"selectedRootId",selectedRootName:"selectedRootName"},outputs:{selectedCategories:"selectedCategories"},features:[e.OA$],decls:3,vars:2,consts:[[1,"text-2xl","dark:text-secondary-50","p-2"],[1,"flex","flex-col"],["data-cy","searchSubcategoryItem",1,"flex","items-center","gap-3","cursor-pointer","rounded-lg","py-3","pl-4","pr-2","hover:bg-[#F0F4FB]","transition-colors"],["data-cy","searchSubcategoryItem",1,"flex","items-center","gap-3","cursor-pointer","rounded-lg","py-3","pl-4","pr-2","hover:bg-[#F0F4FB]","transition-colors",3,"click"],[1,"flex","h-6","w-6","shrink-0","items-center","justify-center","rounded-md","border-2",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-3.5","w-3.5"],[1,"text-[16px]","text-[#4C5A6B]"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],["id","accordion-collapse","data-accordion","open"],[3,"id"],[3,"ngClass"],[1,"flex","items-center","gap-2","text-left","justify-start","text-wrap","break-words",3,"ngClass"],[1,"shrink-0","text-[#2D58A7]",3,"icon"],[1,"justify-end","inline-flex"],[1,"justify-end",3,"click"],["type","checkbox","value","",1,"hidden","peer",3,"checked"],[1,"text-2xl",3,"icon"],["type","button","aria-expanded","false",1,"ml-4"],["data-accordion-icon","","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-3","h-3","rotate-180","shrink-0"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5 5 1 1 5"],["data-cy","categoryItemService",3,"data","isParent","isFirst","isLast"],[1,"hidden",3,"id"],[1,"p-2","border","border-gray-200","dark:border-gray-700","dark:bg-secondary-500"],[1,"grid","w-full","gap-2"],[3,"data"]],template:function(t,l){1&t&&e.DNE(0,Pt0,3,3,"h2",0)(1,Ot0,3,0,"ul",1)(2,Wt0,4,1),2&t&&(e.vxM(0,l.showTitle?0:-1),e.R7$(),e.vxM(1,l.simpleMode?1:2))},dependencies:[_.YU,J2.aY,At0,s1.D9]})}}return n})();const Jt0=["myProdImage"],Qt0=["descWrapper"],Zt0=["descWrapperList"],hf1=(n,a)=>a.id,lD=(n,a)=>({"break-all":n,"break-words":a});function Kt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.j41(1,"div",11)(2,"div",12),e.nrm(3,"div",13)(4,"img",14),e.k0s()(),e.j41(5,"div",15)(6,"div",16),e.qSk(),e.j41(7,"svg",17),e.nrm(8,"path",18),e.k0s(),e.joV(),e.j41(9,"span",19),e.EFF(10),e.k0s()(),e.j41(11,"h5",20),e.EFF(12),e.k0s(),e.j41(13,"div",21,0)(15,"p",22),e.EFF(16),e.k0s()(),e.j41(17,"div",23)(18,"button",24),e.bIt("click",function(l){e.eBV(c);const i=e.XpG();return i.goToProductDetails(i.productOff),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(19,"svg",25),e.nrm(20,"path",26),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(3),e.xc7("background-image","url("+c.getProductImage()+")"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.Y8G("title",(null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||""),e.R7$(),e.JRh((null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||"Owner/Brand"),e.R7$(),e.Y8G("ngClass",e.l_i(10,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(3),e.xc7("-webkit-line-clamp",c.descLineClamp),e.R7$(),e.JRh(c.getShortDescription())}}function en0(n,a){if(1&n&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.name)}}function cn0(n,a){1&n&&e.DNE(0,en0,2,1,"span",39),2&n&&e.vxM(0,a.$index<3?0:-1)}function tn0(n,a){if(1&n&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI("+",c.categories.length-3,"")}}function nn0(n,a){if(1&n&&(e.j41(0,"div")(1,"span",40),e.EFF(2,"Starting from"),e.k0s(),e.j41(3,"span",41),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.E5c("",c.cheapestPrice.unit,"",e.i5U(5,3,c.cheapestPrice.price,"1.2-2"),"",c.cheapestPrice.text?"/"+c.cheapestPrice.text:"","")}}function ln0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"span",40),e.EFF(2,"Technology"),e.k0s(),e.j41(3,"span",42),e.EFF(4),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.JRh(c.prodSpec.brand)}}function sn0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"span",40),e.EFF(2,"Compliance"),e.k0s(),e.j41(3,"span",42),e.EFF(4),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.JRh("BL"===c.complianceLevel?"Baseline":"P"===c.complianceLevel?"Professional":"Professional+")}}function an0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.j41(1,"div",28)(2,"div",29),e.nrm(3,"div",13)(4,"img",14),e.k0s()(),e.j41(5,"div",30)(6,"div",31),e.qSk(),e.j41(7,"svg",17),e.nrm(8,"path",18),e.k0s(),e.joV(),e.j41(9,"span",19),e.EFF(10),e.k0s()(),e.j41(11,"h5",32),e.EFF(12),e.k0s(),e.j41(13,"div",33),e.Z7z(14,cn0,1,1,null,null,hf1),e.DNE(16,tn0,2,1,"span",34),e.k0s(),e.j41(17,"div",21,1)(19,"p",22),e.EFF(20),e.k0s()(),e.j41(21,"div",35)(22,"div",36),e.DNE(23,nn0,6,6,"div")(24,ln0,5,1,"div",37)(25,sn0,5,1,"div",37),e.k0s(),e.j41(26,"button",38),e.bIt("click",function(l){e.eBV(c);const i=e.XpG();return i.goToProductDetails(i.productOff),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(27,"svg",25),e.nrm(28,"path",26),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(3),e.xc7("background-image","url("+c.getProductImage()+")"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.Y8G("title",(null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||""),e.R7$(),e.JRh((null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||"Owner/Brand"),e.R7$(),e.Y8G("ngClass",e.l_i(14,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(2),e.Dyx(c.categories),e.R7$(2),e.vxM(16,c.categories&&c.categories.length>3?16:-1),e.R7$(3),e.xc7("-webkit-line-clamp",c.descLineClampList),e.R7$(),e.JRh(c.getShortDescription()),e.R7$(3),e.vxM(23,void 0!==(null==c.cheapestPrice?null:c.cheapestPrice.price)&&(null==c.cheapestPrice?null:c.cheapestPrice.price)>0?23:-1),e.R7$(),e.vxM(24,c.prodSpec.brand?24:-1),e.R7$(),e.vxM(25,c.complianceLevel&&"NL"!==c.complianceLevel?25:-1)}}function on0(n,a){if(1&n&&(e.j41(0,"a",55),e.nrm(1,"fa-icon",75),e.EFF(2," No level "),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("ngClass","NL"==c.complianceLevel?"bg-red-200 text-red-700":"BL"==c.complianceLevel?"bg-orange-200 text-orange-700":"P"==c.complianceLevel?"bg-yellow-200 text-yellow-700":"bg-green-200 text-green-700"),e.R7$(),e.Y8G("icon",c.faAtom)("ngClass","NL"==c.complianceLevel?"text-red-700":"BL"==c.complianceLevel?"text-orange-700":"P"==c.complianceLevel?"text-yellow-700":"text-green-700")}}function in0(n,a){1&n&&e.nrm(0,"img",76)}function rn0(n,a){1&n&&e.nrm(0,"img",77)}function dn0(n,a){1&n&&e.nrm(0,"img",78)}function fn0(n,a){1&n&&e.nrm(0,"bae-badge",56),2&n&&e.Y8G("category",a.$implicit)}function un0(n,a){1&n&&e.nrm(0,"bae-badge",56),2&n&&e.Y8G("category",a.$implicit)}function mn0(n,a){if(1&n&&e.Z7z(0,un0,1,1,"bae-badge",56,hf1),2&n){const c=e.XpG(2);e.Dyx(c.categoriesMore)}}function pn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.loadMoreCategories())}),e.nrm(1,"fa-icon",80),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faEllipsis)}}function hn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeCategories())}),e.nrm(1,"fa-icon",80),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faClose)}}function gn0(n,a){if(1&n&&(e.j41(0,"li",67),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"CARD._id_number"),": ",c.prodSpec.productNumber,"")}}function _n0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",69),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",81),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(4),e.k0s()()}if(2&n){const c=e.XpG(2);e.Y8G("ngClass",e.l_i(5,lD,c.hasLongWord(c.orgInfo.tradingName,20),!c.hasLongWord(c.orgInfo.tradingName,20))),e.R7$(),e.SpI("",e.bMT(2,3,"CARD._owner"),": "),e.R7$(3),e.JRh(c.orgInfo.tradingName)}}function Ln0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",84),e.nrm(2,"path",85),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-primary-50"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function Cn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",86),e.bIt("click",function(l){return e.eBV(c),e.XpG(3).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",87),e.nrm(4,"path",88),e.k0s()()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function zn0(n,a){if(1&n&&e.DNE(0,Ln0,5,5,"button",82)(1,Cn0,5,3),2&n){const c=e.XpG(2);e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function Mn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",43),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",44)(3,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.hideModal())}),e.qSk(),e.j41(4,"svg",46),e.nrm(5,"path",47),e.k0s(),e.joV(),e.j41(6,"span",48),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",49)(10,"div",50)(11,"h5",51),e.EFF(12),e.k0s(),e.j41(13,"div",52)(14,"div",53),e.EFF(15),e.k0s()(),e.j41(16,"div",54),e.DNE(17,on0,3,3,"a",55)(18,in0,1,0)(19,rn0,1,0)(20,dn0,1,0),e.Z7z(21,fn0,1,1,"bae-badge",56,hf1),e.DNE(23,mn0,2,0)(24,pn0,2,1,"a",57)(25,hn0,2,1,"a",57),e.k0s()(),e.j41(26,"div",58),e.nrm(27,"div",59)(28,"img",60),e.k0s(),e.nrm(29,"hr",61),e.k0s(),e.j41(30,"div",62)(31,"div",63)(32,"h5",64),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"markdown",65),e.k0s(),e.j41(36,"div",63)(37,"h5",64),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"ul",66)(41,"li",67),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"li",68),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"li",67),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"li",67),e.EFF(51),e.nI1(52,"translate"),e.nI1(53,"date"),e.k0s(),e.j41(54,"li",67),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.DNE(57,gn0,3,4,"li",67)(58,_n0,5,8,"li",69),e.k0s()()(),e.nrm(59,"hr",70),e.j41(60,"div",71),e.DNE(61,zn0,2,1),e.j41(62,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.EFF(63),e.nI1(64,"translate"),e.qSk(),e.j41(65,"svg",73),e.nrm(66,"path",74),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,31,"CARD._close")),e.R7$(4),e.Y8G("ngClass",e.l_i(52,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(3),e.SpI("V: ",(null==c.productOff?null:c.productOff.version)||"latest",""),e.R7$(2),e.vxM(17,"NL"==c.complianceLevel?17:"BL"==c.complianceLevel?18:"P"==c.complianceLevel?19:20),e.R7$(4),e.Dyx(c.categories),e.R7$(2),e.vxM(23,c.loadMoreCats?23:-1),e.R7$(),e.vxM(24,c.checkMoreCats?24:-1),e.R7$(),e.vxM(25,c.closeCats?25:-1),e.R7$(2),e.muq("background-image: url(",c.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.SpI("",e.bMT(34,33,"CARD._prod_details"),":"),e.R7$(2),e.Y8G("ngClass",e.l_i(55,lD,c.hasLongWord(null==c.productOff?null:c.productOff.description,20),!c.hasLongWord(null==c.productOff?null:c.productOff.description,20)))("data",null==c.productOff?null:c.productOff.description),e.R7$(3),e.SpI("",e.bMT(39,35,"CARD._extra_info"),":"),e.R7$(4),e.Lme("",e.bMT(43,37,"CARD._offer_version"),": v",null==c.productOff?null:c.productOff.version,""),e.R7$(3),e.Lme("",e.bMT(46,39,"CARD._product_name"),": ",c.prodSpec.name,""),e.R7$(3),e.Lme("",e.bMT(49,41,"CARD._brand"),": ",c.prodSpec.brand,""),e.R7$(3),e.Lme("",e.bMT(52,43,"CARD._last_update"),": ",e.i5U(53,45,null==c.productOff?null:c.productOff.lastUpdate,"dd/MM/yy, HH:mm"),""),e.R7$(4),e.Lme("",e.bMT(56,48,"CARD._product_version"),": v",c.prodSpec.version,""),e.R7$(2),e.vxM(57,""!=c.prodSpec.productNumber?57:-1),e.R7$(),e.vxM(58,null!=c.orgInfo?58:-1),e.R7$(3),e.vxM(61,c.check_logged?61:-1),e.R7$(2),e.SpI(" ",e.bMT(64,50,"CARD._details")," ")}}function xn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",6)(1,"div",89),e.qSk(),e.j41(2,"svg",90),e.nrm(3,"path",91),e.k0s(),e.joV(),e.j41(4,"div",92),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",93)(8,"button",94),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deleteProduct(l.lastAddedProd))}),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",95),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",48),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",96),e.nrm(16,"path",47),e.k0s()()()(),e.joV(),e.j41(17,"div",97),e.nrm(18,"div",98),e.k0s()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,3,"CARD._added_card"),". "),e.R7$(4),e.JRh(e.bMT(10,5,"CARD._undo")),e.R7$(4),e.JRh(e.bMT(14,7,"CARD._close_toast")))}function bn0(n,a){if(1&n&&e.nrm(0,"cart-card",7),2&n){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function yn0(n,a){if(1&n&&e.nrm(0,"error-message",8),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Fn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-quote-request-modal",99),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showQuoteModal?"backdrop-blur-sm":"")("productOff",c.productOff)("prodSpec",c.prodSpec)("orgInfo",c.orgInfo)("customerId",c.customerId)("isOpen",c.showQuoteModal)}}let lE1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W){this.cdr=c,this.localStorage=t,this.eventMessage=l,this.api=i,this.priceService=u,this.cartService=C,this.accService=b,this.themeService=T,this.router=W,this.viewMode="grid",this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.category="none",this.categories=[],this.categoriesMore=[],this.price={price:0,priceType:"X"},this.images=[],this.bgColor="",this.toastVisibility=!1,this.detailsModalVisibility=!1,this.prodSpec={},this.complianceProf=R5,this.complianceLevel="NL",this.showModal=!1,this.cartSelection=!1,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.formattedPrices=[],this.descLineClamp=2,this.descLineClampList=2,this.check_logged=!1,this.faAtom=A2.RSf,this.faClose=A2.yYc,this.faEllipsis=A2.Dwc,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.checkMoreCats=!1,this.closeCats=!1,this.loadMoreCats=!1,this.errorMessage="",this.showError=!1,this.orgInfo=void 0,this.selectedPricePlanId=null,this.selectedPricePlan=null,this.currentTheme=null,this.themeSubscription=new x1.yU,this.destroy$=new S.B,this.productAlreadyInCart=!1,this.showQuoteModal=!1,this.customerId="",this.isCustomPrice=!1,this.cheapestPrice=null,this.isDrawerOpen=!1,this.JSON=JSON,this.targetModal=document.getElementById("details-modal"),this.modal=new gw1(this.targetModal),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u1=>{if("CloseCartCard"===u1.type){if(this.hideCartSelection(),null!=u1.value){this.lastAddedProd=u1.value,this.toastVisibility=!0,this.cdr.detectChanges();let a1=document.getElementById("progress-bar"),T1=document.getElementById("toast-add-cart");null!=a1&&null!=T1&&(a1.style.width="0%",a1.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}"CloseQuoteRequest"===u1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==u1.type||"AddedCartItem"==u1.type)&&this.cartService.getShoppingCart().then(a1=>{this.productAlreadyInCart=!!a1.some(Y1=>Y1.id===this.productOff?.id)}),"CloseQuoteRequest"===u1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==u1.type||"AddedCartItem"==u1.type)&&this.cartService.getShoppingCart().then(a1=>{this.productAlreadyInCart=!!a1.some(Y1=>Y1.id===this.productOff?.id)})})}onClick(){1==this.showModal&&(this.showModal=!1,this.productOff?.category&&this.productOff?.category.length>5&&(this.loadMoreCats=!1,this.checkMoreCats=!0,this.closeCats=!1),this.cdr.detectChanges()),(this.showQuoteModal=!0)&&(this.showQuoteModal=!1),1==this.cartSelection&&(this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges())}ngOnDestroy(){this.themeSubscription&&this.themeSubscription.unsubscribe(),this.descResizeObserver?.disconnect(),this.destroy$.next(),this.destroy$.complete()}setupDescriptionClamp(){if(typeof ResizeObserver>"u")return;const c=this.descWrapper?.nativeElement??this.descWrapperList?.nativeElement;c&&(this.descResizeObserver=new ResizeObserver(l=>{for(const i of l){const C=Math.max(1,Math.floor(i.contentRect.height/24));"grid"===this.viewMode&&C!==this.descLineClamp?(this.descLineClamp=C,this.cdr.detectChanges()):"list"===this.viewMode&&C!==this.descLineClampList&&(this.descLineClampList=C,this.cdr.detectChanges())}}),this.descResizeObserver.observe(c))}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.themeSubscription=c.themeService.currentTheme$.subscribe(i=>{c.currentTheme=i});let t=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0){if(c.check_logged=!0,t.logged_as==t.id)c.customerId=t.partyId;else{let C=t.organizations.find(b=>b.id==t.logged_as);c.customerId=C.partyId}c.cdr.detectChanges();const u=(yield c.cartService.getShoppingCart()).some(C=>C.id===c.productOff?.id);c.productAlreadyInCart=u,c.cdr.detectChanges()}else c.check_logged=!1,c.cdr.detectChanges();c.category=c.productOff?.category?.at(0)?.name??"none",null!=c.productOff?.category&&c.productOff?.category.length>5?(c.categories=c.productOff?.category.slice(0,4),c.categoriesMore=c.productOff?.category.slice(4),c.checkMoreCats=!0):(c.categories=c.productOff?.category,c.checkMoreCats=!1);let l=c.productOff?.attachment?.filter(i=>"Profile Picture"===i.name)??[];c.images=0==l.length?c.productOff?.attachment?.filter(i=>"Picture"===i.attachmentType)??[]:l,c.prodSpec=c.productOff?.productSpecification??{},c.getOwner(),null!=c.prodSpec.productSpecCharacteristic&&(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec)),c.isCustomPrice=yield c.priceService.isCustomOffering(c.productOff),c.cheapestPrice=c.priceService.formatCheapestPricePlan(c.productOff),c.prepareOffData(),c.cdr.detectChanges()})()}isCustom(){return this.isCustomPrice}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getShortDescription(){const c=this.productOff?.description??"";if(!c)return"";const t=c.replace(/<[^>]*>/g," "),l=document.createElement("textarea");return l.innerHTML=t,l.value.replace(/\s+/g," ").trim()}loadMoreCategories(){this.loadMoreCats=!this.loadMoreCats,this.checkMoreCats=!1,this.closeCats=!0}closeCategories(){this.closeCats=!1,this.checkMoreCats=!0,this.productOff?.category&&(this.categories=this.productOff?.category.slice(0,4)),this.loadMoreCats=!this.loadMoreCats}ngAfterViewInit(){D2(),this.setupDescriptionClamp()}addProductToCart(c,t){var l=this;return(0,C1.A)(function*(){if(!c||!c.productOfferingPrice)return;const i=l.createProdOptions(c,t);l.lastAddedProd=i;try{yield l.cartService.addItemShoppingCart(i),console.log("Update successful"),l.showToast(),l.eventMessage.emitAddedCartItem(c)}catch(u){l.handleError(u,"There was an error while adding item to the cart!")}l.cartSelection&&l.resetSelections(),l.cdr.detectChanges()})()}createProdOptions(c,t){return{id:c.id,name:c.name,image:this.getProductImage(),href:c.href,options:{characteristics:this.selected_chars,pricing:this.selected_price},termsAccepted:!t||this.selected_terms}}showToast(){this.toastVisibility=!0,this.cdr.detectChanges();const c=document.getElementById("progress-bar"),t=document.getElementById("toast-add-cart");c&&t&&(c.style.width="0%",c.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}resetSelections(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}deleteProduct(c){var t=this;return(0,C1.A)(function*(){void 0!==c&&(yield t.cartService.removeItemShoppingCart(c.id),console.log("removed"),t.eventMessage.emitRemovedCartItem(c)),t.toastVisibility=!1})()}toggleDetailsModal(){this.showModal=!0,this.cdr.detectChanges()}toggleCartSelection(){console.log("Add to cart..."),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):this.selected_price=this.productOff?.productOfferingPrice[0]),null!=this.productOff?.productOfferingTerm&&(this.check_terms=!!this.productOff.productOfferingTerm.find(t=>"License"===t.name)),0==this.check_prices&&0==this.check_char&&0==this.check_terms?this.addProductToCart(this.productOff,!1):(this.cartSelection=!0,this.cdr.detectChanges())}prepareOffData(){if(null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;l div[modal-backdrop]")?.remove(),this.router.navigate(["/search",c?.id])}goToOrgDetails(c){document.querySelector("body > div[modal-backdrop]")?.remove(),this.router.navigate(["/org-details",c])}getOwner(){let c=this.prodSpec?.relatedParty;if(c)for(let t=0;t{this.orgInfo=l,console.log("orginfo"),console.log(this.orgInfo)})}onPricePlanSelected(c){console.log(c.id),this.selectedPricePlanId=c.id,this.selectedPricePlan=c}onValueChange(c){console.log("Selected Value:",c)}openDrawer(){this.showModal&&(this.showModal=!1),this.isDrawerOpen=!0}closeDrawer(){this.isDrawerOpen=!1}toggleQuoteModal(){this.showModal=!1,this.showQuoteModal=!0}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(o0.F),e.rXU(X8),e.rXU(d8),e.rXU(x0.O),e.rXU(cF),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-off-card"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Jt0,5),e.GBs(Qt0,5),e.GBs(Zt0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.myProdImage=i.first),e.mGM(i=e.lsd())&&(l.descWrapper=i.first),e.mGM(i=e.lsd())&&(l.descWrapperList=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpecInput:"prodSpecInput",cardId:"cardId",viewMode:"viewMode"},decls:8,vars:12,consts:[["descWrapper",""],["descWrapperList",""],[1,"flex","flex-col","w-full","h-[430px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]"],[1,"flex","w-full","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],["id","details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass"],["id","toast-add-cart","role","alert",1,"flex","grid","grid-flow-row","mr-2","items-center","w-auto","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[3,"productOff","prodSpec","images","cartSelection"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"flex","flex-col","w-full","h-[430px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]",3,"click"],[1,"px-2","pt-2"],[1,"relative","h-[170px]","w-full","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"flex-1","flex","flex-col","px-4","pt-3","pb-4"],[1,"flex","items-center","gap-2","mb-2","text-[14px]","text-[#526179]","min-w-0"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-[18px]","w-[18px]","text-[#526179]","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"],[1,"truncate","min-w-0",3,"title"],["data-cy","searchOfferTitle",1,"text-[20px]","font-bold","leading-[1]","line-clamp-3","text-[#14274A]","mb-2",3,"ngClass"],[1,"flex-1","min-h-0","overflow-hidden"],["data-cy","searchOfferDescription",1,"text-[16px]","font-normal","leading-[24px]","text-[#0B1528]",2,"display","-webkit-box","-webkit-box-orient","vertical","overflow","hidden"],[1,"flex","justify-end","mt-4"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","hover:bg-gray-100","transition-colors","text-[#526179]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-7","w-7"],["stroke-linecap","round","stroke-linejoin","round","d","M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"],[1,"flex","w-full","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]",3,"click"],[1,"p-2","pr-0","shrink-0"],[1,"relative","h-full","w-[260px]","min-h-[180px]","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"flex-1","flex","flex-col","px-5","py-4","min-w-0"],[1,"flex","items-center","gap-2","mb-1.5","text-[14px]","text-[#526179]","min-w-0"],["data-cy","searchOfferTitle",1,"text-[20px]","font-bold","leading-[1]","line-clamp-2","text-[#14274A]","mb-2",3,"ngClass"],["data-cy","searchOfferCategories",1,"flex","items-center","flex-wrap","gap-1.5","mb-2"],[1,"inline-flex","items-center","px-2.5","py-0.5","rounded","text-[12px]","font-medium","bg-gray-100","text-gray-600"],[1,"flex","items-end","justify-between","mt-3"],[1,"flex","items-center","gap-6","text-[14px]","text-[#526179]"],[1,"border-l","border-gray-200","pl-6"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","hover:bg-gray-100","transition-colors","text-[#526179]","shrink-0",3,"click"],[1,"inline-flex","items-center","px-2.5","py-0.5","rounded","text-[12px]","font-medium","bg-[#eef2fb]","text-[#1f4fbf]","whitespace-nowrap"],[1,"text-[12px]","text-[#8896A8]","block"],[1,"font-semibold","text-[#14274A]"],[1,"font-medium","text-[#14274A]"],[1,"relative","w-full","max-w-7xl","max-h-full","rounded-t-lg",3,"click"],[1,"relative","sm:m-8","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-tertiary-100","bg-cover","bg-right-bottom","rounded-lg","overflow-y-auto","max-h-[calc(100vh-10rem)]"],["type","button","data-modal-hide","details-modal",1,"absolute","top-4","right-4","z-50","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","mb-4","rounded-t-lg","grid","grid-cols-80/20","lg:grid-cols-60/40"],[1,"flex","flex-col","p-4","overflow-x-hidden"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50","text-wrap","break-words",3,"ngClass"],[1,"grid","grid-cols-2"],[1,"min-h-19","pt-2","text-gray-500","dark:text-gray-400"],[1,"h-fit","overflow-x-hidden","flex","items-center","flex-wrap"],[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","mb-2","mr-2",3,"ngClass"],[1,"mr-2",3,"category"],[1,"cursor-pointer","text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2"],[1,"relative","h-[200px]","overflow-hidden","flex","justify-center","items-center","border","border-1","border-gray-200","dark:border-gray-700","rounded-tr-lg"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"rounded-r-lg","h-5/6","w-5/6","object-contain","z-10","dark:text-white",3,"src"],[1,"h-px","border-gray-200","border-1","dark:border-gray-700"],[1,"p-4","lg:p-5","grid","grid-cols-1","lg:grid-cols-2","gap-4"],[1,"justify-start"],[1,"font-semibold","tracking-tight","text-lg","text-primary-100","dark:text-primary-50"],[1,"min-h-19","h-19","dark:text-secondary-50","line-clamp-6","text-wrap","break-words",3,"ngClass","data"],[1,"max-w-md","space-y-1","list-disc","list-inside","dark:text-secondary-50","text-wrap","break-all","line-clamp-8"],[1,"text-wrap","break-all","line-clamp-1"],[1,"text-wrap","break-all","line-clamp-2"],[1,"text-wrap","break-words","line-clamp-1",3,"ngClass"],[1,"h-px","bg-gray-200","border-0","dark:bg-gray-700"],[1,"flex"],["type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"mr-2",3,"icon","ngClass"],["src","assets/logos/baseline.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],["src","assets/logos/prof.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],["src","assets/logos/profplus.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],[1,"cursor-pointer","text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2",3,"click"],[1,"text-secondary-50","dark:text-primary-100",3,"icon"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["data-cy","addToCart","type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"disabled","ngClass"],["data-cy","addToCart","type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 18 21",1,"w-3.5","h-3.5","me-2"],["d","M15 12a1 1 0 0 0 .962-.726l2-7A1 1 0 0 0 17 3H3.77L3.175.745A1 1 0 0 0 2.208 0H1a1 1 0 0 0 0 2h.438l.6 2.255v.019l2 7 .746 2.986A3 3 0 1 0 9 17a2.966 2.966 0 0 0-.184-1h2.368c-.118.32-.18.659-.184 1a3 3 0 1 0 3-3H6.78l-.5-2H15Z"],["type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-blue-700","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 18 20",1,"w-[18px]","h-[18px]","text-gray-800","dark:text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 15a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 0h8m-8 0-1-4m9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-9-4h10l2-7H3m2 7L3 4m0 0-.792-3H1"],[1,"text-sm","font-normal"],[1,"flex","items-center","ms-auto","space-x-2","rtl:space-x-reverse","p-1.5"],["type","button",1,"px-3","py-2","text-xs","font-medium","text-center","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","dark:bg-gray-800","dark:text-white","dark:border-gray-600","dark:hover:bg-gray-700","dark:hover:border-gray-600","dark:focus:ring-gray-700",3,"click"],["type","button","data-dismiss-target","#toast-add-cart","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"flex","w-full","mt-2","rounded-full","h-2.5","dark:bg-gray-700"],["id","progress-bar",1,"z-10","flex","bg-green-600","h-2.5","rounded-full","dark:bg-green-500","transition-width","delay-200","duration-3000","ease-out",2,"width","0px"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"click","ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"]],template:function(t,l){1&t&&(e.DNE(0,Kt0,21,13,"div",2)(1,an0,29,17,"div",3),e.j41(2,"app-price-plan-drawer",4),e.bIt("closeDrawer",function(){return l.closeDrawer()}),e.k0s(),e.DNE(3,Mn0,67,58,"div",5)(4,xn0,19,9,"div",6)(5,bn0,1,4,"cart-card",7)(6,yn0,1,1,"error-message",8)(7,Fn0,1,6,"app-quote-request-modal",9)),2&t&&(e.vxM(0,"grid"===l.viewMode?0:-1),e.R7$(),e.vxM(1,"list"===l.viewMode?1:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"),e.R7$(),e.vxM(3,l.showModal?3:-1),e.R7$(),e.vxM(4,l.toastVisibility?4:-1),e.R7$(),e.vxM(5,l.cartSelection?5:-1),e.R7$(),e.vxM(6,l.showError?6:-1),e.R7$(),e.vxM(7,l.showQuoteModal?7:-1))},dependencies:[_.YU,J2.aY,Ud1,N0,cH,qN1,E0,YN1,_.QX,_.vh,s1.D9],styles:[".fade[_ngcontent-%COMP%]{transition:all linear .5s;opacity:1}"]})}}return n})();const vn0=(n,a)=>a.id,kn0=(n,a)=>({"break-all":n,"break-words":a});function wn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",22),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",23),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",24),e.nrm(3,"path",25),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",27),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showDrawer?"backdrop-blur-sm":""),e.R7$(5),e.JRh(e.bMT(6,3,"DASHBOARD._close_menu")),e.R7$(2),e.Y8G("catalogId",c.catalog.id)}}function Sn0(n,a){if(1&n&&e.nrm(0,"bae-categories-filter",28),2&n){const c=e.XpG();e.Y8G("catalogId",c.catalog.id)}}function Nn0(n,a){1&n&&(e.j41(0,"div",21),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5,"Loading..."),e.k0s()())}function En0(n,a){if(1&n&&e.nrm(0,"bae-off-card",41),2&n){const t=a.$index;e.Y8G("productOff",a.$implicit)("cardId",t)}}function Dn0(n,a){1&n&&(e.j41(0,"div",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function Tn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",43)(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s()()()}}function Rn0(n,a){if(1&n&&e.DNE(0,Tn0,5,0,"div",43),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function An0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5,"Loading..."),e.k0s()())}function In0(n,a){if(1&n&&(e.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"h5",36),e.EFF(5),e.k0s(),e.nrm(6,"markdown",37),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"div",38)(9,"img",39),e.k0s()()(),e.j41(10,"div",40),e.Z7z(11,En0,1,2,"bae-off-card",41,vn0,!1,Dn0,3,3,"div",42),e.k0s(),e.DNE(14,Rn0,1,1)(15,An0,6,0)),2&n){const c=e.XpG();e.R7$(5),e.SpI(" ",c.providerName," "),e.R7$(),e.Y8G("data",""!=c.providerDescription?c.providerDescription:e.bMT(7,5,"CATALOGS._no_desc")),e.R7$(3),e.FS9("src",c.logo,e.B4B),e.R7$(2),e.Dyx(c.products),e.R7$(3),e.vxM(14,c.loading_more?15:14)}}let Pn0=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.route=c,this.api=t,this.accService=l,this.priceService=i,this.cdr=u,this.eventMessage=C,this.localStorage=b,this.router=T,this.paginationService=W,this.state=u1,this.providerName="",this.providerDescription="",this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.showDrawer=!1,this.searchEnabled=g1.c.SEARCH_ENABLED,this.showPanel=!1,this.feedback=!1,this.providerThemeName=g1.c.providerThemeName,this.logo="",this.destroy$=new S.B,this.navigatingToDetail=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{("AddedFilter"===a1.type||"RemovedFilter"===a1.type)&&this.checkPanel()}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{"CloseFeedback"===a1.type&&(this.feedback=!1)}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{("AddedFilter"===a1.type||"RemovedFilter"===a1.type)&&this.getProducts(!1)})}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(D2(),c.checkPanel(),c.id=c.route.snapshot.paramMap.get("id"),c.api.getCatalog(c.id).then(l=>{c.catalog=l,c.cdr.detectChanges();const i=c.catalog.relatedParty.find(u=>u.role===g1.c.SELLER_ROLE);i.id.startsWith("urn:ngsi-ld:individual")?(c.accService.getUserInfo(i.id).then(u=>{console.log("info"),console.log(u),c.providerName=u.givenName;const C=u.partyCharacteristic.find(b=>"description"===b.name);c.providerDescription=C.value}),c.logo="assets/images/Dome-Marketplace.svg"):c.accService.getOrgInfo(i.id).then(u=>{if(console.log("info"),console.log(u),c.providerName=u.tradingName,Array.isArray(u?.partyCharacteristic)&&u.partyCharacteristic.length>0){const C=u.partyCharacteristic.find(T=>"description"===T.name);c.providerDescription=C?.value?C.value:"";const b=u.partyCharacteristic.find(T=>"logo"===T.name);c.logo=b?.value?b.value:"assets/images/Dome-Marketplace.svg"}else c.logo="assets/images/Dome-Marketplace.svg"}),console.log("--- catalogo"),console.log(c.catalog)}),c.state.hasState())return console.log("Restoring state\u2026"),c.products=c.state.products,c.nextProducts=c.state.nextProducts,c.page=c.state.page,void(c.page_check=c.state.page_check);yield c.getProducts(!1),console.log("Productos:"),console.log(c.products);const t=c.localStorage.getObject("login_items");"{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0&&(c.feedback=!0),c.router.events.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{l instanceof E2.Z&&(c.navigatingToDetail=!!l.url.startsWith("/search/urn:ngsi-ld:product-offering"))})})()}onClick(){1==this.showDrawer&&(this.showDrawer=!1,this.cdr.detectChanges())}goTo(c){this.router.navigate([c])}ngOnDestroy(){if(this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let t=0;t0,this.showPanel!=t&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(o0.F),e.rXU(x0.O),e.rXU(X8),e.rXU(e.gRc),e.rXU(U2),e.rXU(z2.s),e.rXU(E2.Ix),e.rXU(w6),e.rXU(eE1))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-search-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:29,vars:15,consts:[[1,"fixed","z-30","w-full","top-[72px]","transition","transform","opacity-0","duration-200",3,"ngClass"],[1,"pr-8","pl-8","pb-8","pt-2",3,"ngClass"],[1,"pb-2"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-tertiary-100","dark:border-gray-700"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],["data-cy","cataloguesAllButton",1,"inline-flex","w-full","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600","dark:text-gray-400","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","line-clamp-1","text-wrap","break-words","text-gray-500","md:ms-2","dark:text-gray-400",3,"ngClass"],[1,"flex"],["tabindex","-1","aria-labelledby","drawer-label",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"ngClass"],[1,"flex","flex-col","w-full","md:w-4/5","lg:w-3/4"],[1,"md:pl-5","content","pb-5","px-4","flex","items-center"],["type","button",1,"md:hidden","px-2","w-fit","h-fit","py-2","text-sm","font-medium","text-center","inline-flex","items-center","dark:text-white","bg-white","text-primary-100","border","border-primary-100","rounded-lg","dark:bg-primary-100","dark:border-secondary-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["role","status",1,"h-full","flex","justify-center","align-middle"],["tabindex","-1","aria-labelledby","drawer-label",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click","ngClass"],["type","button","aria-controls","drawer-example",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[3,"catalogId"],[1,"hidden","md:block","w-1/2","md:2/5","lg:w-1/3","xl:1/4",3,"catalogId"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex","items-center","mx-auto","max-w-screen-xl","w-full","items-center","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","ml-4","mb-4"],[1,"relative","w-full"],[1,"relative","flex","flex-row","justify-between","items-start","w-full","p-8"],[1,"flex","flex-col","w-full","md:w-3/4","pr-4"],[1,"text-2xl","font-bold","tracking-tight","line-clamp-4","text-primary-100","dark:text-white","break-words"],[1,"line-clamp-[4]","break-words","dark:text-white","text-gray-900","mt-2",3,"data"],[1,"hidden","md:block","self-stretch","w-px","bg-gray-400","mx-4"],[1,"w-[100px]","lg:w-[200px]","hidden","md:block","self-center","z-10","dark:text-white",3,"src"],[1,"md:pl-5","grid","grid-cols-1","place-items-center","lg:grid-cols-2","xl:grid-cols-3"],["data-cy","baeCard",1,"w-full","h-full","p-2",3,"productOff","cardId"],[1,"min-h-19","dark:text-gray-600","text-center"],[1,"flex","pb-12","justify-center","align-middle"],[1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"]],template:function(t,l){1&t&&(e.nrm(0,"bae-categories-panel",0),e.j41(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goTo("/catalogues")}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.joV(),e.j41(11,"li",9)(12,"div",10),e.qSk(),e.j41(13,"svg",11),e.nrm(14,"path",12),e.k0s(),e.joV(),e.j41(15,"span",13),e.EFF(16),e.k0s()()()()()(),e.j41(17,"section",14),e.DNE(18,wn0,8,5,"div",15)(19,Sn0,1,1),e.j41(20,"div",16)(21,"section",17)(22,"button",18),e.bIt("click",function(u){return l.showDrawer=!l.showDrawer,u.stopPropagation()}),e.qSk(),e.j41(23,"svg",19),e.nrm(24,"path",20),e.k0s(),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.DNE(27,Nn0,6,0,"div",21)(28,In0,16,7),e.k0s()()()),2&t&&(e.Y8G("ngClass",l.showPanel?"opacity-100":"hidden"),e.R7$(),e.Y8G("ngClass",l.showPanel?"pt-[75px]":""),e.R7$(8),e.SpI(" ",e.bMT(10,8,"DASHBOARD._all_catalogs")," "),e.R7$(6),e.Y8G("ngClass",e.l_i(12,kn0,l.hasLongWord(l.catalog.name,20),!l.hasLongWord(l.catalog.name,20))),e.R7$(),e.JRh(l.catalog.name),e.R7$(2),e.vxM(18,l.showDrawer?18:19),e.R7$(7),e.SpI(" ",e.bMT(26,10,"DASHBOARD._categories_single")," "),e.R7$(2),e.vxM(27,l.loading?27:28))},dependencies:[_.YU,xG,N0,nE1,lE1,s1.D9]})}}return n})(),jn0=(()=>{class n{constructor(){this.apiUrl=this.buildProxyApiUrl(g1.c.BASE_URL,g1.c.AI_SEARCH_API_URL),this.apiKey=g1.c.AI_SEARCH_API_KEY,this.scoreThreshold=g1.c.AI_SEARCH_SCORE_THRESHOLD,this.answerMaxItems=g1.c.AI_SEARCH_ANSWER_MAX_ITEMS,this.profile=g1.c.AI_SEARCH_PROFILE}buildProxyApiUrl(c,t){return`${(c||"").replace(/\/+$/,"")}${this.normalizeAiPath(t)}`}normalizeAiPath(c){if(!c)return"/rag/";let t=c.trim();return t.startsWith("/")||(t=`/${t}`),t.endsWith("/")||(t=`${t}/`),t}search(c){var t=this;return(0,C1.A)(function*(l,i=[],u=!0,C=6,b=0){const W=JSON.stringify({profile:t.profile,text:l,score_threshold:t.scoreThreshold,filter:i,auto_filter:u,limit:C,offset:b});try{const a1=yield(yield fetch(`${t.apiUrl}search`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":t.apiKey},body:W})).text();return JSON.parse(a1)||{items:[],total_count:0,facets:{}}}catch(u1){return console.error("AI Search error:",u1),{items:[],total_count:0,facets:{}}}}).apply(this,arguments)}getAnswer(c){var t=this;return(0,C1.A)(function*(l,i=[]){if(!l.trim())return"";const u={profile:t.profile,text:l,score_threshold:t.scoreThreshold,filter:i,auto_filter:!1,limit:t.answerMaxItems};try{return(yield(yield fetch(`${t.apiUrl}answer`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":t.apiKey},body:JSON.stringify(u)})).json())?.answer||""}catch(C){return console.error("AI Answer error:",C),""}}).apply(this,arguments)}searchWithAnswer(c){var t=this;return(0,C1.A)(function*(l,i=[],u=6,C=0){const[b,T]=yield Promise.all([t.search(l,i,!0,u,C),t.getAnswer(l,i)]);return{searchResponse:b,answer:T}}).apply(this,arguments)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const gf1=(n,a)=>a.id,$n0=(n,a)=>a.key,sE1=()=>[];function On0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",40),e.nrm(1,"path",42),e.k0s())}function Bn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",43),e.bIt("mousedown",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectCategory(l))}),e.nrm(1,"fa-icon",44),e.j41(2,"span"),e.EFF(3),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",t.activeCategoryName===c.name?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("icon",t.iconForCategory(c.name)),e.R7$(2),e.JRh(c.name)}}function Vn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"div",36)(2,"button",37),e.bIt("mousedown",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.selectCategory(null))}),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",11),e.k0s(),e.joV(),e.j41(5,"span",39),e.EFF(6,"All Categories"),e.k0s(),e.DNE(7,On0,2,0,":svg:svg",40),e.k0s(),e.Z7z(8,Bn0,4,3,"button",41,gf1),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("ngClass",c.activeCategoryName?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(5),e.vxM(7,c.activeCategoryName?-1:7),e.R7$(),e.Dyx(c.rootCategories)}}function Un0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",52),e.nrm(2,"path",53),e.k0s()())}function Gn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"circle",54)(2,"path",55),e.k0s())}function Hn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",56),e.nrm(1,"path",57),e.k0s())}function Yn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",45),e.bIt("ngSubmit",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onUnifiedSearch(l))}),e.j41(1,"div",46),e.DNE(2,Un0,3,0,"div",47),e.j41(3,"input",48),e.nI1(4,"translate"),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onUnifiedSearch(l))}),e.k0s(),e.j41(6,"button",49),e.DNE(7,Gn0,3,0,":svg:svg",50)(8,Hn0,2,0),e.j41(9,"span",51),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.aiSearchEnabled?2:-1),e.R7$(),e.FS9("placeholder",c.aiSearchEnabled?e.bMT(4,6,"DASHBOARD._ai_search_ph"):e.bMT(5,8,"DASHBOARD._search_ph")),e.Y8G("formControl",c.searchField)("ngClass",c.aiSearchEnabled?"ps-10 border-purple-300 focus:ring-purple-500 focus:border-purple-500":"border-gray-200 focus:ring-[#00ADD3] focus:border-[#00ADD3]"),e.R7$(4),e.vxM(7,c.aiSearchLoading?7:8),e.R7$(3),e.JRh(e.bMT(11,10,"DASHBOARD._search"))}}function qn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",66),e.EFF(1),e.k0s(),e.j41(2,"span",67),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(2);return e.Njj(u.clearToolbarFilterSelection(i,l))}),e.qSk(),e.j41(3,"svg",68),e.nrm(4,"path",69),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.selectedIds.length)}}function Xn0(n,a){if(1&n&&(e.qSk(),e.j41(0,"svg",70),e.nrm(1,"path",15),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("ngClass",c.open?"rotate-180":"")}}function Wn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",76),e.nrm(1,"path",42),e.k0s())}function Jn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",74),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2).$implicit,C=e.XpG(2);return e.Njj(C.toggleToolbarOption(u,i,l))}),e.j41(1,"div",75),e.DNE(2,Wn0,2,0,":svg:svg",76),e.k0s(),e.j41(3,"span",77),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(2);e.Y8G("ngClass",l.isToolbarOptionSelected(t,c)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.BMQ("data-option-id",c.id),e.R7$(),e.Y8G("ngClass",l.isToolbarOptionSelected(t,c)?"bg-[#1f4fbf] border-[#1f4fbf] text-white":"border-gray-300 bg-white"),e.R7$(),e.vxM(2,l.isToolbarOptionSelected(t,c)?2:-1),e.R7$(2),e.JRh(c.name)}}function Qn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"div",72),e.Z7z(2,Jn0,5,5,"button",73,gf1),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(2),e.Dyx(c.options)}}function Zn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",64),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2);return e.Njj(u.toggleToolbarFilterDropdown(i,l))}),e.EFF(2),e.DNE(3,qn0,5,1)(4,Xn0,2,1),e.k0s(),e.DNE(5,Qn0,4,0,"div",65),e.k0s()}if(2&n){const c=a.$implicit;e.R7$(),e.Y8G("ngClass",c.selectedIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-gray-200 text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.BMQ("data-filter-key",c.key),e.R7$(),e.SpI(" ",c.label," "),e.R7$(),e.vxM(3,c.selectedIds.length>0?3:4),e.R7$(2),e.vxM(5,c.open?5:-1)}}function Kn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"div",58),e.Z7z(2,Zn0,6,5,"div",59,$n0),e.k0s(),e.j41(4,"div",60)(5,"button",61),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.clearFilters())}),e.qSk(),e.j41(6,"svg",62),e.nrm(7,"path",63),e.k0s(),e.EFF(8," Clear all "),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(2),e.Dyx(c.toolbarFilters)}}function e90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",80),e.nrm(3,"path",81),e.k0s(),e.joV(),e.j41(4,"span",51),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",82),e.k0s()}if(2&n){const c=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,"DASHBOARD._close_menu")),e.R7$(2),e.Y8G("catalogId",c.DFT_CATALOG)}}function c90(n,a){if(1&n){const c=e.RV6();e.j41(0,"aside",83)(1,"div",84)(2,"div",85)(3,"h3",86),e.EFF(4,"Filters"),e.k0s(),e.j41(5,"button",87),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.clearSubcategoryFilters())}),e.EFF(6,"Clear all"),e.k0s()(),e.nrm(7,"bae-categories-filter",88),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(7),e.Y8G("showTitle",!1)("simpleMode",!0)("catalogId",c.DFT_CATALOG)("selectedRootId",c.activeCategoryId)("selectedRootName",c.activeCategoryName)}}function t90(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.visibleProducts.length," results ")}}function n90(n,a){1&n&&(e.j41(0,"div",33),e.qSk(),e.j41(1,"svg",89),e.nrm(2,"path",90)(3,"path",91),e.k0s(),e.joV(),e.j41(4,"span",51),e.EFF(5,"Loading..."),e.k0s()())}function l90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",99)(2,"div",100),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",53),e.k0s()(),e.joV(),e.j41(5,"div",102)(6,"h4",103),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",104),e.nrm(10,"markdown",105),e.k0s()(),e.j41(11,"button",106),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.aiAnswer="")}),e.qSk(),e.j41(12,"svg",107),e.nrm(13,"path",108),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(7),e.JRh(e.bMT(8,2,"DASHBOARD._ai_answer")),e.R7$(3),e.Y8G("data",c.aiAnswer)}}function s90(n,a){1&n&&(e.j41(0,"div",93)(1,"div",109),e.qSk(),e.j41(2,"svg",110),e.nrm(3,"circle",54)(4,"path",55),e.k0s(),e.joV(),e.j41(5,"span",111),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()),2&n&&(e.R7$(6),e.JRh(e.bMT(7,1,"DASHBOARD._ai_thinking")))}function a90(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===t.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50":"text-gray-500 bg-white border-gray-300 hover:bg-gray-100 hover:text-gray-700"),e.R7$(),e.SpI(" ",c+1," ")}}function o90(n,a){1&n&&(e.j41(0,"li")(1,"span",116),e.EFF(2,"..."),e.k0s()())}function i90(n,a){if(1&n&&e.DNE(0,a90,3,2,"li")(1,o90,3,0),2&n){const c=a.$index,t=e.XpG(3);e.vxM(0,c+1===t.aiCurrentPage||c+1===1||c+1===t.aiTotalPages||c+1>=t.aiCurrentPage-2&&c+1<=t.aiCurrentPage+2?0:c+1===t.aiCurrentPage-3||c+1===t.aiCurrentPage+3?1:-1)}}function r90(n,a){if(1&n){const c=e.RV6();e.j41(0,"nav",94)(1,"ul",112)(2,"li")(3,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage-1))}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.Z7z(6,i90,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",114),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage+1))}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("disabled",1===c.aiCurrentPage),e.R7$(),e.SpI(" ",e.bMT(5,4,"DASHBOARD._prev")," "),e.R7$(2),e.Dyx(e.lJ4(8,sE1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function d90(n,a){if(1&n&&e.nrm(0,"bae-off-card",96),2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.Y8G("productOff",c)("cardId",t)("viewMode",l.viewMode)}}function f90(n,a){1&n&&(e.j41(0,"div",97),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"DASHBOARD._not_found")," "))}function u90(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===t.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50":"text-gray-500 bg-white border-gray-300 hover:bg-gray-100 hover:text-gray-700"),e.R7$(),e.SpI(" ",c+1," ")}}function m90(n,a){1&n&&(e.j41(0,"li")(1,"span",116),e.EFF(2,"..."),e.k0s()())}function p90(n,a){if(1&n&&e.DNE(0,u90,3,2,"li")(1,m90,3,0),2&n){const c=a.$index,t=e.XpG(3);e.vxM(0,c+1===t.aiCurrentPage||c+1===1||c+1===t.aiTotalPages||c+1>=t.aiCurrentPage-2&&c+1<=t.aiCurrentPage+2?0:c+1===t.aiCurrentPage-3||c+1===t.aiCurrentPage+3?1:-1)}}function h90(n,a){if(1&n){const c=e.RV6();e.j41(0,"nav",98)(1,"ul",112)(2,"li")(3,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage-1))}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.Z7z(6,p90,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",114),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage+1))}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("disabled",1===c.aiCurrentPage),e.R7$(),e.SpI(" ",e.bMT(5,4,"DASHBOARD._prev")," "),e.R7$(2),e.Dyx(e.lJ4(8,sE1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function g90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",117)(1,"button",118),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",119),e.nrm(4,"path",120),e.k0s()()()}}function _90(n,a){if(1&n&&e.DNE(0,g90,5,0,"div",117),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function L90(n,a){1&n&&(e.j41(0,"div",121),e.qSk(),e.j41(1,"svg",122),e.nrm(2,"path",90)(3,"path",91),e.k0s()())}function C90(n,a){if(1&n&&e.DNE(0,_90,1,1)(1,L90,4,0),2&n){const c=e.XpG(2);e.vxM(0,c.loading_more?1:0)}}function z90(n,a){if(1&n&&(e.DNE(0,l90,14,4,"div",92)(1,s90,8,3,"div",93)(2,r90,12,9,"nav",94),e.j41(3,"div",95),e.Z7z(4,d90,1,3,"bae-off-card",96,gf1,!1,f90,3,3,"div",97),e.k0s(),e.DNE(7,h90,12,9,"nav",98)(8,C90,2,1)),2&n){const c=e.XpG();e.vxM(0,c.aiSearchEnabled&&c.aiAnswer?0:-1),e.R7$(),e.vxM(1,c.aiSearchEnabled&&c.aiSearchLoading?1:-1),e.R7$(),e.vxM(2,c.aiSearchEnabled&&c.aiTotalPages>1?2:-1),e.R7$(),e.Y8G("ngClass","list"===c.viewMode?"flex flex-col gap-4":c.activeCategoryName?"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4":"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"),e.R7$(),e.Dyx(c.visibleProducts),e.R7$(3),e.vxM(7,c.aiSearchEnabled&&c.aiTotalPages>1?7:-1),e.R7$(),e.vxM(8,c.aiSearchEnabled?-1:8)}}function M90(n,a){1&n&&e.nrm(0,"feedback-modal",34)}let x90=(()=>{class n{get sortLabel(){return this.sortOptions.find(c=>c.value===this.sortOption)?.label??"Name"}get aiTotalPages(){return Math.ceil(this.aiTotalItems/this.aiPageSize)}constructor(c,t,l,i,u,C,b,T,W,u1,a1,T1){var Y1=this;this.api=c,this.cdr=t,this.route=l,this.router=i,this.localStorage=u,this.eventMessage=C,this.loginService=b,this.paginationService=T,this.state=W,this.aiSearchService=u1,this.priceService=a1,this.themeService=T1,this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.DFT_CATALOG=g1.c.DFT_CATALOG_ID,this.showDrawer=!1,this.searchEnabled=g1.c.SEARCH_ENABLED,this.keywords=void 0,this.searchField=new p.MJ,this.showPanel=!1,this.feedback=!1,this.providerThemeName=g1.c.providerThemeName,this.navigatingToDetail=!1,this.destroy$=new S.B,this.viewMode="grid",this.activeCategoryName=null,this.activeCategoryId=null,this.showCategoryDropdown=!1,this.rootCategories=[],this.iconForCategory=cE1.nc,this.primaryCategoriesMode=aF.dD.primaryCategoriesMode,this.primaryRootName=aF.dD.primaryRootName,this.toolbarFilters=[],this.procurementFilterKey="procurement_type",this.procurementCache=new Map,this.productsRequestVersion=0,this.activeCategoryStorageKey="search_active_category_id",this.showSortDropdown=!1,this.sortOption="date_new",this.sortOptions=[{value:"date_new",label:"Newest first"},{value:"date_old",label:"Oldest first"},{value:"name",label:"Name"}],this.marketplaceHomeUrl="/search",this.aiSearchEnabled=g1.c.AI_SEARCH_ENABLED,this.aiAnswer="",this.aiSearchLoading=!1,this.aiTotalItems=0,this.aiCurrentPage=1,this.aiPageSize=g1.c.PRODUCT_LIMIT,this.initToolbarFilters(),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(function(){var f2=(0,C1.A)(function*(M2){("AddedFilter"===M2.type||"RemovedFilter"===M2.type)&&(Y1.syncSelectionsFromStorage(),Y1.checkPanel()),"FiltersCommitted"===M2.type&&(Y1.syncSelectionsFromStorage(),Y1.aiSearchEnabled?yield Y1.runInitialAiSearch():yield Y1.getProducts(!1),Y1.checkPanel())});return function(M2){return f2.apply(this,arguments)}}()),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(f2=>{"CloseFeedback"===f2.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(c.themeService.currentTheme$.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{c.marketplaceHomeUrl=l?.links?.marketplaceHomeUrl||"/search"}),c.router.events.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{l instanceof E2.Z&&(c.navigatingToDetail=!!l.url.startsWith("/search/urn:ngsi-ld:product-offering"))}),c.products=[],c.nextProducts=[],c.checkPanel(),c.loadRootCategories(),c.route.snapshot.paramMap.get("keywords")&&(c.keywords=c.route.snapshot.paramMap.get("keywords"),c.searchField.setValue(c.keywords)),console.log("INIT"),c.state.hasState())return console.log("Restoring state\u2026"),c.products=c.state.products,c.nextProducts=c.state.nextProducts,c.page=c.state.page,c.page_check=c.state.page_check,c.keywords=c.state.keywords,c.refreshProcurementFilter(),void c.searchField.setValue(c.keywords);c.aiSearchEnabled?c.keywords?yield c.runAiSearch():yield c.runInitialAiSearch():yield c.getProducts(!1);let t=document.querySelector("[type=search]");t?.addEventListener("input",function(){var l=(0,C1.A)(function*(i){""==c.searchField.value&&(c.keywords=void 0,c.updateQueryParams(c.keywords),c.aiAnswer="",c.eventMessage.emitAiSearchCleared(),c.aiSearchEnabled?yield c.runInitialAiSearch():yield c.getProducts(!1))});return function(i){return l.apply(this,arguments)}}()),setTimeout(()=>{const l=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(l)&&l.expire-$2()().unix()-4>0&&g1.c.feedbackCampaign){let i=c.localStorage.getObject("feedback");if(console.log("---------------------- feedbackInfo"),console.log(i),"{}"===JSON.stringify(i)){let u={expire:g1.c?.feedbackCampaignExpiration??$2()().add(1,"week").unix()};c.localStorage.setObject("feedback",u),c.feedback=!0}else{if("expire"in i){if((i?.expire??0)-$2()().unix()-4<0&&g1.c.feedbackCampaignExpiration-$2()().unix()-4>0){let C={expire:g1.c?.feedbackCampaignExpiration};"approval"in i&&(C.approval=i.approval),c.localStorage.setObject("feedback",C)}}else{let u={expire:g1.c?.feedbackCampaignExpiration};"approval"in i&&(u.approval=i.approval),c.localStorage.setObject("feedback",u)}c.feedback=!("approval"in i)}}})})()}onClick(){this.showDrawer&&(this.showDrawer=!1),(this.showCategoryDropdown||this.showSortDropdown||this.toolbarFilters.some(t=>t.open))&&(this.closeDropdownsExcept("none"),this.cdr.detectChanges())}get visibleProducts(){let c=this.products;const t=this.getSelectedFilterLabels(this.procurementFilterKey);return t.length>0&&(c=c.filter(l=>{const i=l.id;if(!i)return!0;const u=this.procurementCache.get(i);return void 0!==u&&t.includes(u?"Request Quote":"Ready to Buy")})),c}applySort(c){const t=[...c];switch(this.sortOption){case"name":t.sort((l,i)=>(l.name||"").localeCompare(i.name||""));break;case"date_new":t.sort((l,i)=>this.getStartDate(i)-this.getStartDate(l));break;case"date_old":t.sort((l,i)=>this.getStartDate(l)-this.getStartDate(i))}return t}getStartDate(c){const t=c?.validFor?.startDateTime;return t?new Date(t).getTime():0}getSortParam(){switch(this.sortOption){case"name":return"name";case"date_new":return"-lastUpdate";case"date_old":return"lastUpdate";default:return}}closeDropdownsExcept(c){"category"!==c&&(this.showCategoryDropdown=!1),"sort"!==c&&(this.showSortDropdown=!1);for(const t of this.toolbarFilters)c!==t.key&&(t.open=!1)}toggleSortDropdown(c){c.stopPropagation(),this.showSortDropdown=!this.showSortDropdown,this.closeDropdownsExcept("sort")}selectSort(c,t){var l=this;return(0,C1.A)(function*(){t.stopPropagation(),l.showSortDropdown=!1,l.sortOption!==c&&(l.sortOption=c,l.aiSearchEnabled?l.keywords?yield l.runAiSearch():yield l.runInitialAiSearch():yield l.getProducts(!1))})()}resolveProcurementCache(c){var t=this;return(0,C1.A)(function*(){const l=c.filter(i=>i.id&&!t.procurementCache.has(i.id)).map(function(){var i=(0,C1.A)(function*(u){const C=u.id;try{const b=yield t.priceService.isCustomOffering(u);t.procurementCache.set(C,b)}catch{t.procurementCache.set(C,!1)}});return function(u){return i.apply(this,arguments)}}());yield Promise.all(l)})()}refreshProcurementFilter(){0!==this.getSelectedFilterLabels(this.procurementFilterKey).length&&this.resolveProcurementCache(this.products).then(()=>this.cdr.detectChanges())}initToolbarFilters(){this.toolbarFilters=aF.Tw.map(c=>({key:c.name,label:c.label??c.name,source:c.source??"configured",rootName:c.rootName,options:"configured"===(c.source??"configured")?(c.children??[]).map(t=>({id:`${c.name}::${t.name}`,name:t.label??t.name})):[],selectedIds:[],open:!1}))}toggleToolbarFilterDropdown(c,t){t.stopPropagation(),c.open=!c.open,this.closeDropdownsExcept(c.key)}isToolbarOptionSelected(c,t){return!!t?.id&&c.selectedIds.includes(t.id)}toggleToolbarOption(c,t,l){var i=this;return(0,C1.A)(function*(){if(l.stopPropagation(),!t?.id)return;const u=c.selectedIds.indexOf(t.id);u>-1?(c.selectedIds.splice(u,1),i.localStorage.removeCategoryFilter(t),i.eventMessage.emitRemovedFilter(t)):(c.selectedIds.push(t.id),i.localStorage.addCategoryFilter(t),i.eventMessage.emitAddedFilter(t)),c.key===i.procurementFilterKey&&c.selectedIds.length>0&&(yield i.resolveProcurementCache(i.products)),i.eventMessage.emitFiltersCommitted()})()}clearToolbarFilterSelection(c,t){t.stopPropagation();const l=[...c.selectedIds];c.selectedIds=[];for(const i of l){const u=c.options.find(C=>C.id===i);u&&(this.localStorage.removeCategoryFilter(u),this.eventMessage.emitRemovedFilter(u))}this.eventMessage.emitFiltersCommitted()}getSelectedFilterLabels(c){const t=this.toolbarFilters.find(i=>i.key===c);if(!t)return[];const l=new Set(t.selectedIds);return t.options.filter(i=>!!i.id&&l.has(i.id)).map(i=>i.name)}ngOnDestroy(){if(this.productsRequestVersion=0,this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let t=0;t0,this.showPanel!=t&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}clearFilters(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[];for(const l of t)this.localStorage.removeCategoryFilter(l),this.eventMessage.emitRemovedFilter(l);for(const l of this.toolbarFilters)l.selectedIds=[];this.activeCategoryName=null,this.activeCategoryId=null,this.setPersistedActiveCategoryId(null),this.eventMessage.emitFiltersCommitted()}clearSubcategoryFilters(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[],l=new Set(this.toolbarFilters.filter(i=>"categoryRoot"===i.source).flatMap(i=>i.options.map(u=>u.id)).filter(i=>!!i));for(const i of t)i?.id&&(String(i.id).includes("::")||l.has(i.id)||i.id!==this.activeCategoryId&&(this.localStorage.removeCategoryFilter(i),this.eventMessage.emitRemovedFilter(i)));if(this.activeCategoryId){const i=this.localStorage.getObject("selected_categories");if(!(Array.isArray(i)?i:[]).some(b=>b?.id===this.activeCategoryId)){const b={id:this.activeCategoryId,name:this.activeCategoryName||"Category"};this.localStorage.addCategoryFilter(b),this.eventMessage.emitAddedFilter(b)}}this.eventMessage.emitFiltersCommitted()}selectCategory(c){var t=this;return(0,C1.A)(function*(){const l=t.localStorage.getObject("selected_categories"),i=Array.isArray(l)?l:[];for(const u of i)t.localStorage.removeCategoryFilter(u),t.eventMessage.emitRemovedFilter(u);if(c){if(t.activeCategoryName=c.name,t.activeCategoryId=c.id??null,t.setPersistedActiveCategoryId(t.activeCategoryId),c.id){const u=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),C=Array.isArray(u)?u:[];for(const b of C)b?.id&&(t.localStorage.addCategoryFilter(b),t.eventMessage.emitAddedFilter(b))}}else t.activeCategoryName=null,t.activeCategoryId=null,t.setPersistedActiveCategoryId(null);t.syncSelectionsFromStorage(),t.eventMessage.emitFiltersCommitted(),t.showCategoryDropdown=!1})()}loadRootCategories(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.api.getDefaultCategories(),l=Array.isArray(t)?t:[];let i=[];if("catalogFirstLevel"===c.primaryCategoriesMode)i=l;else{const u=l.find(C=>C?.name===c.primaryRootName);if(u?.id){const C=yield c.api.getCategoriesByParentId(u.id).catch(()=>[]);i=Array.isArray(C)?C:[]}}yield Promise.all(c.toolbarFilters.filter(u=>"categoryRoot"===u.source).map(function(){var u=(0,C1.A)(function*(C){const b=l.find(W=>W?.name===C.rootName),T=b?.id?yield c.api.getCategoriesByParentId(b.id).catch(()=>[]):[];C.options=Array.isArray(T)?T:[]});return function(C){return u.apply(this,arguments)}}())),c.rootCategories=i,c.syncSelectionsFromStorage()}catch{c.rootCategories=[];for(const t of c.toolbarFilters)"categoryRoot"===t.source&&(t.options=[])}})()}syncSelectionsFromStorage(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[],l=new Set(t.map(u=>u?.id).filter(u=>!!u));for(const u of this.toolbarFilters)u.selectedIds=u.options.map(C=>C.id).filter(C=>!!C&&l.has(C));const i=t.find(u=>!!u?.id&&this.rootCategories.some(C=>C.id===u.id));if(i)this.activeCategoryName=i.name??null,this.activeCategoryId=i.id??null,this.setPersistedActiveCategoryId(this.activeCategoryId);else{const u=this.getPersistedActiveCategoryId(),C=u?this.rootCategories.find(b=>b?.id===u):void 0;C?(this.activeCategoryName=C.name??null,this.activeCategoryId=C.id??null):(this.activeCategoryName=null,this.activeCategoryId=null,this.setPersistedActiveCategoryId(null))}this.cdr.detectChanges()}setPersistedActiveCategoryId(c){c?this.localStorage.setItem(this.activeCategoryStorageKey,c):this.localStorage.removeItem(this.activeCategoryStorageKey)}getPersistedActiveCategoryId(){return this.localStorage.getItem(this.activeCategoryStorageKey)}toggleCategoryDropdown(c){c?.stopPropagation(),this.showCategoryDropdown=!this.showCategoryDropdown,this.closeDropdownsExcept("category")}onUnifiedSearch(c){var t=this;return(0,C1.A)(function*(){c.preventDefault(),t.aiSearchEnabled&&t.searchField.value?.trim()?(t.keywords=t.searchField.value,t.updateQueryParams(t.keywords),yield t.runAiSearch()):t.aiSearchEnabled?(t.keywords=void 0,t.updateQueryParams(t.keywords),t.aiAnswer="",t.eventMessage.emitAiSearchCleared(),yield t.runInitialAiSearch()):(t.keywords=t.searchField.value||void 0,t.updateQueryParams(t.keywords),t.aiAnswer="",t.eventMessage.emitAiSearchCleared(),yield t.getProducts(!1))})()}runInitialAiSearch(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.aiCurrentPage=1,c.keywords||c.searchField.reset(),c.cdr.detectChanges();try{const t=c.localStorage.getObject("selected_categories")||[],l=c.convertCategoriesToAiFilters(t),i=yield c.aiSearchService.search("",l,!1,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(i.items||[]),c.refreshProcurementFilter(),c.nextProducts=[],c.aiTotalItems=i.total_count,c.page_check=!1,i.facets&&c.eventMessage.emitAiSearchFacets(i.facets),c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(t){console.error("Initial AI Search error:",t),yield c.getProducts(!1)}finally{c.loading=!1,c.cdr.detectChanges()}})()}runAiSearch(){var c=this;return(0,C1.A)(function*(){const t=c.searchField.value?.trim();if(t){c.aiSearchLoading=!0,c.aiAnswer="",c.loading=!0,c.aiCurrentPage=1,c.cdr.detectChanges();try{const l=c.localStorage.getObject("selected_categories")||[],i=c.convertCategoriesToAiFilters(l),{searchResponse:u,answer:C}=yield c.aiSearchService.searchWithAnswer(t,i,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(u.items||[]),c.refreshProcurementFilter(),c.aiTotalItems=u.total_count,u.facets&&c.eventMessage.emitAiSearchFacets(u.facets),c.nextProducts=[],c.page_check=!1,c.aiAnswer=C,c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(l){console.error("AI Search error:",l),c.aiAnswer="",c.products=[]}finally{c.aiSearchLoading=!1,c.loading=!1,c.cdr.detectChanges()}}})()}changeAiPage(c){var t=this;return(0,C1.A)(function*(){t.aiCurrentPage=c,t.loading=!0,t.cdr.detectChanges();try{const l=t.localStorage.getObject("selected_categories")||[],i=t.convertCategoriesToAiFilters(l),u=(t.aiCurrentPage-1)*t.aiPageSize,C=yield t.aiSearchService.search(t.keywords||"",i,!1,t.aiPageSize,u);t.products=t.mapAiSearchToProducts(C.items||[]),t.refreshProcurementFilter(),t.aiTotalItems=C.total_count,C.facets&&t.eventMessage.emitAiSearchFacets(C.facets)}catch(l){console.error("AI Search page change error:",l)}finally{t.loading=!1,t.cdr.detectChanges()}})()}convertCategoriesToAiFilters(c){if(!Array.isArray(c))return[];const t=new Map;return c.forEach(l=>{let i,u;if(l.id?.includes("::")){const C=l.id.split("::");i=C[0],u=C.slice(1).join("::")}else if(l.id?.startsWith("ai-facet-")){const C=l.id.split("-");if(!(C.length>=4))return;C.shift(),C.shift(),i=C.shift()||"",u=C.join("-")}else i=l.id||"",u=l.name||"";t.has(i)||t.set(i,[]),t.get(i).push(u)}),Array.from(t.entries()).map(([l,i])=>({key:l,value:i}))}mapAiSearchToProducts(c){return c.map(t=>({id:t.id,href:t.id,name:t.offeringName||t.specificationName,description:t.offeringDescription||t.specificationDescription,lifecycleStatus:t.lifecycleStatus||"Launched",category:t.categories||[],attachment:t.imageUrl?[{id:"ai-image",name:"Profile Picture",attachmentType:"Picture",url:t.imageUrl,mimeType:"image/png"}]:[],productSpecification:{id:t.id,name:t.specificationName,description:t.specificationDescription,brand:t.brand,productSpecCharacteristic:t.complianceProfiles?[{name:"complianceProfiles",productSpecCharacteristicValue:t.complianceProfiles.map(l=>({value:l.name}))}]:[]},productOfferingPrice:[],_aiSearchData:t}))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(z2.s),e.rXU(U2),e.rXU(kn),e.rXU(w6),e.rXU(eE1),e.rXU(jn0),e.rXU(X8),e.rXU(cF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-search"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:46,vars:13,consts:[[1,"min-h-screen","bg-[#F7F9FD]","font-[Blinker]"],[1,"mx-auto","max-w-[1440px]","px-8"],[1,"flex","items-center","gap-2","pt-4","pb-4","text-[16px]","text-[#526179]"],[1,"hover:text-[#1f4fbf]","transition-colors",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","d","m8.25 4.5 7.5 7.5-7.5 7.5"],[1,"font-medium","text-[#1f4fbf]"],[1,"flex","flex-wrap","items-center","justify-between","gap-4","pb-4"],[1,"relative","flex","items-center","gap-3","min-w-0"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-xl","bg-[#eef2fb]","text-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"],["data-cy","searchCategoryDropdown",1,"flex","items-center","gap-2","min-w-0",3,"click"],[1,"text-[24px]","font-bold","text-[#0b1220]","sm:text-[30px]","truncate"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-5","w-5","text-[#526179]","shrink-0","transition-transform",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","m19.5 8.25-7.5 7.5-7.5-7.5"],[1,"absolute","top-full","left-0","mt-2","z-50","w-[420px]","rounded-2xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","max-h-[520px]","overflow-hidden"],[1,"w-full","sm:w-auto","sm:min-w-[440px]"],[1,"flex","items-center","justify-between","rounded-2xl","bg-white","border","border-[#EBECEE]","shadow-sm","p-3","flex-wrap","gap-y-2"],[1,"mx-auto","max-w-[1440px]","px-8","pt-4","pb-6","flex-1"],[1,"flex","gap-6","items-stretch","min-h-[calc(100vh-280px)]"],["tabindex","-1",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800"],[1,"min-w-0","flex-1"],["type","button",1,"mb-4","md:hidden","flex","items-center","gap-2","px-3","py-2","text-sm","font-medium","text-[#1f4fbf]","border","border-[#1f4fbf]","rounded-lg",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],[1,"mb-5","flex","items-center","justify-between"],[1,"flex","items-center","gap-4"],[1,"text-[16px]","text-[#526179]"],[1,"flex","items-center","gap-0.5","rounded-lg","border","border-gray-200","bg-white","p-1"],[1,"rounded","p-2","transition-colors",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","d","M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"],[1,"flex","justify-center","py-16"],["rateMessage","Based on your recent experience, how likely are you to recommend DOME to a colleague or a partner?","writeMessage","How can we improve DOME?","type","campaign",1,"fixed","inset-0","flex","items-center","justify-center","z-40"],[1,"absolute","top-full","left-0","mt-2","z-50","w-[420px]","rounded-2xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","max-h-[520px]","overflow-hidden",3,"click"],[1,"p-2","flex","flex-col","gap-2","max-h-[520px]","overflow-y-auto","overscroll-contain"],["data-cy","searchAllCategories",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"mousedown","ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6","text-[#1f4fbf]","shrink-0"],[1,"font-medium"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-5","w-5","ml-auto","text-[#1f4fbf]"],["data-cy","searchCategoryItem",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],["data-cy","searchCategoryItem",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"mousedown","ngClass"],[1,"text-[20px]","text-[#526179]","shrink-0",3,"icon"],[1,"w-full","sm:w-auto","sm:min-w-[440px]",3,"ngSubmit"],[1,"relative"],[1,"absolute","inset-y-0","start-0","flex","items-center","ps-3","pointer-events-none"],["type","search",1,"block","w-full","rounded-[12px]","border","bg-white","py-3.5","pl-5","pr-14","text-[16px]","text-gray-900","placeholder:text-gray-400","shadow-sm","hover:shadow-md","focus:shadow-none","transition-shadow","outline-none",3,"keydown.enter","formControl","ngClass","placeholder"],["type","submit",1,"absolute","top-0","end-0","h-full","px-4","flex","items-center","justify-center","rounded-e-[12px]","text-gray-400","hover:text-[#1f4fbf]","transition-colors"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","animate-spin"],[1,"sr-only"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-purple-500"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456z"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"w-5","h-5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"],[1,"flex","items-center","gap-2"],[1,"relative","shrink-0"],[1,"shrink-0"],[1,"flex","items-center","gap-2","text-[16px]","font-normal","text-[#1f4fbf]","hover:text-[#163b99]","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","d","M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"],["data-cy","searchToolbarFilter",1,"flex","items-center","gap-2","h-10","rounded-lg","border","pl-4","pr-3","text-[16px]","font-normal","transition-colors",3,"click","ngClass"],[1,"absolute","top-full","left-0","mt-2","z-[60]","w-[260px]","rounded-xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","overflow-hidden"],[1,"inline-flex","h-[22px]","min-w-[22px]","items-center","justify-center","rounded-full","bg-[#B6CAEC]","px-1.5","text-[12px]","font-semibold","text-[#1f4fbf]"],[1,"inline-flex","h-5","w-5","items-center","justify-center","rounded-full","hover:bg-[#DDE6F6]","cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-3","w-3"],["stroke-linecap","round","stroke-linejoin","round","d","M6 18 18 6M6 6l12 12"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","transition-transform",3,"ngClass"],[1,"absolute","top-full","left-0","mt-2","z-[60]","w-[260px]","rounded-xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","overflow-hidden",3,"click"],[1,"p-2","flex","flex-col","gap-1","max-h-[360px]","overflow-y-auto"],["data-cy","searchToolbarFilterOption",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-[14px]","text-[#0b1220]","transition-colors",3,"ngClass"],["data-cy","searchToolbarFilterOption",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"flex","h-4","w-4","shrink-0","items-center","justify-center","rounded","border",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-2.5","w-2.5"],[1,"text-left"],["tabindex","-1",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[3,"catalogId"],[1,"hidden","md:block","w-[260px]","lg:w-[300px]","shrink-0","self-stretch"],[1,"rounded-xl","border","border-gray-200","bg-white","p-5","min-h-full"],[1,"mb-4","flex","items-center","justify-between"],[1,"text-[18px]","font-semibold","text-[#0b1220]"],[1,"text-[14px]","font-medium","text-[#1f4fbf]","hover:text-[#163b99]","transition-colors",3,"click"],[3,"showTitle","simpleMode","catalogId","selectedRootId","selectedRootName"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-[#1f4fbf]"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"w-full","mb-4","p-4","bg-gradient-to-r","from-purple-50","to-indigo-50","dark:from-purple-900/20","dark:to-indigo-900/20","border","border-purple-200","dark:border-purple-700","rounded-lg","shadow-sm"],[1,"w-full","mb-4","p-4","bg-gray-50","dark:bg-gray-800","border","border-gray-200","dark:border-gray-700","rounded-lg"],["aria-label","Pagination",1,"flex","justify-center","pb-4"],[3,"ngClass"],["data-cy","baeCard",1,"w-full","h-full",3,"productOff","cardId","viewMode"],["data-cy","searchNoOffersFound",1,"col-span-3","py-16","text-center","text-gray-500","dark:text-gray-400"],["aria-label","Pagination",1,"flex","justify-center","pt-4","pb-12"],[1,"flex","items-start","gap-3"],[1,"flex-shrink-0","w-8","h-8","bg-purple-100","dark:bg-purple-800","rounded-full","flex","items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-purple-600","dark:text-purple-300"],[1,"flex-1","min-w-0"],[1,"text-sm","font-semibold","text-purple-800","dark:text-purple-200","mb-2"],[1,"ai-answer-content","text-sm","text-gray-700","dark:text-gray-300","prose","prose-sm","dark:prose-invert","max-w-none"],[3,"data"],["type","button",1,"flex-shrink-0","text-gray-400","hover:text-gray-600","dark:hover:text-gray-300",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"flex","items-center","gap-3"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-5","h-5","text-purple-500","animate-spin"],[1,"text-sm","text-gray-600","dark:text-gray-400"],[1,"inline-flex","-space-x-px","text-sm"],[1,"flex","items-center","justify-center","px-3","h-8","ms-0","leading-tight","text-gray-500","bg-white","border","border-e-0","border-gray-300","rounded-s-lg","hover:bg-gray-100","hover:text-gray-700","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","text-gray-500","bg-white","border","border-gray-300","rounded-e-lg","hover:bg-gray-100","hover:text-gray-700","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","border",3,"click","ngClass"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","text-gray-500","bg-white","border","border-gray-300"],[1,"flex","pb-12","justify-center","mt-6"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-4","h-9","text-sm","font-medium","text-[#1f4fbf]","bg-white","border","border-[#1f4fbf]","rounded-lg","hover:bg-[#eef2fb]","transition-colors",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading",1,"flex","justify-center","mt-6"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","text-gray-200","animate-spin","fill-[#1f4fbf]"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"a",3),e.EFF(4,"Marketplace"),e.k0s(),e.qSk(),e.j41(5,"svg",4),e.nrm(6,"path",5),e.k0s(),e.joV(),e.j41(7,"span",6),e.EFF(8),e.k0s()(),e.j41(9,"div",7)(10,"div",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s()(),e.joV(),e.j41(14,"button",12),e.bIt("click",function(u){return l.toggleCategoryDropdown(u)}),e.j41(15,"h1",13),e.EFF(16),e.k0s(),e.qSk(),e.j41(17,"svg",14),e.nrm(18,"path",15),e.k0s()(),e.DNE(19,Vn0,10,2,"div",16),e.k0s(),e.DNE(20,Yn0,12,12,"form",17),e.k0s(),e.DNE(21,Kn0,9,0,"div",18),e.k0s(),e.joV(),e.j41(22,"div",19)(23,"div",20),e.DNE(24,e90,8,4,"div",21)(25,c90,8,5),e.j41(26,"div",22)(27,"button",23),e.bIt("click",function(u){return l.showDrawer=!l.showDrawer,u.stopPropagation()}),e.qSk(),e.j41(28,"svg",24),e.nrm(29,"path",25),e.k0s(),e.EFF(30," Categories "),e.k0s(),e.joV(),e.j41(31,"div",26)(32,"div",27)(33,"span",28),e.DNE(34,t90,1,1),e.k0s()(),e.j41(35,"div",27)(36,"div",29)(37,"button",30),e.bIt("click",function(){return l.viewMode="grid"}),e.qSk(),e.j41(38,"svg",31),e.nrm(39,"path",11),e.k0s()(),e.joV(),e.j41(40,"button",30),e.bIt("click",function(){return l.viewMode="list"}),e.qSk(),e.j41(41,"svg",31),e.nrm(42,"path",32),e.k0s()()()()(),e.DNE(43,n90,6,0,"div",33)(44,z90,9,7),e.k0s()()()(),e.DNE(45,M90,1,0,"feedback-modal",34)),2&t&&(e.R7$(3),e.Y8G("routerLink",l.marketplaceHomeUrl),e.R7$(5),e.JRh(l.activeCategoryName||"All Categories"),e.R7$(8),e.SpI(" ",l.activeCategoryName||"All Categories"," "),e.R7$(),e.Y8G("ngClass",l.showCategoryDropdown?"rotate-180":""),e.R7$(2),e.vxM(19,l.showCategoryDropdown?19:-1),e.R7$(),e.vxM(20,l.searchEnabled?20:-1),e.R7$(),e.vxM(21,l.toolbarFilters.length>0?21:-1),e.R7$(3),e.vxM(24,l.showDrawer?24:l.activeCategoryName?25:-1),e.R7$(10),e.vxM(34,l.loading?-1:34),e.R7$(3),e.Y8G("ngClass","grid"===l.viewMode?"bg-[#eef2fb] text-[#1f4fbf]":"text-gray-400 hover:text-gray-600"),e.R7$(3),e.Y8G("ngClass","list"===l.viewMode?"bg-[#eef2fb] text-[#1f4fbf]":"text-gray-400 hover:text-gray-600"),e.R7$(3),e.vxM(43,l.loading?43:44),e.R7$(2),e.vxM(45,l.feedback?45:-1))},dependencies:[_.YU,J2.aY,p.qT,p.me,p.BC,p.cb,p.cV,p.l_,_d1,E2.Wk,N0,nE1,lE1,s1.D9],styles:[".no-scrollbar[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"]})}}return n})();function b90(n,a){1&n&&e.nrm(0,"seller-catalogs")}function y90(n,a){1&n&&e.nrm(0,"seller-product-spec")}function F90(n,a){1&n&&e.nrm(0,"seller-service-spec")}function v90(n,a){1&n&&e.nrm(0,"seller-resource-spec")}function k90(n,a){1&n&&e.nrm(0,"seller-offer")}function w90(n,a){1&n&&e.nrm(0,"create-product-spec")}function S90(n,a){1&n&&e.nrm(0,"create-service-spec")}function N90(n,a){1&n&&e.nrm(0,"create-resource-spec")}function E90(n,a){1&n&&e.nrm(0,"create-offer")}function D90(n,a){1&n&&e.nrm(0,"create-catalog")}function T90(n,a){if(1&n&&e.nrm(0,"update-product-spec",21),2&n){const c=e.XpG();e.Y8G("prod",c.prod_to_update)}}function R90(n,a){if(1&n&&e.nrm(0,"update-service-spec",22),2&n){const c=e.XpG();e.Y8G("serv",c.serv_to_update)}}function A90(n,a){if(1&n&&e.nrm(0,"update-resource-spec",23),2&n){const c=e.XpG();e.Y8G("res",c.res_to_update)}}function I90(n,a){if(1&n&&e.nrm(0,"update-offer",24),2&n){const c=e.XpG();e.Y8G("offer",c.offer_to_update)}}function P90(n,a){if(1&n&&e.nrm(0,"update-catalog",25),2&n){const c=e.XpG();e.Y8G("cat",c.catalog_to_update)}}function j90(n,a){if(1&n&&e.nrm(0,"app-custom-offer",26),2&n){const c=e.XpG();e.Y8G("offer",c.offer_to_update)("partyId",c.custom_offer_partyId)}}let aE1=(()=>{class n{constructor(c,t,l,i,u){this.cdr=c,this.eventMessage=t,this.router=l,this.quoteService=i,this.api=u,this.show_catalogs=!0,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_create_catalog=!1,this.show_update_prod_spec=!1,this.show_update_serv_spec=!1,this.show_update_res_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_custom_offer=!1,this.custom_offer_partyId=null,this.activeSection="catalogs",this.sectionActions={catalogs:this.goToCatalogs,offers:this.goToOffers,productspec:this.goToProdSpec,servicespec:this.goToServiceSpec,resourcespec:this.goToResourceSpec},this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{if("SellerProductSpec"===C.type&&this.goToProdSpec(),"SellerCreateProductSpec"===C.type&&1==C.value&&this.goToCreateProdSpec(),"SellerServiceSpec"===C.type&&1==C.value&&this.goToServiceSpec(),"SellerCreateServiceSpec"===C.type&&1==C.value&&this.goToCreateServSpec(),"SellerResourceSpec"===C.type&&1==C.value&&this.goToResourceSpec(),"SellerCreateResourceSpec"===C.type&&1==C.value&&this.goToCreateResSpec(),"SellerOffer"===C.type&&1==C.value&&this.goToOffers(),"SellerCatalog"==C.type&&1==C.value&&this.goToCatalogs(),"SellerCreateOffer"===C.type&&1==C.value&&this.goToCreateOffer(),"SellerCatalogCreate"===C.type&&1==C.value&&this.goToCreateCatalog(),"SellerUpdateProductSpec"===C.type&&(this.prod_to_update=C.value,this.goToUpdateProdSpec()),"SellerUpdateServiceSpec"===C.type&&(this.serv_to_update=C.value,this.goToUpdateServiceSpec()),"SellerUpdateResourceSpec"===C.type&&(this.res_to_update=C.value,this.goToUpdateResourceSpec()),"SellerUpdateOffer"===C.type&&(this.offer_to_update=C.value,this.goToUpdateOffer()),"SellerCreateCustomOffer"===C.type){const b=C.value;this.offer_to_update=b.offer,this.custom_offer_partyId=b.partyId||null,this.goToCreateCustomOffer()}"SellerCatalogUpdate"===C.type&&(this.catalog_to_update=C.value,this.goToUpdateCatalog())})}ngOnInit(){var c=this;return(0,C1.A)(function*(){const t=localStorage.getItem("activeSection");console.log(t),t&&(c.activeSection=t),t&&c.sectionActions[t]&&c.sectionActions[t].call(c);const l=history.state;if(console.log("Checking state"),console.log(l),l&&l.quoteId){const i=yield(0,t5._)(c.quoteService.getQuoteById(l.quoteId)),u=i?.quoteItem?.[0]?.productOffering?.id;let C=null;u&&(C=yield c.api.getProductById(u));const b=i?.relatedParty?.find(T=>T.role.toLowerCase()===g1.c.BUYER_ROLE.toLowerCase());c.eventMessage.emitSellerCreateCustomOffer(C,b?.id)}})()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setActiveSection(c){this.activeSection=c,localStorage.setItem("activeSection",c),console.log("Saved to localStorage:",c)}goToCreateProdSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!0,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateProdSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!0,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateCatalog(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!0,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateCatalog(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_create_catalog=!1,this.show_update_catalog=!0,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!0,this.show_update_catalog=!1,this.show_create_catalog=!1,this.cdr.detectChanges()}goToCreateCustomOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!0,this.cdr.detectChanges()}goToUpdateServiceSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!0,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateResourceSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!0,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateServSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!0,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateResSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!0,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!0,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCatalogs(){this.setActiveSection("catalogs"),this.selectCatalogs(),this.show_catalogs=!0,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectCatalogs(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToProdSpec(){this.setActiveSection("productspec"),this.selectProdSpec(),this.show_catalogs=!1,this.show_prod_specs=!0,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectProdSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToServiceSpec(){this.setActiveSection("servicespec"),this.selectServiceSpec(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!0,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectServiceSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToResourceSpec(){this.setActiveSection("resourcespec"),this.selectResourceSpec(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!0,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectResourceSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToOffers(){this.setActiveSection("offers"),this.selectOffers(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!0,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectOffers(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(u,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2),e.rXU(E2.Ix),e.rXU(L3.K),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-seller-offerings"]],decls:73,vars:55,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white","mb-8"],["data-cy","catalogSection","id","catalogs-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","offerSection","id","offers-button",1,"block","w-full","px-4","py-2","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["data-cy","prdSpecSection","id","prod-spec-button",1,"block","w-full","rounded-t-lg","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","servSpecSection","id","sev-spec-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","resSpecSection","id","res-spec-button",1,"block","w-full","px-4","py-2","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"prod"],[3,"serv"],[3,"res"],[3,"offer"],[3,"cat"],[3,"offer","partyId"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.joV(),e.j41(16,"div",9)(17,"ul",10)(18,"li")(19,"a",11),e.bIt("click",function(){return l.goToCatalogs()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"li")(23,"a",11),e.bIt("click",function(){return l.goToOffers()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"li")(27,"a",11),e.bIt("click",function(){return l.goToProdSpec()}),e.EFF(28),e.nI1(29,"translate"),e.k0s()(),e.j41(30,"li")(31,"a",11),e.bIt("click",function(){return l.goToServiceSpec()}),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"li")(35,"a",11),e.bIt("click",function(){return l.goToResourceSpec()}),e.EFF(36),e.nI1(37,"translate"),e.k0s()()()(),e.j41(38,"div",12)(39,"div",13)(40,"div",14)(41,"button",15),e.bIt("click",function(){return l.goToCatalogs()}),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"button",16),e.bIt("click",function(){return l.goToOffers()}),e.EFF(45),e.nI1(46,"translate"),e.k0s()(),e.j41(47,"div",17)(48,"button",18),e.bIt("click",function(){return l.goToProdSpec()}),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.j41(51,"button",19),e.bIt("click",function(){return l.goToServiceSpec()}),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"button",20),e.bIt("click",function(){return l.goToResourceSpec()}),e.EFF(55),e.nI1(56,"translate"),e.k0s()()(),e.DNE(57,b90,1,0,"seller-catalogs")(58,y90,1,0,"seller-product-spec")(59,F90,1,0,"seller-service-spec")(60,v90,1,0,"seller-resource-spec")(61,k90,1,0,"seller-offer")(62,w90,1,0,"create-product-spec")(63,S90,1,0,"create-service-spec")(64,N90,1,0,"create-resource-spec")(65,E90,1,0,"create-offer")(66,D90,1,0,"create-catalog")(67,T90,1,1,"update-product-spec",21)(68,R90,1,1,"update-service-spec",22)(69,A90,1,1,"update-resource-spec",23)(70,I90,1,1,"update-offer",24)(71,P90,1,1,"update-catalog",25)(72,j90,1,2,"app-custom-offer",26),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,29,"OFFERINGS._my_offerings")),e.R7$(5),e.JRh(e.bMT(9,31,"OFFERINGS._my_offerings")),e.R7$(6),e.SpI(" ",e.bMT(15,33,"OFFERINGS._offerings")," "),e.R7$(6),e.JRh(e.bMT(21,35,"OFFERINGS._catalogs")),e.R7$(4),e.JRh(e.bMT(25,37,"OFFERINGS._offers")),e.R7$(4),e.JRh(e.bMT(29,39,"OFFERINGS._prod_spec")),e.R7$(4),e.JRh(e.bMT(33,41,"OFFERINGS._serv_spec")),e.R7$(4),e.JRh(e.bMT(37,43,"OFFERINGS._res_spec")),e.R7$(6),e.SpI(" ",e.bMT(43,45,"OFFERINGS._catalogs")," "),e.R7$(3),e.SpI(" ",e.bMT(46,47,"OFFERINGS._offers")," "),e.R7$(4),e.SpI(" ",e.bMT(50,49,"OFFERINGS._prod_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(53,51,"OFFERINGS._serv_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(56,53,"OFFERINGS._res_spec")," "),e.R7$(2),e.vxM(57,l.show_catalogs?57:-1),e.R7$(),e.vxM(58,l.show_prod_specs?58:-1),e.R7$(),e.vxM(59,l.show_service_specs?59:-1),e.R7$(),e.vxM(60,l.show_resource_specs?60:-1),e.R7$(),e.vxM(61,l.show_offers?61:-1),e.R7$(),e.vxM(62,l.show_create_prod_spec?62:-1),e.R7$(),e.vxM(63,l.show_create_serv_spec?63:-1),e.R7$(),e.vxM(64,l.show_create_res_spec?64:-1),e.R7$(),e.vxM(65,l.show_create_offer?65:-1),e.R7$(),e.vxM(66,l.show_create_catalog?66:-1),e.R7$(),e.vxM(67,l.show_update_prod_spec?67:-1),e.R7$(),e.vxM(68,l.show_update_serv_spec?68:-1),e.R7$(),e.vxM(69,l.show_update_res_spec?69:-1),e.R7$(),e.vxM(70,l.show_update_offer?70:-1),e.R7$(),e.vxM(71,l.show_update_catalog?71:-1),e.R7$(),e.vxM(72,l.show_create_custom_offer?72:-1))}})}}return n})();const oE1=(n,a)=>a.id,$90=(n,a)=>a.value;function O90(n,a){1&n&&(e.j41(0,"div",21),e.qSk(),e.j41(1,"svg",26),e.nrm(2,"path",27)(3,"path",28),e.k0s(),e.joV(),e.j41(4,"span",29),e.EFF(5,"Loading..."),e.k0s()())}function B90(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",35),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.selectBill(l))}),e.j41(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",36),e.EFF(4),e.k0s(),e.j41(5,"td",36),e.EFF(6),e.k0s()()}if(2&n){const c=a.$implicit;e.Y8G("ngClass",1==c.selected?"bg-primary-30":"bg-white"),e.R7$(2),e.SpI(" ",c.email," "),e.R7$(2),e.LHq(" ",c.postalAddress.street,", ",c.postalAddress.postCode," (",c.postalAddress.city,") ",c.postalAddress.stateOrProvince," "),e.R7$(2),e.SpI(" ",c.telephoneNumber," ")}}function V90(n,a){if(1&n&&(e.j41(0,"div",30)(1,"table",31)(2,"thead",32)(3,"tr")(4,"th",33),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",33),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,B90,7,7,"tr",34,oE1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"SHOPPING_CART._email")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"SHOPPING_CART._postalAddress")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"SHOPPING_CART._phone")," "),e.R7$(3),e.Dyx(c.billing_accounts)}}function U90(n,a){1&n&&(e.j41(0,"div",37)(1,"p",38),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"a",39),e.EFF(5),e.nI1(6,"translate"),e.qSk(),e.j41(7,"svg",40),e.nrm(8,"path",41),e.k0s()()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,2,"SHOPPING_CART._billing_check")," "),e.R7$(3),e.SpI(" ",e.bMT(6,4,"SHOPPING_CART._click_here")," "))}function G90(n,a){if(1&n&&e.DNE(0,V90,16,9,"div",30)(1,U90,9,6),2&n){const c=e.XpG();e.vxM(0,c.billing_accounts.length>0?0:1)}}function H90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"h5",54),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",55),e.EFF(9),e.k0s(),e.j41(10,"p",57),e.EFF(11),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.SpI("/",null==c.options.pricing?null:c.options.pricing.recurringChargePeriodType,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function Y90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",58)(2,"h5",59),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",55),e.EFF(9),e.k0s(),e.j41(10,"p",57),e.EFF(11),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.SpI("/",null==c.options.pricing||null==c.options.pricing.unitOfMeasure?null:c.options.pricing.unitOfMeasure.units,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function q90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",60)(2,"h5",59),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",57),e.EFF(9),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function X90(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h5",20),e.EFF(2),e.k0s(),e.j41(3,"div",64),e.nrm(4,"input",65),e.j41(5,"label",66),e.EFF(6),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(4),e.JRh(null==c.value?null:c.value.value)}}function W90(n,a){if(1&n&&(e.j41(0,"h5",50),e.EFF(1,"Selected characteristics:"),e.k0s(),e.j41(2,"div",61)(3,"div",62),e.Z7z(4,X90,7,2,"div",63,$90),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(4),e.Dyx(c.options.characteristics)}}function J90(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.clickDropdown(l.id))}),e.EFF(1),e.qSk(),e.j41(2,"svg",43),e.nrm(3,"path",44),e.k0s()(),e.joV(),e.j41(4,"div",45)(5,"div",46)(6,"h5",47),e.EFF(7),e.k0s(),e.j41(8,"div",48),e.nrm(9,"img",49),e.k0s()(),e.nrm(10,"hr",15),e.j41(11,"h5",50),e.EFF(12,"Selected price plan:"),e.k0s(),e.j41(13,"div",51),e.DNE(14,H90,12,5,"div",52)(15,Y90,12,5)(16,q90,10,4),e.k0s(),e.DNE(17,W90,6,0),e.k0s()}if(2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c.name," "),e.R7$(3),e.Y8G("id",c.id),e.R7$(3),e.JRh(c.name),e.R7$(2),e.FS9("src",c.image,e.B4B),e.R7$(5),e.vxM(14,"recurring"==(null==c.options.pricing?null:c.options.pricing.priceType)?14:"usage"==(null==c.options.pricing?null:c.options.pricing.priceType)?15:16),e.R7$(3),e.vxM(17,c.options.characteristics&&c.options.characteristics.length>0?17:-1)}}class tH{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c,t,l,i,u,C,b){this.eventMessage=a,this.api=c,this.account=t,this.cartService=l,this.cdr=i,this.localStorage=u,this.orderService=C,this.router=b,this.faCartShopping=TL,this.TAX_RATE=g1.c.TAX_RATE,this.items=[],this.showBackDrop=!0,this.billing_accounts=[],this.loading=!1,this.relatedParty=""}ngOnInit(){let a=this.localStorage.getObject("login_items");if(a.logged_as==a.id)this.relatedParty=a.partyId;else{let c=a.organizations.find(t=>t.id==a.logged_as);console.log("loggedorg"),console.log(c),this.relatedParty=c.partyId}this.loading=!0,this.showBackDrop=!0,this.cartService.getShoppingCart().then(c=>{console.log("---CARRITO API---"),console.log(c),this.items=c,this.cdr.detectChanges(),this.getTotalPrice(),console.log("------------------"),D2()}),this.account.getBillingAccount().then(c=>{for(let t=0;ta.buildProductPayload(i)),t=a.buildProductOrder(c);console.log("--- order ---"),console.log(t);const l=yield(0,t5._)(a.orderService.postProductOrder(t));console.log(l),console.log("PROD ORDER DONE"),yield a.emptyShoppingCart(),a.goToInventory()}catch(c){console.error("There was an error while processing the order:",c)}})()}buildProductPayload(a){const c=this.buildProductCharacteristics(a.options.characteristics);return{id:a.id,action:"add",state:"acknowledged",itemTotalPrice:[{productOfferingPrice:{id:a.options.pricing?.id,href:a.options.pricing?.href}}],productOffering:{id:a.id,href:a.id},product:{productCharacteristic:c}}}buildProductCharacteristics(a){return a?a.map(c=>({name:c.characteristic.name,value:c.value?.value,valueType:c.characteristic.valueType})):[]}buildProductOrder(a){return{state:"acknowledged",productOrderItem:a,relatedParty:[{id:this.relatedParty,href:this.relatedParty,role:g1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBilling.id,href:this.selectedBilling.id},orderDate:$2()().utc(),notificationContact:this.selectedBilling.email}}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){try{const c=yield a.cartService.emptyShoppingCart();console.log(c),console.log("EMPTY")}catch(c){console.error("There was an error while emptying the cart:",c)}})()}goToInventory(){this.router.navigate(["/product-orders"])}static{this.\u0275fac=function(c){return new(c||tH)(e.rXU(U2),e.rXU(o0.F),e.rXU(x0.O),e.rXU(d8),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(D8),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:tH,selectors:[["app-shopping-cart"]],decls:46,vars:22,consts:[[1,"container","mx-auto","pt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-gray-800","dark:border-gray-700"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600","dark:text-gray-400","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","md:ms-2","dark:text-gray-400"],[1,"w-full","h-fit","bg-secondary-50","rounded-lg","dark:border-gray-700","border-secondary-50","border"],[1,"md:text-3xl","lg:text-4xl","m-4","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100"],[1,"h-px","mr-4","ml-4","bg-primary-100","border-0"],[1,"mt-4","m-4"],[1,"mb-5","w-full","justify-start"],["for","large-input",1,"w-full","md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2"],["type","text","id","large-input",1,"w-full","p-4","text-gray-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","focus:border-primary-50","shadow-lg"],[1,"md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","w-full","justify-end"],["type","button","href","https://dome-marketplace.eu/","target","_blank",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"ml-2","-mr-1","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500"],[1,"text-xs","text-gray-700","uppercase","bg-gray-50"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200",3,"click","ngClass"],[1,"px-6","py-4"],[1,"z-10","mt-2","text-red-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","shadow-lg"],[1,"text-red-800","m-2"],["href","#",1,"ml-2","inline-flex","items-center","font-medium","text-primary-50","hover:underline"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"w-4","h-4","ms-2","rtl:rotate-180"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["id","'dropButton'+idx","type","button",1,"w-full","mt-2","text-white","bg-primary-100","hover:bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"z-10","hidden","mt-2","text-gray-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","shadow-lg",3,"id"],[1,"grid","grid-cols-80/20","items-center","align-items-center","m-2"],[1,"md:text-xl","lg:text-2xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100"],[1,"h-[50px]"],["alt","Product image",1,"rounded-r-lg","h-[50px]","dark:text-white",3,"src"],[1,"md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2","mb-4"],[1,"flex","justify-center","m-2"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full"],[1,"flex","justify-center","font-normal","text-gray-700"],[1,"text-xl","mr-2"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2"],[1,"grid","grid-flow-row","grid-cols-3","gap-4","w-3/4"],[1,"justify-start","bg-white","border","border-primary-100","rounded-lg","w-full"],[1,"flex","items-center","ml-8","mr-2","mb-2"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","dark:text-gray-600"]],template:function(c,t){1&c&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"a",5),e.bIt("click",function(){return t.goTo("/search")}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",13)(18,"h5",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",15),e.j41(22,"form",16)(23,"div",17)(24,"label",18),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.nrm(27,"input",19),e.k0s(),e.j41(28,"div",17)(29,"h5",20),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.DNE(32,O90,6,0,"div",21)(33,G90,2,1),e.k0s(),e.j41(34,"div",17)(35,"h5",20),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.Z7z(38,J90,18,6,null,null,oE1),e.k0s()(),e.j41(40,"div",22)(41,"button",23),e.bIt("click",function(){return t.orderProduct()}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",24),e.nrm(45,"path",25),e.k0s()()()()()),2&c&&(e.R7$(8),e.SpI(" ",e.bMT(9,8,"SHOPPING_CART._back")," "),e.R7$(7),e.JRh(e.bMT(16,10,"SHOPPING_CART._buy")),e.R7$(4),e.SpI("",e.bMT(20,12,"SHOPPING_CART._confirm"),":"),e.R7$(6),e.SpI("",e.bMT(26,14,"SHOPPING_CART._note"),":"),e.R7$(5),e.SpI("",e.bMT(31,16,"SHOPPING_CART._choose_bill"),":"),e.R7$(2),e.vxM(32,t.loading?32:33),e.R7$(4),e.SpI("",e.bMT(37,18,"SHOPPING_CART._cart"),":"),e.R7$(2),e.Dyx(t.items),e.R7$(4),e.SpI(" ",e.bMT(43,20,"SHOPPING_CART._buy")," "))},dependencies:[_.YU,p.qT,p.cb,p.cV,s1.D9]})}}function Q90(n,a){if(1&n&&(e.j41(0,"a",4),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("href",c.node.link,e.B4B),e.R7$(),e.SpI(" ",c.node.text," ")}}function Z90(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2);e.SpI(" ",c.node.text," ")}}function K90(n,a){if(1&n&&(e.j41(0,"span"),e.DNE(1,Q90,2,2,"a",4)(2,Z90,1,1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.node.link?1:2)}}function el0(n,a){1&n&&e.nrm(0,"app-revenue-report",5),2&n&&e.Y8G("node",a.$implicit)}function cl0(n,a){if(1&n&&(e.j41(0,"div",3),e.Z7z(1,el0,1,1,"app-revenue-report",5,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.node.items)}}let tl0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-revenue-report"]],inputs:{node:"node"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"text-lg","font-normal","text-gray-500","dark:text-gray-400"],[1,"flex","items-start","gap-2"],[1,"text-xl","font-bold","text-primary-100","dark:text-white"],[1,"ml-6","mt-1"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline","break-words",3,"href"],[3,"node"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"h3",2),e.EFF(3),e.k0s(),e.DNE(4,K90,3,1,"span"),e.k0s(),e.DNE(5,cl0,3,0,"div",3),e.k0s()),2&t&&(e.R7$(3),e.SpI(" ",l.node.label,": "),e.R7$(),e.vxM(4,l.node.text?4:-1),e.R7$(),e.vxM(5,(null==l.node.items?null:l.node.items.length)>0?5:-1))},dependencies:[n]})}}return n})();class rF{static{this.BASE_URL=g1.c.BASE_URL}static{this.PAYMENT_URL=g1.c.PAYMENT_URL}constructor(a,c){this.http=a,this.localStorage=c}getRevenue(a){return(0,e0.s)(this.http.get(`${rF.BASE_URL}${rF.PAYMENT_URL}/dashboard/${a}`))}static{this.\u0275fac=function(c){return new(c||rF)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:rF,factory:rF.\u0275fac,providedIn:"root"})}}function nl0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function ll0(n,a){if(1&n&&(e.j41(0,"div",8),e.nrm(1,"app-revenue-report",9),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("node",c)}}function sl0(n,a){if(1&n&&e.Z7z(0,ll0,2,1,"div",8,e.fX1),2&n){const c=e.XpG();e.Dyx(c.report)}}function al0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",10)(2,"div",11),e.qSk(),e.j41(3,"svg",12),e.nrm(4,"path",13),e.k0s(),e.joV(),e.j41(5,"h3",14),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",15),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let iE1=(()=>{class n{constructor(c,t){this.localStorage=c,this.revenueService=t,this.loading=!1,this.errorMessage="",this.showError=!1,this.partyId="",this.report=[]}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.initPartyInfo();try{let t=yield c.revenueService.getRevenue(c.partyId);c.loading=!1,console.log("------"),console.log(t),c.report=t}catch(t){c.handleError(t,"There was an error accessing revenue sharing's data, please contact with an administrator."),c.loading=!1}finally{c.loading=!1}})()}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(rF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["provider-revenue-sharing"]],standalone:!0,features:[e.aNF],decls:6,vars:2,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["role","status",1,"h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"border","border-primary-100","dark:border-primary-50","rounded-lg","p-4","md:p-8","mb-4"],[3,"node"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Provider revenue sharing"),e.k0s(),e.DNE(3,nl0,6,0,"div",2)(4,sl0,2,0),e.k0s(),e.DNE(5,al0,9,1,"div",3)),2&t&&(e.R7$(3),e.vxM(3,l.loading?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[s1.h,J2.dX,_.MD,tl0]})}}return n})();const ol0=["imgURL"],rE1=(n,a)=>a.code,il0=(n,a,c,t)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":n,"bg-gray-50 dark:bg-secondary-300":a,"border-red-600":c,"border-gray-300 dark:border-secondary-200":t}),nH=(n,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":n,"bg-gray-50 dark:bg-secondary-300":a}),rl0=(n,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed pointer-events-none":n,"bg-gray-50 dark:bg-secondary-300":a}),dE1=(n,a)=>({"break-all":n,"break-words":a}),dl0=()=>({position:"relative",left:"200px",top:"-500px"});function fl0(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function ul0(n,a){1&n&&(e.j41(0,"p",16)(1,"span",29),e.EFF(2,"This field is mandatory."),e.k0s()())}function ml0(n,a){if(1&n&&(e.j41(0,"option",30),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function pl0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",14),e.EFF(2,"Contract Management Address"),e.k0s(),e.nrm(3,"input",32),e.k0s(),e.j41(4,"div")(5,"span",14),e.EFF(6,"Contract Management Client ID"),e.k0s(),e.nrm(7,"input",33),e.k0s(),e.j41(8,"div")(9,"span",14),e.EFF(10,"Contract Management Scopes"),e.k0s(),e.nrm(11,"input",34),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(6,nH,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(9,nH,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(12,nH,c.isReadOnly,!c.isReadOnly))}}function hl0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",35),e.nrm(2,"markdown",36),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(2,dE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function gl0(n,a){if(1&n&&e.nrm(0,"markdown",36),2&n){const c=e.XpG(3);e.Y8G("ngClass",e.l_i(2,dE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function _l0(n,a){1&n&&e.nrm(0,"textarea",67)}function Ll0(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-mart",68),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())})("emojiClick",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.addEmoji(l))}),e.k0s()}2&n&&(e.Aen(e.lJ4(3,dl0)),e.Y8G("darkMode",!1))}function Cl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",40)(4,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addBold())}),e.qSk(),e.j41(5,"svg",42),e.nrm(6,"path",43),e.k0s(),e.joV(),e.j41(7,"span",9),e.EFF(8,"Bold"),e.k0s()(),e.j41(9,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addItalic())}),e.qSk(),e.j41(10,"svg",42),e.nrm(11,"path",44),e.k0s(),e.joV(),e.j41(12,"span",9),e.EFF(13,"Italic"),e.k0s()(),e.j41(14,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addList())}),e.qSk(),e.j41(15,"svg",45),e.nrm(16,"path",46),e.k0s(),e.joV(),e.j41(17,"span",9),e.EFF(18,"Add list"),e.k0s()(),e.j41(19,"button",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addOrderedList())}),e.qSk(),e.j41(20,"svg",45),e.nrm(21,"path",48),e.k0s(),e.joV(),e.j41(22,"span",9),e.EFF(23,"Add ordered list"),e.k0s()(),e.j41(24,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addBlockquote())}),e.qSk(),e.j41(25,"svg",50),e.nrm(26,"path",51),e.k0s(),e.joV(),e.j41(27,"span",9),e.EFF(28,"Add blockquote"),e.k0s()(),e.j41(29,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addTable())}),e.qSk(),e.j41(30,"svg",52),e.nrm(31,"path",53),e.k0s(),e.joV(),e.j41(32,"span",9),e.EFF(33,"Add table"),e.k0s()(),e.j41(34,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addCode())}),e.qSk(),e.j41(35,"svg",52),e.nrm(36,"path",54),e.k0s(),e.joV(),e.j41(37,"span",9),e.EFF(38,"Add code"),e.k0s()(),e.j41(39,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addCodeBlock())}),e.qSk(),e.j41(40,"svg",52),e.nrm(41,"path",55),e.k0s(),e.joV(),e.j41(42,"span",9),e.EFF(43,"Add code block"),e.k0s()(),e.j41(44,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addLink())}),e.qSk(),e.j41(45,"svg",52),e.nrm(46,"path",56),e.k0s(),e.joV(),e.j41(47,"span",9),e.EFF(48,"Add link"),e.k0s()(),e.j41(49,"button",47),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return i.showEmoji=!i.showEmoji,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(50,"svg",57),e.nrm(51,"path",58),e.k0s(),e.joV(),e.j41(52,"span",9),e.EFF(53,"Add emoji"),e.k0s()()()(),e.j41(54,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.showPreview=!l.showPreview,e.Njj(l.togglePreview())}),e.qSk(),e.j41(55,"svg",45),e.nrm(56,"path",60)(57,"path",61),e.k0s(),e.joV(),e.j41(58,"span",9),e.EFF(59),e.nI1(60,"translate"),e.k0s()(),e.j41(61,"div",62),e.EFF(62),e.nI1(63,"translate"),e.nrm(64,"div",63),e.k0s()(),e.j41(65,"div",64)(66,"label",65),e.EFF(67,"Publish post"),e.k0s(),e.DNE(68,gl0,1,5,"markdown",36)(69,_l0,1,0)(70,Ll0,1,4,"emoji-mart",66),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(10),e.JRh(e.bMT(60,24,"CREATE_CATALOG._preview")),e.R7$(3),e.SpI(" ",e.bMT(63,26,"CREATE_CATALOG._show_preview")," "),e.R7$(6),e.vxM(68,c.showPreview?68:69),e.R7$(2),e.vxM(70,c.showEmoji?70:-1)}}function zl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",79),e.nrm(1,"img",80),e.j41(2,"button",81),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",82),e.nrm(4,"path",83),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function Ml0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",94),e.qSk(),e.j41(1,"svg",95),e.nrm(2,"path",96),e.k0s(),e.joV(),e.j41(3,"div",97)(4,"p",98),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",99),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function xl0(n,a){1&n&&(e.j41(0,"div",100),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",101),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function bl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"ngx-file-drop",85),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(2,Ml0,10,6,"ng-template",86),e.k0s()(),e.j41(3,"label",87),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",88),e.DNE(7,xl0,4,3,"div",89),e.j41(8,"div",90)(9,"input",91,0),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",82),e.nrm(13,"path",93),e.k0s()()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,6,"PROFILE._add_logo_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function yl0(n,a){if(1&n&&(e.j41(0,"div",69)(1,"h2",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",70),e.qSk(),e.j41(5,"svg",71),e.nrm(6,"path",72),e.k0s()()(),e.joV(),e.j41(7,"div",73)(8,"div",74)(9,"h3",75),e.EFF(10,"Logo requirements"),e.k0s()(),e.j41(11,"div",76)(12,"p",77),e.EFF(13,"The supported formats are SVG and PNG. The logo size should follow an 1:1 aspect ratio (e.g. 160x160px resolution) and transparent background. "),e.k0s()(),e.nrm(14,"div",78),e.k0s(),e.nrm(15,"hr",12),e.DNE(16,zl0,5,1,"div",79)(17,bl0,14,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._add_logo")),e.R7$(14),e.vxM(16,c.showImgPreview?16:17)}}function Fl0(n,a){1&n&&(e.j41(0,"th",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._actions")," "))}function vl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.emailAddress," ")}}function kl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SjE(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince,", ",c.characteristic.country," ")}}function wl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function Sl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"td",104)(1,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.showEdit(l))}),e.qSk(),e.j41(2,"svg",106),e.nrm(3,"path",107),e.k0s()(),e.joV(),e.j41(4,"button",108),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.removeMedium(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",109),e.k0s()()()}}function Nl0(n,a){if(1&n&&(e.j41(0,"tr",27)(1,"td",102),e.EFF(2),e.k0s(),e.j41(3,"td",102),e.EFF(4),e.k0s(),e.j41(5,"td",103),e.DNE(6,vl0,1,1)(7,kl0,1,5)(8,wl0,1,1),e.k0s(),e.DNE(9,Sl0,7,0,"td",104),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.SpI(" ",t.getMediumContactType(c)," "),e.R7$(2),e.vxM(6,"Email"==c.mediumType?6:"PostalAddress"==c.mediumType?7:8),e.R7$(3),e.vxM(9,t.isReadOnly?-1:9)}}function El0(n,a){1&n&&(e.j41(0,"div",28)(1,"div",110),e.qSk(),e.j41(2,"svg",111),e.nrm(3,"path",112),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}function Dl0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",128),e.k0s()),2&n){let c;const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("email"))?null:c.invalid)&&""!=t.mediumForm.value.email||1==(null==(c=t.mediumForm.get("email"))?null:c.touched)&&""==t.mediumForm.value.email?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Tl0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",129),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",130),e.k0s(),e.j41(5,"div")(6,"label",131),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",132),e.k0s(),e.j41(10,"div")(11,"label",133),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",134),e.k0s(),e.j41(15,"div")(16,"label",135),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",136),e.k0s(),e.j41(20,"div",31)(21,"label",137),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",138),e.k0s()),2&n){let c,t,l,i,u;const C=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,10,"PROFILE._country")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=C.mediumForm.get("country"))?null:c.invalid)&&""!=C.mediumForm.value.country||null!=(c=C.mediumForm.get("country"))&&c.touched&&""==C.mediumForm.value.country?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(8,12,"PROFILE._city")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=C.mediumForm.get("city"))?null:t.invalid)&&""!=C.mediumForm.value.city||null!=(t=C.mediumForm.get("city"))&&t.touched&&""==C.mediumForm.value.city?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(13,14,"PROFILE._state")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=C.mediumForm.get("stateOrProvince"))?null:l.invalid)&&""!=C.mediumForm.value.stateOrProvince||null!=(l=C.mediumForm.get("stateOrProvince"))&&l.touched&&""==C.mediumForm.value.stateOrProvince?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(18,16,"PROFILE._post_code")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=C.mediumForm.get("postCode"))?null:i.invalid)&&""!=C.mediumForm.value.postCode||null!=(i=C.mediumForm.get("postCode"))&&i.touched&&""==C.mediumForm.value.postCode?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(23,18,"PROFILE._street")),e.R7$(2),e.Y8G("ngClass",1==(null==(u=C.mediumForm.get("street"))?null:u.invalid)&&""!=C.mediumForm.value.street||null!=(u=C.mediumForm.get("street"))&&u.touched&&""==C.mediumForm.value.street?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Rl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",149),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",150),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function Al0(n,a){if(1&n&&(e.j41(0,"div",145)(1,"ul",147)(2,"li"),e.Z7z(3,Rl0,3,1,"button",148,rE1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(3),e.Dyx(c.prefixes)}}function Il0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"label",139),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",140)(5,"div",141)(6,"button",142),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(7),e.qSk(),e.j41(8,"svg",143),e.nrm(9,"path",144),e.k0s()(),e.DNE(10,Al0,5,0,"div",145),e.joV(),e.nrm(11,"input",146),e.k0s()()()}if(2&n){let c;const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._phone")),e.R7$(5),e.Lme(" ",t.phonePrefix.flag," ",t.phonePrefix.code," "),e.R7$(3),e.vxM(10,1==t.prefixCheck?10:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Pl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"hr",12),e.j41(4,"div",113)(5,"select",114),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(6,"option",115),e.EFF(7,"Email"),e.k0s(),e.j41(8,"option",116),e.EFF(9,"Postal Address"),e.k0s(),e.j41(10,"option",117),e.EFF(11,"Phone Number"),e.k0s()()(),e.j41(12,"form",118)(13,"div",31)(14,"label",119),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"input",120),e.k0s(),e.DNE(18,Dl0,5,4,"div",31)(19,Tl0,25,20)(20,Il0,12,7),e.k0s(),e.j41(21,"div",121)(22,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveMedium())}),e.EFF(23),e.nI1(24,"translate"),e.qSk(),e.j41(25,"svg",123),e.nrm(26,"path",124),e.k0s()()(),e.joV(),e.j41(27,"div",125)(28,"button",126),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateProfile())}),e.EFF(29),e.nI1(30,"translate"),e.k0s()()}if(2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,11,"PROFILE._add_new_contact")),e.R7$(11),e.Y8G("formGroup",t.mediumForm),e.R7$(3),e.JRh(e.bMT(16,13,"PROFILE._contact_title")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("contactTitle"))?null:c.invalid)&&""!=t.mediumForm.value.contactTitle||1==(null==(c=t.mediumForm.get("contactTitle"))?null:c.touched)&&""==t.mediumForm.value.contactTitle?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(18,t.emailSelected?18:t.addressSelected?19:20),e.R7$(4),e.Y8G("disabled",!t.mediumForm.valid)("ngClass",t.mediumForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(24,15,"PROFILE._save")," "),e.R7$(5),e.Y8G("disabled",!t.profileForm.valid)("ngClass",t.profileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(30,17,"PROFILE._update")," ")}}function jl0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"h2",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",12),e.j41(5,"form",13)(6,"div")(7,"span",14),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"input",15),e.DNE(11,ul0,3,0,"p",16),e.k0s(),e.j41(12,"div")(13,"span",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"input",17),e.k0s(),e.j41(17,"div")(18,"span",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"select",18),e.DNE(22,ml0,2,2,"option",19),e.k0s()(),e.DNE(23,pl0,12,15),e.j41(24,"label",20),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,hl0,3,5,"div",21)(28,Cl0,71,28),e.k0s(),e.DNE(29,yl0,18,4),e.j41(30,"h2",11),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"hr",12),e.j41(34,"div",22)(35,"table",23)(36,"thead",24)(37,"tr")(38,"th",25),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"th",25),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"th",26),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.DNE(47,Fl0,3,3,"th",25),e.k0s()(),e.j41(48,"tbody"),e.Z7z(49,Nl0,10,4,"tr",27,e.fX1,!1,El0,7,3,"div",28),e.k0s()()(),e.DNE(52,Pl0,31,19),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(2),e.JRh(e.bMT(3,24,"PROFILE._organization")),e.R7$(3),e.Y8G("formGroup",l.profileForm),e.R7$(3),e.SpI("",e.bMT(9,26,"PROFILE._name")," (*)"),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.ziG(42,il0,l.isReadOnly,!l.isReadOnly,1==(null==(c=l.profileForm.get("name"))?null:c.invalid)&&""!=l.profileForm.value.name||(null==(c=l.profileForm.get("name"))?null:c.touched)&&""==l.profileForm.value.name,!(1==(null==(c=l.profileForm.get("name"))?null:c.invalid)&&""!=l.profileForm.value.name||null!=(c=l.profileForm.get("name"))&&c.touched&&""==l.profileForm.value.name))),e.R7$(),e.vxM(11,null!=(t=l.profileForm.get("name"))&&t.invalid&&null!=(t=l.profileForm.get("name"))&&null!=t.errors&&t.errors.required&&null!=(t=l.profileForm.get("name"))&&t.touched&&""==l.profileForm.value.name?11:-1),e.R7$(3),e.JRh(e.bMT(15,28,"PROFILE._website")),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.l_i(47,nH,l.isReadOnly,!l.isReadOnly)),e.R7$(3),e.SpI("",e.bMT(20,30,"PROFILE._country")," (*)"),e.R7$(2),e.Y8G("disabled",l.isReadOnly)("ngClass",e.l_i(50,rl0,l.isReadOnly,!l.isReadOnly)),e.R7$(),e.Y8G("ngForOf",l.euCountries),e.R7$(),e.vxM(23,l.isDataspaceEnabled?23:-1),e.R7$(2),e.JRh(e.bMT(26,32,"UPDATE_OFFER._description")),e.R7$(2),e.vxM(27,l.isReadOnly?27:28),e.R7$(2),e.vxM(29,l.isReadOnly?-1:29),e.R7$(2),e.JRh(e.bMT(32,34,"PROFILE._contact_info")),e.R7$(8),e.SpI(" ",e.bMT(40,36,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(43,38,"PROFILE._contact_title")," "),e.R7$(3),e.SpI(" ",e.bMT(46,40,"PROFILE._info")," "),e.R7$(2),e.vxM(47,l.isReadOnly?-1:47),e.R7$(2),e.Dyx(l.contactmediums),e.R7$(3),e.vxM(52,l.isReadOnly?-1:52)}}function $l0(n,a){if(1&n&&e.nrm(0,"error-message",2),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Ol0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"label",127),e.EFF(2,"Email"),e.k0s(),e.nrm(3,"input",160),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(3),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("email"))?null:c.invalid)&&""!=t.mediumForm.value.email?"border-red-600":"border-gray-300")}}function Bl0(n,a){1&n&&(e.j41(0,"div")(1,"label",129),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",161),e.k0s(),e.j41(5,"div")(6,"label",131),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",162),e.k0s(),e.j41(10,"div")(11,"label",133),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",163),e.k0s(),e.j41(15,"div")(16,"label",135),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",164),e.k0s(),e.j41(20,"div",31)(21,"label",137),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",165),e.k0s()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._country")),e.R7$(5),e.JRh(e.bMT(8,7,"PROFILE._city")),e.R7$(5),e.JRh(e.bMT(13,9,"PROFILE._state")),e.R7$(5),e.JRh(e.bMT(18,11,"PROFILE._post_code")),e.R7$(5),e.JRh(e.bMT(23,13,"PROFILE._street")))}function Vl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",149),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",150),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function Ul0(n,a){if(1&n&&(e.j41(0,"div",145)(1,"ul",147)(2,"li"),e.Z7z(3,Vl0,3,1,"button",148,rE1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(3),e.Dyx(c.prefixes)}}function Gl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"label",139),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",140)(5,"div",141)(6,"button",142),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(7),e.qSk(),e.j41(8,"svg",143),e.nrm(9,"path",144),e.k0s()(),e.DNE(10,Ul0,5,0,"div",145),e.joV(),e.nrm(11,"input",166),e.k0s()()()}if(2&n){let c;const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._phone")),e.R7$(5),e.Lme(" ",t.phonePrefix.flag," ",t.phonePrefix.code," "),e.R7$(3),e.vxM(10,1==t.prefixCheck?10:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Hl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",151),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",152)(3,"h2",11),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showEditMedium=!1)}),e.qSk(),e.j41(7,"svg",154),e.nrm(8,"path",155),e.k0s(),e.joV(),e.j41(9,"span",9),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",156)(13,"form",118)(14,"div",31)(15,"label",157),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",158),e.k0s(),e.DNE(19,Ol0,4,1,"div",31)(20,Bl0,25,15)(21,Gl0,12,7),e.k0s(),e.j41(22,"div",121)(23,"button",159),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editMedium())}),e.EFF(24),e.nI1(25,"translate"),e.qSk(),e.j41(26,"svg",123),e.nrm(27,"path",124),e.k0s()()()()()()}if(2&n){let c,t,l;const i=e.XpG();e.Y8G("ngClass",i.showEditMedium?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,10,"PROFILE._edit")),e.R7$(6),e.JRh(e.bMT(11,12,"CARD._close")),e.R7$(3),e.Y8G("formGroup",i.mediumForm),e.R7$(3),e.JRh(e.bMT(17,14,"PROFILE._contact_title")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.mediumForm.get("contactTitle"))?null:c.invalid)&&""!=i.mediumForm.value.contactTitle||1==(null==(c=i.mediumForm.get("contactTitle"))?null:c.touched)&&""==i.mediumForm.value.contactTitle?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,"Email"==i.selectedMedium.mediumType?19:"PostalAddress"==i.selectedMedium.mediumType?20:21),e.R7$(4),e.Y8G("disabled",null==(t=i.mediumForm.get("contactTitle"))?null:t.invalid)("ngClass",null!=(l=i.mediumForm.get("contactTitle"))&&l.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(),e.SpI(" ",e.bMT(25,16,"PROFILE._save")," ")}}function Yl0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_phone")))}function ql0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_email")))}function Xl0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_contact_title")))}function Wl0(n,a){if(1&n&&(e.j41(0,"div",4)(1,"div",167),e.qSk(),e.j41(2,"svg",168),e.nrm(3,"path",169),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,Yl0,3,3,"div",170)(6,ql0,3,3,"div",170)(7,Xl0,3,3,"div",170),e.k0s(),e.j41(8,"button",171)(9,"span",9),e.EFF(10,"Close"),e.k0s(),e.qSk(),e.j41(11,"svg",154),e.nrm(12,"path",155),e.k0s()()()),2&n){let c,t,l;const i=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=i.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(t=i.mediumForm.get("email"))?null:t.invalid)?6:-1),e.R7$(),e.vxM(7,1==(null==(l=i.mediumForm.get("contactTitle"))?null:l.invalid)?7:-1)}}function Jl0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",172)(2,"div",173),e.qSk(),e.j41(3,"svg",174),e.nrm(4,"path",112),e.k0s(),e.joV(),e.j41(5,"h3",175),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",176),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let Ql0=(()=>{class n{constructor(c,t,l,i,u,C){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.eventMessage=u,this.attachmentService=C,this.isDataspaceEnabled=g1.c.DATA_SPACE_ENABLED,this.loading=!1,this.orders=[],this.partyId="",this.token="",this.email="",this.isReadOnly=!1,this.profileForm=new p.gE({name:new p.MJ("",[p.k0.required]),website:new p.MJ(""),description:new p.MJ(""),country:new p.MJ("",[p.k0.required]),contractManagementAddress:new p.MJ(""),contractManagementClientId:new p.MJ(""),contractManagementScopes:new p.MJ("")}),this.mediumForm=new p.gE({contactTitle:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),email:new p.MJ("",[p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"),p.k0.maxLength(320)]),country:new p.MJ("",p.k0.maxLength(250)),city:new p.MJ("",p.k0.maxLength(250)),stateOrProvince:new p.MJ("",p.k0.maxLength(250)),postCode:new p.MJ("",p.k0.maxLength(250)),street:new p.MJ("",p.k0.maxLength(1e3)),telephoneNumber:new p.MJ(""),telephoneType:new p.MJ("Mobile")}),this.contactmediums=[],this.emailSelected=!0,this.addressSelected=!1,this.phoneSelected=!1,this.prefixes=qG,this.countries=iF,this.phonePrefix=qG[0],this.prefixCheck=!1,this.showEditMedium=!1,this.toastVisibility=!1,this.successVisibility=!1,this.errorMessage="",this.showError=!1,this.showPreview=!1,this.showEmoji=!1,this.description="",this.showImgPreview=!1,this.imgPreview="",this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.selectedCountry="",this.euCountries=[{code:"AT",name:"Austria"},{code:"BE",name:"Belgium"},{code:"BG",name:"Bulgaria"},{code:"HR",name:"Croatia"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"EE",name:"Estonia"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"DE",name:"Germany"},{code:"GR",name:"Greece"},{code:"HU",name:"Hungary"},{code:"IE",name:"Ireland"},{code:"IT",name:"Italy"},{code:"LV",name:"Latvia"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MT",name:"Malta"},{code:"NL",name:"Netherlands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"RO",name:"Romania"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"ES",name:"Spain"},{code:"SE",name:"Sweden"}],this.files=[],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo(),this.isReadOnly&&this.profileForm.value.description&&(this.description=this.profileForm.value.description),setTimeout(()=>{D2()},500)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as!==c.id){let t=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=t.partyId,t&&t.roles){const i=t.roles.map(u=>u.name).some(u=>u===g1.c.ORG_ADMIN_ROLE);this.isReadOnly=!i}}else this.partyId=c.partyId,this.isReadOnly=!1;this.token=c.token,this.email=c.email,this.profileForm.reset(),this.getProfile()}D2()}getProfile(){this.contactmediums=[],this.accountService.getOrgInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}updateProfile(){let c=[],t=[];""!=this.imgPreview&&t.push({name:"logo",value:this.imgPreview}),""!=this.profileForm.value.description&&t.push({name:"description",value:this.profileForm.value.description}),""!=this.profileForm.value.website&&t.push({name:"website",value:this.profileForm.value.website}),""!=this.profileForm.value.country&&t.push({name:"country",value:this.profileForm.value.country});const l=this.profileForm.value.contractManagementAddress?.trim()??"",i=this.profileForm.value.contractManagementClientId?.trim()??"",u=this.parseContractManagementScopes(this.profileForm.value.contractManagementScopes);this.isDataspaceEnabled&&(""!==l||""!==i||u.length>0)&&t.push({name:"contractManagement",value:{address:l,clientId:i,scope:u}});for(let b=0;b{this.profileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.mediumForm.reset()},error:b=>{console.error("There was an error while updating!",b),this.errorMessage=b.error.error?"Error: "+b.error.error:"There was an error while updating profile!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}loadProfileData(c){if(this.profileForm.controls.name.setValue(c.tradingName),c.contactMedium)for(let t=0;tt.trim()).filter(t=>t.length>0):[]}formatContractManagementScopes(c){return Array.isArray(c)?c.filter(t=>"string"==typeof t).join(", "):"string"==typeof c?c:""}getMediumContactType(c,t=""){const l=c?.characteristic?.contactType;return"string"==typeof l&&""!==l.trim()?l.trim():t}getContactTitle(c){const t=this.mediumForm.value.contactTitle;return"string"==typeof t&&""!==t.trim()?t.trim():c}saveMedium(){if(this.phoneSelected)try{const c=Kk(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(c){if(!c.isValid())return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.mediumForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.mediumForm.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.contactmediums.push(this.emailSelected?{id:L4(),mediumType:"Email",preferred:!1,characteristic:{contactType:this.getContactTitle("Email"),emailAddress:this.mediumForm.value.email}}:this.addressSelected?{id:L4(),mediumType:"PostalAddress",preferred:!1,characteristic:{contactType:this.getContactTitle("PostalAddress"),city:this.mediumForm.value.city,country:this.mediumForm.value.country,postCode:this.mediumForm.value.postCode,stateOrProvince:this.mediumForm.value.stateOrProvince,street1:this.mediumForm.value.street}}:{id:L4(),mediumType:"TelephoneNumber",preferred:!1,characteristic:{contactType:this.getContactTitle("Phone"),phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}),this.mediumForm.reset()}removeMedium(c){const t=this.contactmediums.findIndex(l=>l.id===c.id);-1!==t&&this.contactmediums.splice(t,1)}editMedium(){const c=this.contactmediums.findIndex(t=>t.id===this.selectedMedium.id);if(-1!==c){if(this.mediumForm.get("contactTitle")?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);if("Email"==this.selectedMedium.mediumType){if(this.mediumForm.get("email")?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"Email",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("Email"),emailAddress:this.mediumForm.value.email}}}else if("PostalAddress"==this.selectedMedium.mediumType)["country","city","stateOrProvince","street"].forEach(l=>{if(this.mediumForm.get(l)?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}),this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"PostalAddress",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("PostalAddress"),city:this.mediumForm.value.city,country:this.mediumForm.value.country,postCode:this.mediumForm.value.postCode,stateOrProvince:this.mediumForm.value.stateOrProvince,street1:this.mediumForm.value.street}};else{try{const t=Kk(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(t){if(!t.isValid())return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.mediumForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"TelephoneNumber",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("Phone"),phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}}this.mediumForm.reset(),this.showEditMedium=!1}}showEdit(c){if(this.selectedMedium=c,this.mediumForm.controls.contactTitle.setValue(this.getMediumContactType(this.selectedMedium)),"Email"==this.selectedMedium.mediumType)this.selectedMediumType="email",this.mediumForm.controls.email.setValue(this.selectedMedium.characteristic.emailAddress);else if("PostalAddress"==this.selectedMedium.mediumType)this.selectedMediumType="address",this.mediumForm.controls.country.setValue(this.selectedMedium.characteristic.country),this.mediumForm.controls.city.setValue(this.selectedMedium.characteristic.city),this.mediumForm.controls.stateOrProvince.setValue(this.selectedMedium.characteristic.stateOrProvince),this.mediumForm.controls.postCode.setValue(this.selectedMedium.characteristic.postCode),this.mediumForm.controls.street.setValue(this.selectedMedium.characteristic.street1);else{this.selectedMediumType="phone";const t=Kk(this.selectedMedium.characteristic.phoneNumber);if(t){let l=this.prefixes.filter(i=>i.code==="+"+t.countryCallingCode);l.length>0&&(this.phonePrefix=l[0]),this.mediumForm.controls.telephoneNumber.setValue(t.nationalNumber)}this.mediumForm.controls.telephoneType.setValue(this.selectedMedium.characteristic.contactType)}this.showEditMedium=!0}selectPrefix(c){this.prefixCheck=!1,this.phonePrefix=c}onTypeChange(c){this.mediumForm.reset(),"email"==c.target.value?(this.emailSelected=!0,this.addressSelected=!1,this.phoneSelected=!1,this.mediumForm.get("country")?.clearValidators(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.clearValidators(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.clearValidators(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.clearValidators(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("street")?.clearValidators(),this.mediumForm.get("street")?.setValue(""),this.mediumForm.get("telephoneNumber")?.clearValidators(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.mediumForm.get("email")?.setValidators([p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]),this.mediumForm.get("email")?.markAsUntouched(),this.mediumForm.get("email")?.setValue(""),this.cdr.detectChanges()):"address"==c.target.value?(this.emailSelected=!1,this.addressSelected=!0,this.phoneSelected=!1,this.mediumForm.get("telephoneNumber")?.clearValidators(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.mediumForm.get("email")?.clearValidators(),this.mediumForm.get("email")?.setValue(""),this.mediumForm.get("country")?.setValidators([p.k0.required]),this.mediumForm.get("country")?.markAsUntouched(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.setValidators([p.k0.required]),this.mediumForm.get("city")?.markAsUntouched(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.setValidators([p.k0.required]),this.mediumForm.get("stateOrProvince")?.markAsUntouched(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.setValidators([p.k0.required]),this.mediumForm.get("postCode")?.markAsUntouched(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("street")?.setValidators([p.k0.required]),this.mediumForm.get("street")?.markAsUntouched(),this.mediumForm.get("street")?.setValue(""),this.cdr.detectChanges()):(this.emailSelected=!1,this.addressSelected=!1,this.phoneSelected=!0,this.mediumForm.get("country")?.clearValidators(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.clearValidators(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.clearValidators(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.clearValidators(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("street")?.clearValidators(),this.mediumForm.get("street")?.setValue(""),this.mediumForm.get("email")?.clearValidators(),this.mediumForm.get("email")?.setValue(""),this.mediumForm.get("telephoneNumber")?.setValidators([p.k0.required]),this.mediumForm.get("telephoneNumber")?.markAsUntouched(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.cdr.detectChanges())}showMedium(){}printActiveValidators(c){const t=this.mediumForm.get(c);!t||!t.validator||t.validator({})}printAllActiveValidators(){Object.keys(this.mediumForm.controls).forEach(c=>{this.printActiveValidators(c)})}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile&&l.fileEntry.file(u=>{if(u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];let W={content:{name:"orglogo"+u.name,data:T},contentType:u.type,isPublic:!0};return this.isValidFilename(W.content.name)?u.size>this.MAX_FILE_SIZE?(this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)):void this.attachmentService.uploadFile(W).subscribe({next:u1=>{"img"==t&&(u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=u1.content):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3))),this.cdr.detectChanges()},error:u1=>{console.error("There was an error while uploading!",u1),this.errorMessage=u1.error.error?"Error: "+u1.error.error:"There was an error while uploading the file!",413===u1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}):(this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3))},C.readAsDataURL(u)}})}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){}fileLeave(c){}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.attImageName.reset(),this.cdr.detectChanges()}removeImg(){this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()}addBold(){this.profileForm.patchValue({description:this.profileForm.value.description+" **bold text** "})}addItalic(){this.profileForm.patchValue({description:this.profileForm.value.description+" _italicized text_ "})}addList(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n`code`"})}addCodeBlock(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n> blockquote"})}addLink(){this.profileForm.patchValue({description:this.profileForm.value.description+" [title](https://www.example.com) "})}addTable(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showEmoji=!1,this.profileForm.patchValue({description:this.profileForm.value.description+c.emoji.native})}togglePreview(){this.description=this.profileForm.value.description?this.profileForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(U2),e.rXU(wn))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["org-info"]],viewQuery:function(t,l){if(1&t&&e.GBs(ol0,5),2&t){let i;e.mGM(i=e.lsd())&&(l.imgURL=i.first)}},decls:6,vars:5,consts:[["imgURL",""],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["id","edit-medium-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-fit","lg:h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],["id","toast-warning","role","alert",1,"flex","m-2","items-center","w-fit","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"font-bold","dark:text-white"],["type","text","formControlName","name","id","name",1,"mb-2","text-gray-900","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["type","text","formControlName","website","id","website",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["data-cy","orgCountry","id","country","formControlName","country",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"disabled","ngClass"],[3,"value",4,"ngFor","ngForOf"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-100","dark:bg-gray-700","dark:border-secondary-200"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"font-medium"],[3,"value"],[1,"col-span-2"],["type","text","formControlName","contractManagementAddress","id","contractManagementAddress",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["type","text","formControlName","contractManagementClientId","id","contractManagementClientId",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["type","text","formControlName","contractManagementScopes","id","contractManagementScopes","placeholder","external-marketplace, another-scope",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],[1,"px-4","py-2","rounded-lg"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-secondary-200","dark:border-secondary-200"],[1,"flex","items-center","justify-between","px-3","py-2","border-b"],[1,"flex","flex-wrap","items-center","divide-gray-200","dark:divide-secondary-200","sm:divide-x","sm:rtl:divide-x-reverse"],[1,"flex","items-center","space-x-1","rtl:space-x-reverse","sm:pe-4","text-gray-500","dark:text-gray-200"],["type","button",1,"p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 5h4.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0-7H6m2 7h6.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0 0H6"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8.874 19 6.143-14M6 19h6.33m-.66-14H18"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M9 8h10M9 12h10M9 16h10M4.99 8H5m-.02 4h.01m0 4H5"],["type","button",1,"hidden","lg:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6h8m-8 6h8m-8 6h8M4 16a2 2 0 1 1 3.321 1.5L4 20h5M4 5l2-1v6m-2 0h4"],["type","button",1,"hidden","md:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["fill-rule","evenodd","d","M5 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm0 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm1.65-9.76A1 1 0 0 0 5 9v6a1 1 0 0 0 1.65.76l3.5-3a1 1 0 0 0 0-1.52l-3.5-3ZM12 10a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Z","clip-rule","evenodd"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-width","2","d","M3 11h18m-9 0v8m-8 0h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8 8-4 4 4 4m8 0 4-4-4-4m-2-3-4 14"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 3v4a1 1 0 0 1-1 1H5m5 4-2 2 2 2m4-4 2 2-2 2m5-12v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.213 9.787a3.391 3.391 0 0 0-4.795 0l-3.425 3.426a3.39 3.39 0 0 0 4.795 4.794l.321-.304m-.321-4.49a3.39 3.39 0 0 0 4.795 0l3.424-3.426a3.39 3.39 0 0 0-4.794-4.795l-1.028.961"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM13.5 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-7 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm3.5 9.5A5.5 5.5 0 0 1 4.6 11h10.81A5.5 5.5 0 0 1 10 15.5Z"],["type","button","data-tooltip-target","tooltip-fullscreen",1,"rounded","cursor-pointer","text-gray-500","dark:text-gray-200","p-2","sm:ms-auto","hover:text-gray-900","dark:hover:text-gray-900","hover:bg-gray-100",3,"click"],["stroke","currentColor","stroke-width","2","d","M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z"],["stroke","currentColor","stroke-width","2","d","M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"],["id","tooltip-fullscreen","role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","bg-gray-900","rounded-lg","shadow-sm","opacity-0","tooltip"],["data-popper-arrow","",1,"tooltip-arrow"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","rounded-b-lg"],["for","editor",1,"sr-only"],[3,"darkMode","style"],["id","editor","formControlName","description","rows","8","placeholder","Add product description...",1,"block","w-full","min-h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0"],[3,"click","emojiClick","darkMode"],[1,"flex"],[1,"flex","inline-flex","ml-2","align-middle"],["data-popover-target","popover-logo","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["data-popover","","id","popover-logo","role","tooltip",1,"absolute","z-20","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],[1,"px-6","py-4"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"px-6","py-4","inline-flex"],["data-cy","editContact","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","deleteContact","type","button",1,"text-white","bg-red-800","hover:bg-red-900","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["fill-rule","evenodd","d","M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"mr-8"],["id","type",1,"m-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full",3,"change"],["value","email"],["value","address"],["value","phone"],[1,"grid","h-full","grid-cols-2","gap-5","m-4",3,"formGroup"],["for","contactTitle",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","contactTitle","formControlName","contactTitle","name","contactTitle","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"flex","w-full","justify-items-center","justify-center","m-2","p-2"],["data-cy","saveOrgProfile","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],[1,"flex","w-full","justify-end"],["data-cy","orgUpdate","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"font-bold","text-lg","dark:text-white"],["formControlName","email","type","text","id","prod-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.country",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","orgCountry","id","address.country","formControlName","country","name","address.country","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.city",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.state",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.zip",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.street_address",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","phoneNumber",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],[1,"w-full"],[1,"relative","flex","items-center"],["type","button",1,"mb-2","flex-shrink-0","z-10","inline-flex","items-center","py-2.5","px-4","text-sm","font-medium","text-center","text-gray-900","bg-gray-100","border","border-gray-300","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-s-lg","hover:bg-gray-200","dark:hover:bg-primary-200","focus:ring-4","focus:outline-none","focus:ring-gray-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-2.5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"absolute","bottom-12","right-0","z-20","max-h-48","w-full","bg-white","divide-y","divide-gray-100","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","shadow","overflow-y-auto"],["min","0","id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],["aria-labelledby","dropdown-phone-button",1,"py-2","text-sm","text-gray-700"],["type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200"],["type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200",3,"click"],[1,"inline-flex","items-center"],[1,"w-4/5","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","pr-2","pt-2","rounded-t","dark:border-gray-600"],["type","button","data-modal-hide","edit-medium-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"w-full","h-full"],["for","editContactTitle",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","editContactTitle","formControlName","contactTitle","name","editContactTitle","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["formControlName","email","type","text","id","prod-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","orgCountry","id","address.country","formControlName","country","name","address.country","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],[1,"inline-flex","items-center","justify-center","flex-shrink-0","w-8","h-8","bg-red-700","text-red-200","rounded-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"],[1,"block","ms-3","text-sm","font-normal"],["type","button","data-dismiss-target","#toast-warning","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm","pr-8","pl-8"]],template:function(t,l){1&t&&e.DNE(0,fl0,6,0,"div",1)(1,jl0,53,53)(2,$l0,1,1,"error-message",2)(3,Hl0,28,18,"div",3)(4,Wl0,13,3,"div",4)(5,Jl0,10,3,"div",5),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.showError?2:-1),e.R7$(),e.vxM(3,l.showEditMedium?3:-1),e.R7$(),e.vxM(4,l.toastVisibility?4:-1),e.R7$(),e.vxM(5,l.successVisibility?5:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.VZ,p.l_,p.j4,p.JD,T0,z0,R4,N0,E0,s1.D9]})}}return n})();const Zl0=(n,a)=>a.code;function Kl0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",3),e.nrm(2,"path",4)(3,"path",5),e.k0s(),e.joV(),e.j41(4,"span",6),e.EFF(5,"Loading..."),e.k0s()())}function es0(n,a){1&n&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function cs0(n,a){1&n&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function ts0(n,a){if(1&n&&(e.j41(0,"option",49),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.code),e.R7$(),e.JRh(c.name)}}function ns0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"h2",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",9),e.j41(5,"div",10)(6,"div")(7,"span",11),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"input",12),e.j41(11,"span",11),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",13),e.k0s(),e.j41(15,"div")(16,"span",11),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",14),e.k0s()(),e.j41(20,"h2",8),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.nrm(23,"hr",9),e.j41(24,"form",15)(25,"div")(26,"label",16),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.nrm(29,"input",17),e.DNE(30,es0,3,0,"p",18),e.j41(31,"label",19),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"select",20)(35,"option",21),e.EFF(36,"I'd rather not say"),e.k0s(),e.j41(37,"option",22),e.EFF(38,"Miss"),e.k0s(),e.j41(39,"option",23),e.EFF(40,"Mrs"),e.k0s(),e.j41(41,"option",24),e.EFF(42,"Mr"),e.k0s(),e.j41(43,"option",25),e.EFF(44,"Ms"),e.k0s()(),e.j41(45,"label",26),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"select",27)(49,"option",21),e.EFF(50,"I'd rather not say"),e.k0s(),e.j41(51,"option",28),e.EFF(52,"Female"),e.k0s(),e.j41(53,"option",29),e.EFF(54,"Male"),e.k0s(),e.j41(55,"option",30),e.EFF(56,"Other"),e.k0s()()(),e.j41(57,"div")(58,"label",31),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.nrm(61,"input",32),e.DNE(62,cs0,3,0,"p",18),e.j41(63,"label",33),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.j41(66,"select",34)(67,"option",21),e.EFF(68,"I'd rather not say"),e.k0s(),e.j41(69,"option",35),e.EFF(70,"Divorced"),e.k0s(),e.j41(71,"option",36),e.EFF(72,"Married"),e.k0s(),e.j41(73,"option",37),e.EFF(74,"Separated"),e.k0s(),e.j41(75,"option",38),e.EFF(76,"Single"),e.k0s(),e.j41(77,"option",39),e.EFF(78,"Widowed"),e.k0s()(),e.j41(79,"label",40),e.EFF(80),e.nI1(81,"translate"),e.k0s(),e.nrm(82,"input",41),e.k0s()(),e.j41(83,"h2",8),e.EFF(84),e.nI1(85,"translate"),e.k0s(),e.nrm(86,"hr",9),e.j41(87,"form",15)(88,"div")(89,"label",42),e.EFF(90),e.nI1(91,"translate"),e.k0s(),e.nrm(92,"input",43),e.j41(93,"label",44),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.nrm(96,"input",45),e.k0s(),e.j41(97,"div",46)(98,"label",47),e.EFF(99),e.nI1(100,"translate"),e.k0s(),e.j41(101,"select",48)(102,"option",21),e.EFF(103,"Select country"),e.k0s(),e.Z7z(104,ts0,2,2,"option",49,Zl0),e.k0s()()(),e.j41(106,"div",50)(107,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateProfile())}),e.EFF(108),e.nI1(109,"translate"),e.k0s()()()}if(2&n){let c,t,l,i;const u=e.XpG();e.R7$(2),e.JRh(e.bMT(3,27,"PROFILE._account")),e.R7$(6),e.JRh(e.bMT(9,29,"PROFILE._user_id")),e.R7$(2),e.FS9("value",u.profile.externalReference[0].name),e.R7$(2),e.JRh(e.bMT(13,31,"PROFILE._email")),e.R7$(2),e.FS9("value",u.email),e.R7$(3),e.JRh(e.bMT(18,33,"PROFILE._token")),e.R7$(2),e.FS9("value",u.token),e.R7$(2),e.JRh(e.bMT(22,35,"PROFILE._profile")),e.R7$(3),e.Y8G("formGroup",u.userProfileForm),e.R7$(3),e.JRh(e.bMT(28,37,"PROFILE._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=u.userProfileForm.get("name"))?null:c.invalid)&&""!=u.userProfileForm.value.name||null!=(c=u.userProfileForm.get("name"))&&c.touched&&""==u.userProfileForm.value.name?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(30,null!=(t=u.userProfileForm.get("name"))&&t.invalid&&null!=(t=u.userProfileForm.get("name"))&&null!=t.errors&&t.errors.required&&null!=(t=u.userProfileForm.get("name"))&&t.touched&&""==u.userProfileForm.value.name?30:-1),e.R7$(2),e.JRh(e.bMT(33,39,"PROFILE._treatment")),e.R7$(14),e.JRh(e.bMT(47,41,"PROFILE._gender")),e.R7$(13),e.JRh(e.bMT(60,43,"PROFILE._lastname")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=u.userProfileForm.get("lastname"))?null:l.invalid)&&""!=u.userProfileForm.value.lastname||null!=(l=u.userProfileForm.get("lastname"))&&l.touched&&""==u.userProfileForm.value.lastname?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(62,null!=(i=u.userProfileForm.get("lastname"))&&i.invalid&&null!=(i=u.userProfileForm.get("lastname"))&&null!=i.errors&&i.errors.required&&null!=(i=u.userProfileForm.get("lastname"))&&i.touched&&""==u.userProfileForm.value.lastname?62:-1),e.R7$(2),e.JRh(e.bMT(65,45,"PROFILE._marital_status")),e.R7$(16),e.JRh(e.bMT(81,47,"PROFILE._nacionality")),e.R7$(4),e.JRh(e.bMT(85,49,"PROFILE._birthdate")),e.R7$(3),e.Y8G("formGroup",u.userProfileForm),e.R7$(3),e.JRh(e.bMT(91,51,"PROFILE._date")),e.R7$(4),e.JRh(e.bMT(95,53,"PROFILE._city")),e.R7$(5),e.JRh(e.bMT(100,55,"PROFILE._country")),e.R7$(5),e.Dyx(u.countries),e.R7$(3),e.Y8G("disabled",!u.userProfileForm.valid)("ngClass",u.userProfileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(109,57,"PROFILE._update")," ")}}function ls0(n,a){if(1&n&&e.nrm(0,"error-message",1),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function ss0(n,a){1&n&&(e.j41(0,"div",2)(1,"div",53)(2,"div",54),e.qSk(),e.j41(3,"svg",55),e.nrm(4,"path",56),e.k0s(),e.joV(),e.j41(5,"h3",57),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",58),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let as0=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.eventMessage=u,this.loading=!1,this.orders=[],this.partyId="",this.token="",this.email="",this.userProfileForm=new p.gE({name:new p.MJ("",[p.k0.required]),lastname:new p.MJ("",[p.k0.required]),treatment:new p.MJ(""),maritalstatus:new p.MJ(""),gender:new p.MJ(""),nacionality:new p.MJ(""),birthdate:new p.MJ(""),city:new p.MJ(""),country:new p.MJ("")}),this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.errorMessage="",this.showError=!1,this.successVisibility=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initPartyInfo()})}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.accountService.getOrgInfo(this.partyId).then(l=>{})}this.token=c.token,this.email=c.email,this.getProfile()}D2()}getProfile(){this.accountService.getUserInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}updateProfile(){this.accountService.updateUserInfo(this.partyId,{id:this.partyId,href:this.partyId,countryOfBirth:this.userProfileForm.value.country,familyName:this.userProfileForm.value.lastname,gender:this.userProfileForm.value.gender,givenName:this.userProfileForm.value.name,maritalStatus:this.userProfileForm.value.maritalstatus,nationality:this.userProfileForm.value.nacionality,placeOfBirth:this.userProfileForm.value.city,title:this.userProfileForm.value.treatment,birthDate:this.userProfileForm.value.birthdate}).subscribe({next:t=>{this.userProfileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.getProfile()},error:t=>{console.error("There was an error while updating!",t),t.error.error?(console.log(t),this.errorMessage="Error: "+t.error.error):this.errorMessage="There was an error while updating profile!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}loadProfileData(c){this.userProfileForm.controls.name.setValue(c.givenName),this.userProfileForm.controls.lastname.setValue(c.familyName),this.userProfileForm.controls.maritalstatus.setValue(c.maritalStatus),this.userProfileForm.controls.gender.setValue(c.gender),this.userProfileForm.controls.nacionality.setValue(c.nacionality),this.userProfileForm.controls.city.setValue(c.placeOfBirth),this.userProfileForm.controls.country.setValue(c.countryOfBirth)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["user-info"]],decls:4,vars:3,consts:[["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","grid","grid-cols-2","gap-4"],[1,"font-bold","dark:text-white"],["type","text","id","username","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],["type","text","id","email","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],["type","text","id","token","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["for","user-name",1,"font-bold","dark:text-white"],["formControlName","name","type","text","id","user-name",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["for","treatment",1,"font-bold","dark:text-white"],["id","treatment","formControlName","treatment",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value",""],["value","Miss"],["value","Mrs"],["value","Mr"],["value","Ms"],["for","gender",1,"font-bold","dark:text-white"],["id","gender","formControlName","gender",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Female"],["value","Male"],["value","Other"],["for","lastname",1,"font-bold","dark:text-white"],["type","text","formControlName","lastname","id","lastname",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","marital-status",1,"font-bold","dark:text-white"],["id","marital-status","formControlName","maritalstatus",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Divorced"],["value","Married"],["value","Separated"],["value","Single"],["value","Widowed"],["for","nacionality",1,"font-bold","dark:text-white"],["type","text","formControlName","nacionality","id","nacionality",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","birthdate",1,"font-bold","dark:text-white"],["datepicker","","type","date","placeholder","Select date","formControlName","birthdate","id","birthdate",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","city",1,"font-bold","dark:text-white"],["type","text","formControlName","city","id","city",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"align-items-bottom","align-bottom"],["for","country",1,"font-bold","dark:text-white"],["id","country","formControlName","country",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value"],[1,"flex","w-full","justify-end"],["type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"font-medium"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm","pr-8","pl-8"]],template:function(t,l){1&t&&e.DNE(0,Kl0,6,0,"div",0)(1,ns0,110,59)(2,ls0,1,1,"error-message",1)(3,ss0,10,3,"div",2),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.showError?2:-1),e.R7$(),e.vxM(3,l.successVisibility?3:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const os0=(n,a)=>a.id,is0=(n,a)=>({"break-all":n,"break-words":a});function rs0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function ds0(n,a){1&n&&(e.j41(0,"th",14),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BILLING._action")," "))}function fs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"td",21)(1,"button",22),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(2).toggleEditBill(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s()()()}}function us0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectBill(l))}),e.j41(1,"td",18),e.EFF(2),e.k0s(),e.j41(3,"td",19),e.EFF(4),e.k0s(),e.j41(5,"td",19),e.EFF(6),e.k0s(),e.j41(7,"td",20),e.EFF(8),e.k0s(),e.DNE(9,fs0,4,0,"td",21),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",1==c.selected?"bg-primary-30 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(12,is0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.email," "),e.R7$(2),e.SjE(" ",c.postalAddress.street,", ",c.postalAddress.postCode," (",c.postalAddress.city,") ",c.postalAddress.stateOrProvince,", ",c.postalAddress.country," "),e.R7$(2),e.Lme(" (",c.telephoneType,") ",c.telephoneNumber," "),e.R7$(),e.vxM(9,t.isReadOnly?-1:9)}}function ms0(n,a){1&n&&(e.j41(0,"div",16)(1,"div",25),e.qSk(),e.j41(2,"svg",26),e.nrm(3,"path",27),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"BILLING._no_billing")," "))}function ps0(n,a){if(1&n&&(e.j41(0,"h2",9),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"hr",10)(4,"app-billing-account-form",28)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"BILLING._add")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function hs0(n,a){if(1&n&&(e.j41(0,"div",8)(1,"h2",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",10),e.j41(5,"div",11)(6,"table",12)(7,"thead",13)(8,"tr")(9,"th",14),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",14),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"th",14),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"th",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.DNE(21,ds0,3,3,"th",14),e.k0s()(),e.j41(22,"tbody"),e.Z7z(23,us0,10,15,"tr",15,os0,!1,ms0,7,3,"div",16),e.k0s()()(),e.DNE(26,ps0,5,4),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,8,"PROFILE._mybills")),e.R7$(8),e.SpI(" ",e.bMT(11,10,"BILLING._title")," "),e.R7$(3),e.SpI(" ",e.bMT(14,12,"BILLING._email")," "),e.R7$(3),e.SpI(" ",e.bMT(17,14,"BILLING._postalAddress")," "),e.R7$(3),e.SpI(" ",e.bMT(20,16,"BILLING._phone")," "),e.R7$(2),e.vxM(21,c.isReadOnly?-1:21),e.R7$(2),e.Dyx(c.billing_accounts),e.R7$(3),e.vxM(26,c.isReadOnly?-1:26)}}function gs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",1)(1,"div",29),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",30)(3,"h2",31),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editBill=!1)}),e.qSk(),e.j41(7,"svg",33),e.nrm(8,"path",34),e.k0s(),e.joV(),e.j41(9,"span",7),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",35),e.nrm(13,"app-billing-account-form",36),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.editBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._edit")," "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("billAcc",c.billToUpdate)}}function _s0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",37),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",38)(3,"button",39),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",40),e.nrm(5,"path",41),e.k0s(),e.joV(),e.j41(6,"span",7),e.EFF(7,"Close modal"),e.k0s()(),e.qSk(),e.j41(8,"svg",42),e.nrm(9,"path",43),e.k0s(),e.joV(),e.j41(10,"p",44),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"p",45)(14,"b"),e.EFF(15),e.k0s(),e.EFF(16),e.k0s(),e.j41(17,"div",46)(18,"button",47),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onDeletedBill(l.billToDelete))}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.deleteBill?"backdrop-blur-sm":""),e.R7$(11),e.JRh(e.bMT(12,8,"BILLING._confirm_delete")),e.R7$(4),e.JRh(c.billToDelete.name),e.R7$(),e.E5c(": ",c.billToDelete.postalAddress.street,", ",c.billToDelete.postalAddress.city,", ",c.billToDelete.postalAddress.country,"."),e.R7$(3),e.SpI(" ",e.bMT(20,10,"BILLING._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(23,12,"BILLING._delete")," ")}}function Ls0(n,a){if(1&n&&e.nrm(0,"error-message",3),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Cs0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.router=i,this.accountService=u,this.orderService=C,this.eventMessage=b,this.loading=!1,this.orders=[],this.partyId="",this.partyInfo={id:"",name:"",href:""},this.billing_accounts=[],this.editBill=!1,this.deleteBill=!1,this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.isReadOnly=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"BillAccChanged"===T.type&&this.getBilling(),0==T.value&&(this.editBill=!1),"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.editBill&&(this.editBill=!1,this.cdr.detectChanges()),1==this.deleteBill&&(this.deleteBill=!1,this.cdr.detectChanges()),1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as!==c.id){let t=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=t.partyId,console.log("loggedOrg info"),console.log(t),this.partyInfo={id:this.partyId,name:t.name,href:this.partyId,role:g1.c.SELLER_ROLE},t&&t.roles){const i=t.roles.map(u=>u.name).some(u=>u===g1.c.ORG_ADMIN_ROLE);this.isReadOnly=!i}}else this.partyId=c.partyId,console.log("init party info"),console.log(c),this.partyInfo={id:this.partyId,name:c.user,href:this.partyId,role:g1.c.SELLER_ROLE},this.isReadOnly=!1;this.getBilling()}D2()}getBilling(){let c=!1;this.accountService.getBillingAccount().then(t=>{this.billing_accounts=[];for(let l=0;l0),console.log(this.billing_accounts),this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}selectBill(c){const t=this.billing_accounts.findIndex(l=>l.id===c.id);for(let l=0;l{this.eventMessage.emitBillAccChange(!1)},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}onDeletedBill(c){console.log("--- DELETE BILLING ADDRESS ---"),this.deleteBill=!1,this.cdr.detectChanges()}toggleEditBill(c){this.billToUpdate=c,this.editBill=!0,this.cdr.detectChanges()}toggleDeleteBill(c){this.deleteBill=!0,this.billToDelete=c}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(D8),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["billing-info"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:5,vars:4,consts:[["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","edit-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],["id","delete-bill-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"flex","justify-center","w-full","m-4"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"px-6","py-4","inline-flex"],["data-cy","billingEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[3,"preferred"],[1,"w-full","max-w-2xl","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"p-4","max-h-[80vh]","overflow-y-auto"],[3,"billAcc"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","dark:bg-secondary-100","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-white"],[1,"mb-4","text-gray-500","dark:text-white","text-wrap","break-all"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","rounded-lg","border","border-gray-200","dark:border-secondary-300","hover:bg-gray-100","dark:hover:bg-secondary-200","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-800","hover:bg-red-900","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-red-300",3,"click"]],template:function(t,l){1&t&&e.DNE(0,rs0,6,0,"div",0)(1,hs0,27,18)(2,gs0,14,8,"div",1)(3,_s0,24,14,"div",2)(4,Ls0,1,1,"error-message",3),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.editBill?2:-1),e.R7$(),e.vxM(3,l.deleteBill?3:-1),e.R7$(),e.vxM(4,l.showError?4:-1))},dependencies:[_.YU,lf1,E0,s1.D9]})}}return n})();const fE1=(n,a)=>a.id;function zs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"h2",8),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"select",30),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onRoleChange(l))}),e.j41(7,"option",31),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"option",32),e.EFF(11),e.nI1(12,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faIdCard),e.R7$(2),e.JRh(e.bMT(5,4,"OFFERINGS._filter_role")),e.R7$(4),e.JRh(e.bMT(9,6,"OFFERINGS._customer")),e.R7$(3),e.JRh(e.bMT(12,8,"OFFERINGS._seller"))}}function Ms0(n,a){1&n&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"path",34)(3,"path",35),e.k0s(),e.joV(),e.j41(4,"span",36),e.EFF(5,"Loading..."),e.k0s()())}function xs0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function bs0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ys0(n,a){if(1&n&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Fs0(n,a){if(1&n&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function vs0(n,a){if(1&n&&(e.j41(0,"span",57),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ks0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ws0(n,a){if(1&n&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Ss0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",44)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.DNE(4,xs0,2,1,"span",48)(5,bs0,2,1)(6,ys0,2,1)(7,Fs0,2,1)(8,vs0,2,1)(9,ks0,2,1)(10,ws0,2,1),e.k0s(),e.j41(11,"td",46),e.EFF(12),e.k0s(),e.j41(13,"td",46),e.EFF(14),e.k0s(),e.j41(15,"td",47),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"td",47)(19,"button",49),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(20,"svg",50)(21,"g",51),e.nrm(22,"path",52)(23,"path",53),e.k0s()()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.id," "),e.R7$(2),e.vxM(4,"inProgress"==c.state?4:"partial"===c.state?5:"completed"==c.state?6:"failed"==c.state?7:"pending"==c.state?8:"acknowledged"==c.state?9:"cancelled"==c.state?10:-1),e.R7$(8),e.SpI(" ",c.priority," "),e.R7$(2),e.SpI(" ",c.billingAccount.name," "),e.R7$(2),e.SpI(" ",e.i5U(17,5,null==c?null:c.orderDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Ns0(n,a){1&n&&(e.j41(0,"div",45)(1,"span",58),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function Es0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",61),e.nrm(4,"path",62),e.k0s()()()}}function Ds0(n,a){if(1&n&&e.DNE(0,Es0,5,0,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ts0(n,a){1&n&&(e.j41(0,"div",63),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"path",34)(3,"path",35),e.k0s(),e.joV(),e.j41(4,"span",36),e.EFF(5,"Loading..."),e.k0s()())}function Rs0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"div",38)(2,"table",39)(3,"thead",40)(4,"tr")(5,"th",41),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",42),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",41),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",41),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",42),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"th",43),e.EFF(21),e.nI1(22,"translate"),e.k0s()()(),e.j41(23,"tbody"),e.Z7z(24,Ss0,24,8,"tr",44,fE1),e.k0s()(),e.DNE(26,Ns0,4,3,"div",45),e.k0s(),e.DNE(27,Ds0,1,1)(28,Ts0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,8,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,10,"PRODUCT_INVENTORY._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,12,"PRODUCT_INVENTORY._priority")," "),e.R7$(3),e.SpI(" ",e.bMT(16,14,"PRODUCT_INVENTORY._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(19,16,"PROFILE._date")," "),e.R7$(3),e.SpI(" ",e.bMT(22,18,"PROFILE._actions")," "),e.R7$(3),e.Dyx(c.orders),e.R7$(2),e.vxM(26,0==c.orders.length?26:-1),e.R7$(),e.vxM(27,c.loading_more?28:27)}}function As0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Is0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Ps0(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function js0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function $s0(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Os0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Bs0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Vs0(n,a){1&n&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._custom")," "))}function Us0(n,a){if(1&n&&(e.j41(0,"td",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.E5c(" ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.price," ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.unit," ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.text," ")}}function Gs0(n,a){if(1&n&&e.DNE(0,Vs0,3,3,"td",47)(1,Us0,2,3),2&n){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function Hs0(n,a){1&n&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function Ys0(n,a){if(1&n&&(e.j41(0,"tr",77)(1,"td",89),e.nrm(2,"img",90),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.DNE(5,Gs0,2,1)(6,Hs0,3,3),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("src",t.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6)}}function qs0(n,a){if(1&n&&(e.j41(0,"p",83),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.E5c("",c.price," ",c.unit," ",c.text,"")}}function Xs0(n,a){1&n&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._custom")))}function Ws0(n,a){1&n&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._free")))}function Js0(n,a){if(1&n&&e.DNE(0,Xs0,3,3,"p",91)(1,Ws0,3,3),2&n){const c=e.XpG(2);e.vxM(0,1==c.check_custom?0:1)}}function Qs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",29)(1,"div",64),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",65)(3,"h2",66),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",67),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showOrderDetails=!1)}),e.qSk(),e.j41(7,"svg",68),e.nrm(8,"path",69),e.k0s(),e.joV(),e.j41(9,"span",36),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",70)(13,"div",71)(14,"div",72)(15,"p",73),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"h3",74),e.EFF(19),e.k0s()(),e.j41(20,"div",72)(21,"p",73),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,As0,2,1,"span",75)(25,Is0,2,1)(26,Ps0,2,1)(27,js0,2,1)(28,$s0,2,1)(29,Os0,2,1)(30,Bs0,2,1),e.k0s(),e.j41(31,"div",72)(32,"p",73),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"h3",74),e.EFF(36),e.k0s()(),e.j41(37,"div",72)(38,"p",73),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"h3",74),e.EFF(42),e.k0s()(),e.j41(43,"div",72)(44,"p",73),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"h3",74),e.EFF(48),e.k0s()(),e.j41(49,"div",72)(50,"p",73),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"h3",74),e.EFF(54),e.nI1(55,"date"),e.k0s()(),e.j41(56,"table",76)(57,"thead",40)(58,"tr")(59,"th",42),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.j41(62,"th",42),e.EFF(63),e.nI1(64,"translate"),e.k0s(),e.j41(65,"th",42),e.EFF(66),e.nI1(67,"translate"),e.k0s()()(),e.j41(68,"tbody"),e.Z7z(69,Ys0,7,3,"tr",77,fE1),e.k0s()(),e.nrm(71,"hr",78),e.j41(72,"div",79)(73,"p",80),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.nrm(76,"hr",81),e.j41(77,"div",82),e.Z7z(78,qs0,2,3,"p",83,e.fX1,!1,Js0,2,1),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showOrderDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,23,"PROFILE._order_details")),e.R7$(6),e.JRh(e.bMT(11,25,"CARD._close")),e.R7$(6),e.SpI(" ",e.bMT(17,27,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",c.orderToShow.id," "),e.R7$(3),e.SpI(" ",e.bMT(23,29,"PRODUCT_INVENTORY._state")," "),e.R7$(2),e.vxM(24,"inProgress"==c.orderToShow.state?24:"partial"==c.orderToShow.state?25:"completed"==c.orderToShow.state?26:"failed"==c.orderToShow.state?27:"pending"==c.orderToShow.state?28:"acknowledged"==c.orderToShow.state?29:"cancelled"==c.orderToShow.state?30:-1),e.R7$(9),e.SpI(" ",e.bMT(34,31,"PRODUCT_INVENTORY._priority")," "),e.R7$(3),e.SpI(" ",c.orderToShow.priority," "),e.R7$(3),e.SpI(" ",e.bMT(40,33,"PROFILE._billing_address")," "),e.R7$(3),e.LHq(" ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.city,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.street1,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.country," (",c.orderToShow.billingAccount.name,") "),e.R7$(3),e.SpI(" ",e.bMT(46,35,"PROFILE._email")," "),e.R7$(3),e.SpI(" ",c.orderToShow.billingAccount.contact[0].contactMedium[0].characteristic.emailAddress," "),e.R7$(3),e.SpI(" ",e.bMT(52,37,"PROFILE._date")," "),e.R7$(3),e.SpI(" ",e.i5U(55,39,null==c.orderToShow?null:c.orderToShow.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.SpI(" ",e.bMT(61,42,"PROFILE._img")," "),e.R7$(3),e.SpI(" ",e.bMT(64,44,"PROFILE._name")," "),e.R7$(3),e.SpI(" ",e.bMT(67,46,"PROFILE._price")," "),e.R7$(3),e.Dyx(c.orderToShow.productOrderItem),e.R7$(5),e.SpI("",e.bMT(75,48,"CART_DRAWER._subtotal"),":"),e.R7$(4),e.Dyx(c.getTotalPrice(c.orderToShow.productOrderItem))}}let Zs0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.orderService=u,this.eventMessage=C,this.paginationService=b,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=g1.c.BUYER_ROLE,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0,this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{class n{constructor(c,t,l,i){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.http=i,this.show_profile=!0,this.show_org_profile=!1,this.show_orders=!1,this.show_billing=!1,this.show_revenue=!1,this.loggedAsUser=!0,this.partyId="",this.token="",this.email="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u=>{"ChangedSession"===u.type&&this.initPartyInfo()})}ngOnInit(){let c=new Date;c.setMonth(c.getMonth()-1),this.initPartyInfo(),setTimeout(()=>{D2()},100)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(this.token=c.token,this.email=c.email,c.logged_as==c.id)this.partyId=c.partyId,this.loggedAsUser=!0,this.show_profile=!0,this.show_org_profile=!1,this.getProfile();else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.loggedAsUser=!1,this.show_profile=!1,this.show_org_profile=!0,this.getOrgProfile()}D2()}getProfile(){this.show_billing=!1,this.show_profile=!0,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!1,this.selectGeneral()}getOrgProfile(){this.show_billing=!1,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!0,this.show_revenue=!1,this.selectGeneral(),setTimeout(()=>{D2()},100)}getBilling(){this.selectBilling(),this.show_billing=!0,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!1,this.cdr.detectChanges(),D2()}getRevenue(){this.selectRevenue(),this.show_billing=!1,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!0,this.cdr.detectChanges(),D2()}getPayment(){(0,e0.s)(this.http.get(`${g1.c.BASE_URL}/paymentInfo`)).then(t=>{window.open(t.providerUrl,"_blank")}).catch(()=>{})}getLear(){window.open(`${g1.c.LEAR_URL}`,"_blank")}goToOrders(){this.selectOrder(),this.show_billing=!1,this.show_profile=!1,this.show_orders=!0,this.show_org_profile=!1,this.show_revenue=!1,this.cdr.detectChanges()}selectGeneral(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectBilling(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectOrder(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&c.className.match(t)&&this.removeClass(c,t)}selectMenu(c,t){null!=c&&(c.className.match(t)||this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-user-profile"]],decls:48,vars:30,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["id","general-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white"],["id","bill-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","revenue-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","payment-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","lear-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","general-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14," Profile "),e.k0s()()(),e.joV(),e.j41(15,"div",9)(16,"ul",10)(17,"li")(18,"a",11),e.bIt("click",function(){return l.getProfile()}),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"li")(22,"a",11),e.bIt("click",function(){return l.getBilling()}),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()(),e.j41(25,"div",12)(26,"div",13)(27,"div",14),e.DNE(28,Ks0,3,3,"button",15)(29,ea0,3,3),e.j41(30,"button",16),e.bIt("click",function(){return l.getBilling()}),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"button",17),e.bIt("click",function(){return l.getRevenue()}),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"button",18),e.bIt("click",function(){return l.getPayment()}),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.j41(39,"button",19),e.bIt("click",function(){return l.getLear()}),e.EFF(40),e.nI1(41,"translate"),e.k0s()()(),e.j41(42,"div"),e.DNE(43,ca0,1,0,"user-info")(44,ta0,1,0,"org-info")(45,na0,1,0,"order-info")(46,la0,1,0,"billing-info")(47,sa0,1,0,"provider-revenue-sharing"),e.k0s()()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,14,"PROFILE._profile")),e.R7$(5),e.JRh(e.bMT(9,16,"PROFILE._profile")),e.R7$(11),e.JRh(e.bMT(20,18,"PROFILE._general")),e.R7$(4),e.JRh(e.bMT(24,20,"PROFILE._bill")),e.R7$(5),e.vxM(28,l.loggedAsUser?28:29),e.R7$(3),e.SpI(" ",e.bMT(32,22,"PROFILE._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(35,24,"PROFILE._revenue")," "),e.R7$(3),e.SpI(" ",e.bMT(38,26,"PROFILE._payment_dashboard")," "),e.R7$(3),e.SpI(" ",e.bMT(41,28,"PROFILE._lear_link")," "),e.R7$(3),e.vxM(43,l.show_profile?43:-1),e.R7$(),e.vxM(44,l.show_org_profile?44:-1),e.R7$(),e.vxM(45,l.show_orders?45:-1),e.R7$(),e.vxM(46,l.show_billing?46:-1),e.R7$(),e.vxM(47,l.show_revenue?47:-1))},dependencies:[iE1,Ql0,as0,Cs0,Zs0,s1.D9]})}}return n})(),canActivate:[T5],data:{roles:[]}},{path:"my-offerings",component:aE1,canActivate:[T5],data:{roles:["seller"]}},{path:"admin",component:NQ2,canActivate:[T5],data:{roles:["admin","certifier"]}},{path:"contact-us",component:_20},{path:"product-orders",component:vt0,canActivate:[T5],data:{roles:[]}},{path:"analytics",loadComponent:()=>y.e(51).then(y.bind(y,6051)).then(n=>n.AnalyticsComponent),canActivate:[T5],data:{roles:[]}},{path:"quote-list",component:e3,canActivate:[T5,Nw1],data:{roles:[]}},{path:"tenders",loadChildren:()=>y.e(949).then(y.bind(y,3949)).then(n=>n.TendersModule),canActivate:[T5,Nw1],data:{roles:[]}},{path:"usage-spec",component:CW2,canActivate:[T5],data:{roles:["seller"]}},{path:"blog",component:z1,data:{contentType:"blog"}},{path:"blog/:slugOrId",component:Rn,data:{contentType:"blog"}},{path:"news",component:z1,data:{contentType:"news"}},{path:"news/:slugOrId",component:Rn,data:{contentType:"news"}},{path:"faq",component:NX2},{path:"blog-entry",component:kw1,canActivate:[T5],data:{roles:["admin"]}},{path:"blog-entry/:id",component:kw1,canActivate:[T5],data:{roles:["admin"]}},{path:"browse",loadComponent:()=>y.e(981).then(y.bind(y,5981)).then(n=>n.BrowseComponent)},{path:"landing-page",children:[{path:"customers",loadComponent:()=>Promise.all([y.e(76),y.e(342)]).then(y.bind(y,5342)).then(n=>n.LandingPageCustomersComponent)},{path:"providers",loadComponent:()=>Promise.all([y.e(76),y.e(826)]).then(y.bind(y,6826)).then(n=>n.LandingPageProvidersComponent)}]},{path:"**",redirectTo:"dashboard",pathMatch:"full"}];let oa0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[E2.iI.forRoot(aa0),E2.iI]})}}return n})(),ra0=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.api=t,this.router=l,this.eventMessage=i,this.notificationService=u}startInterval(c,t){this.intervalObservable=function ia0(n=0,a=t4){return n<0&&(n=0),F4(n,n,a)}(c),this.intervalSubscription=this.intervalObservable.subscribe(()=>{let l=this.localStorage.getObject("login_items");this.api.getLogin(l.token).then(i=>{this.stopInterval(),this.localStorage.setObject("login_items",{id:i.id,user:i.username,email:i.email,token:i.accessToken,expire:i.expire,partyId:l.partyId,roles:i.roles,organizations:l.organizations,logged_as:l.logged_as}),i.expire>$2()().unix()+4?this.startInterval(1e3*(i.expire-$2()().unix()-4),i):this.logout()}).catch(i=>{console.error("Error refreshing token",i),this.logout()})})}stopInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}logout(){this.stopInterval();const c=this.localStorage.getObject("login_items");c&&Object.keys(c).length>0&&(this.localStorage.setObject("login_items",{}),this.eventMessage.emitLogin({}),this.api.logout().catch(t=>{console.error("Error during logout:",t)}),this.router.navigate(["/dashboard"]).then(()=>{this.notificationService.showInfo("Your session has expired. Please log in again.")}))}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(z2.s),e.KVO(kn),e.KVO(E2.Ix),e.KVO(U2),e.KVO(_4.J))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function da0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"button",6),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleState())}),e.EFF(2," \xd7 "),e.k0s(),e.j41(3,"div",7)(4,"div",8),e.nrm(5,"img",9),e.k0s(),e.j41(6,"div",10)(7,"h4",11),e.EFF(8,"DOME support"),e.k0s(),e.j41(9,"p",12),e.EFF(10," Hi. My name is DomeGPT. How can I help you? "),e.k0s()()(),e.nrm(11,"div",13),e.j41(12,"div",14)(13,"input",15),e.bIt("keyup",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onKeyUp(l))}),e.k0s(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSendButton())}),e.EFF(15,"Send"),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.state?"chatbox--active":"")}}let fa0=(()=>{class n{constructor(c,t,l){this.cdr=c,this.el=t,this.localStorage=l}ngOnInit(){this.chatbox=this.el.nativeElement.querySelector(".chatbox__support"),this.state=!1,this.messages=[]}onKeyUp(c){"Enter"===c.key&&this.onSendButton()}toggleState(){this.state=!this.state,this.cdr.detectChanges(),this.chatbox=this.el.nativeElement.querySelector(".chatbox__support"),this.updateChatText()}onSendButton(){const c=this.chatbox.querySelector("input");let t=c.value;if(""===t)return;let l="guest",i=g1.c.BUYER_ROLE;const u=this.localStorage.getObject("login_items");if(u.id){let b=[];i=g1.c.BUYER_ROLE,l=u.username,b=u.logged_as!==u.id?u.organizations.find(W=>W.id==u.logged_as).roles.map(W=>W.name):u.roles.map(T=>T.name),b.includes(g1.c.SELLER_ROLE)&&(i="Provider")}this.messages.push({name:l,message:t,role:i}),this.updateChatText(),c.value="",fetch(g1.c.CHAT_API,{method:"POST",body:JSON.stringify({message:t,role:i}),mode:"cors",headers:{"Content-Type":"application/json"}}).then(b=>b.json()).then(b=>{this.messages.push({name:"DomeGPT",message:b.answer}),this.updateChatText()}).catch(b=>{console.error("Error:",b),this.updateChatText()})}updateChatText(){var c="";this.messages.slice().reverse().forEach(function(l,i){c+="DomeGPT"===l.name?'
    '+l.message+"
    ":'
    '+l.message+"
    "}),this.chatbox.querySelector(".chatbox__messages").innerHTML=c,this.cdr.detectChanges()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-chatbot-widget"]],standalone:!0,features:[e.aNF],decls:6,vars:1,consts:[[1,"container","chatbot-widget","fixed","z-20"],[1,"chatbox"],[1,"chatbox__support","relative",3,"ngClass"],[1,"fixed","bottom-9","md:bottom-[55px]","left-5","z-[999]",3,"click"],[1,"w-[60px]","h-[60px]","bg-[var(--secondary-dark-blue)]","border-none","rounded-full","shadow-[0_2px_10px_rgba(0,0,0,0.3)]","cursor-pointer","transition-transform","duration-300","flex","items-center","justify-center","hover:scale-105","p-0"],["src","assets/chatbot/images/chatbox-icon.svg","alt","Chat",1,"w-[30px]","h-[30px]","filter","brightness-0","invert"],[1,"absolute","-top-3","-right-3","w-8","h-8","z-40","bg-secondary-100","text-white","hover:bg-primary-50","rounded-full","flex","items-center","justify-center","shadow-md","transition",3,"click"],[1,"chatbox__header"],[1,"chatbox__image--header"],["src","assets/chatbot/images/dome_logo_white.svg","alt","image"],[1,"chatbox__content--header"],[1,"chatbox__heading--header"],[1,"chatbox__description--header"],[1,"chatbox__messages"],[1,"chatbox__footer"],["type","text","placeholder","Write a message...",3,"keyup"],[1,"chatbox__send--footer",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,da0,16,1,"div",2),e.j41(3,"div",3),e.bIt("click",function(){return l.toggleState()}),e.j41(4,"button",4),e.nrm(5,"img",5),e.k0s()()()()),2&t&&(e.R7$(2),e.vxM(2,l.state?2:-1))},dependencies:[_.YU],styles:['@import"https://fonts.googleapis.com/css2?family=Blinker:wght@300;400;600;700&display=swap";.chatbot-widget,.chatbot-widget *{box-sizing:border-box;margin:0;padding:0;font-family:Blinker,sans-serif}.chatbot-widget{font-weight:400;font-size:100%;background:#f1f1f1}.chatbot-widget *{--primaryGradient: linear-gradient(93.12deg, #581B98 .52%, #9C1DE7 100%);--secondaryGradient: linear-gradient(268.91deg, #581B98 -2.14%, #9C1DE7 99.69%);--primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, .1);--secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, .1);--primary: #581B98;--primary-dark-blue: #2D58A7;--secondary-dark-blue: #1D3C78;--secondary-light-blue: #DDE6F6;--type-white: #FFFFFF}.chatbox{position:fixed;bottom:2%;left:2%}.chatbox__support{position:fixed;bottom:120px;left:20px;width:80vw;max-width:400px;height:70vh;max-height:600px;z-index:-123456;opacity:0;transition:all .5s ease-in-out;border-radius:9px;display:flex;flex-direction:column;background:var(--secondary-light-blue)}.chatbox--active{transform:translateY(0);z-index:123456;opacity:1}.chatbox__button{position:fixed;bottom:55px;left:20px;z-index:999}.chatbox__button button{width:60px;height:60px;background:var(--secondary-dark-blue);border:none;border-radius:50%;box-shadow:0 2px 10px #0000004d;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;padding:0}.chatbox__button button:hover{transform:scale(1.05)}.chatbox__button img{width:30px;height:30px;filter:brightness(0) invert(1)}.chatbox__header{position:sticky;top:0;background:var(--primary-dark-blue);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:15px 20px;border-radius:9px 9px 0 0;box-shadow:var(--primaryBoxShadow);position:relative}.chatbox__image--header{margin-right:15px;margin-left:-5px;width:60px;height:60px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background-color:var(--primary-dark-blue);box-shadow:none}.chatbox__image--header img{width:70%;height:70%;object-fit:contain;padding:0}.chatbox__heading--header{font-size:1.4rem;color:#fff;font-family:Blinker,sans-serif;font-weight:600}.chatbox__description--header{font-size:1rem;color:#fff;font-family:Blinker,sans-serif;font-weight:300}.chatbox__messages{padding:0 20px;margin-top:auto;display:flex;overflow-y:scroll;flex-direction:column-reverse}.messages__item{margin-top:10px;padding:10px 14px;max-width:85%;border-radius:20px;background:#e0e0e0;font-family:Blinker,sans-serif;font-size:1.05rem}.messages__item--operator{margin-right:auto;background:var(--type-white);color:#333;position:relative;border-radius:20px 20px 20px 5px;border:1px solid #ccc}.messages__item--visitor{margin-left:auto;background:#edf2fa;position:relative;border-radius:20px 20px 5px;border:1px solid #ccc}.chatbox__messages{padding:20px}.chatbox__footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px;background:var(--secondary-light-blue);box-shadow:none;border-radius:0 0 9px 9px}.chatbox__footer input{width:100%;border:none;padding:14px 15px;border-radius:9px 0 0 9px;text-align:left;font-size:1.05rem;background:#fff;height:48px}.chatbox__send--footer{background:var(--primary-dark-blue);color:#fff;font-size:1.05rem;border:none;height:48px;padding:0 20px;margin-left:-1px;border-radius:0 9px 9px 0;cursor:pointer;display:flex;align-items:center;justify-content:center}@media (max-width: 600px){.chatbox__support{width:100vw;height:50vh;bottom:0;left:0;border-radius:20px}}\n'],encapsulation:2})}}return n})();function ua0(n,a){1&n&&e.nrm(0,"app-chatbot-widget",3)}function ma0(n,a){1&n&&(e.j41(0,"noscript"),e.nrm(1,"img",4),e.k0s())}let pa0=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.translate=c,this.localStorage=t,this.eventMessage=l,this.route=i,this.router=u,this.api=C,this.themeService=b,this.refreshApi=T,this.title="BAE Marketplace",this.showPanel=!1,this.providerThemeName=g1.c.providerThemeName,this.isProduction=g1.c.isProduction,this.showHeaderAndFooter=!1,this.translate.addLangs(["en","es"]),this.translate.setDefaultLang("es");let W=this.localStorage.getItem("current_language");W&&null!=W?this.translate.use(W):(this.localStorage.setItem("current_language",""),this.translate.use("es")),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[])}ngOnInit(){this.themeService.initializeProviderTheme(g1.c.providerThemeName),D2(),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[]),this.localStorage.getObject("cart_items")||this.localStorage.setObject("cart_items",[]),this.localStorage.getObject("login_items")||this.localStorage.setObject("login_items",{}),this.localStorage.getObject("feedback")||this.localStorage.setObject("feedback",{}),this.eventMessage.messages$.subscribe(l=>{"LoginProcess"===l.type&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(l.value.expire-$2()().unix()-4),l),D2())});let t=this.localStorage.getObject("login_items");"{}"===JSON.stringify(t)||t.expire-$2()().unix()-4>0&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(t.expire-$2()().unix()-4),t),D2()),this.router.events.pipe((0,U6.p)(l=>l instanceof E2.wF)).subscribe(()=>{window.scrollTo({top:0,behavior:"smooth"})})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(s1.c$),e.rXU(z2.s),e.rXU(U2),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(cF),e.rXU(ra0))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-root"]],decls:8,vars:2,consts:[[1,"app-content"],[1,"bg-no-repeat","bg-right"],[1,"w-full","z-30","bottom-0","start-0"],[1,"relative","z-50"],["height","1","width","1","alt","","src","https://px.ads.linkedin.com/collect/?pid=8700705&fmt=gif",2,"display","none"]],template:function(t,l){1&t&&(e.nrm(0,"bae-header")(1,"app-notification"),e.j41(2,"div",0)(3,"main",1),e.nrm(4,"router-outlet"),e.k0s(),e.nrm(5,"bae-footer",2),e.k0s(),e.DNE(6,ua0,1,0,"app-chatbot-widget",3)(7,ma0,2,0,"noscript")),2&t&&(e.R7$(6),e.vxM(6,"DOME"===l.providerThemeName?6:-1),e.R7$(),e.vxM(7,l.isProduction?7:-1))},dependencies:[vw1,Gk1,E2.n3,fa0,Y4.z],styles:[".app-content[_ngcontent-%COMP%]{min-height:calc(100vh - 88px);min-height:calc(100dvh - 88px);display:flex;flex-direction:column}.app-content[_ngcontent-%COMP%] > main[_ngcontent-%COMP%]{flex:1 0 auto}"]})}}return n})();class lf{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_ORDERING=g1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a){this.localStorage=a}intercept(a,c){let t=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0){if(!this.shouldAttachAuthHeaders(a.url))return c.handle(a);if(t.logged_as!=t.id){let l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Organization":t.logged_as}});return a.url.startsWith(`${lf.BASE_URL}${lf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Organization":t.logged_as,"X-Terms-Accepted":"true"}})),c.handle(l)}{let l=a.clone({setHeaders:{Authorization:"Bearer "+t.token}});return a.url.startsWith(`${lf.BASE_URL}${lf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Terms-Accepted":"true"}})),c.handle(l)}}return console.log("not logged"),c.handle(a)}shouldAttachAuthHeaders(a){return function ha0(n,a){return!uE1(n)||a.filter(uE1).some(c=>function ga0(n,a){try{const c=new URL(n),t=new URL(a),l=t.pathname.replace(/\/$/,"");return c.origin===t.origin&&(""===l||c.pathname===l||c.pathname.startsWith(`${l}/`))}catch{return!1}}(n,c))}(a,[g1.c.BASE_URL,this.quoteApiBaseUrl()])}quoteApiBaseUrl(){const a=g1.c.quoteApi;return a.startsWith("http://")||a.startsWith("https://")?a:`${g1.c.BASE_URL}${a}`}static{this.\u0275fac=function(c){return new(c||lf)(e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:lf,factory:lf.\u0275fac})}}function uE1(n){return/^https?:\/\//i.test(n)}const _a0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),La0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),mE1=(n,a)=>({"break-all":n,"break-words":a});function Ca0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function za0(n,a){if(1&n&&(e.j41(0,"form",18)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",34),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_CATALOG._description"))}}function Ma0(n,a){1&n&&(e.j41(0,"div",36),e.qSk(),e.j41(1,"svg",37),e.nrm(2,"path",38)(3,"path",39),e.k0s(),e.joV(),e.j41(4,"span",40),e.EFF(5,"Loading..."),e.k0s()())}function xa0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function ba0(n,a){if(1&n&&(e.j41(0,"span",46),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function ya0(n,a){if(1&n&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Fa0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function va0(n,a){if(1&n&&(e.j41(0,"label",41),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",49),e.nrm(4,"markdown",50),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_CATALOG._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,mE1,c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.description,20),!c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.description,20)))("data",null==c.catalogToCreate?null:c.catalogToCreate.description)}}function ka0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",41),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",42),e.EFF(5),e.k0s()(),e.j41(6,"div",43)(7,"label",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,xa0,2,1,"span",45)(11,ba0,2,1)(12,ya0,2,1)(13,Fa0,2,1),e.k0s(),e.DNE(14,va0,5,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(10,mE1,c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.name,20),!c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.catalogToCreate?null:c.catalogToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,8,"CREATE_CATALOG._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?10:"Launched"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?11:"Retired"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.catalogToCreate?null:c.catalogToCreate.description)?14:-1)}}function wa0(n,a){if(1&n&&(e.j41(0,"div",35),e.DNE(1,Ma0,6,0,"div",36)(2,ka0,15,13),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Sa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createCatalog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_CATALOG._create")," ")}}function Na0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Ea0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.finishDone=!1,this.loading=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerCatalog(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}showFinish(){this.finishDone=!0,this.setCatalogData(),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.showPreview=!1}setCatalogData(){null!=this.generalForm.value.name&&(this.catalogToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("CATALOG TO CREATE:"),console.log(this.catalogToCreate))}createCatalog(){this.setCatalogData(),this.loading=!0,this.api.postCatalog(this.catalogToCreate).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the catalog!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),1==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:43,vars:29,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","ml-4","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","catalogNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","catalogFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","catalogName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","catalogDsc","formControlName","description"],[1,"m-8"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],["data-cy","catalogFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Ca0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"h3",16),e.EFF(25),e.k0s(),e.j41(26,"div",17)(27,"div"),e.DNE(28,za0,9,8,"form",18)(29,wa0,3,1),e.j41(30,"div",19)(31,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(32,"svg",21),e.nrm(33,"path",22),e.k0s(),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.joV(),e.j41(36,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(37),e.nI1(38,"translate"),e.qSk(),e.j41(39,"svg",24),e.nrm(40,"path",25),e.k0s()(),e.DNE(41,Sa0,3,5,"button",26),e.k0s()()()()(),e.DNE(42,Na0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,13,"CREATE_CATALOG._back")," "),e.R7$(7),e.JRh(e.bMT(16,15,"CREATE_CATALOG._create")),e.R7$(4),e.JRh(e.bMT(20,17,"CREATE_CATALOG._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(3),e.JRh(l.steps[l.currentStep]),e.R7$(3),e.vxM(28,0===l.currentStep?28:1===l.currentStep?29:-1),e.R7$(3),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(23,_a0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(35,19,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(26,La0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(38,21,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(41,1===l.currentStep?41:-1),e.R7$(),e.vxM(42,l.showError?42:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const Da0=(n,a)=>a.id,Ta0=(n,a)=>({"break-all":n,"break-words":a});function Ra0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Aa0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ia0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pa0(n,a){if(1&n&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ja0(n,a){if(1&n&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $a0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43),e.EFF(2),e.k0s(),e.j41(3,"td",44),e.DNE(4,Aa0,2,1,"span",45)(5,Ia0,2,1)(6,Pa0,2,1)(7,ja0,2,1),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.k0s(),e.j41(10,"td",47)(11,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(12,"svg",49),e.nrm(13,"path",50),e.k0s()()()()}if(2&n){let c;const t=a.$implicit,l=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Ta0,l.hasLongWord(t.name,20),!l.hasLongWord(t.name,20))),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.vxM(4,"Active"==t.lifecycleStatus?4:"Launched"==t.lifecycleStatus?5:"Retired"==t.lifecycleStatus?6:"Obsolete"==t.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",null==t.relatedParty||null==(c=t.relatedParty.at(0))?null:c.role," ")}}function Oa0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",54),e.qSk(),e.j41(2,"svg",55),e.nrm(3,"path",56),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function Ba0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",57)(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",59),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Va0(n,a){if(1&n&&e.DNE(0,Ba0,6,3,"div",57),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ua0(n,a){1&n&&(e.j41(0,"div",60),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Ga0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",40),e.Z7z(18,$a0,14,7,"tr",41,Da0,!1,Oa0,7,3,"div",42),e.k0s()()(),e.DNE(21,Va0,1,1)(22,Ua0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._role")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.catalogs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let Ha0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.paginationService=C,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.destroy$=new S.B,this.searchInputListener=b=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}goToCreate(){this.eventMessage.emitSellerCreateCatalog(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateCatalog(c)}initCatalogs(){this.loading=!0,this.catalogs=[],this.nextCatalogs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCatalogs(!1),D2()}ngAfterViewInit(){D2()}getCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.filter,filters:t.status,partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogsByUser.bind(t.api));t.page_check=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getCatalogs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.loading=!0,this.page=0,this.catalogs=[],this.nextCatalogs=[],this.getCatalogs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-catalogs"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","newCatalog","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","mt-8","p-4","rounded-lg","shadow-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","dark:text-gray-100","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","catalogTable"],["data-cy","catalogRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["data-cy","catalogName",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],["data-cy","catalogStatus",1,"px-6","py-4"],[1,"bg-gray-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"px-6","py-4"],["data-cy","catalogEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-gray-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-gray-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-gray-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,Ra0,6,0,"div",29)(52,Ga0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._catalogs")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_catalog")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,s1.D9]})}}return n})();const Ya0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),qa0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),pE1=(n,a)=>({"break-all":n,"break-words":a});function Xa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function Wa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._active")," "))}function Ja0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._active")," "))}function Qa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._launched")," "))}function Za0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._launched")," "))}function Ka0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._retired")," "))}function eo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._retired")," "))}function co0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._obsolete")," "))}function to0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._obsolete")," "))}function no0(n,a){if(1&n&&(e.j41(0,"form",18)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,Wa0,6,3,"li",36)(11,Ja0,4,3)(12,Qa0,6,3,"li",37)(13,Za0,4,3)(14,Ka0,6,3,"li",38)(15,eo0,4,3)(16,co0,6,3,"li",39)(17,to0,4,3),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_CATALOG._status")),e.R7$(4),e.vxM(10,"Active"==t.catStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.catStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.catStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.catStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_CATALOG._description"))}}function lo0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",55),e.nrm(2,"path",56)(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function so0(n,a){if(1&n&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ao0(n,a){if(1&n&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function oo0(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function io0(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ro0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",66),e.nrm(4,"markdown",67),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_CATALOG._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,pE1,c.hasLongWord(null==c.catalogToUpdate?null:c.catalogToUpdate.description,20),!c.hasLongWord(null==c.catalogToUpdate?null:c.catalogToUpdate.description,20)))("data",null==c.catalogToUpdate?null:c.catalogToUpdate.description)}}function do0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",59),e.EFF(5),e.k0s()(),e.j41(6,"div",60)(7,"label",61),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,so0,2,1,"span",62)(11,ao0,2,1)(12,oo0,2,1)(13,io0,2,1),e.k0s(),e.DNE(14,ro0,5,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(10,pE1,c.hasLongWord(c.generalForm.value.name,20),!c.hasLongWord(c.generalForm.value.name,20))),e.R7$(),e.SpI(" ",c.generalForm.value.name," "),e.R7$(3),e.JRh(e.bMT(9,8,"UPDATE_CATALOG._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?10:"Launched"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?11:"Retired"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.catalogToUpdate?null:c.catalogToUpdate.description)?14:-1)}}function fo0(n,a){if(1&n&&(e.j41(0,"div",53),e.DNE(1,lo0,6,0,"div",54)(2,do0,15,13),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function uo0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let mo0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.catStatus="Active",this.errorMessage="",this.showError=!1,this.loading=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),this.populateCatInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}populateCatInfo(){this.generalForm.controls.name.setValue(this.cat.name),this.generalForm.controls.description.setValue(this.cat.description),this.catStatus=this.cat.lifecycleStatus}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerCatalog(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}setCatStatus(c){this.catStatus=c,this.cdr.detectChanges()}showFinish(){this.setCatalogData(),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.showPreview=!1}setCatalogData(){null!=this.generalForm.value.name&&(this.catalogToUpdate={description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.catStatus},this.cat.name!=this.generalForm.value.name&&(this.catalogToUpdate.name=this.generalForm.value.name))}createCatalog(){this.showFinish(),this.loading=!0,this.api.updateCatalog(this.catalogToUpdate,this.cat.id).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the catalog!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),1==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{cat:"cat"},decls:45,vars:33,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","ml-4","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","catalogNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","catalogUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","w-full"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","catalogStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"m-8"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Xa0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"h3",16),e.EFF(25),e.k0s(),e.j41(26,"div",17)(27,"div"),e.DNE(28,no0,22,15,"form",18)(29,fo0,3,1),e.k0s(),e.j41(30,"div",19)(31,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(32,"svg",21),e.nrm(33,"path",22),e.k0s(),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.joV(),e.j41(36,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(37),e.nI1(38,"translate"),e.qSk(),e.j41(39,"svg",24),e.nrm(40,"path",25),e.k0s()(),e.joV(),e.j41(41,"button",26),e.bIt("click",function(){return l.createCatalog()}),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()()(),e.DNE(44,uo0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,15,"UPDATE_CATALOG._back")," "),e.R7$(7),e.JRh(e.bMT(16,17,"UPDATE_CATALOG._update")),e.R7$(4),e.JRh(e.bMT(20,19,"UPDATE_CATALOG._update")),e.R7$(3),e.Dyx(l.steps),e.R7$(3),e.JRh(l.steps[l.currentStep]),e.R7$(3),e.vxM(28,0===l.currentStep?28:1===l.currentStep?29:-1),e.R7$(3),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(27,Ya0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(35,21,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(30,qa0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(38,23,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(43,25,"UPDATE_CATALOG._update")," "),e.R7$(2),e.vxM(44,l.showError?44:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();var sD=y(4261);class K3{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_PRODUCT_CATALOG=g1.c.PRODUCT_CATALOG}static{this.API_PRODUCT_SPEC=g1.c.PRODUCT_SPEC}static{this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getProdSpecByUser(a,c,t,l,i){let u=`${K3.BASE_URL}${K3.API_PRODUCT_CATALOG}${K3.API_PRODUCT_SPEC}?limit=${K3.PROD_SPEC_LIMIT}&offset=${a}&relatedParty.id=${t}`;null!=l&&(u=u+"&sort="+l),null!=i&&(u=u+"&isBundle="+i);let C="";if(c&&c.length>0){for(let b=0;b0){for(let C=0;C0){for(let C=0;C{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.elementRef=b,this.attachmentService=T,this.servSpecService=W,this.resSpecService=u1,this.paginationService=a1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.showGeneral=!0,this.showBundle=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.generalDone=!1,this.bundleDone=!1,this.prodSpecDone=!1,this.catalogsDone=!1,this.categoriesDone=!1,this.licenseDone=!1,this.slaDone=!1,this.priceDone=!1,this.procurementDone=!1,this.finishDone=!1,this.replicationDone=!1,this.stepsElements=["general-info","bundle","prodspec","catalog","category","license","sla","price","procurement","replication","summary"],this.stepsCircles=["general-circle","bundle-circle","prodspec-circle","catalog-circle","category-circle","license-circle","sla-circle","price-circle","procurement-circle","replication-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$")]),description:new p.MJ("")}),this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.bundledOffers=[],this.nextBundledOffers=[],this.offersBundle=[],this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.selectedProdSpec={id:""},this.prodSpecs=[],this.nextProdSpecs=[],this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.freeLicenseSelected=!0,this.licenseForm=new p.gE({treatment:new p.MJ("",[p.k0.required]),description:new p.MJ("")}),this.licenseDescription="",this.createdLicense={treatment:"",description:""},this.createdSLAs=[],this.availableSLAs=["UPDATES RATE","RESPONSE TIME","DELAY"],this.showCreateSLA=!1,this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA={type:"UPDATES RATE",description:"Expected number of updates in the given period.",threshold:"",unitMeasure:"day"},this.currencies=sD.currencies,this.createdPrices=[],this.postedPrices=[],this.priceDescription="",this.priceComponentDescription="",this.showCreatePrice=!1,this.toggleOpenPrice=!1,this.oneTimeSelected=!0,this.recurringSelected=!1,this.selectedPeriod="DAILY",this.selectedPeriodAlter="DAILY",this.usageSelected=!1,this.customSelected=!1,this.validPriceCheck=!0,this.selectedPriceUnit=sD.currencies[2].code,this.priceTypeAlter="ONE TIME",this.priceComponentSelected=!1,this.discountSelected=!1,this.noAlterSelected=!0,this.allowCustom=!0,this.allowOthers=!0,this.selectedPriceType="CUSTOM",this.editPrice=!1,this.showPriceComponents=!1,this.selectedCharacteristic=void 0,this.touchedCharCheck=!1,this.showValueSelect=!1,this.isDiscount=!1,this.createdPriceComponents=[],this.createdPriceAlterations=[],this.createdPriceComponentsRelatedToPlan=[],this.createdPriceAlterationsRelatedToPlan=[],this.hideStringCharOption=!0,this.showProfile=!1,this.editProfile=!1,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.showReplication=!1,this.selectedCountries=[],this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T1=>{if("CategoryAdded"===T1.type&&this.addCategory(T1.value),"ChangedSession"===T1.type&&this.initPartyInfo(),"SavePricePlan"===T1.type&&(this.createdPrices.push(T1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===T1.type){let Y1=T1.value;-1!=this.createdPrices.findIndex(M2=>M2.id===Y1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((M2,G2)=>G2==G2?Y1:M2)),this.editPrice&&(this.editPrice=!1)}})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showPriceComponents&&(this.showPriceComponents=!1,this.cdr.detectChanges()),1==this.showProfile&&(this.showProfile=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerOffer(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundleCheck(){this.bundledOffers=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getSellerOffers(!1)):this.offersBundle=[]}toggleProdSpec(){this.prodSpecs=[],this.prodSpecPage=0,this.loadingProdSpec=!0,this.getSellerProdSpecs(!1),this.selectStep("prodspec","prodspec-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!0,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCatalogs(){this.catalogs=[],this.catalogPage=0,this.loadingCatalog=!0,this.getSellerCatalogs(!1),this.selectStep("catalog","catalog-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!0,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCategories(){this.categories=[],this.loadingCategory=!0,this.getCategories(),console.log("CATEGORIES FORMATTED"),console.log(this.categories),this.selectStep("category","category-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!0,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleLicense(){this.selectStep("license","license-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!0,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleSLA(){this.saveLicense(),this.selectStep("sla","sla-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!0,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}togglePrice(){this.saveLicense(),this.selectStep("price","price-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!0,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1,D2()}toggleProcurement(){this.selectStep("procurement","procurement-circle"),this.priceDone=!0,this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!0,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1,D2()}toggleReplication(){this.procurementDone=!0,this.selectStep("replication","replication-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!0,this.editPrice=!1,this.showCreatePrice=!1,D2()}saveLicense(){this.createdLicense=this.licenseForm.value.treatment?{treatment:this.licenseForm.value.treatment,description:this.licenseForm.value.description?this.licenseForm.value.description:""}:{treatment:"",description:""},this.showPreview=!1}clearLicense(){this.freeLicenseSelected=!this.freeLicenseSelected,this.licenseForm.controls.treatment.setValue(""),this.licenseForm.controls.description.setValue(""),this.createdLicense={treatment:"",description:""},console.log(this.createdLicense.treatment)}removePrice(c){const t=this.createdPrices.findIndex(l=>l.id===c.id);-1!==t&&this.createdPrices.splice(t,1)}showNewPrice(){this.priceToUpdate=void 0,this.showCreatePrice=!this.showCreatePrice,this.editPrice=!1}showEditPrice(c){this.editPrice=!this.editPrice,this.priceToUpdate=c,this.showCreatePrice=!1}onSLAMetricChange(c){this.creatingSLA.unitMeasure=c.target.value}onSLAChange(c){"UPDATES RATE"==c.target.value?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==c.target.value?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==c.target.value&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms")}showCreateSLAMetric(){"UPDATES RATE"==this.availableSLAs[0]?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==this.availableSLAs[0]?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==this.availableSLAs[0]&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms"),this.showCreateSLA=!0}addSLA(){const c=this.availableSLAs.findIndex(t=>t===this.creatingSLA.type);1==this.updatesSelected?(this.creatingSLA.threshold=this.updatemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.updatesSelected=!1):1==this.responseSelected?(this.creatingSLA.threshold=this.responsemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.responseSelected=!1):(this.creatingSLA.threshold=this.delaymetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.delaySelected=!1),this.showCreateSLA=!1}removeSLA(c){const t=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==t&&this.createdSLAs.splice(t,1),this.availableSLAs.push(c.type)}checkThreshold(){return 1==this.updatesSelected?""==this.updatemetric.nativeElement.value:1==this.responseSelected?""==this.responsemetric.nativeElement.value:""==this.delaymetric.nativeElement.value}getCategories(){console.log("Getting categories..."),this.api.getLaunchedCategories().then(c=>{for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;i{if(t=l,c.children=t,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=t.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}addParent(c){const t=this.unformattedCategories.findIndex(l=>l.id===c);-1!=t&&(0==this.unformattedCategories[t].isRoot?this.addCategory(this.unformattedCategories[t]):this.selectedCategories.push(this.unformattedCategories[t]))}addCategory(c){const t=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==t?(console.log("eliminar"),this.selectedCategories.splice(t,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(i=>i.id===c.parentId);-1==t&&-1==l&&this.addParent(c.parentId)}console.log(this.selectedCategories),this.cdr.detectChanges(),console.log(this.selectedCategories)}isCategorySelected(c){return-1!==this.selectedCategories.findIndex(l=>l.id===c.id)}selectCatalog(c){this.selectedCatalog=c,this.selectedCategories=[]}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0),t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:t.partyId},t.api.getCatalogsByUser.bind(t.api)).then(i=>{t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page,t.loadingCatalog=!1,t.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingProdSpec=!0),t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page,t.loadingProdSpec=!1,t.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PRODUCT_LIMIT,c,t.bundledOffers,t.nextBundledOffers,{filters:["Active","Launched"],partyId:t.partyId,sort:void 0,isBundle:!1},t.api.getProductOfferByOwner.bind(t.api)).then(i=>{t.bundlePageCheck=i.page_check,t.bundledOffers=i.items,t.nextBundledOffers=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const t=this.offersBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.offersBundle.splice(t,1)):(console.log("a\xf1adir"),this.offersBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.offersBundle)}isProdInBundle(c){return-1!==this.offersBundle.findIndex(l=>l.id===c.id)}showFinish(){this.priceDone=!0,this.finishDone=!0,this.saveLicense(),this.generalForm.value.name&&this.generalForm.value.version&&(this.offerToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",version:this.generalForm.value.version,lifecycleStatus:"Active"}),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showSummary=!0,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}changeProcurement(c){this.procurementMode=c.target.value}createOffer(){var c=this;return(0,C1.A)(function*(){if(c.postedPrices=[],c.createdPrices.length>0)for(let t=0;t{c.showError=!1},3e3)}}try{let W=yield(0,e0.s)(c.api.postOfferingPrice(b));i.push({id:W.id,href:W.id,name:W.name}),console.log("componente"),console.log(W)}catch(W){console.error("There was an error while creating offers price!",W),W.error.error?(console.log(W),c.errorMessage="Error: "+W.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let u={name:c.createdPrices[t].name,isBundle:!0,description:c.createdPrices[t].description,lifecycleStatus:c.createdPrices[t].lifecycleStatus,bundledPopRelationship:i};c.createdPrices[t].prodSpecCharValueUse&&(u.prodSpecCharValueUse=c.createdPrices[t].prodSpecCharValueUse),c.createdPrices[t].unitOfMeasure&&(u.unitOfMeasure=c.createdPrices[t].unitOfMeasure);try{let C=yield(0,e0.s)(c.api.postOfferingPrice(u));console.log("precio"),console.log(C),c.createdPrices[t].id=C.id,t==c.createdPrices.length-1&&c.saveOfferInfo()}catch(C){console.error("There was an error while creating offers price!",C),C.error.error?(console.log(C),c.errorMessage="Error: "+C.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}else{let l={name:c.createdPrices[t].name,isBundle:!1,description:c.createdPrices[t].description,lifecycleStatus:c.createdPrices[t].lifecycleStatus,priceType:c.createdPrices[t].priceType};"custom"!=c.createdPrices[t].priceType&&(l.price={unit:c.createdPrices[t]?.price?.unit,value:c.createdPrices[t]?.price?.value}),"recurring"==c.createdPrices[t].priceType&&(l.recurringChargePeriodType=c.createdPrices[t].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[t].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[t].priceType&&(l.recurringChargePeriodType=c.createdPrices[t].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[t].recurringChargePeriodLength),"usage"==c.createdPrices[t].priceType&&(l.unitOfMeasure=c.createdPrices[t].unitOfMeasure),c.createdPrices[t].prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.createdPrices[t].prodSpecCharValueUse),c.createdPrices[t].unitOfMeasure&&(l.unitOfMeasure=c.createdPrices[t].unitOfMeasure);try{let i=yield(0,e0.s)(c.api.postOfferingPrice(l));console.log("precio"),console.log(i),c.createdPrices[t].id=i.id,t==c.createdPrices.length-1&&c.saveOfferInfo()}catch(i){console.error("There was an error while creating offers price!",i),i.error.error?(console.log(i),c.errorMessage="Error: "+i.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else c.createdPrices=[],c.saveOfferInfo();console.log(c.offerToCreate)})()}saveOfferInfo(){let c=[],t=[];for(let l=0;l{console.log("product offer created:"),console.log(l),this.goBack()},error:l=>{console.error("There was an error while creating the offer!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while creating the offer!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n> blockquote"})}addLink(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+" [title](https://www.example.com) "})}addTable(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showGeneral?(this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+c.emoji.native})}togglePreview(){this.showGeneral?this.description=this.generalForm.value.description?this.generalForm.value.description:"":this.showLicense&&(this.licenseDescription=this.licenseForm.value.description?this.licenseForm.value.description:"")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-offer"]],viewQuery:function(t,l){if(1&t&&(e.GBs(po0,5),e.GBs(ho0,5),e.GBs(go0,5),e.GBs(_o0,5),e.GBs(Lo0,5),e.GBs(Co0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.updatemetric=i.first),e.mGM(i=e.lsd())&&(l.responsemetric=i.first),e.mGM(i=e.lsd())&&(l.delaymetric=i.first),e.mGM(i=e.lsd())&&(l.usageUnit=i.first),e.mGM(i=e.lsd())&&(l.usageUnitAlter=i.first),e.mGM(i=e.lsd())&&(l.usageUnitUpdate=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:19,vars:9,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"app-offer-form",12),e.DNE(18,zo0,1,1,"error-message",13),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._back")," "),e.R7$(7),e.JRh(e.bMT(16,7,"CREATE_OFFER._create")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","create"),e.R7$(),e.vxM(18,l.showError?18:-1))}})}}return n})();const Mo0=(n,a)=>a.id,xo0=(n,a)=>({"break-all":n,"break-words":a});function bo0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function yo0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Fo0(n,a){if(1&n&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function vo0(n,a){if(1&n&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ko0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function wo0(n,a){1&n&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function So0(n,a){1&n&&(e.j41(0,"span",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function No0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.goToCreateCustom(l))}),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",55),e.k0s()()}}function Eo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43),e.EFF(2),e.k0s(),e.j41(3,"td",44),e.DNE(4,yo0,2,1,"span",45)(5,Fo0,2,1)(6,vo0,2,1)(7,ko0,2,1),e.k0s(),e.j41(8,"td",46),e.DNE(9,wo0,3,3,"span",45)(10,So0,3,3),e.k0s(),e.j41(11,"td",46),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",47)(15,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",49),e.nrm(17,"path",50),e.k0s()(),e.DNE(18,No0,3,0,"button",51),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(9,xo0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(18,t.customMap[c.id]?18:-1)}}function Do0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_offerings")," "))}function To0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",61),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Ro0(n,a){if(1&n&&e.DNE(0,To0,6,3,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ao0(n,a){1&n&&(e.j41(0,"div",62),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Io0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",39),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",38),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody",40),e.Z7z(21,Eo0,19,12,"tr",41,Mo0,!1,Do0,7,3,"div",42),e.k0s()()(),e.DNE(24,Ro0,1,1)(25,Ao0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"OFFERINGS._type")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.offers),e.R7$(3),e.vxM(24,c.loading_more?25:24)}}let Po0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.paginationService=C,this.priceService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faSparkles=A2.p7g,this.searchField=new p.MJ,this.offers=[],this.nextOffers=[],this.page=0,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.isBundle=void 0,this.customMap={},this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getOffers(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initOffers()})}ngOnInit(){this.initOffers();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initOffers(){this.loading=!0;let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.offers=[],this.nextOffers=[],this.getOffers(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateOffer(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateOffer(c)}goToCreateCustom(c){this.eventMessage.emitSellerCreateCustomOffer(c)}getOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={filters:t.status,partyId:t.partyId,sort:t.sort,isBundle:t.isBundle};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.PROD_SPEC_LIMIT,c,t.offers,t.nextOffers,l,t.api.getProductOfferByOwner.bind(t.api));t.page_check=i.page_check,t.offers=i.items,t.nextOffers=i.nextItems,t.page=i.page,t.customMap={};for(const u of t.offers)t.customMap[u.id]=yield t.priceService.isCustomOffering(u)}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getOffers(!0)})()}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getOffers(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getOffers(!1)}onTypeChange(c){this.isBundle="simple"!=c.target.value&&("bundle"==c.target.value||void 0),this.getOffers(!1)}filterInventoryByKeywords(){}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6),e.rXU(X8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-offer"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","newOffering","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","offers"],["data-cy","offerRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["data-cy","offerTitle",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],["data-cy","offerStatus",1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],["data-cy","offerEdit",1,"px-6","py-4"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 7.757v8.486M7.757 12h8.486M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,bo0,6,0,"div",29)(52,Io0,26,17),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._prod_offer")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_offer")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const jo0=["updatemetric"],$o0=["responsemetric"],Oo0=["delaymetric"],Bo0=["usageUnit"],Vo0=["usageUnitUpdate"],Uo0=["usageUnitAlter"];function Go0(n,a){if(1&n&&e.nrm(0,"error-message",14),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let gE1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.elementRef=b,this.attachmentService=T,this.servSpecService=W,this.resSpecService=u1,this.paginationService=a1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.showGeneral=!0,this.showBundle=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.stepsElements=["general-info","bundle","prodspec","catalog","category","license","sla","price","procurement","replication","summary"],this.stepsCircles=["general-circle","bundle-circle","prodspec-circle","catalog-circle","category-circle","license-circle","sla-circle","price-circle","procurement-circle","replication-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$")]),description:new p.MJ("")}),this.offerStatus="Active",this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.offersBundle=[],this.bundledOffers=[],this.nextBundledOffers=[],this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.selectedProdSpec={id:""},this.prodSpecs=[],this.nextProdSpecs=[],this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.freeLicenseSelected=!0,this.licenseDescription="",this.licenseForm=new p.gE({treatment:new p.MJ("",[p.k0.required]),description:new p.MJ("")}),this.createdLicense={treatment:"",description:""},this.createdSLAs=[],this.availableSLAs=["UPDATES RATE","RESPONSE TIME","DELAY"],this.showCreateSLA=!1,this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA={type:"UPDATES RATE",description:"Expected number of updates in the given period.",threshold:"",unitMeasure:"day"},this.editPrice=!1,this.selectedPriceType="CUSTOM",this.currencies=[sD.currencies[2]],this.createdPrices=[],this.oldPrices=[],this.priceDescription="",this.showCreatePrice=!1,this.toggleOpenPrice=!1,this.oneTimeSelected=!1,this.recurringSelected=!1,this.selectedPeriod="DAILY",this.selectedPeriodAlter="DAILY",this.usageSelected=!1,this.customSelected=!0,this.validPriceCheck=!0,this.priceForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),price:new p.MJ("",[p.k0.required]),description:new p.MJ(""),usageUnit:new p.MJ("")},{updateOn:"change"}),this.priceAlterForm=new p.gE({price:new p.MJ("",[p.k0.required]),condition:new p.MJ(""),description:new p.MJ("")}),this.selectedPriceUnit=sD.currencies[2].code,this.priceTypeAlter="ONE TIME",this.priceComponentSelected=!1,this.discountSelected=!1,this.noAlterSelected=!0,this.allowCustom=!0,this.allowOthers=!0,this.showProfile=!1,this.editProfile=!1,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.showReplication=!1,this.selectedCountries=[],this.errorMessage="",this.showError=!1,this.availableCountries=["Austria","Belgium","Germany","Hungary","Luxembourg","Poland","Romania","Spain"],this.availableMarketplaces=["BEIA Software Services","CloudFerro","CSI Piemonte","digitanimal","Digitel TS","DOME"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T1=>{if("CategoryAdded"===T1.type&&this.addCategory(T1.value),"ChangedSession"===T1.type&&this.initPartyInfo(),"SavePricePlan"===T1.type&&(this.createdPrices.push(T1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===T1.type){let Y1=T1.value;-1!=this.createdPrices.findIndex(M2=>M2.id===Y1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((M2,G2)=>G2==G2?Y1:M2)),this.editPrice&&(this.editPrice=!1)}})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){console.log(this.offer),this.initPartyInfo(),this.populateOfferInfo(),console.log("offer to update"),console.log(this.offer),this.editPrice=!1,this.showCreatePrice=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateOfferInfo(){var c=this;return(0,C1.A)(function*(){if(c.generalForm.controls.name.setValue(c.offer.name),c.generalForm.controls.description.setValue(c.offer.description),c.generalForm.controls.version.setValue(c.offer.version?c.offer.version:""),c.offerStatus=c.offer.lifecycleStatus,1==c.offer.isBundle&&(c.toggleBundleCheck(),c.offersBundle=c.offer.bundledProductOffering),c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.selectedProdSpec=l});return function(l){return t.apply(this,arguments)}}())),console.log("--PROD SPEC"),console.log(c.selectedProdSpec),c.offer.category&&(c.selectedCategories=c.offer.category),c.offer.productOfferingTerm&&(c.freeLicenseSelected=!1,c.licenseForm.controls.treatment.setValue(c.offer.productOfferingTerm[0].name),c.licenseForm.controls.description.setValue(c.offer.productOfferingTerm[0].description),c.createdLicense.treatment=c.offer.productOfferingTerm[0].name,c.createdLicense.description=c.offer.productOfferingTerm[0].description,c.offer.productOfferingTerm.forEach(t=>{"procurement"==t.name&&(c.procurementMode=t.description)})),c.offer.productOfferingPrice)for(let t=0;t{C.push(T)});console.log(C),u.bundledPopRelationship=C,console.log(u)}i.recurringChargePeriodType&&console.log("recurring"),i.unitOfMeasure&&(console.log("usage"),u.unitOfMeasure=i.unitOfMeasure),c.createdPrices.push(i),c.oldPrices.push(i)});return function(i){return l.apply(this,arguments)}}())})()}goBack(){this.eventMessage.emitSellerOffer(!0)}setOfferStatus(c){this.offerStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundleCheck(){this.bundledOffers=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getSellerOffers(!1)):this.offersBundle=[]}toggleProdSpec(){this.prodSpecs=[],this.prodSpecPage=0,this.loadingProdSpec=!0,this.getSellerProdSpecs(!1),this.selectStep("prodspec","prodspec-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!0,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCatalogs(){this.catalogs=[],this.catalogPage=0,this.loadingCatalog=!0,this.getSellerCatalogs(!1),this.selectStep("catalog","catalog-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!0,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCategories(){this.categories=[],this.loadingCategory=!0,this.getCategories(),console.log("CATEGORIES FORMATTED"),console.log(this.categories),this.selectStep("category","category-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!0,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleLicense(){this.selectStep("license","license-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!0,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleSLA(){this.selectStep("sla","sla-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!0,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}togglePrice(){this.selectStep("price","price-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!0,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleProcurement(){this.selectStep("procurement","procurement-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!0,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleReplication(){this.selectStep("replication","replication-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!0,this.editPrice=!1,this.showCreatePrice=!1,D2()}saveLicense(){this.createdLicense=this.licenseForm.value.treatment?{treatment:this.licenseForm.value.treatment,description:this.licenseForm.value.description?this.licenseForm.value.description:""}:{treatment:"",description:""},this.showPreview=!1}clearLicense(){this.freeLicenseSelected=!this.freeLicenseSelected,this.licenseForm.controls.treatment.setValue(""),this.licenseForm.controls.description.setValue(""),this.createdLicense={treatment:"",description:""},console.log(this.createdLicense.treatment)}showUpdatePrice(c){console.log("---PRICE TO UPDATE---"),this.priceToUpdate=c,console.log(this.priceToUpdate),this.priceForm.controls.name.setValue(this.priceToUpdate.name),this.priceForm.controls.description.setValue(this.priceToUpdate.description),this.editPrice=!this.editPrice,this.priceToUpdate=c,this.showCreatePrice=!1}removePrice(c){const t=this.createdPrices.findIndex(l=>l.id===c.id);-1!==t&&this.createdPrices.splice(t,1)}showNewPrice(){this.priceToUpdate=void 0,this.showCreatePrice=!this.showCreatePrice,this.editPrice=!1}onSLAMetricChange(c){this.creatingSLA.unitMeasure=c.target.value}onSLAChange(c){"UPDATES RATE"==c.target.value?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==c.target.value?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==c.target.value&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms")}showCreateSLAMetric(){"UPDATES RATE"==this.availableSLAs[0]?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==this.availableSLAs[0]?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==this.availableSLAs[0]&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms"),this.showCreateSLA=!0}addSLA(){const c=this.availableSLAs.findIndex(t=>t===this.creatingSLA.type);1==this.updatesSelected?(this.creatingSLA.threshold=this.updatemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.updatesSelected=!1):1==this.responseSelected?(this.creatingSLA.threshold=this.responsemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.responseSelected=!1):(this.creatingSLA.threshold=this.delaymetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.delaySelected=!1),this.showCreateSLA=!1}removeSLA(c){const t=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==t&&this.createdSLAs.splice(t,1),this.availableSLAs.push(c.type)}checkThreshold(){return 1==this.updatesSelected?""==this.updatemetric.nativeElement.value:1==this.responseSelected?""==this.responsemetric.nativeElement.value:""==this.delaymetric.nativeElement.value}getCategories(){console.log("Getting categories..."),this.api.getLaunchedCategories().then(c=>{for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;i{if(t=l,c.children=t,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=t.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}addParent(c){const t=this.unformattedCategories.findIndex(l=>l.id===c);-1!=t&&(0==this.unformattedCategories[t].isRoot?this.addCategory(this.unformattedCategories[t]):this.selectedCategories.push(this.unformattedCategories[t]))}addCategory(c){const t=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==t?(console.log("eliminar"),this.selectedCategories.splice(t,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(i=>i.id===c.parentId);-1==t&&-1==l&&this.addParent(c.parentId)}console.log(this.selectedCategories),this.cdr.detectChanges(),console.log(this.selectedCategories)}isCategorySelected(c){return-1!==this.selectedCategories.findIndex(l=>l.id===c.id)}selectCatalog(c){this.selectedCatalog=c,this.selectedCategories=[]}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0),t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:t.partyId},t.api.getCatalogsByUser.bind(t.api)).then(i=>{t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page,t.loadingCatalog=!1,t.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingProdSpec=!0),t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page,t.loadingProdSpec=!1,t.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PRODUCT_LIMIT,c,t.bundledOffers,t.nextBundledOffers,{filters:["Active","Launched"],partyId:t.partyId,sort:void 0,isBundle:!1},t.api.getProductOfferByOwner.bind(t.api)).then(i=>{t.bundlePageCheck=i.page_check,t.bundledOffers=i.items,t.nextBundledOffers=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const t=this.offersBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.offersBundle.splice(t,1)):(console.log("a\xf1adir"),this.offersBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.offersBundle)}isProdInBundle(c){return-1!==this.offersBundle.findIndex(l=>l.id===c.id)}changeProcurement(c){this.procurementMode=c.target.value}showFinish(){this.editPrice=!1,this.showCreatePrice=!1,this.saveLicense(),this.generalForm.value.name&&this.generalForm.value.version&&(this.offerToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",version:this.generalForm.value.version,lifecycleStatus:this.offerStatus}),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showSummary=!0,this.showReplication=!1,this.showPreview=!1}updateOffer(){var c=this;return(0,C1.A)(function*(){if(c.createdPrices.length>0){let t=c.createdPrices.length-1,l=!1,i=!1;for(let u=0;ub.id===c.createdPrices[u].id);-1==C?(l=!0,i=!0):c.oldPrices[C]!=c.createdPrices[u]&&(t=u,l=!1,i=!0)}if(0==i)c.saveOfferInfo();else{console.log(c.oldPrices),console.log(c.createdPrices);for(let u=0;ub.id===c.createdPrices[u].id);if(-1==C)if(console.log("precio nuevo"),1==c.createdPrices[u].isBundle){let b=c.createdPrices[u].bundledPopRelationship,T=[];if(null!=b)for(let u1=0;u1{c.showError=!1},3e3)}}try{let Y1=yield(0,e0.s)(c.api.postOfferingPrice(a1));T.push({id:Y1.id,href:Y1.id,name:Y1.name}),console.log("componente"),console.log(Y1)}catch(Y1){console.error("There was an error while creating offers price!",Y1),Y1.error.error?(console.log(Y1),c.errorMessage="Error: "+Y1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let W={name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,bundledPopRelationship:T};c.createdPrices[u].prodSpecCharValueUse&&(W.prodSpecCharValueUse=c.createdPrices[u].prodSpecCharValueUse),c.createdPrices[u].unitOfMeasure&&(W.unitOfMeasure=c.createdPrices[u].unitOfMeasure);try{let u1=yield(0,e0.s)(c.api.postOfferingPrice(W));console.log("precio"),console.log(u1),c.createdPrices[u].id=u1.id,u==c.createdPrices.length-1&&c.saveOfferInfo()}catch(u1){console.error("There was an error while creating offers price!",u1),u1.error.error?(console.log(u1),c.errorMessage="Error: "+u1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let b={name:c.createdPrices[u].name,isBundle:!1,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,priceType:c.createdPrices[u].priceType};"custom"!=c.createdPrices[u].priceType&&(b.price={unit:c.createdPrices[u]?.price?.unit,value:c.createdPrices[u]?.price?.value}),"recurring"==c.createdPrices[u].priceType&&(b.recurringChargePeriodType=c.createdPrices[u].recurringChargePeriodType,b.recurringChargePeriodLength=c.createdPrices[u].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[u].priceType&&(b.recurringChargePeriodType=c.createdPrices[u].recurringChargePeriodType,b.recurringChargePeriodLength=c.createdPrices[u].recurringChargePeriodLength),"usage"==c.createdPrices[u].priceType&&(b.unitOfMeasure=c.createdPrices[u].unitOfMeasure),c.createdPrices[u].prodSpecCharValueUse&&(b.prodSpecCharValueUse=c.createdPrices[u].prodSpecCharValueUse),c.createdPrices[u].unitOfMeasure&&(b.unitOfMeasure=c.createdPrices[u].unitOfMeasure);try{let T=yield(0,e0.s)(c.api.postOfferingPrice(b));console.log("precio"),console.log(T),c.createdPrices[u].id=T.id,u==c.createdPrices.length-1&&c.saveOfferInfo()}catch(T){console.error("There was an error while creating offers price!",T),T.error.error?(console.log(T),c.errorMessage="Error: "+T.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else if(console.log("precio existente -update"),c.oldPrices[C]!=c.createdPrices[u])if(1==c.createdPrices[u].isBundle){let b=c.createdPrices[u].bundledPopRelationship,T=[];if(null!=b)for(let a1=0;a1Y1.id===b?.[a1]?.id);if(c.oldPrices[C].bundledPopRelationship[T1].id.startsWith("urn:ngsi")||(T1=-1),-1!=T1){let Y1={id:b[a1].id,name:b[a1].name,description:b[a1].description,lifecycleStatus:b[a1].lifecycleStatus,priceType:b[a1].priceType,price:{unit:b[a1]?.price?.unit,value:b[a1]?.price?.value}};"recurring"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"recurring-prepaid"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"usage"==b[a1].priceType&&(Y1.unitOfMeasure=b[a1].unitOfMeasure),b[a1].prodSpecCharValueUse&&(Y1.prodSpecCharValueUse=b[a1].prodSpecCharValueUse),b[a1].unitOfMeasure&&(Y1.unitOfMeasure=b[a1].unitOfMeasure);let f2=b[a1].popRelationship,M2=c.oldPrices[C].bundledPopRelationship[T1].popRelationship;if(null!=f2)if(null!=M2&&M2!=f2){let G2={id:f2[0]?.id,name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?G2.percentage=f2[0]?.percentage:G2.price=f2[0]?.price;try{let N2=G2.id;delete G2.id,yield(0,e0.s)(c.api.updateOfferingPrice(G2,N2))}catch(N2){console.error("There was an error while creating offers price!",N2),N2.error.error?(console.log(N2),c.errorMessage="Error: "+N2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let G2={name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?G2.percentage=f2[0]?.percentage:G2.price=f2[0]?.price;try{let N2=yield(0,e0.s)(c.api.postOfferingPrice(G2));console.log("price Alteration"),console.log(N2),Y1.popRelationship=[{id:N2.id,href:N2.id,name:N2.name}]}catch(N2){console.error("There was an error while creating offers price!",N2),N2.error.error?(console.log(N2),c.errorMessage="Error: "+N2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}try{console.log("--PRICE TO UPDATE---------"),console.log(Y1),console.log("id"),console.log(Y1.id);let G2=Y1.id;delete Y1.id,yield(0,e0.s)(c.api.updateOfferingPrice(Y1,G2))}catch(G2){console.error("There was an error while creating offers price!",G2),G2.error.error?(console.log(G2),c.errorMessage="Error: "+G2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let Y1={name:b[a1].name,description:b[a1].description,lifecycleStatus:b[a1].lifecycleStatus,priceType:b[a1].priceType,price:{unit:b[a1]?.price?.unit,value:b[a1]?.price?.value}};"recurring"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"recurring-prepaid"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"usage"==b[a1].priceType&&(Y1.unitOfMeasure=b[a1].unitOfMeasure),b[a1].prodSpecCharValueUse&&(Y1.prodSpecCharValueUse=b[a1].prodSpecCharValueUse),b[a1].unitOfMeasure&&(Y1.unitOfMeasure=b[a1].unitOfMeasure);let f2=b[a1].popRelationship;if(null!=f2){let M2={name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?M2.percentage=f2[0]?.percentage:M2.price=f2[0]?.price;try{let G2=yield(0,e0.s)(c.api.postOfferingPrice(M2));console.log("price Alteration"),console.log(G2),Y1.popRelationship=[{id:G2.id,href:G2.id,name:G2.name}]}catch(G2){console.error("There was an error while creating offers price!",G2),G2.error.error?(console.log(G2),c.errorMessage="Error: "+G2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}try{let M2=yield(0,e0.s)(c.api.postOfferingPrice(Y1));T.push({id:M2.id,href:M2.id,name:M2.name}),console.log("componente"),console.log(M2)}catch(M2){console.error("There was an error while creating offers price!",M2),M2.error.error?(console.log(M2),c.errorMessage="Error: "+M2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}console.log("prices----"),console.log(c.createdPrices[u]);let W=c.createdPrices[u].bundledPopRelationship?.map(({id:a1,href:T1,name:Y1})=>({id:a1,href:T1,name:Y1})),u1={id:c.createdPrices[u].id,name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,bundledPopRelationship:W?.concat(T).filter(a1=>a1.id&&a1.id.startsWith("urn:ngsi"))};try{let a1=u1.id;delete u1.id;let T1=yield(0,e0.s)(c.api.updateOfferingPrice(u1,a1));console.log("precio"),console.log(T1),c.createdPrices[u].id=T1.id,0==l&&u==t&&c.saveOfferInfo()}catch(a1){console.error("There was an error while creating offers price!",a1),a1.error.error?(console.log(a1),c.errorMessage="Error: "+a1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let b={id:c.createdPrices[u].id,name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus};try{let T=b.id;delete b.id;let W=yield(0,e0.s)(c.api.updateOfferingPrice(b,T));console.log("precio"),console.log(W),c.createdPrices[u].id=W.id,0==l&&u==t&&c.saveOfferInfo()}catch(T){console.error("There was an error while creating offers price!",T),T.error.error?(console.log(T),c.errorMessage="Error: "+T.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}}}else c.createdPrices=[],c.saveOfferInfo();console.log(c.offerToUpdate)})()}saveOfferInfo(){let c=[],t=[];for(let l=0;l{console.log("product offer created:"),console.log(l),this.goBack()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating the offer!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+"\n> blockquote"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n> blockquote"})}addLink(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+" [title](https://www.example.com) "}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+" [title](https://www.example.com) "})}addTable(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showGeneral?(this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+c.emoji.native}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+c.emoji.native})}togglePreview(){this.showGeneral?this.description=this.generalForm.value.description?this.generalForm.value.description:"":this.showPrice?this.priceDescription=this.priceForm.value.description?this.priceForm.value.description:"":this.showLicense&&(this.licenseDescription=this.licenseForm.value.description?this.licenseForm.value.description:"")}handleSelectionChange(c){console.log("selected items..."),console.log(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-offer"]],viewQuery:function(t,l){if(1&t&&(e.GBs(jo0,5),e.GBs($o0,5),e.GBs(Oo0,5),e.GBs(Bo0,5),e.GBs(Vo0,5),e.GBs(Uo0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.updatemetric=i.first),e.mGM(i=e.lsd())&&(l.responsemetric=i.first),e.mGM(i=e.lsd())&&(l.delaymetric=i.first),e.mGM(i=e.lsd())&&(l.usageUnit=i.first),e.mGM(i=e.lsd())&&(l.usageUnitUpdate=i.first),e.mGM(i=e.lsd())&&(l.usageUnitAlter=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{offer:"offer"},decls:19,vars:10,consts:[[1,""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],["data-cy","editOfferBack",1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"offer","partyId","formType"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"button",5),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"app-offer-form",13),e.DNE(18,Go0,1,1,"error-message",14),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,6,"UPDATE_OFFER._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"UPDATE_OFFER._update")),e.R7$(2),e.Y8G("offer",l.offer)("partyId",l.partyId)("formType","update"),e.R7$(),e.vxM(18,l.showError?18:-1))}})}}return n})();const Ho0=["attachName"],Yo0=["imgURL"],qo0=["certificationName"],lH=(n,a)=>a.id,_E1=(n,a)=>a.name,Xo0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Wo0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),u8=(n,a)=>({"break-all":n,"break-words":a}),sH=()=>({standalone:!0});function Jo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",33),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",34),e.EFF(2),e.k0s(),e.j41(3,"span",35),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStepIdx===t),e.R7$(),e.AVh("bg-primary-100",l.currentStepIdx===t)("text-white",l.currentStepIdx===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function Qo0(n,a){1&n&&(e.j41(0,"div",44)(1,"label",47),e.EFF(2,"DSP Compatible"),e.k0s(),e.j41(3,"label",48),e.nrm(4,"input",49)(5,"div",50),e.k0s()())}function Zo0(n,a){if(1&n&&(e.j41(0,"form",20)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",37),e.j41(6,"label",38),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",39),e.k0s(),e.j41(10,"div")(11,"label",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",41),e.j41(15,"label",42),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",43),e.k0s(),e.DNE(19,Qo0,6,0,"div",44),e.j41(20,"label",45),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.nrm(23,"app-markdown-textarea",46),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.Y8G("formGroup",i.generalForm),e.R7$(3),e.JRh(e.bMT(4,10,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.generalForm.get("name"))?null:c.invalid)&&""!=i.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,12,"CREATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=i.generalForm.get("version"))?null:t.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,14,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=i.generalForm.get("brand"))?null:l.invalid)&&""!=i.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,16,"CREATE_PROD_SPEC._id_number")),e.R7$(3),e.vxM(19,i.dspEnable?19:-1),e.R7$(2),e.JRh(e.bMT(22,18,"CREATE_PROD_SPEC._product_description"))}}function Ko0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function ei0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function ci0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ti0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ni0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function li0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function si0(n,a){1&n&&(e.j41(0,"span",71),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._simple")))}function ai0(n,a){1&n&&(e.j41(0,"span",75),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._bundle")))}function oi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,ci0,2,1,"span",71)(5,ti0,2,1)(6,ni0,2,1)(7,li0,2,1),e.k0s(),e.j41(8,"td",70),e.DNE(9,si0,3,3,"span",71)(10,ai0,3,3),e.k0s(),e.j41(11,"td",72),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",73)(15,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.addProdToBundle(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(),e.Y8G("ngClass",e.l_i(9,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isProdInBundle(c))}}function ii0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",66),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",67),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,oi0,16,12,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function ri0(n,a){if(1&n&&e.DNE(0,ei0,7,3,"div",58)(1,ii0,22,15),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecs.length?0:1)}}function di0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.nextBundle())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function fi0(n,a){if(1&n&&e.DNE(0,di0,6,3,"div",78),2&n){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function ui0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function mi0(n,a){if(1&n&&e.DNE(0,Ko0,6,0,"div",53)(1,ri0,2,1)(2,fi0,1,1)(3,ui0,6,0),2&n){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function pi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",51)(1,"label",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",48)(5,"input",52),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleBundleCheck())}),e.k0s(),e.nrm(6,"div",50),e.k0s()(),e.DNE(7,mi0,4,2)}if(2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"CREATE_PROD_SPEC._is_bundled")),e.R7$(3),e.Y8G("checked",c.bundleChecked),e.R7$(2),e.vxM(7,c.bundleChecked?7:-1)}}function hi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",97),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",88),e.nrm(2,"path",98),e.k0s()()}}function gi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"div",86)(2,"label",104),e.EFF(3),e.k0s(),e.j41(4,"button",105),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addISO(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",81),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("ngClass",1==c.domesupported?"text-primary-100 font-bold":"text-gray-900 dark:text-white font-medium"),e.R7$(),e.SpI(" ",c.name," ")}}function _i0(n,a){if(1&n&&(e.j41(0,"div",102)(1,"ul",103),e.Z7z(2,gi0,7,2,"li",null,e.fX1),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Li0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",99),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.buttonISOClicked=!l.buttonISOClicked)}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",100),e.nrm(4,"path",101),e.k0s()(),e.DNE(5,_i0,4,0,"div",102)}if(2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"CREATE_PROD_SPEC._add_comp")," "),e.R7$(4),e.vxM(5,c.buttonISOClicked?5:-1)}}function Ci0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",108)(6,"button",109),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",89),e.k0s()(),e.joV(),e.j41(9,"button",110),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.removeISO(l))}),e.qSk(),e.j41(10,"svg",88),e.nrm(11,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function zi0(n,a){1&n&&(e.j41(0,"div",92)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_comp_profile")," "))}function Mi0(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",112),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function xi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",108)(6,"button",97),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeCert(l))}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function bi0(n,a){if(1&n&&(e.j41(0,"h3",83),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",91)(3,"table",63)(4,"thead",64)(5,"tr")(6,"th",65),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",65),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",65),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,xi0,9,6,"tr",68,_E1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(7),e.SpI(" ",e.bMT(8,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(14,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.additionalISOS)}}function yi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCert=!l.showCert)}),e.EFF(2," Add an additional certification "),e.qSk(),e.j41(3,"svg",114),e.nrm(4,"path",81),e.k0s()()()}}function Fi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",132),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function vi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",125),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Fi0,10,6,"ng-template",126),e.k0s()}}function ki0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",133)(1,"span",57),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",134),e.EFF(4),e.k0s(),e.j41(5,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",136),e.nrm(7,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function wi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",115)(1,"h3",83),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",116)(4,"div",117)(5,"label",118),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",119,0),e.k0s(),e.DNE(10,vi0,2,0,"ngx-file-drop",120)(11,ki0,8,1),e.k0s(),e.j41(12,"div",121)(13,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAdditionalCert())}),e.EFF(14," Save "),e.qSk(),e.j41(15,"svg",114),e.nrm(16,"path",123),e.k0s()(),e.joV(),e.j41(17,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.clearAdditionalCert(!1),e.Njj(l.showCert=!1)}),e.EFF(18," Discard "),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,6,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.certFileName)("ngClass",1==c.certFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(10,""==c.isoToCreate?10:11),e.R7$(3),e.Y8G("disabled",!c.certFileName.valid||""==c.isoToCreate)("ngClass",c.certFileName.valid&&""!=c.isoToCreate?"hover:bg-primary-50":"opacity-50")}}function Si0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h3",83),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",84)(4,"p",85),e.EFF(5),e.k0s(),e.j41(6,"div",86)(7,"button",87),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(8,"svg",88),e.nrm(9,"path",89),e.k0s()(),e.DNE(10,hi0,3,0,"button",90),e.k0s()(),e.DNE(11,Li0,6,4),e.joV(),e.j41(12,"div",91)(13,"table",63)(14,"thead",64)(15,"tr")(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"th",65),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"th",65),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Ci0,12,6,"tr",68,_E1,!1,zi0,9,3,"div",92),e.k0s()()(),e.j41(29,"div",93)(30,"div",94),e.DNE(31,Mi0,4,3,"div",95),e.k0s()(),e.DNE(32,bi0,18,9)(33,yi0,5,0,"div",96)(34,wi0,19,8)}if(2&n){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,11,"CREATE_PROD_SPEC._self_attestation")," "),e.R7$(4),e.SpI(" ",c.selfAtt?c.selfAtt.productSpecCharacteristicValue[0].value:"Upload your self attestation document"," "),e.R7$(5),e.vxM(10,c.selfAtt?10:-1),e.R7$(),e.vxM(11,c.availableISOS.length>0?11:-1),e.R7$(6),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(21,15,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(24,17,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.selectedISOS),e.R7$(5),e.Y8G("ngIf",c.checkValidISOS()),e.R7$(),e.vxM(32,c.additionalISOS.length>0?32:-1),e.R7$(),e.vxM(33,0==c.showCert?33:34)}}function Ni0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_chars")," "))}function Ei0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Di0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value)," ")}}function Ti0(n,a){if(1&n&&e.DNE(0,Ei0,1,1)(1,Di0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ri0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ai0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ii0(n,a){if(1&n&&e.DNE(0,Ri0,4,2)(1,Ai0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Pi0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function ji0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function $i0(n,a){if(1&n&&e.DNE(0,Pi0,1,1)(1,ji0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Oi0(n,a){if(1&n&&e.DNE(0,Ti0,2,1)(1,Ii0,2,1)(2,$i0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function Bi0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Vi0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ui0(n,a){if(1&n&&e.DNE(0,Bi0,4,3)(1,Vi0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Gi0(n,a){if(1&n&&e.DNE(0,Oi0,3,1)(1,Ui0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Hi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",137),e.EFF(2),e.k0s(),e.j41(3,"td",138),e.EFF(4),e.k0s(),e.j41(5,"td",107),e.Z7z(6,Gi0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",73)(9,"button",139),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",136),e.nrm(11,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function Yi0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",67),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Hi0,12,10,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.getFilteredCharacteristicsForCurrentStep())}}function qi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.toggleCreateCharacteristicForm())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" ",c.isDataspaceConfigurationStep()?"Add Dataspace Configuration":e.bMT(3,1,"CREATE_PROD_SPEC._new_char")," ")}}function Xi0(n,a){1&n&&(e.j41(0,"option",151),e.EFF(1,"Credentials Configuration"),e.k0s(),e.j41(2,"option",152),e.EFF(3,"Authorization Policy"),e.k0s())}function Wi0(n,a){1&n&&(e.j41(0,"option",153),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",154),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",155),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",156),e.EFF(7,"Boolean"),e.k0s())}function Ji0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",143),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",160),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.optionalDftTrue,l)||(i.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",161),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",161),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._default_value")),e.R7$(2),e.R50("ngModel",c.optionalDftTrue),e.Y8G("ngModelOptions",e.lJ4(13,sH)),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(e.bMT(7,9,"CREATE_PROD_SPEC._default_false")),e.R7$(2),e.Y8G("value",!0),e.R7$(),e.JRh(e.bMT(10,11,"CREATE_PROD_SPEC._default_true"))}}function Qi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",157)(1,"label",158),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",48)(5,"input",159),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.isOptional,l)||(i.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",50),e.k0s()(),e.DNE(7,Ji0,11,14,"div")}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_PROD_SPEC._make_optional")),e.R7$(3),e.R50("ngModel",c.isOptional),e.Y8G("ngModelOptions",e.lJ4(6,sH)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function Zi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"div",165)(2,"input",166),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",167),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",168),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",136),e.nrm(10,"path",98),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ki0(n,a){if(1&n&&e.Z7z(0,Zi0,11,4,"div",164,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function er0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cr0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.R7$(),e.JRh(t.getValuePreview(c.value))}}function tr0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function nr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"div",165)(2,"input",169),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,er0,5,2,"label",170)(4,cr0,2,1)(5,tr0,2,1),e.k0s(),e.j41(6,"button",168),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(7,"svg",136),e.nrm(8,"path",98),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===t.charTypeSelected?3:t.isJsonCharacteristicType(t.charTypeSelected)?4:5)}}function lr0(n,a){if(1&n&&e.Z7z(0,nr0,9,2,"div",164,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function sr0(n,a){if(1&n&&(e.j41(0,"label",162),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",163),e.DNE(3,Ki0,2,0)(4,lr0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function ar0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",149)(1,"input",171),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",172),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",173),e.nrm(4,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function or0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",174)(1,"div",175)(2,"span",176),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",177),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",175)(7,"span",176),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",178),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",179),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",173),e.nrm(13,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_PROD_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function ir0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",157)(1,"label",180),e.EFF(2,"Default value"),e.k0s(),e.j41(3,"label",48)(4,"input",181),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.booleanDefaultTrue,l)||(i.booleanDefaultTrue=l),e.Njj(l)}),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onBooleanDefaultChange())}),e.k0s(),e.nrm(5,"div",50),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,sH))}}function rr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",174)(1,"div",175)(2,"span",176),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",182),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",175)(7,"span",176),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",183),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",175)(12,"span",176),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",184),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",185),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",173),e.nrm(18,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_PROD_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_PROD_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function dr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",186)(1,"label",187),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",188),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.jsonValue,l)||(i.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",189),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",190),e.nrm(7,"path",81),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,5,"CREATE_PROD_SPEC._json_value")),e.R7$(2),e.R50("ngModel",c.jsonValue),e.R7$(),e.Y8G("disabled",!c.jsonValue)("ngClass",c.jsonValue?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._add_json")," ")}}function fr0(n,a){if(1&n&&e.DNE(0,dr0,10,9,"div",186),2&n){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function ur0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",141)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",142),e.k0s(),e.j41(6,"div")(7,"label",143),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",144),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.charTypeSelected,l)||(i.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.DNE(11,Xi0,4,0)(12,Wi0,8,0),e.k0s()(),e.j41(13,"div",145)(14,"label",146),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",147),e.k0s(),e.DNE(18,Qi0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,sr0,5,1),e.j41(21,"label",148),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,ar0,5,3,"div",149)(25,or0,14,10)(26,ir0,6,3)(27,rr0,19,14)(28,fr0,1,1),e.j41(29,"div",121)(30,"button",150),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(31),e.nI1(32,"translate"),e.qSk(),e.j41(33,"svg",114),e.nrm(34,"path",123),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,15,"UPDATE_PROD_SPEC._product_name")),e.R7$(5),e.JRh(e.bMT(9,17,"CREATE_PROD_SPEC._type")),e.R7$(2),e.R50("ngModel",c.charTypeSelected),e.Y8G("ngModelOptions",e.lJ4(25,sH)),e.R7$(),e.vxM(11,c.isDataspaceConfigurationStep()?11:12),e.R7$(4),e.JRh(e.bMT(16,19,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.vxM(18,c.isDataspaceConfigurationStep()||"boolean"===c.charTypeSelected||c.isJsonCharacteristicType(c.charTypeSelected)?-1:18),e.R7$(2),e.vxM(20,c.creatingChars.length>0&&"boolean"!==c.charTypeSelected?20:-1),e.R7$(),e.Y8G("ngClass","range"===c.charTypeSelected&&1==c.creatingChars.length||"boolean"===c.charTypeSelected?"hidden":""),e.R7$(),e.JRh(e.bMT(23,21,"CREATE_PROD_SPEC._add_values")),e.R7$(2),e.vxM(24,c.isTextCharacteristicType(c.charTypeSelected)?24:"number"===c.charTypeSelected?25:"boolean"===c.charTypeSelected?26:"range"===c.charTypeSelected&&0==c.creatingChars.length?27:c.isJsonCharacteristicType(c.charTypeSelected)?28:-1),e.R7$(6),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(32,23,"CREATE_PROD_SPEC._save_char")," ")}}function mr0(n,a){if(1&n&&e.DNE(0,Ni0,9,3,"div",58)(1,Yi0,19,12)(2,qi0,6,3,"div",96)(3,ur0,35,26),2&n){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,c.showCreateChar?3:2)}}function pr0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function hr0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function gr0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function _r0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Lr0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Cr0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,gr0,2,1,"span",71)(5,_r0,2,1)(6,Lr0,2,1)(7,Cr0,2,1),e.k0s(),e.j41(8,"td",72),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",73)(12,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addResToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isResSelected(c))}}function Mr0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",191)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,zr0,13,11,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.resourceSpecs)}}function xr0(n,a){if(1&n&&e.DNE(0,hr0,7,3,"div",58)(1,Mr0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function br0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",192),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextRes())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function yr0(n,a){if(1&n&&e.DNE(0,br0,6,3,"div",78),2&n){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Fr0(n,a){1&n&&(e.j41(0,"div",193),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function vr0(n,a){if(1&n&&e.DNE(0,pr0,6,0,"div",53)(1,xr0,2,1)(2,yr0,1,1)(3,Fr0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function kr0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function wr0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Sr0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Nr0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Er0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Dr0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Tr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,Sr0,2,1,"span",71)(5,Nr0,2,1)(6,Er0,2,1)(7,Dr0,2,1),e.k0s(),e.j41(8,"td",72),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",73)(12,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addServToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isServSelected(c))}}function Rr0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",194)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Tr0,13,11,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.serviceSpecs)}}function Ar0(n,a){if(1&n&&e.DNE(0,wr0,7,3,"div",58)(1,Rr0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function Ir0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextServ())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Pr0(n,a){if(1&n&&e.DNE(0,Ir0,6,3,"div",78),2&n){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function jr0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function $r0(n,a){if(1&n&&e.DNE(0,kr0,6,0,"div",53)(1,Ar0,2,1)(2,Pr0,1,1)(3,jr0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function Or0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",222),e.EFF(2),e.k0s(),e.j41(3,"td",223),e.EFF(4),e.k0s(),e.j41(5,"td",224)(6,"button",97),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeEndpointUrl(l))}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.url),e.R7$(2),e.JRh(c.description)}}function Br0(n,a){if(1&n&&(e.j41(0,"div",196)(1,"table",219)(2,"thead",64)(3,"tr")(4,"th",220),e.EFF(5,"Endpoint URL"),e.k0s(),e.j41(6,"th",65),e.EFF(7,"Description"),e.k0s(),e.j41(8,"th",221),e.EFF(9,"Actions"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Or0,9,2,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(11),e.Dyx(c.endpointUrls)}}function Vr0(n,a){1&n&&(e.j41(0,"p",206),e.EFF(1,"At least one endpoint URL is required."),e.k0s())}function Ur0(n,a){if(1&n&&(e.j41(0,"option",161),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.JRh(c)}}function Gr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Hr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Yr0(n,a){if(1&n&&e.DNE(0,Gr0,2,0,"p",225)(1,Hr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function qr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Xr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Wr0(n,a){if(1&n&&e.DNE(0,qr0,2,0,"p",225)(1,Xr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function Jr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Qr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Zr0(n,a){if(1&n&&e.DNE(0,Jr0,2,0,"p",225)(1,Qr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function Kr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function ed0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function cd0(n,a){if(1&n&&e.DNE(0,Kr0,2,0,"p",225)(1,ed0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function td0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",21)(1,"h3",195),e.EFF(2,"DSP Config"),e.k0s(),e.DNE(3,Br0,13,0,"div",196),e.j41(4,"div",197)(5,"div",198)(6,"div",199)(7,"label",143),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",200),e.nI1(11,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointName=l.target.value)}),e.k0s()(),e.j41(12,"div",199)(13,"label",143),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"input",201),e.nI1(17,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointUrl=l.target.value)}),e.k0s()()(),e.j41(18,"div")(19,"label",143),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"textarea",202),e.nI1(23,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointDescription=l.target.value)}),e.k0s()(),e.j41(24,"div",203)(25,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addEndpointUrl())}),e.EFF(26),e.nI1(27,"translate"),e.qSk(),e.j41(28,"svg",205),e.nrm(29,"path",81),e.k0s()()()(),e.DNE(30,Vr0,2,0,"p",206),e.joV(),e.nrm(31,"hr",207),e.j41(32,"form",208)(33,"div",198)(34,"div",209)(35,"label",143),e.EFF(36,"Upstream Address"),e.k0s(),e.nrm(37,"input",210),e.k0s(),e.j41(38,"div",211)(39,"label",143),e.EFF(40,"Transfer path"),e.k0s(),e.nrm(41,"input",212),e.k0s(),e.j41(42,"div",211)(43,"label",143),e.EFF(44,"Transfer Type"),e.k0s(),e.j41(45,"select",213),e.DNE(46,Ur0,2,2,"option",214),e.k0s()()(),e.j41(47,"div")(48,"label",143),e.EFF(49,"Target Specification"),e.k0s(),e.nrm(50,"textarea",215),e.DNE(51,Yr0,2,1),e.k0s(),e.j41(52,"div")(53,"label",143),e.EFF(54,"Service Configuration"),e.k0s(),e.nrm(55,"textarea",216),e.DNE(56,Wr0,2,1),e.k0s(),e.j41(57,"div")(58,"label",143),e.EFF(59,"Credentials Configuration"),e.k0s(),e.nrm(60,"textarea",217),e.DNE(61,Zr0,2,1),e.k0s(),e.j41(62,"div")(63,"label",143),e.EFF(64,"Policy Configuration"),e.k0s(),e.nrm(65,"textarea",218),e.DNE(66,cd0,2,1),e.k0s()()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1;const a1=e.XpG();e.R7$(3),e.vxM(3,a1.endpointUrls.length>0?3:-1),e.R7$(5),e.JRh(e.bMT(9,29,"CREATE_PROD_SPEC._dsp_endpoint_name")),e.R7$(2),e.Y8G("value",a1.newEndpointName)("placeholder",e.bMT(11,31,"CREATE_PROD_SPEC._dsp_endpoint_name_placeholder")),e.R7$(4),e.JRh(e.bMT(15,33,"CREATE_PROD_SPEC._dsp_endpoint_url")),e.R7$(2),e.Y8G("value",a1.newEndpointUrl)("placeholder",e.bMT(17,35,"CREATE_PROD_SPEC._dsp_endpoint_url_placeholder")),e.R7$(4),e.JRh(e.bMT(21,37,"CREATE_PROD_SPEC._dsp_endpoint_description")),e.R7$(2),e.Y8G("value",a1.newEndpointDescription)("placeholder",e.bMT(23,39,"CREATE_PROD_SPEC._dsp_endpoint_description_placeholder")),e.R7$(3),e.AVh("opacity-50",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim())("cursor-not-allowed",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim()),e.Y8G("disabled",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim()),e.R7$(),e.SpI(" ",e.bMT(27,41,"CREATE_PROD_SPEC._dsp_add_endpoint")," "),e.R7$(4),e.vxM(30,0===a1.endpointUrls.length?30:-1),e.R7$(2),e.Y8G("formGroup",a1.dspConfigForm),e.R7$(5),e.Y8G("ngClass",null!=(c=a1.dspConfigForm.get("upstreamAddress"))&&c.invalid&&""!==(null==(c=a1.dspConfigForm.get("upstreamAddress"))?null:c.value)?"border-red-600":""),e.R7$(4),e.Y8G("ngClass",null!=(t=a1.dspConfigForm.get("transferPath"))&&t.invalid&&""!==(null==(t=a1.dspConfigForm.get("transferPath"))?null:t.value)?"border-red-600":""),e.R7$(5),e.Y8G("ngForOf",a1.transferTypes),e.R7$(4),e.Y8G("ngClass",null!=(l=a1.dspConfigForm.get("targetSpecification"))&&l.invalid&&null!=(l=a1.dspConfigForm.get("targetSpecification"))&&l.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(51,null!=(i=a1.dspConfigForm.get("targetSpecification"))&&i.touched?51:-1),e.R7$(4),e.Y8G("ngClass",null!=(u=a1.dspConfigForm.get("serviceConfiguration"))&&u.invalid&&null!=(u=a1.dspConfigForm.get("serviceConfiguration"))&&u.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(56,null!=(C=a1.dspConfigForm.get("serviceConfiguration"))&&C.touched?56:-1),e.R7$(4),e.Y8G("ngClass",null!=(b=a1.dspConfigForm.get("credentialsConfig"))&&b.invalid&&null!=(b=a1.dspConfigForm.get("credentialsConfig"))&&b.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(61,null!=(T=a1.dspConfigForm.get("credentialsConfig"))&&T.touched?61:-1),e.R7$(4),e.Y8G("ngClass",null!=(W=a1.dspConfigForm.get("policyConfig"))&&W.invalid&&null!=(W=a1.dspConfigForm.get("policyConfig"))&&W.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(66,null!=(u1=a1.dspConfigForm.get("policyConfig"))&&u1.touched?66:-1)}}function nd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",237),e.nrm(1,"img",239),e.j41(2,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",136),e.nrm(4,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function ld0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",249),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function sd0(n,a){1&n&&(e.j41(0,"div",250),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",112),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_name")," "))}function ad0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",240)(1,"ngx-file-drop",241),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileLeave(l))}),e.DNE(2,ld0,10,6,"ng-template",126),e.k0s()(),e.j41(3,"label",242),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",243),e.DNE(7,sd0,4,3,"div",244),e.j41(8,"div",245)(9,"input",246,1),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",247),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",136),e.nrm(13,"path",248),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,6,"CREATE_PROD_SPEC._add_prod_img_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function od0(n,a){1&n&&(e.j41(0,"div",238)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_att")," "))}function id0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",73)(6,"button",139),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeAtt(l))}),e.qSk(),e.j41(7,"svg",136),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function rd0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,id0,9,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodAttachments)}}function dd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",251),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showNewAtt=!l.showNewAtt)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._new_att")," "))}function fd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",132),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function ud0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",125),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,fd0,10,6,"ng-template",126),e.k0s()}}function md0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",133)(1,"span",57),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",134),e.EFF(4),e.k0s(),e.j41(5,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",136),e.nrm(7,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function pd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",115)(1,"div",252)(2,"div",117)(3,"label",253),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",254,2),e.k0s(),e.DNE(8,ud0,2,0,"ngx-file-drop",120)(9,md0,8,1),e.k0s(),e.j41(10,"div",121)(11,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAtt())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",114),e.nrm(15,"path",123),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,7,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.attFileName)("ngClass",1==c.attFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(8,""==c.attachToCreate.url?8:9),e.R7$(3),e.Y8G("disabled",!c.attFileName.valid||""==c.attachToCreate.url)("ngClass",c.attFileName.valid&&""!=c.attachToCreate.url?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"CREATE_PROD_SPEC._save_att")," ")}}function hd0(n,a){if(1&n&&(e.j41(0,"div",226)(1,"h4",227),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",228),e.qSk(),e.j41(5,"svg",229),e.nrm(6,"path",230),e.k0s()(),e.joV(),e.j41(7,"div",231)(8,"div",232)(9,"h3",233),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",234)(13,"p",235),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",236),e.k0s()(),e.DNE(17,nd0,5,1,"div",237)(18,ad0,14,8),e.j41(19,"h4",227),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,od0,9,3,"div",238)(23,rd0,16,9)(24,dd0,6,3,"div",96)(25,pd0,16,11)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.SpI("",e.bMT(11,9,"CREATE_PROD_SPEC._file_res")," "),e.R7$(4),e.SpI("",e.bMT(15,11,"CREATE_PROD_SPEC._restrictions")," "),e.R7$(3),e.vxM(17,c.showImgPreview?17:18),e.R7$(3),e.JRh(e.bMT(21,13,"CREATE_PROD_SPEC._add_att")),e.R7$(2),e.vxM(22,0==c.prodAttachments.length?22:23),e.R7$(2),e.vxM(24,0==c.showNewAtt?24:25)}}function gd0(n,a){1&n&&(e.j41(0,"div",255)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_relatioships")," "))}function _d0(n,a){if(1&n&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Ld0(n,a){if(1&n&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Cd0(n,a){if(1&n&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zd0(n,a){if(1&n&&(e.j41(0,"span",260),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Md0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",73),e.EFF(2),e.k0s(),e.j41(3,"td",69),e.EFF(4),e.k0s(),e.j41(5,"td",70),e.DNE(6,_d0,2,1,"span",256)(7,Ld0,2,1)(8,Cd0,2,1)(9,zd0,2,1),e.k0s(),e.j41(10,"td",72),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",73)(14,"button",257),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteRel(l))}),e.qSk(),e.j41(15,"svg",136),e.nrm(16,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.productSpec.name,20),!t.hasLongWord(c.productSpec.name,20))),e.R7$(),e.SpI(" ",c.productSpec.name," "),e.R7$(2),e.vxM(6,"Active"==c.productSpec.lifecycleStatus?6:"Launched"==c.productSpec.lifecycleStatus?7:"Retired"==c.productSpec.lifecycleStatus?8:"Obsolete"==c.productSpec.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,c.productSpec.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function xd0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",66),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",67),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Md0,17,11,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,5,"CREATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function bd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",261),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateRel=!l.showCreateRel)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._add_relationship")," "))}function yd0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Fd0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function vd0(n,a){1&n&&(e.j41(0,"span",71),e.EFF(1,"Simple"),e.k0s())}function kd0(n,a){1&n&&(e.j41(0,"span",75),e.EFF(1,"Bundle"),e.k0s())}function wd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",271),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectRelationship(l))}),e.j41(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",73),e.DNE(4,vd0,2,0,"span",71)(5,kd0,2,0),e.k0s(),e.j41(6,"td",272),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.Y8G("ngClass",c.id==t.selectedProdSpec.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,0==c.isBundle?4:5),e.R7$(3),e.SpI(" ",e.i5U(8,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Sd0(n,a){if(1&n&&(e.j41(0,"div",268)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",269),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,wd0,9,11,"tr",270,e.fX1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecRels)}}function Nd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(5);return e.Njj(l.nextProdSpecsRel())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Ed0(n,a){if(1&n&&e.DNE(0,Nd0,6,3,"div",78),2&n){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Dd0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Td0(n,a){if(1&n&&e.DNE(0,Fd0,7,3,"div",58)(1,Sd0,16,9)(2,Ed0,1,1)(3,Dd0,6,0),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecRels.length?0:1),e.R7$(2),e.vxM(2,c.loadingprodSpecRel_more?3:2)}}function Rd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",262),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onRelChange(l))}),e.j41(4,"option",263),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",264),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",265),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",266),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,yd0,6,0,"div",53)(13,Td0,4,2),e.j41(14,"div",121)(15,"button",267),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveRel())}),e.EFF(16),e.nI1(17,"translate"),e.qSk(),e.j41(18,"svg",114),e.nrm(19,"path",123),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"CREATE_PROD_SPEC._relationship_type")),e.R7$(11),e.vxM(12,c.loadingprodSpecRel?12:13),e.R7$(3),e.Y8G("disabled",0==c.prodSpecRels.length||""==c.selectedProdSpec.id)("ngClass",0==c.prodSpecRels.length||""==c.selectedProdSpec.id?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(17,7,"CREATE_PROD_SPEC._save_relationship")," ")}}function Ad0(n,a){if(1&n&&(e.j41(0,"div",21),e.DNE(1,gd0,9,3,"div",255)(2,xd0,22,15)(3,bd0,6,3,"div",96)(4,Rd0,20,9),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0===c.prodRelationships.length?1:2),e.R7$(2),e.vxM(3,0==c.showCreateRel?3:4)}}function Id0(n,a){1&n&&(e.j41(0,"div",273),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Pd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",276),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._id_number")),e.R7$(3),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.productNumber," ")}}function jd0(n,a){if(1&n&&(e.j41(0,"span",279),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function $d0(n,a){if(1&n&&(e.j41(0,"span",280),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Od0(n,a){if(1&n&&(e.j41(0,"span",281),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Bd0(n,a){if(1&n&&(e.j41(0,"span",282),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Vd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",283),e.nrm(4,"markdown",284),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.description,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.description,20)))("data",null==c.productSpecToCreate?null:c.productSpecToCreate.description)}}function Ud0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",237),e.nrm(4,"img",239),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._profile_pic")),e.R7$(3),e.FS9("src",c.imgPreview,e.B4B)}}function Gd0(n,a){if(1&n&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hd0(n,a){if(1&n&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yd0(n,a){if(1&n&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qd0(n,a){if(1&n&&(e.j41(0,"span",260),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xd0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",73),e.DNE(4,Gd0,2,1,"span",256)(5,Hd0,2,1)(6,Yd0,2,1)(7,qd0,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1)}}function Wd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Xd0,8,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._bundle")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.Dyx(c.prodSpecsBundle)}}function Jd0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Qd0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value)," ")}}function Zd0(n,a){if(1&n&&e.DNE(0,Jd0,1,1)(1,Qd0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Kd0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ef0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cf0(n,a){if(1&n&&e.DNE(0,Kd0,4,2)(1,ef0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function nf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function lf0(n,a){if(1&n&&e.DNE(0,tf0,1,1)(1,nf0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sf0(n,a){if(1&n&&e.DNE(0,Zd0,2,1)(1,cf0,2,1)(2,lf0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function af0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function of0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function if0(n,a){if(1&n&&e.DNE(0,af0,4,3)(1,of0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function rf0(n,a){if(1&n&&e.DNE(0,sf0,3,1)(1,if0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function df0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",138),e.EFF(4),e.k0s(),e.j41(5,"td",107),e.Z7z(6,rf0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function ff0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,df0,8,10,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.productSpecToCreate?null:c.productSpecToCreate.productSpecCharacteristic)}}function uf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function mf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,uf0,3,5,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._resource")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedResourceSpecs)}}function pf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function hf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,pf0,3,5,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._service")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedServiceSpecs)}}function gf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function _f0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,gf0,5,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._attachments")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.Dyx(null==c.productSpecToCreate?null:c.productSpecToCreate.attachment)}}function Lf0(n,a){if(1&n&&(e.j41(0,"span",286),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Cf0(n,a){if(1&n&&(e.j41(0,"span",287),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zf0(n,a){if(1&n&&(e.j41(0,"span",288),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Mf0(n,a){if(1&n&&(e.j41(0,"span",289),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function xf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",73),e.EFF(2),e.k0s(),e.j41(3,"td",69),e.EFF(4),e.k0s(),e.j41(5,"td",70),e.DNE(6,Lf0,2,1,"span",286)(7,Cf0,2,1)(8,zf0,2,1)(9,Mf0,2,1),e.k0s(),e.j41(10,"td",72),e.EFF(11),e.nI1(12,"date"),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.productSpec.name,20),!t.hasLongWord(c.productSpec.name,20))),e.R7$(),e.SpI(" ",c.productSpec.name," "),e.R7$(2),e.vxM(6,"Active"==c.productSpec.lifecycleStatus?6:"Launched"==c.productSpec.lifecycleStatus?7:"Retired"==c.productSpec.lifecycleStatus?8:"Obsolete"==c.productSpec.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,c.productSpec.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function bf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",66),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",67),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,xf0,13,11,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,5,"CREATE_PROD_SPEC._relationships")),e.R7$(7),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function yf0(n,a){if(1&n&&(e.j41(0,"div",274)(1,"div")(2,"label",143),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",275),e.EFF(6),e.k0s(),e.j41(7,"label",38),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",276),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",143),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",275),e.EFF(17),e.k0s(),e.DNE(18,Pd0,5,4),e.k0s()(),e.j41(19,"div",277)(20,"label",278),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,jd0,2,1,"span",279)(24,$d0,2,1)(25,Od0,2,1)(26,Bd0,2,1),e.k0s(),e.DNE(27,Vd0,5,8)(28,Ud0,5,4)(29,Wd0,16,9)(30,ff0,19,12)(31,mf0,13,6)(32,hf0,13,6)(33,_f0,16,9)(34,bf0,22,15)),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,19,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(27,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.name,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.name," "),e.R7$(2),e.JRh(e.bMT(9,21,"CREATE_PROD_SPEC._product_version")),e.R7$(3),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.version," "),e.R7$(3),e.JRh(e.bMT(15,23,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",e.l_i(30,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.brand,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.brand,20))),e.R7$(),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.brand," "),e.R7$(),e.vxM(18,""!=(null==c.productSpecToCreate?null:c.productSpecToCreate.productNumber)?18:-1),e.R7$(3),e.JRh(e.bMT(22,25,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(23,"Active"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?23:"Launched"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?24:"Retired"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?25:"Obsolete"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?26:-1),e.R7$(4),e.vxM(27,""!=(null==c.productSpecToCreate?null:c.productSpecToCreate.description)?27:-1),e.R7$(),e.vxM(28,""!=c.imgPreview?28:-1),e.R7$(),e.vxM(29,c.prodSpecsBundle.length>0?29:-1),e.R7$(),e.vxM(30,c.prodChars.length>0?30:-1),e.R7$(),e.vxM(31,c.selectedResourceSpecs.length>0?31:-1),e.R7$(),e.vxM(32,c.selectedServiceSpecs.length>0?32:-1),e.R7$(),e.vxM(33,c.prodAttachments.length>0?33:-1),e.R7$(),e.vxM(34,c.prodRelationships.length>0?34:-1)}}function Ff0(n,a){if(1&n&&(e.j41(0,"div",22),e.DNE(1,Id0,6,0,"div",273)(2,yf0,35,33),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function vf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",290),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createProduct())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",c.isStepDisabled()||c.loading)("ngClass",c.loading||c.isStepDisabled()?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_PROD_SPEC._create_prod")," ")}}function kf0(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",128),e.nrm(1,"path",129),e.k0s(),e.joV(),e.j41(2,"p",301),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",302),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI("",e.bMT(4,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(7,4,"CREATE_PROD_SPEC._select_files")))}function wf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"div",291),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",292)(3,"button",293),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",294),e.nrm(5,"path",295),e.k0s(),e.joV(),e.j41(6,"span",57),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",296),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.dropped(l,i.selectedISO))})("onFileOver",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileLeave(l))}),e.DNE(10,kf0,8,6,"ng-template",297),e.k0s(),e.j41(11,"div",298)(12,"button",299),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",300),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.uploadFile())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showUploadFile?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,4,"CREATE_PROD_SPEC._close_modal")),e.R7$(6),e.SpI(" ",e.bMT(14,6,"CREATE_PROD_SPEC._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(17,8,"CREATE_PROD_SPEC._upload")," ")}}function Sf0(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Nf0=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}get dspEnable(){return g1.c.DSP_ENABLED&&this.DATA_SPACE_ENABLED}constructor(c,t,l,i,u,C,b,T){this.prodSpecService=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.attachmentService=u,this.servSpecService=C,this.resSpecService=b,this.paginationService=T,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=g1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.showGeneral=!0,this.showBundle=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.generalDone=!1,this.bundleDone=!1,this.complianceDone=!1,this.charsDone=!1,this.resourceDone=!1,this.serviceDone=!1,this.attachDone=!1,this.relationshipDone=!1,this.finishDone=!1,this.stepsElements=["general-info","bundle","compliance","chars","resource","service","attach","relationships","summary"],this.stepsCircles=["general-circle","bundle-circle","compliance-circle","chars-circle","resource-circle","service-circle","attach-circle","relationships-circle","summary-circle"],this.currentStepIdx=0,this.highestStepIdx=0,this.steps=[],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),brand:new p.MJ("",[p.k0.required,O3]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5)),dspCompatible:new p.MJ(!1)}),this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="",this.endpointUrls=[],this.transferTypes=["HttpData-PULL","HttpData-PUSH"],this.dspConfigForm=new p.gE({upstreamAddress:new p.MJ("",[p.k0.required]),transferPath:new p.MJ(""),transferType:new p.MJ("HttpData-PULL",[p.k0.required]),targetSpecification:new p.MJ("",[p.k0.required,D5]),serviceConfiguration:new p.MJ("",[p.k0.required,D5]),credentialsConfig:new p.MJ("",[p.k0.required,D5]),policyConfig:new p.MJ("",[p.k0.required,D5])}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(500)])}),this.charTypeSelected="string",this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.prodChars=[],this.finishChars=[],this.creatingChars=[],this.showCreateChar=!1,this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.prodSpecsBundle=[],this.buttonISOClicked=!1,this.availableISOS=[],this.selectedISOS=[],this.additionalISOS=[],this.showUploadFile=!1,this.disableCompNext=!0,this.showUploadAtt=!1,this.isoToCreate="",this.showCert=!1,this.serviceSpecPage=0,this.serviceSpecPageCheck=!1,this.loadingServiceSpec=!1,this.loadingServiceSpec_more=!1,this.serviceSpecs=[],this.nextServiceSpecs=[],this.selectedServiceSpecs=[],this.resourceSpecPage=0,this.resourceSpecPageCheck=!1,this.loadingResourceSpec=!1,this.loadingResourceSpec_more=!1,this.resourceSpecs=[],this.nextResourceSpecs=[],this.selectedResourceSpecs=[],this.prodRelationships=[],this.showCreateRel=!1,this.prodSpecRelPage=0,this.prodSpecRelPageCheck=!1,this.loadingprodSpecRel=!1,this.loadingprodSpecRel_more=!1,this.prodSpecRels=[],this.nextProdSpecRels=[],this.selectedProdSpec={id:""},this.selectedRelType="migration",this.showImgPreview=!1,this.showNewAtt=!1,this.imgPreview="",this.prodAttachments=[],this.attachToCreate={url:"",attachmentType:""},this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.certFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.dataSpaceCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let W=0;W{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showUploadFile&&(this.showUploadFile=!1,this.cdr.detectChanges())}ngOnInit(){this.steps=this.getFormSteps(),console.log(this.steps),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerProductSpec(!0)}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.bundlePageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const t=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.prodSpecsBundle.splice(t,1)):(console.log("a\xf1adir"),this.prodSpecsBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}isProdInBundle(c){return-1!==this.prodSpecsBundle.findIndex(l=>l.id===c.id)}toggleCompliance(){this.selectStep("compliance","compliance-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!0,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}addISO(c){const t=this.availableISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("seleccionar"),this.availableISOS.splice(t,1),this.selectedISOS.push({name:"Compliance:"+c.name,url:"",mandatory:c.mandatory,domesupported:c.domesupported})),this.buttonISOClicked=!this.buttonISOClicked,this.cdr.detectChanges(),console.log(this.availableISOS),console.log(this.selectedISOS)}removeISO(c){const t=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(i=>i.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:t,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const t=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("eliminar additional cert"),this.additionalISOS.splice(t,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){console.log("remove self att"),console.log(this.selfAtt);const c=this.finishChars.findIndex(t=>t.name===this.selfAtt.name);console.log(c),-1!==c&&(console.log("seleccionar"),this.finishChars.splice(c,1)),this.selfAtt="",this.cdr.detectChanges(),console.log(this.finishChars)}checkValidISOS(){return!!this.selectedISOS.find(t=>""===t.url)}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(u=>{if(console.log("dropped"),u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];console.log("BASE 64...."),console.log(T);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let u1={content:{name:L4()+"_"+u.name,data:T},contentType:u.type,isPublic:!0};if(!this.isValidFilename(u1.content.name))return this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(u.size>this.MAX_FILE_SIZE)return this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if("compliance"===this.currentStep.id&&!this.showUploadAtt){const a1=this.selectedISOS.findIndex(T1=>T1.name===t.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{-1!==a1?(this.selectedISOS[a1].url=T1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=T1.content},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}if("compliance"===this.currentStep.id&&this.showUploadAtt){const a1=this.finishChars.findIndex(T1=>T1.name===this.selfAtt.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{console.log(T1),-1!==a1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:T1.content}],this.finishChars[a1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+L4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:T1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}"attachments"===this.currentStep.id&&(console.log(u),this.attachmentService.uploadFile(u1).subscribe({next:a1=>{console.log(a1),"img"==t?u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=a1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:u.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:a1.content,attachmentType:u.type},this.cdr.detectChanges(),console.log("uploaded")},error:a1=>{console.error("There was an error while uploading!",a1),a1.error.error?(console.log(a1),this.errorMessage="Error: "+a1.error.error):this.errorMessage="There was an error while uploading the file!",413===a1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},C.readAsDataURL(u)}}):console.log(l.relativePath,l.fileEntry)}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){console.log(c)}fileLeave(c){console.log("leave"),console.log(c)}toggleUploadSelfAtt(){this.showUploadFile=!0,this.showUploadAtt=!0}toggleUploadFile(c){this.showUploadFile=!0,this.selectedISO=c}uploadFile(){console.log("uploading...")}toggleChars(){this.selectStep("chars","chars-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!0,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showCreateChar=!1,this.charTypeSelected="string",this.showPreview=!1,this.refreshChars()}toggleCreateCharacteristicForm(){this.showCreateChar=!this.showCreateChar,this.showCreateChar&&(this.charTypeSelected=this.dataSpaceCharacteristicTypes[0],this.creatingChars=[],this.isOptional=!1,this.optionalDftTrue=!1,this.booleanDefaultTrue=!0,"boolean"===this.charTypeSelected&&this.setBooleanDefaultValues())}toggleResource(){this.loadingResourceSpec=!0,this.resourceSpecs=[],this.resourceSpecPage=0,this.getResSpecs(!1),this.selectStep("resource","resource-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!0,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingResourceSpec=!0);let l={filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.resourceSpecPage,t.RES_SPEC_LIMIT,c,t.resourceSpecs,t.nextResourceSpecs,l,t.resSpecService.getResourceSpecByUser.bind(t.resSpecService));t.resourceSpecPageCheck=i.page_check,t.resourceSpecs=i.items,t.nextResourceSpecs=i.nextItems,t.resourceSpecPage=i.page}finally{t.loadingResourceSpec=!1,t.loadingResourceSpec_more=!1}})()}nextRes(){var c=this;return(0,C1.A)(function*(){c.loadingResourceSpec_more=!0,yield c.getResSpecs(!0)})()}addResToSelected(c){const t=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedResourceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedResourceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedResourceSpecs)}isResSelected(c){return-1!==this.selectedResourceSpecs.findIndex(l=>l.id===c.id)}toggleService(){this.loadingServiceSpec=!0,this.serviceSpecs=[],this.serviceSpecPage=0,this.getServSpecs(!1),this.selectStep("service","service-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!0,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingServiceSpec=!0),t.paginationService.getItemsPaginated(t.serviceSpecPage,t.SERV_SPEC_LIMIT,c,t.serviceSpecs,t.nextServiceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.serviceSpecPageCheck=i.page_check,t.serviceSpecs=i.items,t.nextServiceSpecs=i.nextItems,t.serviceSpecPage=i.page,t.loadingServiceSpec=!1,t.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,C1.A)(function*(){yield c.getServSpecs(!0)})()}addServToSelected(c){const t=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedServiceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedServiceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedServiceSpecs)}isServSelected(c){return-1!==this.selectedServiceSpecs.findIndex(l=>l.id===c.id)}toggleAttach(){this.selectStep("attach","attach-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!0,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(t=>t.url===this.imgPreview);-1!==c&&(console.log("eliminar"),this.prodAttachments.splice(c,1)),this.imgPreview="",this.cdr.detectChanges()}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:"Picture"}),this.attImageName.reset(),this.cdr.detectChanges()}removeAtt(c){const t=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==t&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[t].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(t,1)),this.cdr.detectChanges()}saveAtt(){console.log("saving"),this.prodAttachments.push({name:this.attachName.nativeElement.value,url:this.attachToCreate.url,attachmentType:this.attachToCreate.attachmentType}),this.attachName.nativeElement.value="",this.attachToCreate={url:"",attachmentType:""},this.showNewAtt=!1,this.attFileName.reset()}clearAtt(){this.attachToCreate={url:"",attachmentType:""}}saveAdditionalCert(){console.log("saving"),this.additionalISOS.push({name:"Compliance:"+this.certificationName.nativeElement.value,url:this.isoToCreate}),this.certificationName.nativeElement.value="",this.isoToCreate="",this.certFileName.reset(),this.showCert=!1}clearAdditionalCert(c){c||(this.certificationName.nativeElement.value="",this.certFileName.reset()),this.isoToCreate=""}toggleRelationship(){this.prodSpecRels=[],this.prodSpecRelPage=0,this.showCreateRel=!1,this.loadingprodSpecRel=!0,this.getProdSpecsRel(!1),this.selectStep("relationships","relationships-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getProdSpecsRel(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingprodSpecRel=!0),t.paginationService.getItemsPaginated(t.prodSpecRelPage,t.PROD_SPEC_LIMIT,c,t.prodSpecRels,t.nextProdSpecRels,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecRelPageCheck=i.page_check,t.prodSpecRels=i.items,t.nextProdSpecRels=i.nextItems,t.prodSpecRelPage=i.page,t.loadingprodSpecRel=!1,t.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecsRel(!0)})()}onRelChange(c){console.log("relation type changed"),this.selectedRelType=c.target.value}saveRel(){this.showCreateRel=!1,this.prodRelationships.push({id:this.selectedProdSpec.id,href:this.selectedProdSpec.href,relationshipType:this.selectedRelType,productSpec:this.selectedProdSpec}),this.selectedRelType="migration",console.log(this.prodRelationships)}deleteRel(c){const t=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==t&&(console.log("eliminar"),this.prodRelationships.splice(t,1)),this.cdr.detectChanges()}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.creatingChars=[]}setBooleanDefaultValues(){this.creatingChars=[{isDefault:this.booleanDefaultTrue,value:!0},{isDefault:!this.booleanDefaultTrue,value:!1}]}onBooleanDefaultChange(){"boolean"==this.charTypeSelected&&this.setBooleanDefaultValues()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u!t.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(t=>this.isDataSpaceCharacteristicType(t.valueType)):c.filter(t=>!this.isDataSpaceCharacteristicType(t.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?"credentialsConfiguration":"string"}getFormSteps(){const c=[{label:"General Info",id:"general"}];return this.BUNDLE_ENABLED&&c.push({label:"Bundle",id:"bundle"}),c.push({label:"Compliance profile",id:"compliance"}),c.push({label:"Characteristics",id:"characteristics"}),this.DATA_SPACE_ENABLED&&c.push({label:"Dataspace Configuration",id:"dataspace"}),c.push({label:"Resource specifications",id:"resource"}),c.push({label:"Service specifications",id:"service"}),c.push({label:"Attachments",id:"attachments"}),c.push({label:"Relationships",id:"relationships"}),c.push({label:"Summary",id:"summary"}),c}getSchemaLocationForType(c){return"credentialsConfiguration"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json":"authorizationPolicy"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json":null}addCharValue(){if(this.isTextCharacteristicType(this.charTypeSelected))console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue="";else if("number"==this.charTypeSelected)console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue="";else if("range"==this.charTypeSelected){if(console.log("range"),Number(this.fromValue)>=Number(this.toValue))return console.log("range validation error: valueFrom >= valueTo"),this.errorMessage='Invalid range: "From" value must be less than "To" value',this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})}else if(this.isJsonCharacteristicType(this.charTypeSelected)){if(this.creatingChars.length>0)return this.errorMessage="Only one JSON value is allowed",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);try{const c=JSON.parse(this.jsonValue);this.creatingChars.push({isDefault:!0,value:c}),this.jsonValue=""}catch{return this.errorMessage="Invalid JSON format",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)}}else{if("boolean"==this.charTypeSelected)return void console.log("boolean values are fixed");console.log("nothing")}}removeCharValue(c,t){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(t,1),console.log(this.creatingChars))}selectDefaultChar(c,t){for(let l=0;li.name===this.charsForm.value.name))return console.log("name duplicated error"),this.errorMessage="Cannot save duplicated name in characteristics",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);const c={id:"urn:ngsi-ld:characteristic:"+L4(),name:this.charsForm.value.name,description:null!=this.charsForm.value.description?this.charsForm.value.description:"",productSpecCharacteristicValue:this.creatingChars},t=this.getSchemaLocationForType(this.charTypeSelected),l=["string","number","boolean","range"];l.includes(this.charTypeSelected)||(c.valueType=this.charTypeSelected),t&&(c["@schemaLocation"]=t),this.prodChars.push(c),this.isOptional&&l.includes(this.charTypeSelected)&&"boolean"!==this.charTypeSelected&&this.prodChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.charsForm.value.name+" - enabled",description:"Optional toggle for "+this.charsForm.value.name,productSpecCharacteristicValue:[{isDefault:this.optionalDftTrue,value:!0},{isDefault:!this.optionalDftTrue,value:!1}]})}this.charsForm.reset(),this.creatingChars=[],this.showCreateChar=!1,this.charTypeSelected="string",this.isOptional=!1,this.optionalDftTrue=!1,this.refreshChars(),this.cdr.detectChanges()}deleteChar(c){const t=this.prodChars.findIndex(l=>l.id===c.id);if(-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(i=>i.name===c.name+" - enabled");-1!==l&&(console.log("eliminar related enabled"),this.prodChars.splice(l,1))}this.cdr.detectChanges(),console.log(this.prodChars)}checkInput(c){return 0===c.trim().length}showFinish(){this.relationshipDone=!0,this.finishDone=!0,this.finishChars=[],console.log("--- set product data"),console.log(this.prodChars);for(let t=0;ti.name===this.prodChars[t].name)){const i=this.prodChars[t]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(C=>C.name===i)&&"Compliance:SelfAtt"!=this.prodChars[t].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[t].name),-1!=this.additionalISOS.findIndex(b=>b.name===i)&&this.finishChars.push(this.prodChars[t]),this.prodChars[t].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[t])):this.finishChars.push(this.prodChars[t])}for(let t=0;ti.name===this.selectedISOS[t].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.selectedISOS[t].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[t].url}]});for(let t=0;ti.name===this.additionalISOS[t].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.additionalISOS[t].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[t].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const t="Compliance:SelfAtt",l=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,i=this.finishChars.findIndex(b=>b.name===t),C={id:this.selfAtt?.id?this.selfAtt.id:-1!==i&&this.finishChars[i]?.id?this.finishChars[i].id:`urn:ngsi-ld:characteristic:${L4()}`,name:t,productSpecCharacteristicValue:[{isDefault:!0,value:l}]};-1===i?this.finishChars.push(C):this.finishChars[i]=C}let c=[];for(let t=0;t{this.productSpecToCreate.productSpecCharacteristic.push({id:L4(),description:l.description,valueType:"endpointUrl",name:l.name,productSpecCharacteristicValue:[{value:l.url,isDefault:!0}]})});const t=this.dspConfigForm.value;this.productSpecToCreate.productSpecCharacteristic.push({id:"upstreamAddress",name:"Address of the upstream serving the data",valueType:"upstreamAddress",productSpecCharacteristicValue:[{value:t.upstreamAddress,isDefault:!0}]},{id:"targetSpecification",name:"Detailed specification of the ODRL target. Allows to over services via OID4VC",valueType:"targetSpecification",productSpecCharacteristicValue:[{value:JSON.parse(t.targetSpecification),isDefault:!0}]},{id:"serviceConfiguration",name:"Service config to be used in the credentials config service when provisioning transfers through OID4VC",valueType:"serviceConfiguration",productSpecCharacteristicValue:[{value:JSON.parse(t.serviceConfiguration),isDefault:!0}]},{id:"credentialsConfig",name:"Credentials Config",valueType:"credentialsConfig","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(t.credentialsConfig),isDefault:!0}]},{id:"policyConfig",name:"Policy for creation of K8S clusters.",valueType:"authorizationPolicy","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(t.policyConfig),isDefault:!0}]},{id:"transferType",name:"transferType",valueType:"transferType",productSpecCharacteristicValue:[{value:t.transferType,isDefault:!0}]}),t.transferPath&&this.productSpecToCreate.productSpecCharacteristic.push({id:"transferPath",name:"transferPath",valueType:"transferPath",productSpecCharacteristicValue:[{value:t.transferPath,isDefault:!0}]})}console.log("PRODUCTO A CREAR:"),console.log(this.productSpecToCreate),console.log(this.imgPreview),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!0,this.showPreview=!1,this.refreshChars()}createProduct(){this.loading=!0,this.prodSpecService.postProdSpec(this.productSpecToCreate).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the product!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}addBold(){this.generalForm.patchValue({description:this.generalForm.value.description+" **bold text** "})}addItalic(){this.generalForm.patchValue({description:this.generalForm.value.description+" _italicized text_ "})}addList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n`code`"})}addCodeBlock(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n> blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getValuePreview(c,t=80){if(null==c)return"";let l="";if("string"==typeof c)l=c;else try{l=JSON.stringify(c)}catch{l=String(c)}return l.length>t?`${l.slice(0,t)}...`:l}goToStep(c){c>this.currentStepIdx&&!this.validateCurrentStep()||("general"===this.currentStep.id&&this.dspEnable&&(this.generalForm.value.dspCompatible?(this.addStepAfter({label:"DSP Config",id:"dsp_config"},"characteristics"),this.removeStep("dataspace")):(this.removeStep("dsp_config"),this.addStepAfter({label:"Dataspace Configuration",id:"dataspace"},"characteristics"))),this.currentStepIdx=c,this.currentStepIdx>this.highestStepIdx&&(this.highestStepIdx=c),this.refreshChars(),"compliance"===this.currentStep.id&&setTimeout(()=>{D2()},100),"resource"===this.currentStep.id&&this.getResSpecs(!1),"service"===this.currentStep.id&&this.getServSpecs(!1),"attachments"===this.currentStep.id&&setTimeout(()=>{D2()},100),"relationships"===this.currentStep.id&&this.getProdSpecsRel(!1),"summary"===this.currentStep.id&&this.showFinish())}validateCurrentStep(){switch(this.currentStep.id){case"general":return this.generalForm?.valid||!1;case"dsp_config":return this.endpointUrls.length>0&&this.dspConfigForm.valid;default:return!0}}isStepDisabled(){switch(this.currentStep.id){case"general":return!this.generalForm?.valid||!1;case"bundle":return this.prodSpecsBundle.length<2&&this.bundleChecked;case"compliance":return this.checkValidISOS();case"dsp_config":return 0===this.endpointUrls.length;default:return!1}}addEndpointUrl(){const c=this.newEndpointUrl.trim(),t=this.newEndpointDescription.trim(),l=this.newEndpointName.trim();!c||!t||!l||(this.endpointUrls=[...this.endpointUrls,{url:c,description:t,name:l}],this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="")}removeEndpointUrl(c){this.endpointUrls=this.endpointUrls.filter((t,l)=>l!==c)}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStepIdx||this.generalForm?.valid&&c<=this.highestStepIdx}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}addStepAfter(c,t){if(t||this.steps.push(c),this.steps.some(u=>u.id===c.id))return;const i=this.steps.findIndex(u=>u.id===t);this.steps=[...this.steps.slice(0,i+1),c,...this.steps.slice(i+1)]}removeStep(c){const t=this.steps.findIndex(l=>l.id===c);-1!==t&&(this.currentStepIdx>=t&&(this.currentStepIdx=t-1),this.highestStepIdx>=t&&(this.highestStepIdx=t-1),this.steps=this.steps.filter(l=>l.id!==c))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-product-spec"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Ho0,5),e.GBs(Yo0,5),e.GBs(qo0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.attachName=i.first),e.mGM(i=e.lsd())&&(l.imgURL=i.first),e.mGM(i=e.lsd())&&(l.certificationName=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:50,vars:38,consts:[["certificationName",""],["imgURL",""],["attachName",""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:pb-8"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"m-4"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","btnNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","btnCreateProduct",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],["id","upload-file-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputVersion","formControlName","version","type","text","id","prod-version",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-brand",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputBrand","formControlName","brand","type","text","id","prod-brand",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-number",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputIdNumber","formControlName","number","type","text","id","prod-number",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"col-span-2","flex","items-center","h-fit"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],["for","dsp-compatible",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","dsp-compatible","formControlName","dspCompatible",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],["type","checkbox",1,"sr-only","peer",3,"change","checked"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","lg:table-cell","px-6","py-4"],[1,"px-6","py-4"],["id","select-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","ml-4"],[1,"flex","items-center","justify-between","ml-4","border","border-1","p-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md"],[1,"mb-2","text-gray-800","dark:text-gray-200"],[1,"flex","items-center","justify-between"],["data-cy","productSpecUploadFirst","type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 5v9m-5 0H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2M8 9l4-5 4 5m1 8h.01"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","m-4"],[1,"flex","justify-center","w-full","m-4","dark:bg-secondary-300"],[1,"relative","flex","w-full","justify-end","ml-4"],[1,"relative","inline-block","group"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2\n bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50\n transition-opacity duration-200 w-max max-w-xs whitespace-normal break-words\n opacity-0 invisible group-hover:opacity-100 group-hover:visible",4,"ngIf"],[1,"flex","w-full","justify-items-center","justify-center"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["id","dropdownButtonISO","data-dropdown-toggle","dropdownISO","type","button",1,"text-white","w-full","m-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","justify-between",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],["id","dropdownISO",1,"z-10","w-full","ml-4","mr-4","bg-secondary-50","dark:bg-secondary-300","divide-y","divide-gray-100","rounded-lg","shadow"],["aria-labelledby","dropdownButtonISO",1,"p-3","space-y-3","text-sm","text-gray-700"],["for","checkbox-item-1",1,"ms-2","text-sm",3,"ngClass"],["data-cy","productSpecCharAddISO","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","18","height","18","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4","inline-flex"],["data-cy","productSpecUploadSecond","type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["data-cy","productSpecDeleteCompliance","type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50","transition-opacity","duration-200","w-max","max-w-xs","whitespace-normal","break-words","opacity-0","invisible","group-hover:opacity-100","group-hover:visible"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],[1,"m-4","w-full"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","rounded-lg","p-4"],[1,"h-fit"],["for","cert-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","cert-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],["dropZoneLabel","Drop files here",1,"p-4","w-full"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["type","button",1,"flex","ml-4","text-gray-900","justify-end","bg-gray-400","hover:bg-primary-50","focus:ring-4","focus:outline-none","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["dropZoneLabel","Drop files here",1,"p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["role","alert",1,"relative","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-wrap","break-all"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["data-cy","btnNewCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["data-cy","charName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","charType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","charDescription","id","description","formControlName","description","rows","4","maxLength","500",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],["data-cy","btnSaveCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["value","credentialsConfiguration"],["value","authorizationPolicy"],["value","string"],["value","number"],["value","range"],["value","boolean"],[1,"col-span-2","flex","align-items-middle","h-fit"],["for","is-optional",1,"font-bold","text-lg","dark:text-white"],["type","checkbox","id","is-optional",1,"sr-only","peer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","charStringValue","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddStringValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","charNumberValue","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charNumberUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddNumberValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["for","boolean-default",1,"font-bold","text-lg","dark:text-white"],["data-cy","charBooleanDefault","id","boolean-default","type","checkbox",1,"sr-only","peer",3,"ngModelChange","change","ngModel","ngModelOptions"],["data-cy","charRangeFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charRangeTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charRangeUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddRangeValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],[1,"flex","flex-col","w-full"],["for","json-value",1,"font-bold","text-sm","dark:text-white","mb-2"],["id","json-value","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","mr-2","text-white"],["data-cy","tableResourceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],["data-cy","tableServiceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","mb-4"],[1,"flex","flex-col","gap-2"],[1,"flex","gap-4"],[1,"flex","flex-col","w-1/2"],["data-cy","dspEndpointName","type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["data-cy","dspEndpointUrl","type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["data-cy","dspEndpointDescription","rows","3","maxlength","100000",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],[1,"flex","justify-center"],["data-cy","dspAddEndpoint","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","ml-2","text-white"],[1,"mt-2","text-sm","text-red-500"],[1,"my-6","border-gray-200","dark:border-gray-700"],[1,"flex","flex-col","gap-4",3,"formGroup"],[1,"w-3/6"],["data-cy","dspUpstreamAddress","formControlName","upstreamAddress","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"w-2/6"],["data-cy","dspTransferPath","formControlName","transferPath","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspTransferType","formControlName","transferType",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["data-cy","dspTargetSpecification","formControlName","targetSpecification","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspServiceConfiguration","formControlName","serviceConfiguration","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspCredentialsConfig","formControlName","credentialsConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspPolicyConfig","formControlName","policyConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"table-fixed","w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],["scope","col",1,"w-96","px-6","py-3"],["scope","col",1,"w-48","px-2","py-3","text-center"],[1,"px-6","py-4","break-all"],[1,"px-6","py-4","break-words"],[1,"px-2","py-4","text-center"],[1,"mt-1","text-sm","text-red-500"],[1,"inline-flex"],[1,"text-lg","font-bold","ml-4","dark:text-white"],[1,"ml-4","flex"],["data-popover-target","popover-default","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["data-popover","","id","popover-default","role","tooltip",1,"absolute","z-10","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"flex","justify-center","w-full","ml-6","mt-2","mb-2","mr-4"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],["data-cy","productSpecAttachSelectFile",1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],["data-cy","productSpecAddNewAttachment","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","dark:border-secondary-200","rounded-lg","p-4"],["for","att-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","att-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],[1,"flex","justify-center","w-full","mb-4"],[1,"bg-blue-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","productSpecDeleteRelationship",1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],[1,"bg-blue-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["data-cy","productSpecAddRelationship","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","migration"],["value","dependency"],["value","exclusivity"],["value","substitution"],["data-cy","productSpecSaveRelationship","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-6","py-4","hidden","md:table-cell"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"mb-4","md:grid","md:grid-cols-2","gap-4"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","dark:bg-secondary-300","border","dark:border-secondary-200"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"bg-blue-100","dark:bg-secondary-200","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-200","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-200","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-200","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["data-cy","btnCreateProduct",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["dropZoneLabel","Drop files here",1,"m-4","p-4",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[1,"flex","justify-center","items-center","space-x-4"],["data-cy","productSpecCancelUpload","type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["data-cy","productSpecConfirmUpload","type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","hover:bg-primary-50","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click"],[1,"text-gray-500","mr-4"],["data-cy","productSpecSelectFile",1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"h2",16),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",17),e.Z7z(22,Jo0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,Zo0,24,20,"form",20)(27,pi0,8,5)(28,Si0,35,19)(29,mr0,4,2)(30,vr0,4,2)(31,$r0,4,2)(32,td0,67,43,"div",21)(33,hd0,26,15)(34,Ad0,5,2,"div",21)(35,Ff0,3,1,"div",22),e.k0s(),e.j41(36,"div",23)(37,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStepIdx-1)}),e.qSk(),e.j41(38,"svg",25),e.nrm(39,"path",26),e.k0s(),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.joV(),e.j41(42,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStepIdx+1)}),e.EFF(43),e.nI1(44,"translate"),e.qSk(),e.j41(45,"svg",28),e.nrm(46,"path",29),e.k0s()(),e.DNE(47,vf0,3,5,"button",30),e.k0s()()()(),e.DNE(48,wf0,18,10,"div",31)(49,Sf0,1,1,"error-message",32)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,22,"CREATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,24,"CREATE_PROD_SPEC._create")),e.R7$(4),e.SpI("",e.bMT(20,26,"CREATE_PROD_SPEC._new")," "),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,"general"===l.currentStep.id?26:-1),e.R7$(),e.vxM(27,"bundle"===l.currentStep.id?27:-1),e.R7$(),e.vxM(28,"compliance"===l.currentStep.id?28:-1),e.R7$(),e.vxM(29,"characteristics"===l.currentStep.id||"dataspace"===l.currentStep.id?29:-1),e.R7$(),e.vxM(30,"resource"===l.currentStep.id?30:-1),e.R7$(),e.vxM(31,"service"===l.currentStep.id?31:-1),e.R7$(),e.vxM(32,"dsp_config"===l.currentStep.id?32:-1),e.R7$(),e.vxM(33,"attachments"===l.currentStep.id?33:-1),e.R7$(),e.vxM(34,"relationships"===l.currentStep.id?34:-1),e.R7$(),e.vxM(35,"summary"===l.currentStep.id?35:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStepIdx)("ngClass",e.l_i(32,Xo0,0!==l.currentStepIdx,0===l.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(41,28,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStepIdx===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())("ngClass",e.l_i(35,Wo0,l.currentStepIdx!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStepIdx)),l.currentStepIdx===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStepIdx))),e.R7$(),e.SpI(" ",e.bMT(44,30,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(47,"summary"===l.currentStep.id?47:-1),e.R7$(),e.vxM(48,l.showUploadFile?48:-1),e.R7$(),e.vxM(49,l.showError?49:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.R_,p.vS,p.l_,p.j4,p.JD,z0,R4,N0,me,E0,_.vh,s1.D9],styles:[".floating-div[_ngcontent-%COMP%]{position:relative;top:-50px;left:50%;transform:translate(-50%);padding:10px;border-radius:5px}.disabled[_ngcontent-%COMP%]{cursor:not-allowed}"]})}}return n})();const Ef0=(n,a)=>a.id,Df0=(n,a)=>({"break-all":n,"break-words":a});function Tf0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Rf0(n,a){if(1&n&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Af0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function If0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pf0(n,a){if(1&n&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jf0(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function $f0(n,a){1&n&&(e.j41(0,"span",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function Of0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",43)(1,"td",45),e.EFF(2),e.k0s(),e.j41(3,"td",46),e.DNE(4,Rf0,2,1,"span",47)(5,Af0,2,1)(6,If0,2,1)(7,Pf0,2,1),e.k0s(),e.j41(8,"td",48),e.DNE(9,jf0,3,3,"span",49)(10,$f0,3,3),e.k0s(),e.j41(11,"td",50),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",46)(15,"button",51),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",52),e.nrm(17,"path",53),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(8,Df0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,1==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Bf0(n,a){1&n&&(e.j41(0,"div",44)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Vf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",61),e.nrm(5,"path",9),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Uf0(n,a){if(1&n&&e.DNE(0,Vf0,6,3,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Gf0(n,a){1&n&&(e.j41(0,"div",62),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Hf0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",41),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",39),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody",42),e.Z7z(21,Of0,18,11,"tr",43,Ef0,!1,Bf0,7,3,"div",44),e.k0s()()(),e.DNE(24,Uf0,1,1)(25,Gf0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"OFFERINGS._type")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.prodSpecs),e.R7$(3),e.vxM(24,c.loading_more?25:24)}}let Yf0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faSparkles=A2.p7g,this.searchField=new p.MJ,this.prodSpecs=[],this.nextProdSpecs=[],this.page=0,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.isBundle=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getProdSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initProdSpecs()})}ngOnInit(){this.initProdSpecs();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initProdSpecs(){this.loading=!0,this.prodSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getProdSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateProductSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateProductSpec(c)}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:t.status,partyId:t.partyId,sort:t.sort,isBundle:t.isBundle},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.page_check=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getProdSpecs(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getProdSpecs(!1)}onTypeChange(c){this.isBundle="simple"!=c.target.value&&("bundle"==c.target.value||void 0),this.getProdSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-product-spec"]],decls:56,vars:32,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createProdSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"hidden","lg:block","pl-2","pr-2"],[1,"block","lg:hidden","pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],["scope","col",1,"px-6","py-3","hidden","lg:table-cell"],["data-cy","prodSpecTable"],["data-cy","prodSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"px-6","py-4","hidden","lg:table-cell"],["data-cy","productSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",7),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",8),e.nrm(16,"path",9),e.k0s()()()(),e.joV(),e.j41(17,"div",10)(18,"div",11)(19,"div",12),e.nrm(20,"fa-icon",13),e.j41(21,"h2",14),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"button",15),e.EFF(25),e.nI1(26,"translate"),e.qSk(),e.j41(27,"svg",16),e.nrm(28,"path",17),e.k0s()(),e.joV(),e.j41(29,"div",18)(30,"h6",19),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"ul",20)(34,"li",21)(35,"input",22),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(36,"label",23),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"li",21)(40,"input",24),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(41,"label",25),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"li",21)(45,"input",26),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(46,"label",27),e.EFF(47),e.nI1(48,"translate"),e.k0s()(),e.j41(49,"li",21)(50,"input",28),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(51,"label",29),e.EFF(52),e.nI1(53,"translate"),e.k0s()()()()()()(),e.DNE(54,Tf0,6,0,"div",30)(55,Hf0,26,17),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,12,"OFFERINGS._prod_spec")),e.R7$(5),e.JRh(e.bMT(11,14,"OFFERINGS._add_new_prod")),e.R7$(3),e.JRh(e.bMT(14,16,"OFFERINGS._add_new_prod_short")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(23,18,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(26,20,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(32,22,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(38,24,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(43,26,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(48,28,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(53,30,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(54,l.loading?54:55))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();var qf0=y(8866);const Xf0=(n,a)=>a.type+a.name+a.value;function Wf0(n,a){1&n&&(e.j41(0,"span",27),e.EFF(1,"Not provided"),e.k0s())}function Jf0(n,a){if(1&n&&(e.j41(0,"a",28),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.value,e.B4B),e.R7$(),e.SpI(" ",c.value," ")}}function Qf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.value," ")}}function Zf0(n,a){if(1&n&&(e.j41(0,"tr",15)(1,"td",25),e.EFF(2),e.k0s(),e.j41(3,"td",25),e.EFF(4),e.k0s(),e.j41(5,"td",26),e.DNE(6,Wf0,2,0,"span",27)(7,Jf0,2,2)(8,Qf0,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG();e.R7$(2),e.JRh(c.type),e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(6,c.missing?6:t.isHttpUrl(c.value)?7:8)}}function Kf0(n,a){1&n&&(e.j41(0,"tr")(1,"td",29),e.EFF(2," No compliance evidence available. "),e.k0s()())}function eu0(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1," Some information of your organization required for the validation process is missing. Please update you organization profile. "),e.k0s())}function cu0(n,a){if(1&n&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",c.requestValidationError," ")}}let tu0=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.accountService=t,this.prodSpecService=l,this.showModal=!1,this.selectedISOS=[],this.additionalISOS=[],this.requestValidationLoading=!1,this.requestValidationError="",this.organizationInfo=this.getEmptyOrganizationInfo(),this.closeModal=new e.bkB}ngOnChanges(c){!0===c.showModal?.currentValue&&(this.requestValidationError="",this.loadOrganizationInfoFromCurrentSession())}get validationEvidenceRows(){const c=[],t=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value??"";c.push({type:"Self attestation",name:"Self attestation",value:t,missing:!t});for(const l of this.selectedISOS){const i=l?.url??"";c.push({type:"Third-party certification",name:this.normalizeName(l?.name),value:i,missing:!i})}for(const l of this.additionalISOS){const i=l?.url??"";c.push({type:"Additional certification",name:this.normalizeName(l?.name),value:i,missing:!i})}return c}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}isHttpUrl(c){return/^https?:\/\//i.test(c??"")}hasMissingOrganizationInfo(){return[this.organizationInfo.organizationName,this.organizationInfo.organizationVat,this.organizationInfo.organizationAddress,this.organizationInfo.organizationCountry,this.organizationInfo.organizationWebsite,this.organizationInfo.organizationEmail].some(c=>this.isMissing(c))}isMissing(c){return!c||""===c.trim()}submitRequestValidation(){if(!this.hasMissingOrganizationInfo()&&!this.requestValidationLoading){if(!this.productSpec)return void(this.requestValidationError="Product specification information is not available.");this.requestValidationLoading=!0,this.requestValidationError="",this.prodSpecService.requestComplianceCertificate(this.buildRequestPayload(this.productSpec)).subscribe({next:()=>{this.requestValidationLoading=!1,this.closeModal.emit()},error:c=>{console.error("There was an error while requesting validation!",c),this.requestValidationLoading=!1,this.requestValidationError=this.extractErrorMessage(c)}})}}loadOrganizationInfoFromCurrentSession(){var c=this;return(0,C1.A)(function*(){const t=c.getOrganizationPartyId();if(t)try{const l=yield c.accountService.getOrgInfo(t);c.organizationInfo=c.mapOrganizationInfo(l)}catch(l){console.error("There was an error while loading organization info!",l),c.organizationInfo=c.getEmptyOrganizationInfo()}else c.organizationInfo=c.getEmptyOrganizationInfo()})()}getOrganizationPartyId(){const c=this.localStorage.getObject("login_items");return c&&"{}"!==JSON.stringify(c)&&c.logged_as!==c.id?(Array.isArray(c.organizations)?c.organizations:[]).find(i=>i?.id==c.logged_as)?.partyId??"":""}mapOrganizationInfo(c){const t=Array.isArray(c?.contactMedium)?c.contactMedium:[],l=Array.isArray(c?.partyCharacteristic)?c.partyCharacteristic:[],i=Array.isArray(c?.externalReference)?c.externalReference:[],u=t.find(W=>"Email"===W?.mediumType),b=t.find(W=>"PostalAddress"===W?.mediumType)?.characteristic??{},T=this.getPartyCharacteristicValue(l,"country");return{organizationName:c?.tradingName??c?.name??"",organizationVat:this.getOrganizationVat(i),organizationAddress:this.formatPostalAddress(b),organizationCountry:T,organizationWebsite:this.getPartyCharacteristicValue(l,"website"),organizationEmail:u?.characteristic?.emailAddress??""}}getOrganizationVat(c){return c.length?c.find(l=>"idm_id"===(l?.externalReferenceType??"").toLowerCase())?.name??"":""}getPartyCharacteristicValue(c,t){return c.find(i=>i?.name===t)?.value??""}formatPostalAddress(c){return c?[c.street1,c.postCode,c.city,c.stateOrProvince].filter(t=>!!t).join(", "):""}getEmptyOrganizationInfo(){return{organizationName:"",organizationVat:"",organizationAddress:"",organizationCountry:"",organizationWebsite:"",organizationEmail:""}}buildRequestPayload(c){return JSON.parse(JSON.stringify(c))}extractErrorMessage(c){const t=c?.error?.error??c?.error?.message??c?.message;return t?`Error: ${t}`:"Error: there was a problem requesting the validation."}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(K3))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["request-validation-modal"]],inputs:{showModal:"showModal",productSpec:"productSpec",selfAtt:"selfAtt",selectedISOS:"selectedISOS",additionalISOS:"additionalISOS"},outputs:{closeModal:"closeModal"},features:[e.OA$],decls:70,vars:23,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-500","z-50",2,"opacity","0","pointer-events","none",3,"click"],[1,"w-full","md:w-5/6","lg:w-3/4","xl:w-2/3","h-full","bg-secondary-50","dark:bg-gray-800","p-6","overflow-y-auto","transform","transition-transform","duration-500",2,"transform","translateX(100%)",3,"click"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"sr-only"],[1,"mt-2","mb-5","text-sm","text-gray-500","dark:text-gray-400"],[1,"mb-6"],[1,"mb-2","font-semibold","text-gray-900","dark:text-white"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"p-4","bg-white","border","rounded-lg","dark:bg-secondary-300",3,"ngClass"],[1,"text-xs","uppercase","text-gray-500","dark:text-gray-300"],[1,"mt-1","text-sm","text-gray-900","dark:text-white","break-all"],["role","alert",1,"mb-6","p-4","text-sm","text-amber-800","rounded-lg","bg-amber-100","dark:bg-amber-900","dark:text-amber-200"],["role","alert",1,"mb-6","p-4","text-sm","text-red-800","rounded-lg","bg-red-100","dark:bg-red-900","dark:text-red-200"],[1,"flex","justify-end","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click","disabled","ngClass"],[1,"px-6","py-4"],[1,"px-6","py-4","break-all"],[1,"font-medium","text-red-600"],["target","_blank",1,"font-medium","text-blue-600","dark:text-blue-500","hover:underline",3,"href"],["colspan","3",1,"px-6","py-4","text-center","text-gray-500","dark:text-gray-300"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(){return l.closeModal.emit()}),e.j41(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"h3",3),e.EFF(4,"Request Validation"),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return l.closeModal.emit()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.joV(),e.j41(8,"span",7),e.EFF(9,"Close drawer"),e.k0s()()(),e.j41(10,"p",8),e.EFF(11," Requesting a validation will submit your certificates and self attestation to the compliance service for validation. "),e.k0s(),e.j41(12,"div",9)(13,"h4",10),e.EFF(14,"Evidence to be submitted"),e.k0s(),e.j41(15,"div",11)(16,"table",12)(17,"thead",13)(18,"tr")(19,"th",14),e.EFF(20,"Type"),e.k0s(),e.j41(21,"th",14),e.EFF(22,"Name"),e.k0s(),e.j41(23,"th",14),e.EFF(24,"Document"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Zf0,9,3,"tr",15,Xf0,!1,Kf0,3,0,"tr"),e.k0s()()()(),e.j41(29,"div",9)(30,"h4",10),e.EFF(31,"Organization info"),e.k0s(),e.j41(32,"div",16)(33,"div",17)(34,"p",18),e.EFF(35,"Organization name"),e.k0s(),e.j41(36,"p",19),e.EFF(37),e.k0s()(),e.j41(38,"div",17)(39,"p",18),e.EFF(40,"Organization VAT"),e.k0s(),e.j41(41,"p",19),e.EFF(42),e.k0s()(),e.j41(43,"div",17)(44,"p",18),e.EFF(45,"Organization address"),e.k0s(),e.j41(46,"p",19),e.EFF(47),e.k0s()(),e.j41(48,"div",17)(49,"p",18),e.EFF(50,"Organization country"),e.k0s(),e.j41(51,"p",19),e.EFF(52),e.k0s()(),e.j41(53,"div",17)(54,"p",18),e.EFF(55,"Organization website"),e.k0s(),e.j41(56,"p",19),e.EFF(57),e.k0s()(),e.j41(58,"div",17)(59,"p",18),e.EFF(60,"Organization email"),e.k0s(),e.j41(61,"p",19),e.EFF(62),e.k0s()()()(),e.DNE(63,eu0,2,0,"div",20)(64,cu0,2,1,"div",21),e.j41(65,"div",22)(66,"button",23),e.bIt("click",function(){return l.closeModal.emit()}),e.EFF(67," Cancel "),e.k0s(),e.j41(68,"button",24),e.bIt("click",function(){return l.submitRequestValidation()}),e.EFF(69," Request Validation "),e.k0s()()()()),2&t&&(e.xc7("opacity",l.showModal?"1":"0")("pointer-events",l.showModal?"auto":"none"),e.R7$(),e.xc7("transform",l.showModal?"translateX(0)":"translateX(100%)"),e.R7$(25),e.Dyx(l.validationEvidenceRows),e.R7$(7),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationName)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationName||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationVat)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationVat||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationAddress)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationAddress||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationCountry)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationCountry||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationWebsite)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationWebsite||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationEmail)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationEmail||"-"),e.R7$(),e.vxM(63,l.hasMissingOrganizationInfo()?63:-1),e.R7$(),e.vxM(64,l.requestValidationError?64:-1),e.R7$(4),e.Y8G("disabled",l.hasMissingOrganizationInfo()||l.requestValidationLoading||!l.productSpec)("ngClass",l.hasMissingOrganizationInfo()||l.requestValidationLoading||!l.productSpec?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"))},dependencies:[_.YU]})}}return n})();const nu0=["attachName"],lu0=["imgURL"],su0=["certificationName"],aH=(n,a)=>a.id,LE1=(n,a)=>a.name,au0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),ou0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),m8=(n,a)=>({"break-all":n,"break-words":a}),oH=()=>({standalone:!0});function iu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",34),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",35),e.EFF(2),e.k0s(),e.j41(3,"span",36),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStepIdx===t),e.R7$(),e.AVh("bg-primary-100",l.currentStepIdx===t)("text-white",l.currentStepIdx===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function ru0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",54),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Active"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",55),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._active")," "))}function du0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Active"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._active")," "))}function fu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Launched"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._launched")," "))}function uu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Launched"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._launched")," "))}function mu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",61),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Retired"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",62),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._retired")," "))}function pu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Retired"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._retired")," "))}function hu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",63),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Obsolete"))}),e.j41(1,"span",64),e.qSk(),e.j41(2,"svg",65),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._obsolete")," "))}function gu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",63),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Obsolete"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._obsolete")," "))}function _u0(n,a){if(1&n&&(e.j41(0,"form",20)(1,"div")(2,"label",37),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",38),e.j41(6,"label",39),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",40),e.k0s(),e.j41(10,"div")(11,"label",41),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",42),e.j41(15,"label",43),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",44),e.k0s(),e.j41(19,"label",45),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",46)(23,"ol",47),e.DNE(24,ru0,6,3,"li",48)(25,du0,4,3)(26,fu0,6,3,"li",49)(27,uu0,4,3)(28,mu0,6,3,"li",50)(29,pu0,4,3)(30,hu0,6,3,"li",51)(31,gu0,4,3),e.k0s()(),e.j41(32,"label",52),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"app-markdown-textarea",53),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.Y8G("formGroup",i.generalForm),e.R7$(3),e.JRh(e.bMT(4,14,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.generalForm.get("name"))?null:c.invalid)&&""!=i.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,16,"UPDATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=i.generalForm.get("version"))?null:t.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,18,"UPDATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=i.generalForm.get("brand"))?null:l.invalid)&&""!=i.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,20,"UPDATE_PROD_SPEC._id_number")),e.R7$(4),e.JRh(e.bMT(21,22,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(24,"Active"==i.prodStatus?24:25),e.R7$(2),e.vxM(26,"Launched"==i.prodStatus?26:27),e.R7$(2),e.vxM(28,"Retired"==i.prodStatus?28:29),e.R7$(2),e.vxM(30,"Obsolete"==i.prodStatus?30:31),e.R7$(3),e.JRh(e.bMT(34,24,"UPDATE_PROD_SPEC._product_description"))}}function Lu0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Cu0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zu0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Mu0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function xu0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function bu0(n,a){1&n&&(e.j41(0,"span",84),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._simple")))}function yu0(n,a){1&n&&(e.j41(0,"span",88),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._bundle")))}function Fu0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Cu0,2,1,"span",84)(5,zu0,2,1)(6,Mu0,2,1)(7,xu0,2,1),e.k0s(),e.j41(8,"td",83),e.DNE(9,bu0,3,3,"span",84)(10,yu0,3,3),e.k0s(),e.j41(11,"td",85),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",86),e.nrm(15,"input",87),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(9,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isProdInBundle(c))}}function vu0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",79),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",80),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",78),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Fu0,16,12,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"UPDATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function ku0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.nextBundle())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function wu0(n,a){if(1&n&&e.DNE(0,ku0,6,3,"div",91),2&n){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function Su0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Nu0(n,a){if(1&n&&e.DNE(0,Lu0,6,0,"div",70)(1,vu0,22,15)(2,wu0,1,1)(3,Su0,6,0),2&n){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Eu0(n,a){if(1&n&&(e.j41(0,"div",66)(1,"label",41),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",67),e.nrm(5,"input",68)(6,"div",69),e.k0s()(),e.DNE(7,Nu0,4,2)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"UPDATE_PROD_SPEC._is_bundled")),e.R7$(3),e.Y8G("checked",c.bundleChecked),e.R7$(2),e.vxM(7,c.bundleChecked?7:-1)}}function Du0(n,a){1&n&&e.nrm(0,"img",97)}function Tu0(n,a){1&n&&e.nrm(0,"img",125)}function Ru0(n,a){1&n&&e.nrm(0,"img",126)}function Au0(n,a){1&n&&(e.j41(0,"div",105),e.EFF(1," Request Validation is disabled because the compliance profile has unsaved changes. Update product first. "),e.k0s())}function Iu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",127),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",100),e.nrm(2,"path",128),e.k0s()()}}function Pu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"div",109)(2,"label",134),e.EFF(3),e.k0s(),e.j41(4,"button",135),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addISO(l))}),e.qSk(),e.j41(5,"svg",136),e.nrm(6,"path",94),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("ngClass",1==c.domesupported?"text-primary-100 font-bold":"text-gray-900 font-medium"),e.R7$(),e.SpI(" ",c.name," ")}}function ju0(n,a){if(1&n&&(e.j41(0,"div",132)(1,"ul",133),e.Z7z(2,Pu0,7,2,"li",null,e.fX1),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function $u0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.buttonISOClicked=!l.buttonISOClicked)}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",130),e.nrm(4,"path",131),e.k0s()(),e.DNE(5,ju0,4,0,"div",132)}if(2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"UPDATE_PROD_SPEC._add_comp")," "),e.R7$(4),e.vxM(5,c.buttonISOClicked?5:-1)}}function Ou0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",138)(6,"button",110),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",111),e.k0s()(),e.joV(),e.j41(9,"button",127),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.removeISO(l))}),e.qSk(),e.j41(10,"svg",100),e.nrm(11,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Bu0(n,a){1&n&&(e.j41(0,"div",120)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_comp_profile")," "))}function Vu0(n,a){1&n&&(e.j41(0,"div",142),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Uu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",138)(6,"button",127),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeCert(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Gu0(n,a){if(1&n&&(e.j41(0,"h3",106),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",119)(3,"table",76)(4,"thead",77)(5,"tr")(6,"th",78),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",78),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",78),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,Uu0,9,6,"tr",81,LE1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(7),e.SpI(" ",e.bMT(8,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(14,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.additionalISOS)}}function Hu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCert=!l.showCert)}),e.EFF(2," Add an additional certification "),e.qSk(),e.j41(3,"svg",145),e.nrm(4,"path",94),e.k0s()()()}}function Yu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function qu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Yu0,10,6,"ng-template",157),e.k0s()}}function Xu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"span",74),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",165),e.EFF(4),e.k0s(),e.j41(5,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",167),e.nrm(7,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function Wu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146)(1,"h3",106),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",147)(4,"div",148)(5,"label",149),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",150,0),e.k0s(),e.DNE(10,qu0,2,0,"ngx-file-drop",151)(11,Xu0,8,1),e.k0s(),e.j41(12,"div",152)(13,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAdditionalCert())}),e.EFF(14," Save "),e.qSk(),e.j41(15,"svg",145),e.nrm(16,"path",154),e.k0s()(),e.joV(),e.j41(17,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.clearAdditionalCert(!1),e.Njj(l.showCert=!1)}),e.EFF(18," Discard "),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,6,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.certFileName)("ngClass",1==c.certFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(10,""==c.isoToCreate?10:11),e.R7$(3),e.Y8G("disabled",!c.certFileName.valid||""==c.isoToCreate)("ngClass",c.certFileName.valid&&""!=c.isoToCreate?"hover:bg-primary-50":"opacity-50")}}function Ju0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"div",11),e.DNE(2,Du0,1,0,"img",97)(3,Tu0,1,0)(4,Ru0,1,0),e.k0s(),e.j41(5,"div",98)(6,"button",99),e.bIt("click",function(l){return e.eBV(c),e.XpG().openRequestValidationModal(),e.Njj(l.stopPropagation())}),e.EFF(7," Request Validation "),e.qSk(),e.j41(8,"svg",100),e.nrm(9,"path",101),e.k0s()(),e.joV(),e.j41(10,"div",102),e.qSk(),e.j41(11,"svg",103),e.nrm(12,"path",104),e.k0s()()()(),e.DNE(13,Au0,2,0,"div",105),e.joV(),e.j41(14,"h3",106),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",107)(18,"p",108),e.EFF(19),e.k0s(),e.j41(20,"div",109)(21,"button",110),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(22,"svg",100),e.nrm(23,"path",111),e.k0s()(),e.DNE(24,Iu0,3,0,"button",112),e.k0s()(),e.DNE(25,$u0,6,4),e.joV(),e.j41(26,"div",113)(27,"div",114)(28,"h3",115),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"div",116)(32,"p",117),e.EFF(33,"Requesting a validation will submit your certificates and self attestation to the compliance service for validation"),e.k0s()(),e.nrm(34,"div",118),e.k0s(),e.j41(35,"div",119)(36,"table",76)(37,"thead",77)(38,"tr")(39,"th",78),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"th",78),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"th",78),e.EFF(46),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"tbody"),e.Z7z(49,Ou0,12,6,"tr",81,LE1,!1,Bu0,9,3,"div",120),e.k0s()()(),e.j41(52,"div",121)(53,"div",122),e.DNE(54,Vu0,4,3,"div",123),e.k0s()(),e.DNE(55,Gu0,18,9)(56,Hu0,5,0,"div",124)(57,Wu0,19,8)}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.complianceVC&&"BL"==c.complianceLevel?2:c.complianceVC&&"P"==c.complianceLevel?3:c.complianceVC&&"PP"==c.complianceLevel?4:-1),e.R7$(4),e.Y8G("disabled",!c.hasSelfAttestation()||c.hasUnsavedComplianceProfileChanges())("ngClass",!c.hasSelfAttestation()||c.hasUnsavedComplianceProfileChanges()?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(7),e.vxM(13,c.hasUnsavedComplianceProfileChanges()?13:-1),e.R7$(2),e.SpI(" ",e.bMT(16,16,"UPDATE_PROD_SPEC._self_attestation")," "),e.R7$(4),e.SpI(" ",c.selfAtt?c.selfAtt.productSpecCharacteristicValue[0].value:"Upload your self attestation document"," "),e.R7$(5),e.vxM(24,c.selfAtt&&!c.checkExistingSelfAtt?24:-1),e.R7$(),e.vxM(25,c.availableISOS.length>0?25:-1),e.R7$(4),e.SpI("",e.bMT(30,18,"UPDATE_PROD_SPEC._how_to_verify")," "),e.R7$(11),e.SpI(" ",e.bMT(41,20,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(44,22,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(47,24,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.selectedISOS),e.R7$(5),e.Y8G("ngIf",c.checkValidISOS()),e.R7$(),e.vxM(55,c.additionalISOS.length>0?55:-1),e.R7$(),e.vxM(56,0==c.showCert?56:57)}}function Qu0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_chars")," "))}function Zu0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Ku0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value)," ")}}function em0(n,a){if(1&n&&e.DNE(0,Zu0,1,1)(1,Ku0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function cm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function nm0(n,a){if(1&n&&e.DNE(0,cm0,4,2)(1,tm0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lm0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function sm0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function am0(n,a){if(1&n&&e.DNE(0,lm0,1,1)(1,sm0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function om0(n,a){if(1&n&&e.DNE(0,em0,2,1)(1,nm0,2,1)(2,am0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isDataSpaceCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function im0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dm0(n,a){if(1&n&&e.DNE(0,im0,4,3)(1,rm0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function fm0(n,a){if(1&n&&e.DNE(0,om0,3,1)(1,dm0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function um0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",170),e.EFF(4),e.k0s(),e.j41(5,"td",137),e.Z7z(6,fm0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",86)(9,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",167),e.nrm(11,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function mm0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",80),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,um0,12,10,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.getFilteredCharacteristicsForCurrentStep())}}function pm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.toggleCreateCharacteristicForm())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" ",c.isDataspaceConfigurationStep()?"Add Dataspace Configuration":e.bMT(3,1,"UPDATE_PROD_SPEC._new_char")," ")}}function hm0(n,a){1&n&&(e.j41(0,"option",182),e.EFF(1,"Credentials Configuration"),e.k0s(),e.j41(2,"option",183),e.EFF(3,"Authorization Policy"),e.k0s())}function gm0(n,a){1&n&&(e.j41(0,"option",184),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",185),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",186),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",187),e.EFF(7,"Boolean"),e.k0s())}function _m0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",174),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",192),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.optionalDftTrue,l)||(i.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",193),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",193),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._default_value")),e.R7$(2),e.R50("ngModel",c.optionalDftTrue),e.Y8G("ngModelOptions",e.lJ4(13,oH)),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(e.bMT(7,9,"UPDATE_PROD_SPEC._default_false")),e.R7$(2),e.Y8G("value",!0),e.R7$(),e.JRh(e.bMT(10,11,"UPDATE_PROD_SPEC._default_true"))}}function Lm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",188)(1,"label",189),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",190)(5,"input",191),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.isOptional,l)||(i.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",69),e.k0s()(),e.DNE(7,_m0,11,14,"div")}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,"UPDATE_PROD_SPEC._make_optional")),e.R7$(3),e.R50("ngModel",c.isOptional),e.Y8G("ngModelOptions",e.lJ4(6,oH)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function Cm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",196)(1,"div",197)(2,"input",198),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",199),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",200),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",167),e.nrm(10,"path",128),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zm0(n,a){if(1&n&&e.Z7z(0,Cm0,11,4,"div",196,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Mm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function xm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.R7$(),e.JRh(t.getValuePreview(c.value))}}function bm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function ym0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",196)(1,"div",197)(2,"input",201),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,Mm0,5,2,"label",202)(4,xm0,2,1)(5,bm0,2,1),e.k0s(),e.j41(6,"button",200),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===t.charTypeSelected?3:t.isDataSpaceCharacteristicType(t.charTypeSelected)?4:5)}}function Fm0(n,a){if(1&n&&e.Z7z(0,ym0,9,2,"div",196,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function vm0(n,a){if(1&n&&(e.j41(0,"label",194),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",195),e.DNE(3,zm0,2,0)(4,Fm0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function km0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",180)(1,"input",203),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",205),e.nrm(4,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function wm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",206)(1,"div",207)(2,"span",208),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",207)(7,"span",208),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",210),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",205),e.nrm(13,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_PROD_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Sm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",188)(1,"label",211),e.EFF(2,"Default value is true"),e.k0s(),e.j41(3,"label",190)(4,"input",212),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.booleanDefaultTrue,l)||(i.booleanDefaultTrue=l),e.Njj(l)}),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onBooleanDefaultChange())}),e.k0s(),e.nrm(5,"div",69),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,oH))}}function Nm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",206)(1,"div",207)(2,"span",213),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",207)(7,"span",213),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",207)(12,"span",213),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",210),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",205),e.nrm(18,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_PROD_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_PROD_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Em0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",214)(1,"label",215),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",216),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.jsonValue,l)||(i.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",217),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",218),e.nrm(7,"path",94),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,5,"UPDATE_PROD_SPEC._json_value")),e.R7$(2),e.R50("ngModel",c.jsonValue),e.R7$(),e.Y8G("disabled",!c.jsonValue)("ngClass",c.jsonValue?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(3),e.SpI(" ",e.bMT(9,7,"UPDATE_PROD_SPEC._add_json")," ")}}function Dm0(n,a){if(1&n&&e.DNE(0,Em0,10,9,"div",214),2&n){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function Tm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",172)(1,"div")(2,"label",37),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",173),e.k0s(),e.j41(6,"div")(7,"label",174),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",175),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.charTypeSelected,l)||(i.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.DNE(11,hm0,4,0)(12,gm0,8,0),e.k0s()(),e.j41(13,"div",176)(14,"label",177),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",178),e.k0s(),e.DNE(18,Lm0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,vm0,5,1),e.j41(21,"label",179),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,km0,5,3,"div",180)(25,wm0,14,10)(26,Sm0,6,3)(27,Nm0,19,14)(28,Dm0,1,1),e.j41(29,"div",152)(30,"button",181),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(31),e.nI1(32,"translate"),e.qSk(),e.j41(33,"svg",145),e.nrm(34,"path",154),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,15,"UPDATE_PROD_SPEC._product_name")),e.R7$(5),e.JRh(e.bMT(9,17,"UPDATE_PROD_SPEC._type")),e.R7$(2),e.R50("ngModel",c.charTypeSelected),e.Y8G("ngModelOptions",e.lJ4(25,oH)),e.R7$(),e.vxM(11,c.isDataspaceConfigurationStep()?11:12),e.R7$(4),e.JRh(e.bMT(16,19,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.vxM(18,c.isDataspaceConfigurationStep()||"boolean"===c.charTypeSelected?-1:18),e.R7$(2),e.vxM(20,c.creatingChars.length>0&&"boolean"!==c.charTypeSelected?20:-1),e.R7$(),e.Y8G("ngClass","range"===c.charTypeSelected&&1==c.creatingChars.length||"boolean"===c.charTypeSelected?"hidden":""),e.R7$(),e.JRh(e.bMT(23,21,"UPDATE_PROD_SPEC._add_values")),e.R7$(2),e.vxM(24,c.isTextCharacteristicType(c.charTypeSelected)?24:"number"===c.charTypeSelected?25:"boolean"===c.charTypeSelected?26:"range"===c.charTypeSelected&&0==c.creatingChars.length?27:c.isDataSpaceCharacteristicType(c.charTypeSelected)?28:-1),e.R7$(6),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(32,23,"UPDATE_PROD_SPEC._save_char")," ")}}function Rm0(n,a){if(1&n&&e.DNE(0,Qu0,9,3,"div",168)(1,mm0,19,12)(2,pm0,6,3,"div",124)(3,Tm0,35,26),2&n){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function Am0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Im0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Pm0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jm0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $m0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Om0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Bm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Pm0,2,1,"span",84)(5,jm0,2,1)(6,$m0,2,1)(7,Om0,2,1),e.k0s(),e.j41(8,"td",85),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",86)(12,"input",219),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addResToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isResSelected(c))}}function Vm0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Bm0,13,11,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.resourceSpecs)}}function Um0(n,a){if(1&n&&e.DNE(0,Im0,7,3,"div",168)(1,Vm0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function Gm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextRes())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Hm0(n,a){if(1&n&&e.DNE(0,Gm0,6,3,"div",91),2&n){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Ym0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function qm0(n,a){if(1&n&&e.DNE(0,Am0,6,0,"div",70)(1,Um0,2,1)(2,Hm0,1,1)(3,Ym0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Xm0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Wm0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Jm0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qm0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zm0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Km0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ep0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Jm0,2,1,"span",84)(5,Qm0,2,1)(6,Zm0,2,1)(7,Km0,2,1),e.k0s(),e.j41(8,"td",85),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",86)(12,"input",219),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addServToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isServSelected(c))}}function cp0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ep0,13,11,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.serviceSpecs)}}function tp0(n,a){if(1&n&&e.DNE(0,Wm0,7,3,"div",168)(1,cp0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function np0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextServ())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function lp0(n,a){if(1&n&&e.DNE(0,np0,6,3,"div",91),2&n){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function sp0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function ap0(n,a){if(1&n&&e.DNE(0,Xm0,6,0,"div",70)(1,tp0,2,1)(2,lp0,1,1)(3,sp0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function op0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",247),e.EFF(2),e.k0s(),e.j41(3,"td",248),e.EFF(4),e.k0s(),e.j41(5,"td",249)(6,"button",127),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeEndpointUrl(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.url),e.R7$(2),e.JRh(c.description)}}function ip0(n,a){if(1&n&&(e.j41(0,"div",221)(1,"table",244)(2,"thead",77)(3,"tr")(4,"th",245),e.EFF(5,"Endpoint URL"),e.k0s(),e.j41(6,"th",78),e.EFF(7,"Description"),e.k0s(),e.j41(8,"th",246),e.EFF(9,"Actions"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,op0,9,2,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(11),e.Dyx(c.endpointUrls)}}function rp0(n,a){1&n&&(e.j41(0,"p",231),e.EFF(1,"At least one endpoint URL is required."),e.k0s())}function dp0(n,a){if(1&n&&(e.j41(0,"option",193),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.JRh(c)}}function fp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function up0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function mp0(n,a){if(1&n&&e.DNE(0,fp0,2,0,"p",250)(1,up0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function pp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function hp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function gp0(n,a){if(1&n&&e.DNE(0,pp0,2,0,"p",250)(1,hp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function _p0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function Lp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function Cp0(n,a){if(1&n&&e.DNE(0,_p0,2,0,"p",250)(1,Lp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function zp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function Mp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function xp0(n,a){if(1&n&&e.DNE(0,zp0,2,0,"p",250)(1,Mp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function bp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",21)(1,"h3",220),e.EFF(2,"DSP Config"),e.k0s(),e.DNE(3,ip0,13,0,"div",221),e.j41(4,"div",222)(5,"div",223)(6,"div",224)(7,"label",174),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",225),e.nI1(11,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointName=l.target.value)}),e.k0s()(),e.j41(12,"div",224)(13,"label",174),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"input",226),e.nI1(17,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointUrl=l.target.value)}),e.k0s()()(),e.j41(18,"div")(19,"label",174),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"textarea",227),e.nI1(23,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointDescription=l.target.value)}),e.k0s()(),e.j41(24,"div",228)(25,"button",229),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addEndpointUrl())}),e.EFF(26),e.nI1(27,"translate"),e.qSk(),e.j41(28,"svg",230),e.nrm(29,"path",94),e.k0s()()()(),e.DNE(30,rp0,2,0,"p",231),e.joV(),e.nrm(31,"hr",232),e.j41(32,"form",233)(33,"div",223)(34,"div",234)(35,"label",174),e.EFF(36,"Upstream Address"),e.k0s(),e.nrm(37,"input",235),e.k0s(),e.j41(38,"div",236)(39,"label",174),e.EFF(40,"Transfer path"),e.k0s(),e.nrm(41,"input",237),e.k0s(),e.j41(42,"div",236)(43,"label",174),e.EFF(44,"Transfer Type"),e.k0s(),e.j41(45,"select",238),e.DNE(46,dp0,2,2,"option",239),e.k0s()()(),e.j41(47,"div")(48,"label",174),e.EFF(49,"Target Specification"),e.k0s(),e.nrm(50,"textarea",240),e.DNE(51,mp0,2,1),e.k0s(),e.j41(52,"div")(53,"label",174),e.EFF(54,"Service Configuration"),e.k0s(),e.nrm(55,"textarea",241),e.DNE(56,gp0,2,1),e.k0s(),e.j41(57,"div")(58,"label",174),e.EFF(59,"Credentials Configuration"),e.k0s(),e.nrm(60,"textarea",242),e.DNE(61,Cp0,2,1),e.k0s(),e.j41(62,"div")(63,"label",174),e.EFF(64,"Policy Configuration"),e.k0s(),e.nrm(65,"textarea",243),e.DNE(66,xp0,2,1),e.k0s()()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1,a1,T1,Y1,f2,M2,G2;const N2=e.XpG();e.R7$(3),e.vxM(3,N2.endpointUrls.length>0?3:-1),e.R7$(5),e.JRh(e.bMT(9,47,"CREATE_PROD_SPEC._dsp_endpoint_name")),e.R7$(2),e.Y8G("value",N2.newEndpointName)("placeholder",e.bMT(11,49,"CREATE_PROD_SPEC._dsp_endpoint_name_placeholder")),e.R7$(4),e.JRh(e.bMT(15,51,"CREATE_PROD_SPEC._dsp_endpoint_url")),e.R7$(2),e.Y8G("value",N2.newEndpointUrl)("placeholder",e.bMT(17,53,"CREATE_PROD_SPEC._dsp_endpoint_url_placeholder")),e.R7$(4),e.JRh(e.bMT(21,55,"CREATE_PROD_SPEC._dsp_endpoint_description")),e.R7$(2),e.Y8G("value",N2.newEndpointDescription)("placeholder",e.bMT(23,57,"CREATE_PROD_SPEC._dsp_endpoint_description_placeholder")),e.R7$(3),e.AVh("opacity-50",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim())("cursor-not-allowed",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim()),e.Y8G("disabled",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim()),e.R7$(),e.SpI(" ",e.bMT(27,59,"CREATE_PROD_SPEC._dsp_add_endpoint")," "),e.R7$(4),e.vxM(30,0===N2.endpointUrls.length?30:-1),e.R7$(2),e.Y8G("formGroup",N2.dspConfigForm),e.R7$(5),e.AVh("border-red-600",(null==(c=N2.dspConfigForm.get("upstreamAddress"))?null:c.invalid)&&""!==(null==(c=N2.dspConfigForm.get("upstreamAddress"))?null:c.value))("border-gray-300",!(null!=(t=N2.dspConfigForm.get("upstreamAddress"))&&t.invalid&&""!==(null==(t=N2.dspConfigForm.get("upstreamAddress"))?null:t.value))),e.R7$(4),e.AVh("border-red-600",(null==(l=N2.dspConfigForm.get("transferPath"))?null:l.invalid)&&""!==(null==(l=N2.dspConfigForm.get("transferPath"))?null:l.value))("border-gray-300",!(null!=(i=N2.dspConfigForm.get("transferPath"))&&i.invalid&&""!==(null==(i=N2.dspConfigForm.get("transferPath"))?null:i.value))),e.R7$(5),e.Y8G("ngForOf",N2.transferTypes),e.R7$(4),e.AVh("border-red-600",(null==(u=N2.dspConfigForm.get("targetSpecification"))?null:u.invalid)&&(null==(u=N2.dspConfigForm.get("targetSpecification"))?null:u.touched))("border-gray-300",!(null!=(C=N2.dspConfigForm.get("targetSpecification"))&&C.invalid&&null!=(C=N2.dspConfigForm.get("targetSpecification"))&&C.touched)),e.R7$(),e.vxM(51,null!=(b=N2.dspConfigForm.get("targetSpecification"))&&b.touched?51:-1),e.R7$(4),e.AVh("border-red-600",(null==(T=N2.dspConfigForm.get("serviceConfiguration"))?null:T.invalid)&&(null==(T=N2.dspConfigForm.get("serviceConfiguration"))?null:T.touched))("border-gray-300",!(null!=(W=N2.dspConfigForm.get("serviceConfiguration"))&&W.invalid&&null!=(W=N2.dspConfigForm.get("serviceConfiguration"))&&W.touched)),e.R7$(),e.vxM(56,null!=(u1=N2.dspConfigForm.get("serviceConfiguration"))&&u1.touched?56:-1),e.R7$(4),e.AVh("border-red-600",(null==(a1=N2.dspConfigForm.get("credentialsConfig"))?null:a1.invalid)&&(null==(a1=N2.dspConfigForm.get("credentialsConfig"))?null:a1.touched))("border-gray-300",!(null!=(T1=N2.dspConfigForm.get("credentialsConfig"))&&T1.invalid&&null!=(T1=N2.dspConfigForm.get("credentialsConfig"))&&T1.touched)),e.R7$(),e.vxM(61,null!=(Y1=N2.dspConfigForm.get("credentialsConfig"))&&Y1.touched?61:-1),e.R7$(4),e.AVh("border-red-600",(null==(f2=N2.dspConfigForm.get("policyConfig"))?null:f2.invalid)&&(null==(f2=N2.dspConfigForm.get("policyConfig"))?null:f2.touched))("border-gray-300",!(null!=(M2=N2.dspConfigForm.get("policyConfig"))&&M2.invalid&&null!=(M2=N2.dspConfigForm.get("policyConfig"))&&M2.touched)),e.R7$(),e.vxM(66,null!=(G2=N2.dspConfigForm.get("policyConfig"))&&G2.touched?66:-1)}}function yp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",254),e.nrm(1,"img",256),e.j41(2,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",167),e.nrm(4,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function Fp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function vp0(n,a){1&n&&(e.j41(0,"div",265),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function kp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",257)(1,"ngx-file-drop",258),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileLeave(l))}),e.DNE(2,Fp0,10,6,"ng-template",157),e.k0s()(),e.j41(3,"label",259),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",260),e.DNE(7,vp0,4,3,"div",261),e.j41(8,"div",262)(9,"input",263,1),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",264),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",167),e.nrm(13,"path",101),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,6,"UPDATE_PROD_SPEC._add_prod_img_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function wp0(n,a){1&n&&(e.j41(0,"div",255)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_att")," "))}function Sp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",86)(6,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeAtt(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Np0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Sp0,9,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodAttachments)}}function Ep0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showNewAtt=!l.showNewAtt)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._new_att")," "))}function Dp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function Tp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Dp0,10,6,"ng-template",157),e.k0s()}}function Rp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"span",74),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",165),e.EFF(4),e.k0s(),e.j41(5,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",167),e.nrm(7,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function Ap0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146)(1,"div",147)(2,"div",148)(3,"label",266),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",267,2),e.k0s(),e.DNE(8,Tp0,2,0,"ngx-file-drop",151)(9,Rp0,8,1),e.k0s(),e.j41(10,"div",152)(11,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAtt())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",145),e.nrm(15,"path",154),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,7,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.attFileName)("ngClass",1==c.attFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(8,""==c.attachToCreate.url?8:9),e.R7$(3),e.Y8G("disabled",!c.attFileName.valid||""==c.attachToCreate.url)("ngClass",c.attFileName.valid&&""!=c.attachToCreate.url?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"UPDATE_PROD_SPEC._save_att")," ")}}function Ip0(n,a){if(1&n&&(e.j41(0,"div",251)(1,"h4",252),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",253),e.qSk(),e.j41(5,"svg",103),e.nrm(6,"path",104),e.k0s()(),e.joV(),e.j41(7,"div",113)(8,"div",114)(9,"h3",115),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",116)(13,"p",117),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",118),e.k0s()(),e.DNE(17,yp0,5,1,"div",254)(18,kp0,14,8),e.j41(19,"h4",252),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,wp0,9,3,"div",255)(23,Np0,16,9)(24,Ep0,6,3,"div",124)(25,Ap0,16,11)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.SpI("",e.bMT(11,9,"UPDATE_PROD_SPEC._file_res")," "),e.R7$(4),e.SpI("",e.bMT(15,11,"UPDATE_PROD_SPEC._restrictions")," "),e.R7$(3),e.vxM(17,c.showImgPreview?17:18),e.R7$(3),e.JRh(e.bMT(21,13,"UPDATE_PROD_SPEC._add_att")),e.R7$(2),e.vxM(22,0==c.prodAttachments.length?22:23),e.R7$(2),e.vxM(24,0==c.showNewAtt?24:25)}}function Pp0(n,a){1&n&&(e.j41(0,"div",268)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_relatioships")," "))}function jp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s(),e.j41(5,"td",86)(6,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteRel(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function $p0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,jp0,9,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function Op0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateRel=!l.showCreateRel)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._add_relationship")," "))}function Bp0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Vp0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function Up0(n,a){1&n&&(e.j41(0,"span",84),e.EFF(1,"Simple"),e.k0s())}function Gp0(n,a){1&n&&(e.j41(0,"span",88),e.EFF(1,"Bundle"),e.k0s())}function Hp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",276),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectRelationship(l))}),e.j41(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Up0,2,0,"span",84)(5,Gp0,2,0),e.k0s(),e.j41(6,"td",85),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.Y8G("ngClass",c.id==t.selectedProdSpec.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,0==c.isBundle?4:5),e.R7$(3),e.SpI(" ",e.i5U(8,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Yp0(n,a){if(1&n&&(e.j41(0,"div",274)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Hp0,9,11,"tr",275,e.fX1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecRels)}}function qp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(5);return e.Njj(l.nextProdSpecsRel())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Xp0(n,a){if(1&n&&e.DNE(0,qp0,6,3,"div",91),2&n){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Wp0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Jp0(n,a){if(1&n&&e.DNE(0,Vp0,7,3,"div",168)(1,Yp0,16,9)(2,Xp0,1,1)(3,Wp0,6,0),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecRels.length?0:1),e.R7$(2),e.vxM(2,c.loadingprodSpecRel_more?3:2)}}function Qp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",269),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onRelChange(l))}),e.j41(4,"option",270),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",271),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",272),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",273),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,Bp0,6,0,"div",70)(13,Jp0,4,2),e.j41(14,"div",152)(15,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveRel())}),e.EFF(16),e.nI1(17,"translate"),e.qSk(),e.j41(18,"svg",145),e.nrm(19,"path",154),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"UPDATE_PROD_SPEC._relationship_type")),e.R7$(11),e.vxM(12,c.loadingprodSpecRel?12:13),e.R7$(3),e.Y8G("disabled",0==c.prodSpecRels.length||""==c.selectedProdSpec.id)("ngClass",0==c.prodSpecRels.length||""==c.selectedProdSpec.id?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(17,7,"UPDATE_PROD_SPEC._save_relationship")," ")}}function Zp0(n,a){if(1&n&&(e.j41(0,"div",21),e.DNE(1,Pp0,9,3,"div",268)(2,$p0,16,9)(3,Op0,6,3,"div",124)(4,Qp0,20,9),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0===c.prodRelationships.length?1:2),e.R7$(2),e.vxM(3,0==c.showCreateRel?3:4)}}function Kp0(n,a){1&n&&(e.j41(0,"div",277),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function eh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",280),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._id_number")),e.R7$(3),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.productNumber," ")}}function ch0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function th0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function nh0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function lh0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function sh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",283),e.nrm(4,"markdown",284),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description,20)))("data",null==c.productSpecToUpdate?null:c.productSpecToUpdate.description)}}function ah0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",254),e.nrm(4,"img",256),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._profile_pic")),e.R7$(3),e.FS9("src",c.imgPreview,e.B4B)}}function oh0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ih0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function rh0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function dh0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function fh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",86),e.DNE(4,oh0,2,1,"span",84)(5,ih0,2,1)(6,rh0,2,1)(7,dh0,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1)}}function uh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,fh0,8,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._bundle")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.Dyx(c.prodSpecsBundle)}}function mh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value),", ")}}function ph0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value)," ")}}function hh0(n,a){if(1&n&&e.DNE(0,mh0,1,1)(1,ph0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function gh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function _h0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Lh0(n,a){if(1&n&&e.DNE(0,gh0,4,2)(1,_h0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ch0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function zh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Mh0(n,a){if(1&n&&e.DNE(0,Ch0,1,1)(1,zh0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function xh0(n,a){if(1&n&&e.DNE(0,hh0,2,1)(1,Lh0,2,1)(2,Mh0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isDataSpaceCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function bh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function yh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Fh0(n,a){if(1&n&&e.DNE(0,bh0,4,3)(1,yh0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function vh0(n,a){if(1&n&&e.DNE(0,xh0,3,1)(1,Fh0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function kh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",170),e.EFF(4),e.k0s(),e.j41(5,"td",137),e.Z7z(6,vh0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function wh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,kh0,8,10,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"UPDATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.productSpecToUpdate?null:c.productSpecToUpdate.productSpecCharacteristic)}}function Sh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Nh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Sh0,3,5,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._resource")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedResourceSpecs)}}function Eh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Dh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Eh0,3,5,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._service")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedServiceSpecs)}}function Th0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Rh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Th0,5,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._attachments")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.Dyx(null==c.productSpecToUpdate?null:c.productSpecToUpdate.attachment)}}function Ah0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Ih0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ah0,5,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._relationships")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function Ph0(n,a){if(1&n&&(e.j41(0,"div",278)(1,"div")(2,"label",174),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",279),e.EFF(6),e.k0s(),e.j41(7,"label",39),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",280),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",174),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",279),e.EFF(17),e.k0s(),e.DNE(18,eh0,5,4),e.k0s()(),e.j41(19,"div",281)(20,"label",282),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,ch0,2,1,"span",84)(24,th0,2,1)(25,nh0,2,1)(26,lh0,2,1),e.k0s(),e.DNE(27,sh0,5,8)(28,ah0,5,4)(29,uh0,16,9)(30,wh0,19,12)(31,Nh0,13,6)(32,Dh0,13,6)(33,Rh0,16,9)(34,Ih0,16,9)),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,19,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(27,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.name,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.name," "),e.R7$(2),e.JRh(e.bMT(9,21,"UPDATE_PROD_SPEC._product_version")),e.R7$(3),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.version," "),e.R7$(3),e.JRh(e.bMT(15,23,"UPDATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",e.l_i(30,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand,20))),e.R7$(),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand," "),e.R7$(),e.vxM(18,""!=(null==c.productSpecToUpdate?null:c.productSpecToUpdate.productNumber)?18:-1),e.R7$(3),e.JRh(e.bMT(22,25,"UPDATE_PROD_SPEC._status")),e.R7$(2),e.vxM(23,"Active"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?23:"Launched"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?24:"Retired"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?25:"Obsolete"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?26:-1),e.R7$(4),e.vxM(27,""!=(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description)?27:-1),e.R7$(),e.vxM(28,""!=c.imgPreview?28:-1),e.R7$(),e.vxM(29,c.prodSpecsBundle.length>0?29:-1),e.R7$(),e.vxM(30,c.prodChars.length>0?30:-1),e.R7$(),e.vxM(31,c.selectedResourceSpecs.length>0?31:-1),e.R7$(),e.vxM(32,c.selectedServiceSpecs.length>0?32:-1),e.R7$(),e.vxM(33,c.prodAttachments.length>0?33:-1),e.R7$(),e.vxM(34,c.prodRelationships.length>0?34:-1)}}function jh0(n,a){if(1&n&&(e.j41(0,"div",22),e.DNE(1,Kp0,6,0,"div",277)(2,Ph0,35,33),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function $h0(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",159),e.nrm(1,"path",160),e.k0s(),e.joV(),e.j41(2,"p",296),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI("",e.bMT(4,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(7,4,"UPDATE_PROD_SPEC._select_files")))}function Oh0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"div",286),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",287)(3,"button",288),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",289),e.nrm(5,"path",290),e.k0s(),e.joV(),e.j41(6,"span",74),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",291),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.dropped(l,i.selectedISO))})("onFileOver",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileLeave(l))}),e.DNE(10,$h0,8,6,"ng-template",292),e.k0s(),e.j41(11,"div",293)(12,"button",294),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",295),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.uploadFile())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showUploadFile?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,4,"UPDATE_PROD_SPEC._close_modal")),e.R7$(6),e.SpI(" ",e.bMT(14,6,"UPDATE_PROD_SPEC._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(17,8,"UPDATE_PROD_SPEC._upload")," ")}}function Bh0(n,a){if(1&n&&e.nrm(0,"error-message",33),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}const Vh0=["endpointUrl","upstreamAddress","targetSpecification","serviceConfiguration","credentialsConfig","authorizationPolicy","transferPath","transferType"];let Uh0=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}constructor(c,t,l,i,u,C,b,T){this.prodSpecService=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.attachmentService=u,this.servSpecService=C,this.resSpecService=b,this.paginationService=T,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.DOME_TRUST_LINK=g1.c.DOME_TRUST_LINK,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=g1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.showGeneral=!0,this.showBundle=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.stepsElements=["general-info","bundle","compliance","chars","resource","service","attach","relationships","summary"],this.stepsCircles=["general-circle","bundle-circle","compliance-circle","chars-circle","resource-circle","service-circle","attach-circle","relationships-circle","summary-circle"],this.currentStepIdx=0,this.highestStepIdx=0,this.steps=[],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),brand:new p.MJ("",[p.k0.required,O3]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="",this.endpointUrls=[],this.transferTypes=["HttpData-PULL","HttpData-PUSH"],this.dspConfigForm=new p.gE({upstreamAddress:new p.MJ("",[p.k0.required]),transferPath:new p.MJ(""),transferType:new p.MJ("HttpData-PULL",[p.k0.required]),targetSpecification:new p.MJ("",[p.k0.required,D5]),serviceConfiguration:new p.MJ("",[p.k0.required,D5]),credentialsConfig:new p.MJ("",[p.k0.required,D5]),policyConfig:new p.MJ("",[p.k0.required,D5])}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(500)])}),this.charTypeSelected="string",this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.prodChars=[],this.finishChars=[],this.creatingChars=[],this.showCreateChar=!1,this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.prodSpecsBundle=[],this.buttonISOClicked=!1,this.availableISOS=[],this.selectedISOS=[],this.additionalISOS=[],this.verifiedISO=[],this.complianceLevel="NL",this.complianceVC=null,this.complianceVCId="",this.showUploadFile=!1,this.showRequestValidationModal=!1,this.checkExistingSelfAtt=!1,this.showUploadAtt=!1,this.isoToCreate="",this.showCert=!1,this.initialComplianceEvidenceSignature="",this.serviceSpecPage=0,this.serviceSpecPageCheck=!1,this.loadingServiceSpec=!1,this.loadingServiceSpec_more=!1,this.serviceSpecs=[],this.nextServiceSpecs=[],this.selectedServiceSpecs=[],this.resourceSpecPage=0,this.resourceSpecPageCheck=!1,this.loadingResourceSpec=!1,this.loadingResourceSpec_more=!1,this.resourceSpecs=[],this.nextResourceSpecs=[],this.selectedResourceSpecs=[],this.showCreateRel=!1,this.prodSpecRelPage=0,this.prodSpecRelPageCheck=!1,this.loadingprodSpecRel=!1,this.loadingprodSpecRel_more=!1,this.prodSpecRels=[],this.nextProdSpecRels=[],this.selectedProdSpec={id:""},this.selectedRelType="migration",this.prodRelationships=[],this.showImgPreview=!1,this.showNewAtt=!1,this.imgPreview="",this.prodAttachments=[],this.attachToCreate={url:"",attachmentType:""},this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.certFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.dataSpaceCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let W=0;W{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showUploadFile&&(this.showUploadFile=!1,this.cdr.detectChanges())}ngOnInit(){this.steps=this.getFormSteps(),this.initPartyInfo(),console.log(this.prod),this.populateProductInfo(),D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateProductInfo(){if(this.generalForm.controls.name.setValue(this.prod.name),this.generalForm.controls.description.setValue(this.prod.description),this.generalForm.controls.brand.setValue(this.prod.brand?this.prod.brand:""),this.generalForm.controls.version.setValue(this.prod.version?this.prod.version:""),this.generalForm.controls.number.setValue(this.prod.productNumber?this.prod.productNumber:""),this.prodStatus=this.prod.lifecycleStatus,1==this.prod.isBundle&&(this.toggleBundleCheck(),this.prodSpecsBundle=this.prod.bundledProductSpecification,console.log("is bundle")),this.prod.productSpecCharacteristic){console.log(R5),console.log("--"),console.log(this.prod.productSpecCharacteristic);for(let c=0;ci.name===t);-1!==l?(console.log("adding sel iso"),this.selectedISOS.push({id:this.prod.productSpecCharacteristic[c].id,name:this.prod.productSpecCharacteristic[c].name,url:this.prod.productSpecCharacteristic[c].productSpecCharacteristicValue[0].value,mandatory:this.availableISOS[l].mandatory,domesupported:this.availableISOS[l].domesupported}),this.availableISOS.splice(l,1)):"Compliance:SelfAtt"==this.prod.productSpecCharacteristic[c].name?(this.selfAtt=JSON.parse(JSON.stringify(this.prod.productSpecCharacteristic[c])),this.checkExistingSelfAtt=!0):this.prod.productSpecCharacteristic[c].name.startsWith("Compliance:")&&(console.log("--- additional isos"),console.log(this.prod.productSpecCharacteristic[c]),this.additionalISOS.push({id:this.prod.productSpecCharacteristic[c].id,name:this.prod.productSpecCharacteristic[c].name,url:this.prod.productSpecCharacteristic[c].productSpecCharacteristicValue[0].value}))}console.log("selected isos"),console.log(this.selectedISOS),console.log("available"),console.log(this.availableISOS),console.log("API PROD ISOS"),console.log(this.prod.productSpecCharacteristic)}if(this.initialComplianceEvidenceSignature=this.getCurrentComplianceEvidenceSignature(),this.prod.productSpecCharacteristic){let c=this.prod.productSpecCharacteristic;this.prod.externalId&&(c=c.filter(t=>!Vh0.includes(t.valueType))),c.forEach(t=>{-1==this.selectedISOS.findIndex(i=>i.name===t.name)&&this.prodChars.push({id:t.id?t.id:"urn:ngsi-ld:characteristic:"+L4(),name:t.name,description:t.description?t.description:"",valueType:t.valueType,"@schemaLocation":t["@schemaLocation"],productSpecCharacteristicValue:t.productSpecCharacteristicValue})})}if(this.prod.resourceSpecification&&(this.selectedResourceSpecs=this.prod.resourceSpecification),this.prod.serviceSpecification&&(this.selectedServiceSpecs=this.prod.serviceSpecification),this.prod.attachment){this.prodAttachments=this.prod.attachment;const c=this.prodAttachments.findIndex(t=>"Profile Picture"===t.name);-1!==c&&(this.imgPreview=this.prodAttachments[c].url,this.showImgPreview=!0)}if(console.log("----- RELACIONES"),console.log(this.prod.productSpecificationRelationship),this.prod.productSpecificationRelationship)for(let c=0;c{this.prodRelationships.push({id:this.prod.productSpecificationRelationship[c].id,href:this.prod.productSpecificationRelationship[c].id,relationshipType:this.prod.productSpecificationRelationship[c].relationshipType??this.selectedRelType,name:this.prod.productSpecificationRelationship[c].name,productSpec:t})});this.prod.externalId&&this.addDspConfigStep()}setProdStatus(c){this.prodStatus=c,this.cdr.detectChanges()}goBack(){this.eventMessage.emitSellerProductSpec(!1)}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.bundlePageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const t=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.prodSpecsBundle.splice(t,1)):(console.log("a\xf1adir"),this.prodSpecsBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}isProdInBundle(c){return-1!==this.prodSpecsBundle.findIndex(l=>l.id===c.id)}toggleCompliance(){this.selectStep("compliance","compliance-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!0,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}addISO(c){const t=this.availableISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("seleccionar"),this.availableISOS.splice(t,1),this.selectedISOS.push({name:"Compliance:"+c.name,url:"",mandatory:c.mandatory,domesupported:c.domesupported})),this.buttonISOClicked=!this.buttonISOClicked,this.cdr.detectChanges(),console.log(this.availableISOS),console.log(this.selectedISOS)}removeISO(c){const t=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(i=>i.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:t,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const t=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("eliminar additional cert"),this.additionalISOS.splice(t,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){const c=this.finishChars.findIndex(t=>t.name===this.selfAtt.name);-1!==c&&(console.log("seleccionar"),this.finishChars.splice(c,1)),this.selfAtt="",this.cdr.detectChanges(),console.log(this.finishChars)}checkValidISOS(){return!!this.selectedISOS.find(t=>""===t.url)}addISOValue(c){this.selectedISOS.findIndex(i=>i.name===c.name),document.getElementById("iso-"+c.name),console.log(c.url),console.log(this.selectedISOS)}applyComplianceDataFromVcToken(c){if(!c||"string"!=typeof c)return void(this.complianceLevel="NL");const t=["NL","BL","P","PP"];try{const l=(0,qf0.s)(c);let i=null;"verifiableCredential"in l?i=l.verifiableCredential:"vc"in l&&(i=l.vc);const u=i?.credentialSubject;if(!u)return void(this.complianceLevel="NL");const C=u["gx:labelLevel"];this.complianceLevel="string"==typeof C&&t.includes(C)?C:"NL"}catch(l){this.complianceLevel="NL",console.log(l)}}openRequestValidationModal(){this.showRequestValidationModal=!0}closeRequestValidationModal(){this.showRequestValidationModal=!1}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}hasUnsavedComplianceProfileChanges(){return this.getCurrentComplianceEvidenceSignature()!==this.initialComplianceEvidenceSignature}isVerified(c){return this.verifiedISO.indexOf(c.name)>-1}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(u=>{if(console.log("dropped"),u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];console.log("BASE 64...."),console.log(T);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let u1={content:{name:L4()+"_"+u.name,data:T},contentType:u.type,isPublic:!0};if(!this.isValidFilename(u1.content.name))return this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(u.size>this.MAX_FILE_SIZE)return this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(this.isCurrentStep("compliance")&&!this.showUploadAtt){const a1=this.selectedISOS.findIndex(T1=>T1.name===t.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{console.log(T1),-1!==a1?(this.selectedISOS[a1].url=T1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=T1.content},error:T1=>{console.error("There was an error while uploading file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}if(this.isCurrentStep("compliance")&&this.showUploadAtt){const a1=this.finishChars.findIndex(T1=>T1.name===this.selfAtt.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{-1!==a1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:T1.content}],this.finishChars[a1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+L4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:T1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(u),this.attachmentService.uploadFile(u1).subscribe({next:a1=>{console.log(a1),"img"==t?u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=a1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:u.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:a1.content,attachmentType:u.type},this.cdr.detectChanges(),console.log("uploaded")},error:a1=>{console.error("There was an error while uploading file!",a1),a1.error.error?(console.log(a1),this.errorMessage="Error: "+a1.error.error):this.errorMessage="There was an error while uploading the file!",413===a1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},C.readAsDataURL(u)}}):console.log(l.relativePath,l.fileEntry)}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){console.log(c)}fileLeave(c){console.log("leave"),console.log(c)}toggleUploadSelfAtt(){this.showUploadFile=!0,this.showUploadAtt=!0}toggleUploadFile(c){this.showUploadFile=!0,this.selectedISO=c}uploadFile(){console.log("uploading...")}toggleChars(){this.selectStep("chars","chars-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!0,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showCreateChar=!1,this.charTypeSelected="string",this.showPreview=!1,this.refreshChars(),D2()}toggleCreateCharacteristicForm(){this.showCreateChar=!this.showCreateChar,this.showCreateChar&&(this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.creatingChars=[],this.isOptional=!1,this.optionalDftTrue=!1,this.booleanDefaultTrue=!0,"boolean"===this.charTypeSelected&&this.setBooleanDefaultValues())}toggleResource(){this.loadingResourceSpec=!0,this.resourceSpecs=[],this.resourceSpecPage=0,this.getResSpecs(!1),this.selectStep("resource","resource-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!0,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingResourceSpec=!0),t.paginationService.getItemsPaginated(t.resourceSpecPage,t.RES_SPEC_LIMIT,c,t.resourceSpecs,t.nextResourceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.resSpecService.getResourceSpecByUser.bind(t.resSpecService)).then(i=>{t.resourceSpecPageCheck=i.page_check,t.resourceSpecs=i.items,t.nextResourceSpecs=i.nextItems,t.resourceSpecPage=i.page,t.loadingResourceSpec=!1,t.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,C1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const t=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedResourceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedResourceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedResourceSpecs)}isResSelected(c){return-1!==this.selectedResourceSpecs.findIndex(l=>l.id===c.id)}toggleService(){this.loadingServiceSpec=!0,this.serviceSpecs=[],this.serviceSpecPage=0,this.getServSpecs(!1),this.selectStep("service","service-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!0,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingServiceSpec=!0),t.paginationService.getItemsPaginated(t.serviceSpecPage,t.SERV_SPEC_LIMIT,c,t.serviceSpecs,t.nextServiceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.serviceSpecPageCheck=i.page_check,t.serviceSpecs=i.items,t.nextServiceSpecs=i.nextItems,t.serviceSpecPage=i.page,t.loadingServiceSpec=!1,t.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,C1.A)(function*(){c.loadingServiceSpec_more=!0,c.serviceSpecPage=c.serviceSpecPage+c.SERV_SPEC_LIMIT,console.log(c.serviceSpecPage),yield c.getServSpecs(!0)})()}addServToSelected(c){const t=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedServiceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedServiceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedServiceSpecs)}isServSelected(c){return-1!==this.selectedServiceSpecs.findIndex(l=>l.id===c.id)}toggleAttach(){this.selectStep("attach","attach-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!0,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(t=>t.url===this.imgPreview);-1!==c&&(console.log("eliminar"),this.prodAttachments.splice(c,1)),this.imgPreview="",this.cdr.detectChanges()}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:"Picture"}),this.attImageName.reset(),this.cdr.detectChanges()}removeAtt(c){const t=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==t&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[t].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(t,1)),this.cdr.detectChanges()}saveAtt(){console.log("saving"),this.prodAttachments.push({name:this.attachName.nativeElement.value,url:this.attachToCreate.url,attachmentType:this.attachToCreate.attachmentType}),this.attachName.nativeElement.value="",this.attachToCreate={url:"",attachmentType:""},this.showNewAtt=!1,this.attFileName.reset()}clearAtt(){this.attachToCreate={url:"",attachmentType:""}}saveAdditionalCert(){console.log("saving"),this.additionalISOS.push({name:"Compliance:"+this.certificationName.nativeElement.value,url:this.isoToCreate}),this.certificationName.nativeElement.value="",this.isoToCreate="",this.certFileName.reset(),this.showCert=!1}clearAdditionalCert(c){c||(this.certificationName.nativeElement.value="",this.certFileName.reset()),this.isoToCreate=""}toggleRelationship(){this.prodSpecRels=[],this.prodSpecRelPage=0,this.showCreateRel=!1,this.loadingprodSpecRel=!0,this.getProdSpecsRel(!1),this.selectStep("relationships","relationships-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getProdSpecsRel(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingprodSpecRel=!0),t.paginationService.getItemsPaginated(t.prodSpecRelPage,t.PROD_SPEC_LIMIT,c,t.prodSpecRels,t.nextProdSpecRels,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecRelPageCheck=i.page_check,t.prodSpecRels=i.items,t.nextProdSpecRels=i.nextItems,t.prodSpecRelPage=i.page,t.loadingprodSpecRel=!1,t.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecsRel(!0)})()}onRelChange(c){console.log("relation type changed"),this.selectedRelType=c.target.value,this.cdr.detectChanges()}saveRel(){this.showCreateRel=!1,this.prodRelationships.push({id:this.selectedProdSpec.id,href:this.selectedProdSpec.href,relationshipType:this.selectedRelType,name:this.selectedProdSpec.name}),this.selectedRelType="migration",console.log(this.prodRelationships)}deleteRel(c){const t=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==t&&(console.log("eliminar"),this.prodRelationships.splice(t,1)),this.cdr.detectChanges()}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.creatingChars=[]}setBooleanDefaultValues(){this.creatingChars=[{isDefault:this.booleanDefaultTrue,value:!0},{isDefault:!this.booleanDefaultTrue,value:!1}]}onBooleanDefaultChange(){"boolean"==this.charTypeSelected&&this.setBooleanDefaultValues()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u!t.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(t=>this.isDataSpaceCharacteristicType(t.valueType)):c.filter(t=>!this.isDataSpaceCharacteristicType(t.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?"credentialsConfiguration":"string"}getFormSteps(){const c=[{label:"General Info",id:"general"}];return this.BUNDLE_ENABLED&&c.push({label:"Bundle",id:"bundle"}),c.push({label:"Compliance profile",id:"compliance"}),c.push({label:"Characteristics",id:"characteristics"}),this.DATA_SPACE_ENABLED&&!this.prod.externalId&&c.push({label:"Dataspace Configuration",id:"dataspace"}),c.push({label:"Resource specifications",id:"resource"}),c.push({label:"Service specifications",id:"service"}),c.push({label:"Attachments",id:"attachments"}),c.push({label:"Relationships",id:"relationships"}),c.push({label:"Summary",id:"summary"}),c}isCurrentStep(c){return this.currentStep?.id===c}getSchemaLocationForType(c){return"credentialsConfiguration"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json":"authorizationPolicy"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json":null}addCharValue(){if(this.isTextCharacteristicType(this.charTypeSelected))console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue="";else if("number"==this.charTypeSelected)console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue="";else if("range"==this.charTypeSelected){if(console.log("range"),Number(this.fromValue)>=Number(this.toValue))return console.log("range validation error: valueFrom >= valueTo"),this.errorMessage='Invalid range: "From" value must be less than "To" value',this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})}else if(this.isDataSpaceCharacteristicType(this.charTypeSelected)){if(this.creatingChars.length>0)return this.errorMessage="Only one JSON value is allowed",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);try{const c=JSON.parse(this.jsonValue);this.creatingChars.push({isDefault:!0,value:c}),this.jsonValue=""}catch{return this.errorMessage="Invalid JSON format",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)}}else{if("boolean"==this.charTypeSelected)return void console.log("boolean values are fixed");console.log("nothing")}}removeCharValue(c,t){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(t,1),console.log(this.creatingChars))}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);if(-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(i=>i.name===c.name+" - enabled");-1!==l&&(console.log("eliminar related enabled"),this.prodChars.splice(l,1))}this.cdr.detectChanges(),console.log(this.prodChars)}checkInput(c){return 0===c.trim().length}showFinish(){this.setProductData(),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!0,this.showPreview=!1,this.refreshChars(),D2()}setProductData(){this.finishChars=[],console.log("--- set product data"),console.log(this.prodChars);for(let c=0;cl.name===this.prodChars[c].name)){const l=this.prodChars[c]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(u=>u.name===l)&&"Compliance:SelfAtt"!=this.prodChars[c].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[c].name),-1!=this.additionalISOS.findIndex(C=>C.name===l)&&this.finishChars.push(this.prodChars[c]),this.prodChars[c].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[c])):this.finishChars.push(this.prodChars[c])}for(let c=0;cl.name===this.selectedISOS[c].name)&&this.finishChars.push({id:this.selectedISOS[c].id?this.selectedISOS[c].id:"urn:ngsi-ld:characteristic:"+L4(),name:this.selectedISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[c].url}]});for(let c=0;cl.name===this.additionalISOS[c].name)&&this.finishChars.push({id:this.additionalISOS[c].id?this.additionalISOS[c].id:"urn:ngsi-ld:characteristic:"+L4(),name:this.additionalISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[c].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const c="Compliance:SelfAtt",t=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,l=this.finishChars.findIndex(C=>C.name===c),u={id:this.selfAtt?.id?this.selfAtt.id:-1!==l&&this.finishChars[l]?.id?this.finishChars[l].id:`urn:ngsi-ld:characteristic:${L4()}`,name:c,productSpecCharacteristicValue:[{isDefault:!0,value:t}]};-1===l?this.finishChars.push(u):this.finishChars[l]=u}if(null!=this.complianceVC&&this.finishChars.push({id:this.complianceVCId?this.complianceVCId:`urn:ngsi-ld:characteristic:${L4()}`,name:"Compliance:VC",productSpecCharacteristicValue:[{isDefault:!0,value:this.complianceVC}]}),this.prod.externalId){this.endpointUrls.forEach(t=>{this.finishChars.push({id:t.id,description:t.description,valueType:"endpointUrl",name:t.name,productSpecCharacteristicValue:[{value:t.url,isDefault:!0}]})});const c=this.dspConfigForm.value;this.finishChars.push({id:"upstreamAddress",name:"Address of the upstream serving the data",valueType:"upstreamAddress",productSpecCharacteristicValue:[{value:c.upstreamAddress,isDefault:!0}]},{id:"targetSpecification",name:"Detailed specification of the ODRL target. Allows to over services via OID4VC",valueType:"targetSpecification",productSpecCharacteristicValue:[{value:JSON.parse(c.targetSpecification),isDefault:!0}]},{id:"serviceConfiguration",name:"Service config to be used in the credentials config service when provisioning transfers through OID4VC",valueType:"serviceConfiguration",productSpecCharacteristicValue:[{value:JSON.parse(c.serviceConfiguration),isDefault:!0}]},{id:"credentialsConfig",name:"Credentials Config",valueType:"credentialsConfig","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(c.credentialsConfig),isDefault:!0}]},{id:"policyConfig",name:"Policy for creation of K8S clusters.",valueType:"authorizationPolicy","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(c.policyConfig),isDefault:!0}]},{id:"transferType",name:"transferType",valueType:"transferType",productSpecCharacteristicValue:[{value:c.transferType,isDefault:!0}]}),c.transferPath&&this.finishChars.push({id:"transferPath",name:"transferPath",valueType:"transferPath",productSpecCharacteristicValue:[{value:c.transferPath,isDefault:!0}]})}if(null!=this.generalForm.value.name&&null!=this.generalForm.value.version&&null!=this.generalForm.value.brand){let c=[];for(let t=0;t{this.loading=!1,this.goBack(),console.log("actualiado producto")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while uploading the product!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}isStepDisabled(){switch(this.currentStep.id){case"general":return!this.generalForm?.valid||!1;case"bundle":return this.prodSpecsBundle.length<2&&this.bundleChecked;case"compliance":return this.checkValidISOS();default:return!1}}addBold(){this.generalForm.patchValue({description:this.generalForm.value.description+" **bold text** "})}addItalic(){this.generalForm.patchValue({description:this.generalForm.value.description+" _italicized text_ "})}addList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n`code`"})}addCodeBlock(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n> blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getValuePreview(c,t=80){if(null==c)return"";let l="";if("string"==typeof c)l=c;else try{l=JSON.stringify(c)}catch{l=String(c)}return l.length>t?`${l.slice(0,t)}...`:l}goToStep(c){this.currentStepIdx=c,this.currentStepIdx>this.highestStepIdx&&(this.highestStepIdx=this.currentStepIdx),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{D2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{D2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&this.showFinish()}validateCurrentStep(){return"general"!==this.currentStep.id||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}getCurrentComplianceEvidenceSignature(){const c=[],t=this.normalizeComplianceValue(this.selfAtt?.productSpecCharacteristicValue?.[0]?.value);t&&c.push(this.toComplianceEntrySignature("Compliance:SelfAtt",t));for(const l of this.selectedISOS){const i=this.normalizeComplianceName(l?.name);if(!i)continue;const u=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(i,u))}for(const l of this.additionalISOS){const i=this.normalizeComplianceName(l?.name);if(!i)continue;const u=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(i,u))}return c.sort().join("|")}normalizeComplianceName(c){const t=this.normalizeComplianceValue(c);return t?t.toLowerCase().startsWith("compliance:")?t:`Compliance:${t}`:""}normalizeComplianceValue(c){return null==c?"":String(c).trim()}toComplianceEntrySignature(c,t){return`${c.toLowerCase()}::${t}`}addEndpointUrl(){const c=this.newEndpointUrl.trim(),t=this.newEndpointDescription.trim(),l=this.newEndpointName.trim();!c||!t||(this.endpointUrls=[...this.endpointUrls,{url:c,description:t,name:l,id:L4()}],this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="")}removeEndpointUrl(c){this.endpointUrls=this.endpointUrls.filter((t,l)=>l!==c)}addDspConfigStep(){if(this.steps.some(i=>"dsp_config"===i.id))return;const t=this.steps.findIndex(i=>"service"===i.id);this.steps=[...this.steps.slice(0,t+1),{label:"DSP Config",id:"dsp_config"},...this.steps.slice(t+1)];const l={};this.prod?.productSpecCharacteristic&&this.prod.productSpecCharacteristic.forEach(i=>{const u=i.productSpecCharacteristicValue?.[0]?.value??"";switch(i.valueType){case"endpointUrl":this.endpointUrls.push({name:i.name??"",url:u,description:i.description??"",id:i.id});break;case"upstreamAddress":case"transferPath":case"transferType":l[i.valueType]=u;break;case"targetSpecification":case"serviceConfiguration":case"credentialsConfig":l[i.valueType]=JSON.stringify(u);break;case"authorizationPolicy":l.policyConfig=JSON.stringify(u)}}),this.dspConfigForm.patchValue(l)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-product-spec"]],viewQuery:function(t,l){if(1&t&&(e.GBs(nu0,5),e.GBs(lu0,5),e.GBs(su0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.attachName=i.first),e.mGM(i=e.lsd())&&(l.imgURL=i.first),e.mGM(i=e.lsd())&&(l.certificationName=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prod:"prod"},decls:53,vars:47,consts:[["certificationName",""],["imgURL",""],["attachName",""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","pb-4","dark:text-white"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"m-4"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","btnNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","productSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[3,"closeModal","showModal","productSpec","selfAtt","selectedISOS","additionalISOS"],["id","upload-file-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["formControlName","version","type","text","id","prod-version",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-brand",1,"font-bold","text-lg","dark:text-white"],["formControlName","brand","type","text","id","prod-brand",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-number",1,"font-bold","text-lg","dark:text-white"],["formControlName","number","type","text","id","prod-number",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[1,"mb-2","col-span-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","productSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],[1,"inline-flex","items-center","me-5","ml-4"],["type","checkbox","disabled","","value","",1,"sr-only","peer",3,"checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","lg:table-cell","px-6","py-4"],[1,"px-6","py-4"],["id","select-checkbox","type","checkbox","value","","disabled","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"checked"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"flex","w-full","items-center","px-4","mb-3"],["src","assets/logos/baseline.png","alt","Baseline logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],[1,"ml-auto","flex","items-center","gap-2"],["type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],[1,"flex"],["data-popover-target","popover-default","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["role","alert",1,"mx-4","mb-3","p-3","text-sm","text-amber-800","rounded-lg","bg-amber-100","dark:bg-amber-900","dark:text-amber-200"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","ml-4"],[1,"flex","items-center","justify-between","ml-4","border","border-1","p-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md"],[1,"mb-2","text-gray-800","dark:text-gray-200"],[1,"flex","items-center","justify-between"],["type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 5v9m-5 0H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2M8 9l4-5 4 5m1 8h.01"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center"],["data-popover","","id","popover-default","role","tooltip",1,"absolute","z-10","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","m-4"],[1,"flex","justify-center","w-full","m-4","dark:bg-secondary-300"],[1,"relative","flex","w-full","justify-end","ml-4"],[1,"relative","inline-block","group"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2\n bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50\n transition-opacity duration-200 w-max max-w-xs whitespace-normal break-words\n opacity-0 invisible group-hover:opacity-100 group-hover:visible",4,"ngIf"],[1,"flex","w-full","justify-items-center","justify-center"],["src","assets/logos/prof.png","alt","Professional logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],["src","assets/logos/profplus.png","alt","Professional plus logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["id","dropdownButtonISO","data-dropdown-toggle","dropdownISO","type","button",1,"text-white","w-full","m-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","justify-between",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],["id","dropdownISO",1,"z-10","w-full","ml-4","mr-4","bg-secondary-50","dark:bg-secondary-300","divide-y","divide-gray-100","rounded-lg","shadow"],["aria-labelledby","dropdownButtonISO",1,"p-3","space-y-3","text-sm","text-gray-700"],["for","checkbox-item-1",1,"ms-2","text-sm",3,"ngClass"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","18","height","18","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4","inline-flex"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50","transition-opacity","duration-200","w-max","max-w-xs","whitespace-normal","break-words","opacity-0","invisible","group-hover:opacity-100","group-hover:visible"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],[1,"m-4","w-full"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","rounded-lg","p-4"],[1,"h-fit"],["for","cert-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","cert-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],["dropZoneLabel","Drop files here",1,"p-4","w-full"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["type","button",1,"flex","ml-4","text-gray-900","justify-end","bg-gray-400","hover:bg-primary-50","focus:ring-4","focus:outline-none","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["dropZoneLabel","Drop files here",1,"p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["role","alert",1,"relative","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-wrap","break-all"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","charType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4","maxLength","500",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],["data-cy","btnSaveCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["value","credentialsConfiguration"],["value","authorizationPolicy"],["value","string"],["value","number"],["value","range"],["value","boolean"],[1,"col-span-2","flex","align-items-middle","h-fit"],["for","is-optional",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","is-optional",1,"sr-only","peer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["for","boolean-default",1,"font-bold","text-lg","dark:text-white"],["data-cy","charBooleanDefault","id","boolean-default","type","checkbox",1,"sr-only","peer",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],[1,"flex","flex-col","w-full"],["for","json-value",1,"font-bold","text-sm","dark:text-white","mb-2"],["id","json-value","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","mr-2","text-white"],["id","select-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","mb-4"],[1,"flex","flex-col","gap-2"],[1,"flex","gap-4"],[1,"flex","flex-col","w-1/2"],["type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["rows","3","maxlength","100000",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],[1,"flex","justify-center"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","ml-2","text-white"],[1,"mt-2","text-sm","text-red-500"],[1,"my-6","border-gray-200","dark:border-gray-700"],[1,"flex","flex-col","gap-4",3,"formGroup"],[1,"w-3/6"],["formControlName","upstreamAddress","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"w-2/6"],["formControlName","transferPath","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","transferType",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["formControlName","targetSpecification","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","serviceConfiguration","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","credentialsConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","policyConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"table-fixed","w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],["scope","col",1,"w-96","px-6","py-3"],["scope","col",1,"w-48","px-2","py-3","text-center"],[1,"px-6","py-4","break-all"],[1,"px-6","py-4","break-words"],[1,"px-2","py-4","text-center"],[1,"mt-1","text-sm","text-red-500"],[1,"inline-flex"],[1,"text-lg","font-bold","ml-4","dark:text-white"],[1,"ml-4","flex"],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"flex","justify-center","w-full","ml-6","mt-2","mb-2","mr-4"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],["for","att-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","att-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],[1,"flex","justify-center","w-full","mb-4"],["id","type",1,"shadow","bg-white","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","migration"],["value","dependency"],["value","exclusivity"],["value","substitution"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"mb-4","md:grid","md:grid-cols-2","gap-4"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["dropZoneLabel","Drop files here",1,"m-4","p-4",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","hover:bg-primary-50","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click"],[1,"text-gray-500","mr-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"h2",16),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",17),e.Z7z(22,iu0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,_u0,36,26,"form",20)(27,Eu0,8,5)(28,Ju0,58,26)(29,Rm0,4,2)(30,qm0,4,2)(31,ap0,4,2)(32,bp0,67,61,"div",21)(33,Ip0,26,15)(34,Zp0,5,2,"div",21)(35,jh0,3,1,"div",22),e.k0s(),e.j41(36,"div",23)(37,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStepIdx-1)}),e.qSk(),e.j41(38,"svg",25),e.nrm(39,"path",26),e.k0s(),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.joV(),e.j41(42,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStepIdx+1)}),e.EFF(43),e.nI1(44,"translate"),e.qSk(),e.j41(45,"svg",28),e.nrm(46,"path",29),e.k0s()(),e.joV(),e.j41(47,"button",30),e.bIt("click",function(){return l.updateProduct()}),e.EFF(48),e.nI1(49,"translate"),e.k0s()()()()(),e.j41(50,"request-validation-modal",31),e.bIt("closeModal",function(){return l.closeRequestValidationModal()}),e.k0s(),e.DNE(51,Oh0,18,10,"div",32)(52,Bh0,1,1,"error-message",33)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,29,"UPDATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,31,"UPDATE_PROD_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,33,"UPDATE_PROD_SPEC._update_prod")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,"general"===l.currentStep.id?26:-1),e.R7$(),e.vxM(27,"bundle"===l.currentStep.id?27:-1),e.R7$(),e.vxM(28,l.isCurrentStep("compliance")?28:-1),e.R7$(),e.vxM(29,l.isCurrentStep("characteristics")||l.isCurrentStep("dataspace")?29:-1),e.R7$(),e.vxM(30,l.isCurrentStep("resource")?30:-1),e.R7$(),e.vxM(31,l.isCurrentStep("service")?31:-1),e.R7$(),e.vxM(32,"dsp_config"===l.currentStep.id?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("attachments")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("relationships")?34:-1),e.R7$(),e.vxM(35,l.isCurrentStep("summary")?35:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStepIdx)("ngClass",e.l_i(41,au0,0!==l.currentStepIdx,0===l.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(41,35,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStepIdx===l.steps.length-1||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())("ngClass",e.l_i(44,ou0,l.currentStepIdx!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStepIdx)),l.currentStepIdx===l.steps.length-1||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())),e.R7$(),e.SpI(" ",e.bMT(44,37,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",l.isStepDisabled()||l.loading)("ngClass",l.loading||l.isStepDisabled()?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(49,39,"UPDATE_PROD_SPEC._update_prod")," "),e.R7$(2),e.Y8G("showModal",l.showRequestValidationModal)("productSpec",l.prod)("selfAtt",l.selfAtt)("selectedISOS",l.selectedISOS)("additionalISOS",l.additionalISOS),e.R7$(),e.vxM(51,l.showUploadFile?51:-1),e.R7$(),e.vxM(52,l.showError?52:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.R_,p.vS,p.l_,p.j4,p.JD,z0,R4,N0,me,E0,tu0,_.vh,s1.D9]})}}return n})();const Gh0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Hh0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),tw=(n,a)=>({"break-all":n,"break-words":a});function Yh0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function qh0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",33),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_RES_SPEC._description"))}}function Xh0(n,a){1&n&&(e.j41(0,"div",34)(1,"div",36),e.qSk(),e.j41(2,"svg",37),e.nrm(3,"path",38),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_RES_SPEC._no_chars")," "))}function Wh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Jh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Qh0(n,a){if(1&n&&e.DNE(0,Wh0,4,2)(1,Jh0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Zh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Kh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function eg0(n,a){if(1&n&&e.DNE(0,Zh0,1,1)(1,Kh0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function cg0(n,a){if(1&n&&e.DNE(0,Qh0,2,1)(1,eg0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function tg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ng0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lg0(n,a){if(1&n&&e.DNE(0,tg0,4,3)(1,ng0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function sg0(n,a){if(1&n&&e.DNE(0,cg0,2,1)(1,lg0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ag0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,sg0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",49)(9,"button",50),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,tw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function og0(n,a){if(1&n&&(e.j41(0,"div",40)(1,"table",41)(2,"thead",42)(3,"tr")(4,"th",43),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ag0,12,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_RES_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_RES_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_RES_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_RES_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function ig0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"button",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",54),e.nrm(5,"path",55),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_RES_SPEC._new_char")," "))}function rg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",77),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dg0(n,a){if(1&n&&e.Z7z(0,rg0,11,4,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function fg0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ug0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function mg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,fg0,5,2,"label",80)(4,ug0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function pg0(n,a){if(1&n&&e.Z7z(0,mg0,8,2,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function hg0(n,a){if(1&n&&(e.j41(0,"label",72),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",73),e.DNE(4,dg0,2,0)(5,pg0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_RES_SPEC._values")),e.R7$(3),e.vxM(4,c.rangeCharSelected?4:5)}}function gg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function _g0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",87),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",83),e.nrm(13,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_RES_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Lg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",89),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",90),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",85)(12,"span",86),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",83),e.nrm(18,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_RES_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_RES_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Cg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",56)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",57),e.k0s(),e.j41(6,"div")(7,"label",58),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",59),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",60),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",61),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",62),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",63)(18,"label",64),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",65),e.k0s()(),e.j41(22,"div",66),e.DNE(23,hg0,6,4),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,gg0,5,3,"div",68)(28,_g0,14,10)(29,Lg0,19,14),e.j41(30,"div",69)(31,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",54),e.nrm(35,"path",71),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"CREATE_RES_SPEC._name")),e.R7$(5),e.JRh(e.bMT(9,13,"CREATE_RES_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"CREATE_RES_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"CREATE_RES_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"CREATE_RES_SPEC._save_char")," ")}}function zg0(n,a){if(1&n&&e.DNE(0,Xh0,9,3,"div",34)(1,og0,19,12)(2,ig0,6,3,"div",35)(3,Cg0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function Mg0(n,a){1&n&&(e.j41(0,"div",91),e.qSk(),e.j41(1,"svg",92),e.nrm(2,"path",93)(3,"path",94),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Loading..."),e.k0s()())}function xg0(n,a){if(1&n&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function bg0(n,a){if(1&n&&(e.j41(0,"span",99),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function yg0(n,a){if(1&n&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function Fg0(n,a){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function vg0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",102),e.nrm(4,"markdown",103),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,tw,c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.description,20),!c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.description,20)))("data",null==c.resourceToCreate?null:c.resourceToCreate.description)}}function kg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function wg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Sg0(n,a){if(1&n&&e.DNE(0,kg0,4,2)(1,wg0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ng0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Eg0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Dg0(n,a){if(1&n&&e.DNE(0,Ng0,1,1)(1,Eg0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Tg0(n,a){if(1&n&&e.DNE(0,Sg0,2,1)(1,Dg0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Rg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ag0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ig0(n,a){if(1&n&&e.DNE(0,Rg0,4,3)(1,Ag0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Pg0(n,a){if(1&n&&e.DNE(0,Tg0,2,1)(1,Ig0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function jg0(n,a){if(1&n&&(e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",46),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,Pg0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,tw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function $g0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",104)(4,"table",41)(5,"thead",42)(6,"tr")(7,"th",43),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,jg0,8,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.resourceToCreate?null:c.resourceToCreate.resourceSpecCharacteristic)}}function Og0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",95),e.EFF(5),e.k0s()(),e.j41(6,"div",96)(7,"label",97),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,xg0,2,1,"span",98)(11,bg0,2,1)(12,yg0,2,1)(13,Fg0,2,1),e.k0s(),e.DNE(14,vg0,5,8)(15,$g0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,tw,c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.name,20),!c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.resourceToCreate?null:c.resourceToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?10:"Launched"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?11:"Retired"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.resourceToCreate?null:c.resourceToCreate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function Bg0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,Mg0,6,0,"div",91)(2,Og0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Vg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createResource())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_RES_SPEC._create_res")," ")}}function Ug0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Gg0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.resSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalDone=!1,this.charsDone=!1,this.finishDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerResourceSpec(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.charsDone=!0,this.finishDone=!0,null!=this.generalForm.value.name&&(this.resourceToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",resourceSpecCharacteristic:this.prodChars,relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("SERVICE TO CREATE:"),console.log(this.resourceToCreate),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars()),this.showPreview=!1}createResource(){this.loading=!0,this.resSpecService.postResSpec(this.resourceToCreate).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv created")},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the resource!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),2==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(f6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-resource-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:42,vars:30,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","resSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","resSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","resSpecDescription","formControlName","description"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","resSpecNewChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["data-cy","resSpecCharName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecCharType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecCharDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","resSpecSaveChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","resSpecCharValueString","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecAddCharValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md","dark:text-white"],["data-cy","resSpecCharValueNumber","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],["data-cy","resSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Yh0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,qh0,9,8,"form",17)(27,zg0,4,2)(28,Bg0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.DNE(40,Vg0,3,5,"button",26),e.k0s()()()(),e.DNE(41,Ug0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,14,"CREATE_RES_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,16,"CREATE_RES_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,18,"CREATE_RES_SPEC._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(24,Gh0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,20,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))("ngClass",e.l_i(27,Hh0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(37,22,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(40,2===l.currentStep?40:-1),e.R7$(),e.vxM(41,l.showError?41:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const Hg0=(n,a)=>a.id,Yg0=(n,a)=>({"break-all":n,"break-words":a});function qg0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Xg0(n,a){if(1&n&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wg0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Jg0(n,a){if(1&n&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qg0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",40)(1,"td",42),e.EFF(2),e.k0s(),e.j41(3,"td",43),e.DNE(4,Xg0,2,1,"span",44)(5,Wg0,2,1)(6,Jg0,2,1)(7,Qg0,2,1),e.k0s(),e.j41(8,"td",45),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",43)(12,"button",46),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,Yg0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Kg0(n,a){1&n&&(e.j41(0,"div",41)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function e_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",55)(1,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",57),e.nrm(4,"path",8),e.k0s()()()}}function c_0(n,a){if(1&n&&e.DNE(0,e_0,5,0,"div",55),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function t_0(n,a){1&n&&(e.j41(0,"div",58),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function n_0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,Zg0,15,10,"tr",40,Hg0,!1,Kg0,7,3,"div",41),e.k0s()()(),e.DNE(21,c_0,1,1)(22,t_0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.resSpecs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let l_0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.resSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.resSpecs=[],this.nextResSpecs=[],this.page=0,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getResSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initResources()})}ngOnInit(){this.initResources();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initResources(){this.loading=!0,this.resSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getResSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateResourceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateResourceSpec(c)}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={filters:t.status,partyId:t.partyId,sort:t.sort};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.RES_SPEC_LIMIT,c,t.resSpecs,t.nextResSpecs,l,t.resSpecService.getResourceSpecByUser.bind(t.resSpecService));t.page_check=i.page_check,t.resSpecs=i.items,t.nextResSpecs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getResSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getResSpecs(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getResSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(f6),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-resource-spec"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createResSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","resSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","resSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","resourceSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,qg0,6,0,"div",29)(52,n_0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._res_spec")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_res")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const s_0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),a_0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),nw=(n,a)=>({"break-all":n,"break-words":a});function o_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function i_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function r_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function d_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function f_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function u_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function m_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function p_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function h_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function g_0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,i_0,5,0,"li",36)(11,r_0,3,0)(12,d_0,5,0,"li",37)(13,f_0,3,0)(14,u_0,5,0,"li",38)(15,m_0,3,0)(16,p_0,5,0,"li",39)(17,h_0,3,0),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(10,"Active"==t.resStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.resStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.resStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.resStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_RES_SPEC._description"))}}function __0(n,a){1&n&&(e.j41(0,"div",53)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_RES_SPEC._no_chars")," "))}function L_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function C_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function z_0(n,a){if(1&n&&e.DNE(0,L_0,4,2)(1,C_0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function M_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function x_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function b_0(n,a){if(1&n&&e.DNE(0,M_0,1,1)(1,x_0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function y_0(n,a){if(1&n&&e.DNE(0,z_0,2,1)(1,b_0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function F_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function v_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function k_0(n,a){if(1&n&&e.DNE(0,F_0,4,3)(1,v_0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function w_0(n,a){if(1&n&&e.DNE(0,y_0,2,1)(1,k_0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function S_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,w_0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",68)(9,"button",69),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function N_0(n,a){if(1&n&&(e.j41(0,"div",59)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",63),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",62),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,S_0,12,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_RES_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_RES_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_RES_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_RES_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function E_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",73),e.nrm(5,"path",74),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_RES_SPEC._new_char")," "))}function D_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",95),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function T_0(n,a){if(1&n&&e.Z7z(0,D_0,11,4,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function R_0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function A_0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function I_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,R_0,5,2,"label",98)(4,A_0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function P_0(n,a){if(1&n&&e.Z7z(0,I_0,8,2,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function j_0(n,a){if(1&n&&(e.j41(0,"label",90),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",91),e.DNE(4,T_0,2,0)(5,P_0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_RES_SPEC._values")),e.R7$(3),e.vxM(4,c.rangeCharSelected?4:5)}}function $_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function O_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",101),e.nrm(13,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_RES_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function B_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",103)(12,"span",107),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",101),e.nrm(18,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_RES_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_RES_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function V_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",75)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",76),e.k0s(),e.j41(6,"div")(7,"label",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",77),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",78),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",79),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",80),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",81)(18,"label",82),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",83),e.k0s()(),e.j41(22,"div",84),e.DNE(23,j_0,6,4),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,$_0,5,3,"div",86)(28,O_0,14,10)(29,B_0,19,14),e.j41(30,"div",87)(31,"button",88),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",73),e.nrm(35,"path",89),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"UPDATE_RES_SPEC._name")),e.R7$(5),e.JRh(e.bMT(9,13,"UPDATE_RES_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"UPDATE_RES_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"UPDATE_RES_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"UPDATE_RES_SPEC._save_char")," ")}}function U_0(n,a){if(1&n&&e.DNE(0,__0,9,3,"div",53)(1,N_0,19,12)(2,E_0,6,3,"div",54)(3,V_0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function G_0(n,a){1&n&&(e.j41(0,"div",108),e.qSk(),e.j41(1,"svg",109),e.nrm(2,"path",110)(3,"path",111),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function H_0(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Y_0(n,a){if(1&n&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function q_0(n,a){if(1&n&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function X_0(n,a){if(1&n&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function W_0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",119),e.nrm(4,"markdown",120),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,nw,c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.description,20),!c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.description,20)))("data",null==c.resourceToUpdate?null:c.resourceToUpdate.description)}}function J_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Q_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Z_0(n,a){if(1&n&&e.DNE(0,J_0,4,2)(1,Q_0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function K_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function eL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function cL0(n,a){if(1&n&&e.DNE(0,K_0,1,1)(1,eL0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tL0(n,a){if(1&n&&e.DNE(0,Z_0,2,1)(1,cL0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function nL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sL0(n,a){if(1&n&&e.DNE(0,nL0,4,3)(1,lL0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function aL0(n,a){if(1&n&&e.DNE(0,tL0,2,1)(1,sL0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function oL0(n,a){if(1&n&&(e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,aL0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function iL0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",121)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,oL0,8,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.resourceToUpdate?null:c.resourceToUpdate.resourceSpecCharacteristic)}}function rL0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",112),e.EFF(5),e.k0s()(),e.j41(6,"div",113)(7,"label",114),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,H_0,2,1,"span",115)(11,Y_0,2,1)(12,q_0,2,1)(13,X_0,2,1),e.k0s(),e.DNE(14,W_0,5,8)(15,iL0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,nw,c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.name,20),!c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.resourceToUpdate?null:c.resourceToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?10:"Launched"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?11:"Retired"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.resourceToUpdate?null:c.resourceToUpdate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function dL0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,G_0,6,0,"div",108)(2,rL0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function fL0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let uL0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.resSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.res),this.populateResInfo(),D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateResInfo(){this.generalForm.controls.name.setValue(this.res.name),this.generalForm.controls.description.setValue(this.res.description),this.resStatus=this.res.lifecycleStatus,this.prodChars=this.res.resourceSpecCharacteristic}goBack(){this.eventMessage.emitSellerResourceSpec(!0)}setResStatus(c){this.resStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),setTimeout(()=>{D2()},100)}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.setResourceData(),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars(),this.showPreview=!1}setResourceData(){null!=this.generalForm.value.name&&(this.resourceToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.resStatus,resourceSpecCharacteristic:this.prodChars})}updateResource(){this.setResourceData(),this.loading=!0,this.resSpecService.updateResSpec(this.resourceToUpdate,this.res.id).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv updated")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the resource!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{D2()},100),2==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(f6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-resource-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{res:"res"},decls:44,vars:34,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","resSpecUpdateNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","resourceSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","resourceSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,o_0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,g_0,22,15,"form",17)(27,U_0,4,2)(28,dL0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.joV(),e.j41(40,"button",26),e.bIt("click",function(){return l.updateResource()}),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()(),e.DNE(43,fL0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,16,"UPDATE_RES_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"UPDATE_RES_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,20,"UPDATE_RES_SPEC._update_res")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(28,s_0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,22,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(31,a_0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(37,24,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(42,26,"UPDATE_RES_SPEC._update_res")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const mL0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),pL0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),lw=(n,a)=>({"break-all":n,"break-words":a});function hL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function gL0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",33),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_SERV_SPEC._description"))}}function _L0(n,a){1&n&&(e.j41(0,"div",34)(1,"div",36),e.qSk(),e.j41(2,"svg",37),e.nrm(3,"path",38),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_SERV_SPEC._no_chars")," "))}function LL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function CL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zL0(n,a){if(1&n&&e.DNE(0,LL0,4,2)(1,CL0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function ML0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function xL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function bL0(n,a){if(1&n&&e.DNE(0,ML0,1,1)(1,xL0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function yL0(n,a){if(1&n&&e.DNE(0,zL0,2,1)(1,bL0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function FL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function vL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function kL0(n,a){if(1&n&&e.DNE(0,FL0,4,3)(1,vL0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function wL0(n,a){if(1&n&&e.DNE(0,yL0,2,1)(1,kL0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function SL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,wL0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",49)(9,"button",50),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function NL0(n,a){if(1&n&&(e.j41(0,"div",40)(1,"table",41)(2,"thead",42)(3,"tr")(4,"th",43),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,SL0,12,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_SERV_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_SERV_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_SERV_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_SERV_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function EL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"button",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",54),e.nrm(5,"path",55),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_SERV_SPEC._new_char")," "))}function DL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",77),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function TL0(n,a){if(1&n&&e.Z7z(0,DL0,11,4,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function RL0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function AL0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function IL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,RL0,5,2,"label",80)(4,AL0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function PL0(n,a){if(1&n&&e.Z7z(0,IL0,8,2,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function jL0(n,a){if(1&n&&(e.j41(0,"label",72),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",73),e.DNE(3,TL0,2,0)(4,PL0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function $L0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function OL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",87),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",83),e.nrm(13,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_SERV_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function BL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",89)(1,"div",85)(2,"span",90),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",91),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",90),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",92),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",85)(12,"span",90),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",83),e.nrm(18,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_SERV_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_SERV_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function VL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",56)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",57),e.k0s(),e.j41(6,"div")(7,"label",58),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",59),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",60),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",61),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",62),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",63)(18,"label",64),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",65),e.k0s()(),e.j41(22,"div",66),e.DNE(23,jL0,5,1),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,$L0,5,3,"div",68)(28,OL0,14,10)(29,BL0,19,14),e.j41(30,"div",69)(31,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",54),e.nrm(35,"path",71),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"PROFILE._name")),e.R7$(5),e.JRh(e.bMT(9,13,"CREATE_SERV_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"CREATE_SERV_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"CREATE_SERV_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"CREATE_SERV_SPEC._save_char")," ")}}function UL0(n,a){if(1&n&&e.DNE(0,_L0,9,3,"div",34)(1,NL0,19,12)(2,EL0,6,3,"div",35)(3,VL0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function GL0(n,a){1&n&&(e.j41(0,"div",93),e.qSk(),e.j41(1,"svg",94),e.nrm(2,"path",95)(3,"path",96),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Loading..."),e.k0s()())}function HL0(n,a){if(1&n&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function YL0(n,a){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function qL0(n,a){if(1&n&&(e.j41(0,"span",102),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function XL0(n,a){if(1&n&&(e.j41(0,"span",103),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function WL0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",104),e.nrm(4,"markdown",105),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,lw,c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.description,20),!c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.description,20)))("data",null==c.serviceToCreate?null:c.serviceToCreate.description)}}function JL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function QL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ZL0(n,a){if(1&n&&e.DNE(0,JL0,4,2)(1,QL0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function KL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function eC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function cC0(n,a){if(1&n&&e.DNE(0,KL0,1,1)(1,eC0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tC0(n,a){if(1&n&&e.DNE(0,ZL0,2,1)(1,cC0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function nC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sC0(n,a){if(1&n&&e.DNE(0,nC0,4,3)(1,lC0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function aC0(n,a){if(1&n&&e.DNE(0,tC0,2,1)(1,sC0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function oC0(n,a){if(1&n&&(e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,aC0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function iC0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",106)(4,"table",41)(5,"thead",42)(6,"tr")(7,"th",43),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",44),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,oC0,8,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.serviceToCreate?null:c.serviceToCreate.specCharacteristic)}}function rC0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",97),e.EFF(5),e.k0s()(),e.j41(6,"div",98)(7,"label",99),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,HL0,2,1,"span",100)(11,YL0,2,1)(12,qL0,2,1)(13,XL0,2,1),e.k0s(),e.DNE(14,WL0,5,8)(15,iC0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,lw,c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.name,20),!c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.serviceToCreate?null:c.serviceToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?10:"Launched"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?11:"Retired"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.serviceToCreate?null:c.serviceToCreate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function dC0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,GL0,6,0,"div",93)(2,rC0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function fC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",107),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createService())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_SERV_SPEC._create_serv")," ")}}function uC0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let mC0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.servSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalDone=!1,this.charsDone=!1,this.finishDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerServiceSpec(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.charsDone=!0,this.finishDone=!0,null!=this.generalForm.value.name&&(this.serviceToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",specCharacteristic:this.prodChars,relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("SERVICE TO CREATE:"),console.log(this.serviceToCreate),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars()),this.showPreview=!1}createService(){this.loading=!0,this.servSpecService.postServSpec(this.serviceToCreate).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv created")},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the service!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),2==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(J6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-service-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:42,vars:30,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","servSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","servSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","servSpecDescription","formControlName","description"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","servSpecNewChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["data-cy","servSpecCharName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecCharType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecCharDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","servSpecSaveChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","servSpecCharValueString","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecAddCharValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","servSpecCharValueNumber","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecCharValueUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","servSpecCharValueFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecCharValueTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-2"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],["data-cy","servSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,hL0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,gL0,9,8,"form",17)(27,UL0,4,2)(28,dC0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.DNE(40,fC0,3,5,"button",26),e.k0s()()()(),e.DNE(41,uC0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,14,"CREATE_SERV_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,16,"CREATE_SERV_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,18,"CREATE_SERV_SPEC._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(24,mL0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,20,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))("ngClass",e.l_i(27,pL0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(37,22,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(40,2===l.currentStep?40:-1),e.R7$(),e.vxM(41,l.showError?41:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const pC0=(n,a)=>a.id,hC0=(n,a)=>({"break-all":n,"break-words":a});function gC0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function _C0(n,a){if(1&n&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function LC0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function CC0(n,a){if(1&n&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zC0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function MC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",40)(1,"td",42),e.EFF(2),e.k0s(),e.j41(3,"td",43),e.DNE(4,_C0,2,1,"span",44)(5,LC0,2,1)(6,CC0,2,1)(7,zC0,2,1),e.k0s(),e.j41(8,"td",45),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",43)(12,"button",46),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,hC0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function xC0(n,a){1&n&&(e.j41(0,"div",41)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function bC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",55)(1,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",57),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function yC0(n,a){if(1&n&&e.DNE(0,bC0,6,3,"div",55),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function FC0(n,a){1&n&&(e.j41(0,"div",58),e.qSk(),e.j41(1,"svg",59),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function vC0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,MC0,15,10,"tr",40,pC0,!1,xC0,7,3,"div",41),e.k0s()()(),e.DNE(21,yC0,1,1)(22,FC0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.servSpecs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let kC0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.servSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.servSpecs=[],this.nextServSpecs=[],this.page=0,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getServSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initServices()})}ngOnInit(){this.initServices();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initServices(){this.loading=!0,this.servSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getServSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateServiceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateServiceSpec(c)}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.SERV_SPEC_LIMIT,c,t.servSpecs,t.nextServSpecs,{filters:t.status,partyId:t.partyId,sort:t.sort},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.page_check=i.page_check,t.servSpecs=i.items,t.nextServSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getServSpecs(!1)}next(){var c=this;return(0,C1.A)(function*(){yield c.getServSpecs(!0)})()}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getServSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(J6),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-service-spec"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createServSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","servSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","servSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","serviceSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,gC0,6,0,"div",29)(52,vC0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._serv_spec")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_serv")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const wC0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),SC0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),sw=(n,a)=>({"break-all":n,"break-words":a});function NC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function EC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function DC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function TC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function RC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function AC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function IC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function PC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function jC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function $C0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,EC0,5,0,"li",36)(11,DC0,3,0)(12,TC0,5,0,"li",37)(13,RC0,3,0)(14,AC0,5,0,"li",38)(15,IC0,3,0)(16,PC0,5,0,"li",39)(17,jC0,3,0),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(10,"Active"==t.servStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.servStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.servStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.servStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_SERV_SPEC._description"))}}function OC0(n,a){1&n&&(e.j41(0,"div",53)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_SERV_SPEC._no_chars")," "))}function BC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function VC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function UC0(n,a){if(1&n&&e.DNE(0,BC0,4,2)(1,VC0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function GC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function HC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function YC0(n,a){if(1&n&&e.DNE(0,GC0,1,1)(1,HC0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function qC0(n,a){if(1&n&&e.DNE(0,UC0,2,1)(1,YC0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function XC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function WC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function JC0(n,a){if(1&n&&e.DNE(0,XC0,4,3)(1,WC0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function QC0(n,a){if(1&n&&e.DNE(0,qC0,2,1)(1,JC0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ZC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,QC0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",68)(9,"button",69),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function KC0(n,a){if(1&n&&(e.j41(0,"div",59)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",63),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",62),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ZC0,12,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_SERV_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_SERV_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_SERV_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_SERV_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function ez0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",73),e.nrm(5,"path",74),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_SERV_SPEC._new_char")," "))}function cz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",95),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tz0(n,a){if(1&n&&e.Z7z(0,cz0,11,4,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function nz0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lz0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function sz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,nz0,5,2,"label",98)(4,lz0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function az0(n,a){if(1&n&&e.Z7z(0,sz0,8,2,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function oz0(n,a){if(1&n&&(e.j41(0,"label",90),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",91),e.DNE(3,tz0,2,0)(4,az0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function iz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function rz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",101),e.nrm(13,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_SERV_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function dz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",107),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",107),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",103)(12,"span",107),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",101),e.nrm(18,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_SERV_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_SERV_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function fz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",75)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",76),e.k0s(),e.j41(6,"div")(7,"label",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",77),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",78),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",79),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",80),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",81)(18,"label",82),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",83),e.k0s()(),e.j41(22,"div",84),e.DNE(23,oz0,5,1),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,iz0,5,3,"div",86)(28,rz0,14,10)(29,dz0,19,14),e.j41(30,"div",87)(31,"button",88),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",73),e.nrm(35,"path",89),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"PROFILE._name")),e.R7$(5),e.JRh(e.bMT(9,13,"UPDATE_SERV_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"UPDATE_SERV_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"UPDATE_SERV_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"UPDATE_SERV_SPEC._save_char")," ")}}function uz0(n,a){if(1&n&&e.DNE(0,OC0,9,3,"div",53)(1,KC0,19,12)(2,ez0,6,3,"div",54)(3,fz0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function mz0(n,a){1&n&&(e.j41(0,"div",108),e.qSk(),e.j41(1,"svg",109),e.nrm(2,"path",110)(3,"path",111),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function pz0(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function hz0(n,a){if(1&n&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function gz0(n,a){if(1&n&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function _z0(n,a){if(1&n&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function Lz0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",119),e.nrm(4,"markdown",120),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sw,c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.description,20),!c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.description,20)))("data",null==c.serviceToUpdate?null:c.serviceToUpdate.description)}}function Cz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Mz0(n,a){if(1&n&&e.DNE(0,Cz0,4,2)(1,zz0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function xz0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function bz0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function yz0(n,a){if(1&n&&e.DNE(0,xz0,1,1)(1,bz0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Fz0(n,a){if(1&n&&e.DNE(0,Mz0,2,1)(1,yz0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function vz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function kz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function wz0(n,a){if(1&n&&e.DNE(0,vz0,4,3)(1,kz0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Sz0(n,a){if(1&n&&e.DNE(0,Fz0,2,1)(1,wz0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Nz0(n,a){if(1&n&&(e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,Sz0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function Ez0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",121)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Nz0,8,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.serviceToUpdate?null:c.serviceToUpdate.specCharacteristic)}}function Dz0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",112),e.EFF(5),e.k0s()(),e.j41(6,"div",113)(7,"label",114),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,pz0,2,1,"span",115)(11,hz0,2,1)(12,gz0,2,1)(13,_z0,2,1),e.k0s(),e.DNE(14,Lz0,5,8)(15,Ez0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,sw,c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.name,20),!c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.serviceToUpdate?null:c.serviceToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?10:"Launched"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?11:"Retired"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.serviceToUpdate?null:c.serviceToUpdate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function Tz0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,mz0,6,0,"div",108)(2,Dz0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Rz0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Az0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.servSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.loading=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.serv),this.populateResInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateResInfo(){this.generalForm.controls.name.setValue(this.serv.name),this.generalForm.controls.description.setValue(this.serv.description),this.servStatus=this.serv.lifecycleStatus,this.prodChars=this.serv.specCharacteristic}goBack(){this.eventMessage.emitSellerServiceSpec(!0)}setServStatus(c){this.servStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.setServiceData(),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars(),this.showPreview=!1}setServiceData(){null!=this.generalForm.value.name&&(this.serviceToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.servStatus,specCharacteristic:this.prodChars})}updateService(){this.setServiceData(),this.loading=!0,this.servSpecService.updateServSpec(this.serviceToUpdate,this.serv.id).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv updated")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the service!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{D2()},100),2==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(J6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-service-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{serv:"serv"},decls:44,vars:34,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","servSpecUpdateNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","serviceSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","serviceSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,NC0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,$C0,22,15,"form",17)(27,uz0,4,2)(28,Tz0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.joV(),e.j41(40,"button",26),e.bIt("click",function(){return l.updateService()}),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()(),e.DNE(43,Rz0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,16,"UPDATE_SERV_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"UPDATE_SERV_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,20,"UPDATE_SERV_SPEC._update_serv")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(28,wC0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,22,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(31,SC0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(37,24,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(42,26,"UPDATE_SERV_SPEC._update_serv")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})(),CE1=(()=>{class n{constructor(c){this.http=c}init(){return new Promise((c,t)=>{const l={next:i=>{const u=i.ai??{};g1.c.SIOP_INFO=i.siop,g1.c.CHAT_API=i.chat,g1.c.MATOMO_SITE_ID=i.matomoId,g1.c.MATOMO_TRACKER_URL=i.matomoUrl,g1.c.KNOWLEDGE_BASE_URL=i.knowledgeBaseUrl,g1.c.TICKETING_SYSTEM_URL=i.ticketingUrl,g1.c.DOME_TRUST_LINK=i.domeTrust,g1.c.DOME_ABOUT_LINK=i.domeAbout,g1.c.DOME_REGISTER_LINK=i.domeRegister,g1.c.DOME_CUSTOMER_REGISTER_LINK=i.domeRegisterCustomer,g1.c.DOME_PUBLISH_LINK=i.domePublish,g1.c.KB_ONBOARDING_GUIDELINES_URL=i.domeOnboardingGuidelines,g1.c.KB_GUIDELNES_URL=i.domeGuidelines,g1.c.REGISTRATION_FORM_URL=i.domeRegistrationForm,g1.c.DFT_CATALOG_ID=i.defaultId,g1.c.SELLER_ROLE=i.roles?.seller,g1.c.BUYER_ROLE=i.roles?.customer,g1.c.ADMIN_ROLE=i.roles?.admin,g1.c.ORG_ADMIN_ROLE=i.roles?.orgAdmin,g1.c.CERTIFIER_ROLE=i.roles?.certifier,g1.c.quoteApi=i.quoteApi??g1.c.quoteApi,g1.c.analyticsEnabled=i.analyticsEnabled??!1,g1.c.analytics=this.getAnalyticsUrl(i),g1.c.feedbackCampaign=i.feedbackCampaign??!1,g1.c.feedbackCampaignExpiration=i.feedbackCampaign??$2()().add(1,"week").unix(),g1.c.documentApi=i.documentApi??g1.c.documentApi,g1.c.googleTagManagerId=i.googleTagManagerId??"",g1.c.providerThemeName=i.theme??"default",g1.c.LEAR_URL=i.learUrl??"",g1.c.AI_SEARCH_API_KEY=u.aiApiKey??i.aiApiKey??"",g1.c.AI_SEARCH_API_URL=u.aiApiUrl??i.aiApiUrl??"",g1.c.AI_SEARCH_PROFILE=u.aiSearchProfile??i.aiSearchProfile??"",g1.c.DSP_CONTRACT_DEFINITION_SCHEMA=i.dspContractDefinitionSchema||g1.c.DSP_CONTRACT_DEFINITION_SCHEMA,g1.c.DSP_SCHEMA=i.dspSchema||g1.c.DSP_SCHEMA,Aw1(i),(0,aF.Wh)(i),c(i)},error:i=>{t(i)},complete:()=>{}};this.http.get(`${g1.c.BASE_URL}/config`).subscribe(l)})}getAnalyticsUrl(c){return"string"==typeof c?.analytics?c.analytics:c?.analytics&&"object"==typeof c.analytics?c.analytics.link??c.analytics.url??c.analytics.domain??"":""}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Iz0=(()=>{class n{constructor(){this.loadedContainerId=""}init(c){const t=(c??"").trim();if(!this.isValidContainerId(t)||this.loadedContainerId===t)return;this.loadedContainerId=t;const l=window;l.dataLayer=l.dataLayer??[],l.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});const i=document.createElement("script");i.async=!0,i.src=`https://www.googletagmanager.com/gtm.js?id=${encodeURIComponent(t)}`,document.head.insertBefore(i,document.head.firstChild)}isValidContainerId(c){return/^GTM-[A-Z0-9]+$/.test(c)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Pz0=y(9437);class jz0{constructor(a,c){this.http=a,this.themeService=c}getTranslation(a){const c=this.themeService.getCurrentThemeConfig()?.name,t=`assets/i18n/themes/${a}-${c}.json`;return(0,C6.p)([this.http.get(`assets/i18n/${a}.json`),this.http.get(t).pipe((0,Pz0.W)(()=>(0,o1.of)({})))]).pipe((0,P2.T)(([i,u])=>this.deepMerge(i,u)))}deepMerge(a,c){const t={...a};return this.isObject(a)&&this.isObject(c)&&Object.keys(c).forEach(l=>{this.isObject(c[l])?l in a?t[l]=this.deepMerge(a[l],c[l]):Object.assign(t,{[l]:c[l]}):Object.assign(t,{[l]:c[l]})}),t}isObject(a){return a&&"object"==typeof a&&!Array.isArray(a)}}function $z0(n,a){1&n&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_yes")))}function Oz0(n,a){1&n&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_no")))}function Bz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",5)(1,"td",7),e.EFF(2),e.k0s(),e.j41(3,"td",7),e.EFF(4),e.k0s(),e.j41(5,"td",8),e.DNE(6,$z0,3,3,"span",9)(7,Oz0,3,3,"span",10),e.k0s(),e.j41(8,"td",11)(9,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.editPricePlan(l))}),e.qSk(),e.j41(10,"svg",13),e.nrm(11,"path",14),e.k0s()(),e.joV(),e.j41(12,"button",15),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG();return e.Njj(C.confirmDelete(i,u))}),e.qSk(),e.j41(13,"svg",16),e.nrm(14,"path",17),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.Y8G("ngIf",c.paymentOnline),e.R7$(),e.Y8G("ngIf",!c.paymentOnline)}}function Vz0(n,a){1&n&&(e.j41(0,"tr")(1,"td",20)(2,"div",21),e.nrm(3,"img",22),e.j41(4,"span",23),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()()),2&n&&(e.R7$(5),e.JRh(e.bMT(6,1,"FORMS.PRICE_PLANS._no_price_plans")))}function Uz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",24)(1,"div",25)(2,"h2",26),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",27),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",28)(9,"button",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDeleteModal=!1)}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deletePricePlan())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()}2&n&&(e.R7$(3),e.JRh(e.bMT(4,4,"FORMS.PRICE_PLANS._sure_delete")),e.R7$(3),e.JRh(e.bMT(7,6,"FORMS.PRICE_PLANS._cant_be_undone")),e.R7$(4),e.JRh(e.bMT(11,8,"FORMS.PRICE_PLANS._cancel")),e.R7$(3),e.JRh(e.bMT(14,10,"FORMS.PRICE_PLANS._delete")))}let Gz0=(()=>{class n{constructor(){this._pricePlans=[],this.edit=new e.bkB,this.delete=new e.bkB,this.showDeleteModal=!1,this.pricePlanToDelete=null}set pricePlans(c){this._pricePlans=Array.isArray(c)?c:[]}get pricePlans(){return this._pricePlans}editPricePlan(c){this.edit.emit(c)}confirmDelete(c,t){this.pricePlanToDelete=c,this.planIndex=t,this.showDeleteModal=!0}deletePricePlan(){this.pricePlanToDelete&&this.planIndex>=0&&(this.delete.emit(this.planIndex),this.showDeleteModal=!1,this.pricePlanToDelete=null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plans-table"]],inputs:{pricePlans:"pricePlans"},outputs:{edit:"edit",delete:"delete"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"overflow-x-auto","mt-2"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],[1,"border-b","dark:border-gray-600","hover:bg-gray-100","dark:hover:bg-gray-800","transition-colors"],["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center",4,"ngIf"],[1,"px-6","py-4"],[1,"px-6","py-4","text-center"],["class","text-green-500 font-semibold",4,"ngIf"],["class","text-red-500 font-semibold",4,"ngIf"],[1,"px-6","py-4","text-center","flex","justify-center","gap-3"],[1,"text-blue-500","hover:text-secondary-400","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4\n 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2\n 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4\n 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3\n 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25\n 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6\n 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"],[1,"text-red-500","hover:text-red-700","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32\n 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128l384\n 0L394.8 467c-1.6 25.3-22.6 45-47.9 45l-245.8 0c-25.3 0-46.3-19.7-47.9-45L32 128zM143 239c-9.4\n 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4\n 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47\n 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"],[1,"text-green-500","font-semibold"],[1,"text-red-500","font-semibold"],["colspan","4",1,"text-center","py-4","text-gray-500"],["role","alert",1,"flex","items-center","justify-center","p-4","mb-4","text-sm","text-green-800","rounded-lg","bg-green-50","dark:bg-gray-800","dark:text-green-400"],["alt","","src","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNTEyLjAwMSA1MTIuMDAxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIuMDAxIDUxMi4wMDE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBkPSJNMzk2LjczOSwxMTQuODQ2Yy0yLjE1OS0yLjE1OS00Ljk5NC0zLjIzOS03LjgzMS0zLjIzOWMtMi44MzUsMC01LjY3MSwxLjA3OS03LjgzLDMuMjM4DQoJCQljLTQuMzE4LDQuMzE4LTQuMzE4LDExLjM0NCwwLDE1LjY2MWM0LjMxOSw0LjMyLDExLjM0NCw0LjMxOCwxNS42Niwwdi0wLjAwMWMyLjA5Mi0yLjA5MiwzLjI0NC00Ljg3MiwzLjI0NC03LjgzDQoJCQlDMzk5Ljk4MywxMTkuNzE5LDM5OC44MzEsMTE2LjkzOCwzOTYuNzM5LDExNC44NDZ6Ii8+DQoJPC9nPg0KPC9nPg0KPGc+DQoJPGc+DQoJCTxwYXRoIGQ9Ik0yMTMuNDA5LDI3Ny4zN2MtMi45OTgtMi45OTgtNS44MjktNC40NDktOC40OTctNC4zNjFjLTIuNjY3LDAuMDkxLTUuMzIsMS40NTMtNy45NTcsNC4wOTFsLTguOTAyLDguOTAybDE2LjcyNCwxNi43MjQNCgkJCWw4LjkwMi04LjkwMmMyLjYzNy0yLjYzNyw0LTUuMjg5LDQuMDkxLTcuOTU3QzIxNy44NiwyODMuMjAxLDIxNi40MDcsMjgwLjM2OSwyMTMuNDA5LDI3Ny4zN3oiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCgk8Zz4NCgkJPHBhdGggZD0iTTUxMS4yNTcsMTk3LjY0NEw0ODYuODYzLDYyLjcxOWMtMy40NDEtMTkuMDM3LTE4LjU0My0zNC4xNC0zNy41OC0zNy41ODJMMzE0LjM1NywwLjc0NA0KCQkJYy0xNS4wMzgtMi43MTktMzAuNDU3LDIuMTA5LTQxLjI1OCwxMi45MUwxMy42NTUsMjczLjA5OUM0Ljg1LDI4MS45MDQsMCwyOTMuNjExLDAsMzA2LjA2M2MwLDEyLjQ1Miw0Ljg0OSwyNC4xNiwxMy42NTUsMzIuOTY0DQoJCQlsMTU5LjMyLDE1OS4zMTljOC44MDUsOC44MDYsMjAuNTEyLDEzLjY1NSwzMi45NjQsMTMuNjU1czI0LjE2LTQuODQ5LDMyLjk2NC0xMy42NTVsMjU5LjQ0NC0yNTkuNDQ0DQoJCQlDNTA5LjE0OCwyMjguMSw1MTMuOTc0LDIxMi42NzYsNTExLjI1NywxOTcuNjQ0eiBNMTkyLjA1MywzODYuNzQ4Yy0wLjYzLDIuMTI5LTEuOTAzLDQuMTUxLTMuODIsNi4wNjgNCgkJCWMtMS45MiwxLjkyLTMuOTQxLDMuMTkzLTYuMDY5LDMuODIxYy0yLjEyOCwwLjYzMS0zLjg3OSwwLjI1NS01LjI2LTEuMTI1bC01Ny4wOTQtNTcuMDk0Yy0xLjM3OC0xLjM3OC0xLjg0NC0zLjA0LTEuMzk0LTQuOTg4DQoJCQljMC40NDgtMS45NDgsMS41MTMtMy43NjEsMy4xOTItNS40NDFsMzEuMi0zMS4yYzEuMzc4LTEuMzc4LDMuMDI4LTEuODI4LDQuOTQ0LTEuMzVjMS45MiwwLjQ4LDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5DQoJCQljMS43MzgsMS43MzksMi44MzMsMy41ODIsMy4yODMsNS41MjljMC40NDgsMS45NSwwLjAxMywzLjU4Mi0xLjMwNSw0LjlsLTIzLjI4OCwyMy4yODhsMTUuMTk2LDE1LjE5NmwxMy41NzctMTMuNTc3DQoJCQljMS4zMTctMS4zMTcsMi44OTEtMS44MTMsNC43Mi0xLjQ4NGMxLjgyOCwwLjMzLDMuNDkyLDEuMjQ2LDQuOTg5LDIuNzQzYzEuMzc5LDEuMzc5LDIuMjQ4LDIuOTY4LDIuNjA4LDQuNzY1DQoJCQljMC4zNTgsMS43OTgtMC4xNSwzLjM4OC0xLjUyOCw0Ljc2NmwtMTMuNTc3LDEzLjU3N2wyMy4xOTcsMjMuMTk3QzE5Mi4zMSwzODIuODY4LDE5Mi42ODMsMzg0LjYyMSwxOTIuMDUzLDM4Ni43NDh6DQoJCQkgTTI2OC40NzksMzA4Ljk3M2MtMC4zMjksMy40NDctMS41NDQsNi4yMi0zLjY0Miw4LjMxOGMtMi4wOTksMi4wOTktNC40NjUsMi43MjctNy4xMDMsMS44ODhMMjIxLjUsMzA3LjU4MWwtNS45MzQsNS45MzQNCgkJCWwyMS42NjgsMjEuNjY4YzEuMzgsMS4zOCwxLjc1MywzLjEzNCwxLjEyNCw1LjI2MWMtMC42MzEsMi4xMy0xLjkwNCw0LjE1Mi0zLjgyMSw2LjA2OWMtMS45MTksMS45MTktMy45NDEsMy4xOTItNi4wNjgsMy44Mg0KCQkJYy0yLjEyOSwwLjYzMi0zLjg4LDAuMjU2LTUuMjYtMS4xMjRsLTU3LjE4NC01Ny4xODRjLTEuMTM5LTEuMTM5LTEuNzIyLTIuNTMxLTEuNzUzLTQuMTgyYy0wLjAyOS0xLjY0NywwLjU4Ni0zLjEwMiwxLjg0NS00LjM2DQoJCQlsMTguNjEyLTE4LjYxMmMxNC43NDUtMTQuNzQ1LDI4LjUzMy0xNS43MDUsNDEuMzYtMi44NzhjOS4zNSw5LjM1MiwxMS44MDcsMTkuMDYzLDcuMzcyLDI5LjEzMWwzMC44MzksOC45MDMNCgkJCWMwLjcyMSwwLjEyLDEuNDA5LDAuNTEsMi4wNjgsMS4xNjlDMjY4LjEwNSwzMDIuOTM2LDI2OC44MDksMzA1LjUyNywyNjguNDc5LDMwOC45NzN6IE0zMTguMTU2LDI2Mi44OTRsLTMyLjAwOCwzMi4wMDgNCgkJCWMtMS42NzksMS42NzktMy40OTEsMi43NDItNS40NDEsMy4xOTJjLTEuOTQ4LDAuNDUtMy42MDktMC4wMTUtNC45ODktMS4zOTVsLTU3LjA5NC01Ny4wOTRjLTEuMzc4LTEuMzc4LTEuODQ0LTMuMDQtMS4zOTQtNC45ODgNCgkJCWMwLjQ0OS0xLjk0OSwxLjUxMy0zLjc2MSwzLjE5Mi01LjQ0MWwzMi4wMDktMzIuMDA4YzEuMzc4LTEuMzc4LDMuMDI4LTEuODI4LDQuOTQ0LTEuMzVjMS45MiwwLjQ4LDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5DQoJCQljMS43MzgsMS43MzksMi44MzMsMy41ODIsMy4yODMsNS41MjljMC40NDgsMS45NSwwLjAxMywzLjU4Mi0xLjMwNSw0LjlsLTI0LjA5NywyNC4wOTdsMTUuMTk2LDE1LjE5NmwxMy40ODgtMTMuNDg4DQoJCQljMS4zMTctMS4zMTcsMi44OTItMS44MTMsNC43Mi0xLjQ4NGMxLjgyOCwwLjMzLDMuNDkzLDEuMjQ1LDQuOTksMi43NDJjMS4zNzksMS4zNzksMi4yNDgsMi45NjgsMi42MDcsNC43NjYNCgkJCWMwLjM1OCwxLjc5OC0wLjE1LDMuMzg4LTEuNTI4LDQuNzY2bC0xMy40ODgsMTMuNDg4bDE1LjI4NCwxNS4yODRsMjQuMDk3LTI0LjA5N2MxLjMxNy0xLjMxNywyLjk1Mi0xLjc1Miw0LjktMS4zMDQNCgkJCWMxLjk0OSwwLjQ1MSwzLjc5LDEuNTQ0LDUuNTI5LDMuMjgzYzEuNjE3LDEuNjE3LDIuNjY4LDMuMzg2LDMuMTQ4LDUuMzA0QzMxOS45ODUsMjU5Ljg2OCwzMTkuNTM0LDI2MS41MTUsMzE4LjE1NiwyNjIuODk0eg0KCQkJIE0zNjYuNjE3LDIxNC40MzJsLTMyLjAxLDMyLjAxYy0xLjY3OSwxLjY3OS0zLjQ5MiwyLjc0My01LjQ0MSwzLjE5MmMtMS45NDgsMC40NS0zLjYwOS0wLjAxNS00Ljk4OS0xLjM5NWwtNTcuMDk0LTU3LjA5NA0KCQkJYy0xLjM3OC0xLjM3OC0xLjg0NC0zLjA0LTEuMzk0LTQuOTg4YzAuNDQ5LTEuOTQ5LDEuNTEzLTMuNzYxLDMuMTkyLTUuNDQxbDMyLjAwOC0zMi4wMDhjMS4zNzgtMS4zNzgsMy4wMjgtMS44MjgsNC45NDQtMS4zNQ0KCQkJYzEuOTE5LDAuNDgxLDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5YzEuNzM4LDEuNzM5LDIuODMzLDMuNTgyLDMuMjgzLDUuNTI5YzAuNDQ4LDEuOTUsMC4wMTMsMy41ODItMS4zMDUsNC45bC0yNC4wOTcsMjQuMDk3DQoJCQlsMTUuMTk2LDE1LjE5NmwxMy40ODgtMTMuNDg4YzEuMzE3LTEuMzE3LDIuODkxLTEuODEzLDQuNzItMS40ODRjMS44MjgsMC4zMywzLjQ5MiwxLjI0Niw0Ljk4OSwyLjc0Mw0KCQkJYzEuMzc5LDEuMzc5LDIuMjQ4LDIuOTY4LDIuNjA4LDQuNzY1YzAuMzU4LDEuNzk4LTAuMTUsMy4zODgtMS41MjgsNC43NjZsLTEzLjQ4OCwxMy40ODhsMTUuMjg0LDE1LjI4NGwyNC4wOTctMjQuMDk3DQoJCQljMS4zMTctMS4zMTcsMi45NTItMS43NTEsNC45LTEuMzAzYzEuOTUsMC40NSwzLjc5MSwxLjU0Myw1LjUzLDMuMjgyYzEuNjE3LDEuNjE3LDIuNjY3LDMuMzg3LDMuMTQ4LDUuMzA0DQoJCQlDMzY4LjQ0NywyMTEuNDA2LDM2Ny45OTYsMjEzLjA1NCwzNjYuNjE3LDIxNC40MzJ6IE00MTcuOTcxLDE1MS43NGMtOC4wMTIsOC4wMTItMTguNTM3LDEyLjAxOC0yOS4wNjEsMTIuMDE4DQoJCQljLTEwLjUyNiwwLTIxLjA1LTQuMDA2LTI5LjA2Mi0xMi4wMTljLTE2LjAyNi0xNi4wMjUtMTYuMDI2LTQyLjA5OSwwLTU4LjEyNGMxNi4wMjQtMTYuMDI1LDQyLjA5OS0xNi4wMjYsNTguMTIzLDANCgkJCWM3Ljc2NCw3Ljc2MywxMi4wMzgsMTguMDg0LDEyLjAzOCwyOS4wNjJDNDMwLjAwOSwxMzMuNjU1LDQyNS43MzQsMTQzLjk3Niw0MTcuOTcxLDE1MS43NHoiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==",1,"h-8","max-h-8","mr-2"],[1,"font-medium"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center"],[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-lg","font-semibold","text-gray-700","dark:text-white"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","justify-end","mt-4","space-x-3"],[1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],[1,"px-4","py-2","bg-red-500","text-white","rounded",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",3),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",4),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",4),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Bz0,15,4,"tr",5,e.Vm6,!1,Vz0,7,3,"tr"),e.k0s()()(),e.DNE(20,Uz0,15,12,"div",6)),2&t&&(e.R7$(5),e.JRh(e.bMT(6,6,"FORMS.PRICE_PLANS._name")),e.R7$(3),e.JRh(e.bMT(9,8,"FORMS.PRICE_PLANS._description")),e.R7$(3),e.JRh(e.bMT(12,10,"FORMS.PRICE_PLANS._online_payment")),e.R7$(3),e.JRh(e.bMT(15,12,"FORMS.PRICE_PLANS._actions")),e.R7$(3),e.Dyx(l.pricePlans),e.R7$(3),e.Y8G("ngIf",l.showDeleteModal))},dependencies:[_.bT,s1.h,s1.D9]})}}return n})();const Hz0=(n,a)=>a.id;function Yz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",5)(1,"td",7),e.EFF(2),e.k0s(),e.j41(3,"td",7),e.EFF(4),e.k0s(),e.j41(5,"td",7),e.EFF(6),e.k0s(),e.j41(7,"td",8)(8,"button",9),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.editPriceComponent(l))}),e.qSk(),e.j41(9,"svg",10),e.nrm(10,"path",11),e.k0s()(),e.joV(),e.j41(11,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.confirmDelete(l))}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.JRh(t.getPriceTypeLabel(c.priceType))}}function qz0(n,a){1&n&&(e.j41(0,"tr")(1,"td",15)(2,"div",16),e.qSk(),e.j41(3,"svg",10),e.nrm(4,"path",17),e.k0s(),e.joV(),e.j41(5,"span",18),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()()),2&n&&(e.R7$(6),e.JRh(e.bMT(7,1,"FORMS.PRICE_PLANS._no_price_plans_components")))}function Xz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",19)(1,"div",20)(2,"h2",21),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",22),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",23)(9,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDeleteModal=!1)}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deletePriceComponent())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()}2&n&&(e.R7$(3),e.JRh(e.bMT(4,4,"FORMS.PRICE_PLAN_COMPONENT._delete_price_comp")),e.R7$(3),e.JRh(e.bMT(7,6,"FORMS.PRICE_PLAN_COMPONENT._unable_undone")),e.R7$(4),e.JRh(e.bMT(11,8,"FORMS.PRICE_PLAN_COMPONENT._cancel")),e.R7$(3),e.JRh(e.bMT(14,10,"FORMS.PRICE_PLAN_COMPONENT._delete")))}let Wz0=(()=>{class n{constructor(){this.priceComponents=[],this.edit=new e.bkB,this.delete=new e.bkB,this.showDeleteModal=!1,this.componentToDelete=null}editPriceComponent(c){this.edit.emit(c)}confirmDelete(c){this.componentToDelete=c,this.showDeleteModal=!0}deletePriceComponent(){this.componentToDelete&&(console.log("delete"),this.delete.emit(this.componentToDelete.id),this.showDeleteModal=!1,this.componentToDelete=null)}getPriceTypeLabel(c){return{"one time":"One time",recurring:"Recurring","recurring-prepaid":"Recurring Prepaid",usage:"Usage"}[c]||"Unknown"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-components-table"]],inputs:{priceComponents:"priceComponents"},outputs:{edit:"edit",delete:"delete"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"overflow-x-auto"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],[1,"border-b","dark:border-gray-600","hover:bg-gray-100","dark:hover:bg-gray-800","transition-colors"],["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center",4,"ngIf"],[1,"px-6","py-4"],[1,"px-6","py-4","text-center","flex","justify-center","gap-3"],["data-cy","ppEditPriceComponent",1,"text-blue-500","hover:text-secondary-400","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4\n 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2\n 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4\n 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3\n 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25\n 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6\n 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"],["data-cy","ppDeletePriceComponent",1,"text-red-500","hover:text-red-700","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32\n 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128l384\n 0L394.8 467c-1.6 25.3-22.6 45-47.9 45l-245.8 0c-25.3 0-46.3-19.7-47.9-45L32 128zM143 239c-9.4\n 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4\n 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47\n 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"],["colspan","4",1,"text-center","py-4","text-gray-500"],["role","alert",1,"flex","justify-center","items-center","p-4","mb-4","text-sm","text-yellow-800","rounded-lg","bg-yellow-50","dark:bg-gray-800","dark:text-yellow-300"],["fill","currentColor","d","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40\n 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3\n 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32\n 32 0 1 0 -64 0 32 32 0 1 0 64 0z"],[1,"font-medium"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center"],[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-lg","font-semibold","text-gray-700","dark:text-white"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","justify-end","mt-4","space-x-3"],[1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],[1,"px-4","py-2","bg-red-500","text-white","rounded",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",3),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",3),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",4),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Yz0,14,3,"tr",5,Hz0,!1,qz0,8,3,"tr"),e.k0s()()(),e.DNE(20,Xz0,15,12,"div",6)),2&t&&(e.R7$(5),e.JRh(e.bMT(6,6,"FORMS.PRICE_PLAN_COMPONENT._name")),e.R7$(3),e.JRh(e.bMT(9,8,"FORMS.PRICE_PLAN_COMPONENT._description")),e.R7$(3),e.JRh(e.bMT(12,10,"FORMS.PRICE_PLAN_COMPONENT._price_type")),e.R7$(3),e.JRh(e.bMT(15,12,"FORMS.PRICE_PLAN_COMPONENT._actions")),e.R7$(3),e.Dyx(l.priceComponents),e.R7$(3),e.Y8G("ngIf",l.showDeleteModal))},dependencies:[_.bT,s1.h,s1.D9]})}}return n})();const Jz0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),Qz0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),Zz0=()=>({standalone:!0});function Kz0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_required")," "))}function eM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_limit")," "))}function cM0(n,a){1&n&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_positive")," "))}function tM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,Kz0,3,3,"div")(2,eM0,3,3)(3,cM0,3,3),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.required?1:null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.max?2:null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.min&&(null!=(c=t.priceComponentForm.get("price"))&&c.touched||null!=(c=t.priceComponentForm.get("price"))&&c.dirty)?3:-1)}}function nM0(n,a){1&n&&(e.j41(0,"div",31)(1,"div",36),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,2,"FORMS.PRICE_PLAN_COMPONENT._product_char")," "),e.R7$(3),e.SpI(" ",e.bMT(6,4,"FORMS.PRICE_PLAN_COMPONENT._prod_char_info")," "))}function lM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function sM0(n,a){if(1&n&&(e.j41(0,"option",37),e.EFF(1,"Select a characteristic"),e.k0s(),e.Z7z(2,lM0,2,2,"option",38,e.fX1)),2&n){const c=e.XpG(2);e.R7$(2),e.Dyx(c.filteredChars)}}function aM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function oM0(n,a){if(1&n&&e.DNE(0,aM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,t.selectedCharacteristic.id!=c.id?0:-1)}}function iM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,oM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(2);e.FS9("value",c.selectedCharacteristic.id),e.R7$(),e.JRh(c.selectedCharacteristic.name),e.R7$(),e.Dyx(c.filteredChars)}}function rM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function dM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.JRh(c.value)}}function fM0(n,a){if(1&n&&e.DNE(0,rM0,2,3,"option",38)(1,dM0,2,2),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,t.hasKey(c,"unitOfMeasure")?0:1)}}function uM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",39),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.changePriceComponentCharValue(l))}),e.Z7z(1,fM0,2,1,null,null,e.fX1),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.selectedCharacteristic.productSpecCharacteristicValue)}}function mM0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",40),e.EFF(2),e.k0s(),e.j41(3,"div",41),e.nrm(4,"div",42),e.j41(5,"div",43),e.nrm(6,"div",44),e.j41(7,"span",45),e.EFF(8),e.k0s()(),e.j41(9,"div",46),e.nrm(10,"div",44),e.j41(11,"span",45),e.EFF(12),e.k0s()()()()),2&n){const c=e.XpG(2);e.R7$(2),e.Lme(" Selected Range: [",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,",",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,"]. Not modifiable, in case you want Tiering range prices go to price plan modal and click on Tier Pricing button "),e.R7$(6),e.SpI(" ",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom," "),e.R7$(4),e.SpI(" ",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo," ")}}function pM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"label",25),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",26),e.bIt("mouseenter",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showPopover=!0)})("mouseleave",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showPopover=!1)}),e.qSk(),e.j41(6,"svg",27),e.nrm(7,"circle",28)(8,"line",29)(9,"line",30),e.k0s(),e.DNE(10,nM0,7,6,"div",31),e.k0s()()(),e.joV(),e.j41(11,"div",32)(12,"select",33),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.changePriceComponentChar(l))}),e.DNE(13,sM0,4,0)(14,iM0,4,2),e.k0s(),e.DNE(15,uM0,3,0,"select",34),e.k0s(),e.DNE(16,mM0,13,4,"div",35)}if(2&n){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,5,"FORMS.PRICE_PLAN_COMPONENT._apply_to_char")," "),e.R7$(7),e.vxM(10,c.showPopover?10:-1),e.R7$(3),e.vxM(13,c.selectedCharacteristic?14:13),e.R7$(2),e.vxM(15,c.showValueSelect?15:-1),e.R7$(),e.vxM(16,c.selectedCharacteristic&&null!=c.selectedCharacteristic.productSpecCharacteristicValue&&c.selectedCharacteristic.productSpecCharacteristicValue[0]&&c.hasKey(c.selectedCharacteristic.productSpecCharacteristicValue[0],"valueFrom")&&c.hasKey(c.selectedCharacteristic.productSpecCharacteristicValue[0],"valueTo")?16:-1)}}function hM0(n,a){1&n&&(e.j41(0,"div")(1,"label",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",47)(5,"option",48),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",49),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"option",50),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"option",51),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,5,"FORMS.PRICE_PLAN_COMPONENT.recurring_period")),e.R7$(4),e.JRh(e.bMT(7,7,"FORMS.PRICE_PLAN_COMPONENT._daily")),e.R7$(3),e.JRh(e.bMT(10,9,"FORMS.PRICE_PLAN_COMPONENT._weekly")),e.R7$(3),e.JRh(e.bMT(13,11,"FORMS.PRICE_PLAN_COMPONENT._monthly")),e.R7$(3),e.JRh(e.bMT(16,13,"FORMS.PRICE_PLAN_COMPONENT._yearly")))}function gM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function _M0(n,a){if(1&n&&(e.j41(0,"option",37),e.EFF(1,"Select a usage specification"),e.k0s(),e.Z7z(2,gM0,2,2,"option",38,e.fX1)),2&n){const c=e.XpG(2);e.R7$(2),e.Dyx(c.usageSpecs)}}function LM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function CM0(n,a){if(1&n&&e.DNE(0,LM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,c.name!=t.selectedUsageSpec.name?0:-1)}}function zM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,CM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(2);e.FS9("value",c.selectedUsageSpec.id),e.R7$(),e.JRh(c.selectedUsageSpec.name),e.R7$(),e.Dyx(c.usageSpecs)}}function MM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function xM0(n,a){if(1&n&&e.Z7z(0,MM0,2,2,"option",38,e.fX1),2&n){const c=e.XpG(3);e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function bM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function yM0(n,a){if(1&n&&e.DNE(0,bM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(4);e.vxM(0,c.name!=t.selectedMetric?0:-1)}}function FM0(n,a){if(1&n&&(e.j41(0,"option",55),e.EFF(1),e.k0s(),e.Z7z(2,yM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(3);e.R7$(),e.JRh(c.selectedMetric),e.R7$(),e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function vM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",54),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.changePriceComponentMetric(l))}),e.DNE(1,xM0,2,0)(2,FM0,4,1),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.vxM(1,c.selectedMetric?2:1)}}function kM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"select",52),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.changePriceComponentUsageSpec(l))}),e.DNE(2,_M0,4,0)(3,zM0,4,2),e.k0s(),e.DNE(4,vM0,3,1,"select",53),e.k0s()}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.selectedUsageSpec?3:2),e.R7$(2),e.vxM(4,c.showMetricSelect?4:-1)}}function wM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_positive")," "))}function SM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_limit")," "))}function NM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,wM0,3,3,"div")(2,SM0,3,3),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.min?1:null!=(c=t.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.max?2:-1)}}function EM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._duration_positive")," "))}function DM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,EM0,3,3,"div"),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("discountDuration"))&&null!=c.errors&&c.errors.min?1:-1)}}function TM0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",56),e.nrm(5,"input",57),e.j41(6,"select",58)(7,"option",59),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"option",60),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.DNE(13,NM0,3,1,"div",11),e.k0s(),e.j41(14,"div")(15,"label",6),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"div",56),e.nrm(19,"input",61),e.j41(20,"select",62)(21,"option",63),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"option",64),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"option",65),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"option",66),e.EFF(31),e.nI1(32,"translate"),e.k0s()()(),e.DNE(33,DM0,2,1,"div",11),e.k0s()),2&n){let c,t,l,i;const u=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,12,"FORMS.PRICE_PLAN_COMPONENT._add_discount")," "),e.R7$(3),e.Y8G("ngClass",1==(null==(c=u.priceComponentForm.get("discountValue"))?null:c.invalid)&&""!=u.priceComponentForm.value.discountValue||null!=(c=u.priceComponentForm.get("discountValue"))&&c.touched&&""==u.priceComponentForm.value.discountValue?"border-red-600":"dark:border-gray-600"),e.R7$(3),e.JRh(e.bMT(9,14,"FORMS.PRICE_PLAN_COMPONENT._percentage")),e.R7$(3),e.JRh(e.bMT(12,16,"FORMS.PRICE_PLAN_COMPONENT._fixed")),e.R7$(2),e.vxM(13,null!=(t=u.priceComponentForm.get("discountValue"))&&t.invalid&&null!=(t=u.priceComponentForm.get("discountValue"))&&t.touched?13:-1),e.R7$(3),e.SpI(" ",e.bMT(17,18,"FORMS.PRICE_PLAN_COMPONENT._discount_duration")," "),e.R7$(3),e.Y8G("ngClass",1==(null==(l=u.priceComponentForm.get("discountDuration"))?null:l.invalid)&&""!=u.priceComponentForm.value.discountDuration||null!=(l=u.priceComponentForm.get("discountDuration"))&&l.touched&&""==u.priceComponentForm.value.discountDuration?"border-red-600":"dark:border-gray-600"),e.R7$(3),e.JRh(e.bMT(23,20,"FORMS.PRICE_PLAN_COMPONENT._days")),e.R7$(3),e.JRh(e.bMT(26,22,"FORMS.PRICE_PLAN_COMPONENT._weeks")),e.R7$(3),e.JRh(e.bMT(29,24,"FORMS.PRICE_PLAN_COMPONENT._months")),e.R7$(3),e.JRh(e.bMT(32,26,"FORMS.PRICE_PLAN_COMPONENT._years")),e.R7$(2),e.vxM(33,null!=(i=u.priceComponentForm.get("discountDuration"))&&i.invalid&&null!=(i=u.priceComponentForm.get("discountDuration"))&&i.touched?33:-1)}}let RM0=(()=>{class n{constructor(c,t,l,i){this.fb=c,this.cdr=t,this.usageService=l,this.localStorage=i,this.component=null,this.prodChars=[],this.profileData=!1,this.close=new e.bkB,this.save=new e.bkB,this.isOpen=!1,this.initialized=!1,this.showValueSelect=!1,this.selectedCharacteristic=void 0,this.touchedCharCheck=!1,this.showDiscount=!1,this.filteredChars=[],this.usageSpecs=[],this.showMetricSelect=!1,this.partyId="",this.showPopover=!1}ngOnInit(){this.initialized=!1,setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50);for(let c=0;ct.name===this.prodChars[c].name)&&!this.prodChars[c].name.startsWith("Compliance:")&&!this.prodChars[c].name.endsWith(" - enabled")&&"credentialsConfiguration"!=this.prodChars[c].valueType&&"authorizationPolicy"!=this.prodChars[c].valueType&&this.filteredChars.push(this.prodChars[c]);if(this.priceComponentForm=this.fb.group({name:["",p.k0.required],price:["",[p.k0.required,p.k0.min(.01),p.k0.max(1e9)]],description:[""],priceType:["one time",p.k0.required],discountValue:[null,[p.k0.min(0),p.k0.max(100)]],discountUnit:["percentage"],discountDuration:[null,[p.k0.min(1)]],discountDurationUnit:["days"],recurringPeriod:["month"],usageUnit:[""],usageSpecId:[""],selectedCharacteristic:[void 0]}),this.component){this.priceComponentForm.patchValue(this.component),this.cdr.detectChanges(),console.log("---- Editing the following price component..."),console.log(this.priceComponentForm.value);const t=this.priceComponentForm.get("selectedCharacteristic")?.value;if(Array.isArray(t)&&t.length>0){const i=t[0]?.productSpecCharacteristicValue;this.showValueSelect=!(Array.isArray(i)&&i.length>0&&"valueFrom"in i[0])}null!=this.priceComponentForm.get("discountValue")?.value&&(this.showDiscount=!0);const l=this.priceComponentForm.get("selectedCharacteristic")?.value?.[0];l&&(console.log(l),this.selectedCharacteristic=l,console.log("selected char"),console.log(this.selectedCharacteristic))}this.initPartyInfo(),this.usageService.getAllUsageSpecs(this.partyId).then(c=>{this.usageSpecs=c,this.priceComponentForm.get("usageSpecId")&&(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==this.priceComponentForm.get("usageSpecId")?.value),this.selectedMetric=this.priceComponentForm.get("usageUnit")?.value,this.showMetricSelect=!0)})}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}submitForm(){this.priceComponentForm.valid&&(this.save.emit(this.priceComponentForm.value),console.log("----------- SAVED PRICE COMP"),console.log(this.priceComponentForm.value),this.closeDrawer())}changePriceComponentChar(c){if(""==c.target.value)return void(this.showValueSelect=!1);let t=this.prodChars.find(l=>l.id===c.target.value);this.selectedCharacteristic=t,this.cdr.detectChanges(),"valueFrom"in this.selectedCharacteristic.productSpecCharacteristicValue[0]?this.showValueSelect=!1:(this.selectedCharacteristicVal=this.selectedCharacteristic.productSpecCharacteristicValue[0].value,this.showValueSelect=!0),this.priceComponentForm.patchValue({selectedCharacteristic:[this.mapChars(this.selectedCharacteristicVal)]})}mapChars(c){console.log(this.selectedCharacteristic);const t={id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",valueType:this.selectedCharacteristic.valueType};return this.showValueSelect?t.productSpecCharacteristicValue=[this.selectedCharacteristic.productSpecCharacteristicValue.find(l=>String(l.value)===String(c))]:this.selectedCharacteristic.productSpecCharacteristicValue?.[0]&&(t.productSpecCharacteristicValue=[{valueFrom:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,valueTo:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,isDefault:!0}]),t}changePriceComponentCharValue(c){this.selectedCharacteristicVal=c.target.value,this.priceComponentForm.patchValue({selectedCharacteristic:[this.mapChars(c.target.value)]})}changePriceComponentUsageSpec(c){""!=c.target.value?(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==c.target.value),this.selectedMetric=this.selectedUsageSpec.specCharacteristic.length>0?this.selectedUsageSpec.specCharacteristic[0].name:"",this.priceComponentForm.patchValue({usageUnit:this.selectedMetric}),this.showMetricSelect=!0,this.priceComponentForm.patchValue({usageSpecId:this.selectedUsageSpec.id}),console.log(this.selectedUsageSpec),console.log(this.priceComponentForm)):this.showValueSelect=!1}changePriceComponentMetric(c){this.selectedMetric=c.target.value,console.log(this.selectedMetric),this.priceComponentForm.patchValue({usageUnit:this.selectedMetric})}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(null),500)}handleEscapeKey(c){c.stopPropagation(),this.closeDrawer()}hasKey(c,t){return t in c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(c5),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-component-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{component:"component",prodChars:"prodChars",profileData:"profileData"},outputs:{close:"close",save:"save"},standalone:!0,features:[e.aNF],decls:56,vars:54,consts:[[1,"fixed","inset-0","flex","justify-end","transition-opacity","duration-500","z-[52]",3,"ngClass"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-[52]"],[1,"w-full","md:w-2/3","lg:w-1/2","bg-secondary-50","dark:bg-gray-800","h-screen","transform","transition-transform","duration-500","flex","flex-col","relative","z-[53]",3,"ngClass"],[1,"p-6","flex-1","overflow-y-auto"],[1,"text-xl","font-semibold","text-gray-700","dark:text-white"],[1,"mt-4","space-y-4",3,"ngSubmit","formGroup"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300"],["data-cy","priceComponentName","formControlName","name","type","text",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["data-cy","priceComponentDescription"],["formControlName","description"],["data-cy","price","formControlName","price","type","number","step","0.1",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","text-sm","rounded-lg","block","w-full","p-2.5","text-gray-900","dark:text-gray-100","focus:ring-blue-500","focus:border-blue-500",3,"blur","ngClass"],[1,"text-red-500","text-sm","mt-1"],["data-cy","priceType","formControlName","priceType",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","one time"],["value","recurring"],["value","recurring-prepaid"],["value","usage"],[1,"flex","items-center","mb-4"],["data-cy","offerPriceComponentDiscount","type","checkbox",1,"w-4","h-4","text-blue-600","border-gray-300","rounded","cursor-pointer","focus:ring-blue-500","dark:border-gray-600","dark:bg-gray-700","checked:bg-blue-600","checked:border-blue-600",3,"ngModelChange","ngModel","ngModelOptions"],["for","showDiscount",1,"ml-2","font-medium","text-base","text-gray-900","dark:text-white"],[1,"flex","justify-end","space-x-3","mt-6"],["data-cy","cancelPriceComponent","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","dark-text:white","rounded",3,"click"],["data-cy","savePriceComponent","type","submit",1,"px-4","py-2","bg-blue-500","text-white","rounded",3,"disabled","ngClass"],[1,"relative","w-full"],[1,"flex","items-center","space-x-2"],[1,"font-bold","text-lg","dark:text-white"],[1,"relative",3,"mouseenter","mouseleave"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-5","h-5","text-primary-100","cursor-pointer"],["cx","12","cy","12","r","10"],["x1","12","y1","16","x2","12","y2","12"],["x1","12","y1","8","x2","12.01","y2","8"],[1,"absolute","bottom-full","mb-2","left-1/2","-translate-x-1/2","z-50","w-64","p-3","text-sm","bg-white","border","border-gray-300","rounded","shadow-lg","dark:bg-gray-800","dark:text-gray-100","dark:border-gray-600"],[1,"flex","flex-row"],["data-cy","selectPriceSpecChar","id","type",1,"mb-2","mr-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["data-cy","selectPriceSpecCharValue","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"bg-blue-50","dark:bg-gray-900","p-3","rounded","border","border-blue-200","dark:border-blue-800","mb-4"],[1,"font-semibold","mb-1","text-gray-900","dark:text-white"],["value",""],[3,"value"],["data-cy","selectPriceSpecCharValue","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],[1,"block","text-xs","font-medium","text-gray-700","dark:text-gray-300","mb-2"],[1,"relative","w-full","h-12","bg-gray-200","dark:bg-gray-700","rounded","px-4"],[1,"absolute","top-1/2","left-4","right-4","h-2","bg-blue-500","dark:bg-blue-400","rounded","transform","-translate-y-1/2"],[1,"absolute","top-1/2","left-4","transform","-translate-y-1/2","-translate-x-1/2"],[1,"w-3","h-3","bg-blue-600","dark:bg-blue-500","rounded-full","border-2","border-white"],[1,"absolute","top-5","left-1/2","transform","-translate-x-1/2","text-xs","font-semibold","text-blue-700","dark:text-blue-300","whitespace-nowrap"],[1,"absolute","top-1/2","right-4","transform","-translate-y-1/2","translate-x-1/2"],["data-cy","recurringType","formControlName","recurringPeriod",1,"w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","day"],["value","week"],["value","month"],["value","year"],["id","type","data-cy","usageInput",1,"mb-2","mr-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["data-cy","usageMetric","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["data-cy","usageMetric","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["value","selectedMetric"],[1,"flex","space-x-2"],["data-cy","offerDiscountAmount","formControlName","discountValue","type","number","placeholder","Amount",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],["data-cy","offerDiscountUnit","formControlName","discountUnit",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","percentage"],["value","fixed"],["data-cy","offerDiscountDuration","formControlName","discountDuration","type","number","placeholder","Duration",1,"w-1/2","p-2","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],["data-cy","offerDiscountDurationUnit","formControlName","discountDurationUnit",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","days"],["value","weeks"],["value","months"],["value","years"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.k0s(),e.j41(6,"form",5),e.bIt("ngSubmit",function(){return l.submitForm()}),e.j41(7,"div")(8,"label",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nrm(11,"input",7),e.k0s(),e.j41(12,"div",8)(13,"label",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"app-markdown-textarea",9),e.k0s(),e.j41(17,"div")(18,"label",6),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"input",10),e.bIt("blur",function(){let u;return null==(u=l.priceComponentForm.get("price"))?null:u.markAsTouched()}),e.k0s(),e.DNE(22,tM0,4,1,"div",11),e.k0s(),e.DNE(23,pM0,17,7),e.j41(24,"div")(25,"label",6),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"select",12)(29,"option",13),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"option",14),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"option",15),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"option",16),e.EFF(39),e.nI1(40,"translate"),e.k0s()()(),e.DNE(41,hM0,17,15,"div")(42,kM0,5,2),e.j41(43,"div",17)(44,"input",18),e.mxI("ngModelChange",function(u){return e.DH7(l.showDiscount,u)||(l.showDiscount=u),u}),e.k0s(),e.j41(45,"label",19),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,TM0,34,28),e.j41(49,"div",20)(50,"button",21),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"button",22),e.EFF(54),e.nI1(55,"translate"),e.k0s()()()()()()),2&t){let i,u,C;e.Y8G("ngClass",e.l_i(46,Jz0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(49,Qz0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",l.component?"Update Price Component":"New Price Component"," "),e.R7$(),e.Y8G("formGroup",l.priceComponentForm),e.R7$(3),e.JRh(e.bMT(10,24,"FORMS.PRICE_PLAN_COMPONENT._name")),e.R7$(5),e.JRh(e.bMT(15,26,"FORMS.PRICE_PLAN_COMPONENT._description")),e.R7$(5),e.JRh(e.bMT(20,28,"FORMS.PRICE_PLAN_COMPONENT._base_price")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.priceComponentForm.get("price"))?null:i.invalid)&&""!=l.priceComponentForm.value.price||null!=(i=l.priceComponentForm.get("price"))&&i.touched&&""==l.priceComponentForm.value.price?"border-red-600":"dark:border-gray-600"),e.R7$(),e.vxM(22,null!=(u=l.priceComponentForm.get("price"))&&u.invalid&&(null!=(u=l.priceComponentForm.get("price"))&&u.touched||null!=(u=l.priceComponentForm.get("price"))&&u.dirty)?22:-1),e.R7$(),e.vxM(23,l.profileData?23:-1),e.R7$(3),e.JRh(e.bMT(27,30,"FORMS.PRICE_PLAN_COMPONENT._type_of_price")),e.R7$(4),e.JRh(e.bMT(31,32,"FORMS.PRICE_PLAN_COMPONENT._one_time")),e.R7$(3),e.JRh(e.bMT(34,34,"FORMS.PRICE_PLAN_COMPONENT._recurring")),e.R7$(3),e.JRh(e.bMT(37,36,"FORMS.PRICE_PLAN_COMPONENT._recurring_prepaid")),e.R7$(3),e.JRh(e.bMT(40,38,"FORMS.PRICE_PLAN_COMPONENT._usage")),e.R7$(2),e.vxM(41,"recurring"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)||"recurring-prepaid"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)?41:"usage"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)?42:-1),e.R7$(3),e.R50("ngModel",l.showDiscount),e.Y8G("ngModelOptions",e.lJ4(53,Zz0)),e.R7$(2),e.SpI(" ",e.bMT(47,40,"FORMS.PRICE_PLAN_COMPONENT._includes_discount")," "),e.R7$(2),e.vxM(48,l.showDiscount?48:-1),e.R7$(3),e.JRh(e.bMT(52,42,"FORMS.PRICE_PLAN_COMPONENT._cancel")),e.R7$(2),e.Y8G("disabled",l.priceComponentForm.invalid)("ngClass",l.priceComponentForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(),e.JRh(e.bMT(55,44,"FORMS.PRICE_PLAN_COMPONENT._save"))}},dependencies:[p.YN,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.vS,p.X1,p.j4,p.JD,me,s1.h,s1.D9,_.YU]})}}return n})();const AM0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),IM0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),PM0=(n,a)=>({"bg-primary-100 hover:bg-primary-50":n,"bg-gray-400 cursor-not-allowed":a});function jM0(n,a){if(1&n&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Lme("",null==c?null:c.value.selectedValue," ",null==c?null:c.value.options[0].unitOfMeasure,"")}}function $M0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",13)(1,"label",14),e.EFF(2,"Labels range"),e.k0s(),e.j41(3,"input",15),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$index,u=e.XpG(2);return e.Njj(u.changeProfileValue(i,l))}),e.k0s(),e.j41(4,"span",16),e.EFF(5),e.k0s(),e.DNE(6,jM0,2,2,"span",17),e.j41(7,"span",18),e.EFF(8),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(3),e.Y8G("min",c.value.options[0].valueFrom)("max",c.value.options[0].valueTo)("value",c.value.selectedValue),e.R7$(2),e.SpI("Min (",null==c?null:c.value.options[0].valueFrom,")"),e.R7$(),e.vxM(6,(null==c||null==c.value.options?null:c.value.options.length)>0?6:-1),e.R7$(2),e.SpI("Max (",null==c?null:c.value.options[0].valueTo,")")}}function OM0(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("(",c.unitOfMeasure,")")}}function BM0(n,a){if(1&n&&(e.j41(0,"option",22),e.EFF(1),e.DNE(2,OM0,2,1,"span",23),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value)("selected",c.isDefault),e.R7$(),e.SpI(" ",c.value," "),e.R7$(),e.Y8G("ngIf",c.unitOfMeasure)}}function VM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",20),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2).$index,u=e.XpG(2);return e.Njj(u.changeProfileValue(i,l))}),e.DNE(1,BM0,3,4,"option",21),e.k0s()}if(2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",c.value.options)}}function UM0(n,a){if(1&n&&e.DNE(0,VM0,2,1,"select",19),2&n){const c=e.XpG().$implicit;e.Y8G("ngIf",!(null!=c.value.options&&null!=c.value.options[0]&&c.value.options[0].valueFrom))}}function GM0(n,a){if(1&n&&(e.j41(0,"div",8)(1,"h5",12),e.EFF(2),e.k0s(),e.DNE(3,$M0,9,6,"div",13)(4,UM0,1,1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI("",c.value.name,":"),e.R7$(),e.vxM(3,t.hasKey(null==c?null:c.value.options[0],"valueFrom")?3:4)}}function HM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7),e.Z7z(1,GM0,5,2,"div",8,e.Vm6),e.k0s(),e.j41(3,"div",9)(4,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProfile())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Dyx(c.characteristics.controls),e.R7$(4),e.JRh(e.bMT(6,3,"FORMS.PRICE_PLANS._cancel")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,PM0,c.form.valid,c.form.invalid)),e.R7$(),e.SpI(" ",e.bMT(9,5,"FORMS.PRICE_PLANS._save")," ")}}function YM0(n,a){1&n&&(e.j41(0,"div",24)(1,"span",25),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._prod_spec_no_chars")))}let qM0=(()=>{class n{constructor(c){this.fb=c,this.profileData=[],this.save=new e.bkB,this.close=new e.bkB,this.isOpen=!1,this.initialized=!1}ngOnInit(){console.log("Profile Data:",this.profileData);let c=[];for(let l=0;lC.name===i)&&!i.startsWith("Compliance:")&&!u&&"credentialsConfiguration"!=this.profileData[l].valueType&&"authorizationPolicy"!=this.profileData[l].valueType&&c.push(this.profileData[l])}this.form=this.fb.group({characteristics:this.fb.array((c||[]).map(l=>this.createCharacteristicForm(l)))}),setTimeout(()=>{this.isOpen=!0,this.initialized=!0},50)}createCharacteristicForm(c){const t=c.productSpecCharacteristicValue.find(i=>i.isDefault),l=t?.value??t?.valueFrom??"";return this.fb.group({id:new p.MJ(c.id),name:new p.MJ(c.name),selectedValue:new p.MJ(l),options:new p.MJ(c.productSpecCharacteristicValue||[])})}get characteristics(){return this.form.get("characteristics")}changeProfileValue(c,t){const l=t.target.value;let i=l;"true"===l?i=!0:"false"===l&&(i=!1),this.characteristics.at(c).patchValue({selectedValue:i}),console.log(this.characteristics.at(c))}mapFormToProfile(){return this.characteristics.value.map(t=>({id:t.id,name:t.name,description:t.description||"",productSpecCharacteristicValue:t.options.map(l=>((!("value"in l)||"valueFrom"in l)&&(l.value="unitOfMeasure"in l?Number(t.selectedValue):t.selectedValue),{...l,isDefault:String(l.value)===String(t.selectedValue)}))}))}hasKey(c,t){return c?.hasOwnProperty(t)}saveProfile(){if(this.form.invalid)return;const c=this.mapFormToProfile();this.save.emit(c),this.closeDrawer()}closeDrawer(){this.isOpen=!1,setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){this.closeDrawer()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-configuration-profile-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{profileData:"profileData"},outputs:{save:"save",close:"close"},standalone:!0,features:[e.aNF],decls:11,vars:13,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-500","z-50",3,"ngClass"],[1,"w-full","md:w-5/6","bg-secondary-50","dark:bg-gray-800","h-full","p-6","overflow-y-auto","transform","transition-transform","duration-500",3,"ngClass"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white","mb-4"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47\n 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9\n 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"p-4","grid","grid-cols-2","gap-4"],[1,"min-h-19","pb-2"],[1,"flex","justify-end","space-x-3","p-4"],["data-cy","offerProfileCancel","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded","dark:text-white",3,"click"],["data-cy","offerProfileSave","type","button",1,"px-4","py-2","rounded","text-white","transition",3,"click","ngClass"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100"],[1,"relative","mb-6"],["for","default-range",1,"sr-only"],["id","default-range","type","range",1,"w-full","h-2","bg-gray-200","rounded-lg","appearance-none","cursor-pointer","dark:bg-gray-700","dark:text-gray-100",3,"change","min","max","value"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","start-0","-bottom-6"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","start-1/2","-bottom-6"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","end-0","-bottom-6"],["data-cy","offerProfileSelect","class","mb-2 bg-gray-50 dark:bg-secondary-300 border text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:text-gray-100",3,"change",4,"ngIf"],["data-cy","offerProfileSelect",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:text-gray-100",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[4,"ngIf"],["role","alert",1,"p-4","my-2","text-sm","text-center","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"font-medium"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",4),e.bIt("click",function(){return l.closeDrawer()}),e.qSk(),e.j41(7,"svg",5),e.nrm(8,"path",6),e.k0s()()(),e.DNE(9,HM0,10,10)(10,YM0,4,3),e.k0s()()),2&t&&(e.Y8G("ngClass",e.l_i(6,AM0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngClass",e.sMw(9,IM0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",e.bMT(5,4,"FORMS.PRICE_PLANS._configure_profile_chars")," "),e.R7$(5),e.vxM(9,l.characteristics.length>0?9:10))},dependencies:[_.YU,_.bT,_.Sq,s1.h,s1.D9]})}}return n})();const XM0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),WM0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),JM0=()=>({standalone:!0});function QM0(n,a){if(1&n&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.E5c(" ",c.name," (",c.productSpecCharacteristicValue[0].valueFrom," - ",c.productSpecCharacteristicValue[0].valueTo,") ")}}function ZM0(n,a){1&n&&(e.j41(0,"div",16)(1,"span",17),e.EFF(2,"Please select a range characteristic to start creating tier pricing."),e.k0s()())}function KM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"div",33)(2,"div",34),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeMarker(l))}),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.xc7("left",(c-t.rangeMin)/(t.rangeMax-t.rangeMin)*100,"%"),e.R7$(4),e.SpI(" ",c," ")}}function ex0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39)(1,"span",40),e.EFF(2),e.k0s(),e.j41(3,"input",41),e.bIt("input",function(l){const i=e.eBV(c).index,u=e.XpG(3);return e.Njj(u.onMarkerChange(i,l))}),e.k0s(),e.j41(4,"button",42),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(3);return e.Njj(i.removeMarker(l))}),e.qSk(),e.j41(5,"svg",43),e.nrm(6,"path",44),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.index,l=e.XpG(3);e.R7$(2),e.SpI("Marker ",t+1,":"),e.R7$(),e.Y8G("value",c)("min",l.rangeMin+1)("max",l.rangeMax-1)}}function cx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",37),e.DNE(4,ex0,7,4,"div",38),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" Adjust Markers (",c.sliderMarkers.length,") "),e.R7$(2),e.Y8G("ngForOf",c.sliderMarkers)("ngForTrackBy",c.trackByIndex)}}function tx0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",57),e.nrm(1,"path",58),e.k0s())}function nx0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",59),e.nrm(1,"path",60),e.k0s())}function lx0(n,a){if(1&n&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme(" Price: ",c.priceComponent.price," | Type: ",c.priceComponent.priceType," ")}}function sx0(n,a){1&n&&(e.qSk(),e.nrm(0,"path",23))}function ax0(n,a){1&n&&(e.qSk(),e.nrm(0,"path",65))}function ox0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){e.eBV(c);const l=e.XpG().index,i=e.XpG(3);return e.Njj(i.openPriceForm(l))}),e.qSk(),e.j41(1,"svg",22),e.DNE(2,sx0,1,0,"path",63)(3,ax0,1,0,"path",64),e.k0s(),e.EFF(4),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.Y8G("ngClass",c.priceComponent?"bg-blue-500 hover:bg-blue-600 text-white":"bg-orange-500 hover:bg-orange-600 text-white"),e.R7$(2),e.Y8G("ngIf",!c.priceComponent),e.R7$(),e.Y8G("ngIf",c.priceComponent),e.R7$(),e.SpI(" ",c.priceComponent?"Edit":"Configure"," ")}}function ix0(n,a){1&n&&(e.j41(0,"div")(1,"label",68),e.EFF(2,"Recurring Period"),e.k0s(),e.j41(3,"select",85)(4,"option",86),e.EFF(5,"Daily"),e.k0s(),e.j41(6,"option",87),e.EFF(7,"Weekly"),e.k0s(),e.j41(8,"option",88),e.EFF(9,"Monthly"),e.k0s(),e.j41(10,"option",89),e.EFF(11,"Yearly"),e.k0s()()())}function rx0(n,a){if(1&n&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(6);e.Y8G("value",c.id)("selected",(null==t.selectedUsageSpec?null:t.selectedUsageSpec.id)===c.id),e.R7$(),e.SpI(" ",c.name," ")}}function dx0(n,a){if(1&n&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(7);e.Y8G("value",c.name)("selected",t.selectedMetric===c.name),e.R7$(),e.SpI(" ",c.name," ")}}function fx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",68),e.EFF(2,"Metric"),e.k0s(),e.j41(3,"select",91),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(6);return e.Njj(i.changePriceComponentMetric(l))}),e.DNE(4,dx0,2,3,"option",92),e.k0s()()}if(2&n){const c=e.XpG(6);e.R7$(4),e.Y8G("ngForOf",c.selectedUsageSpec.specCharacteristic)}}function ux0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",90)(1,"div")(2,"label",68),e.EFF(3,"Usage Specification"),e.k0s(),e.j41(4,"select",91),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(5);return e.Njj(i.changePriceComponentUsageSpec(l))}),e.j41(5,"option",8),e.EFF(6,"Select a usage specification"),e.k0s(),e.DNE(7,rx0,2,3,"option",92),e.k0s()(),e.DNE(8,fx0,5,1,"div",11),e.k0s()}if(2&n){const c=e.XpG(5);e.R7$(7),e.Y8G("ngForOf",c.usageSpecs),e.R7$(),e.Y8G("ngIf",c.showMetricSelect)}}function mx0(n,a){1&n&&(e.j41(0,"div",94)(1,"div",95)(2,"div",49)(3,"label",68),e.EFF(4,"Discount Value"),e.k0s(),e.nrm(5,"input",96),e.k0s(),e.j41(6,"div",49)(7,"label",68),e.EFF(8,"Unit"),e.k0s(),e.j41(9,"select",97)(10,"option",98),e.EFF(11,"Percentage"),e.k0s(),e.j41(12,"option",99),e.EFF(13,"Fixed"),e.k0s()()()(),e.j41(14,"div",95)(15,"div",49)(16,"label",68),e.EFF(17,"Duration"),e.k0s(),e.nrm(18,"input",100),e.k0s(),e.j41(19,"div",49)(20,"label",68),e.EFF(21,"Unit"),e.k0s(),e.j41(22,"select",101)(23,"option",102),e.EFF(24,"Days"),e.k0s(),e.j41(25,"option",103),e.EFF(26,"Weeks"),e.k0s(),e.j41(27,"option",104),e.EFF(28,"Months"),e.k0s(),e.j41(29,"option",105),e.EFF(30,"Years"),e.k0s()()()()())}function px0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",66)(1,"form",67)(2,"div")(3,"label",68),e.EFF(4,"Name"),e.k0s(),e.nrm(5,"input",69),e.k0s(),e.j41(6,"div")(7,"label",68),e.EFF(8,"Price"),e.k0s(),e.nrm(9,"input",70),e.k0s(),e.j41(10,"div")(11,"label",68),e.EFF(12,"Description (optional)"),e.k0s(),e.nrm(13,"textarea",71),e.k0s(),e.j41(14,"div")(15,"label",68),e.EFF(16,"Price Type"),e.k0s(),e.j41(17,"select",72)(18,"option",73),e.EFF(19,"One Time"),e.k0s(),e.j41(20,"option",74),e.EFF(21,"Recurring"),e.k0s(),e.j41(22,"option",75),e.EFF(23,"Recurring Prepaid"),e.k0s(),e.j41(24,"option",76),e.EFF(25,"Usage"),e.k0s()()(),e.DNE(26,ix0,12,0,"div",11)(27,ux0,9,2,"div",77),e.j41(28,"div",78)(29,"input",79),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.showDiscount,l)||(i.showDiscount=l),e.Njj(l)}),e.k0s(),e.j41(30,"label",80),e.EFF(31," Include Discount "),e.k0s()(),e.DNE(32,mx0,31,0,"div",81),e.j41(33,"div",82)(34,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.cancelPriceForm())}),e.EFF(35," Cancel "),e.k0s(),e.j41(36,"button",84),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.savePriceForm())}),e.EFF(37," Save "),e.k0s()()()()}if(2&n){let c,t,l;const i=e.XpG(4);e.R7$(),e.Y8G("formGroup",i.priceForm),e.R7$(8),e.Y8G("ngClass",null!=(c=i.priceForm.get("price"))&&c.invalid&&null!=(c=i.priceForm.get("price"))&&c.touched?"border-red-500":""),e.R7$(17),e.Y8G("ngIf","recurring"===(null==(t=i.priceForm.get("priceType"))?null:t.value)||"recurring-prepaid"===(null==(t=i.priceForm.get("priceType"))?null:t.value)),e.R7$(),e.Y8G("ngIf","usage"===(null==(l=i.priceForm.get("priceType"))?null:l.value)),e.R7$(2),e.R50("ngModel",i.showDiscount),e.Y8G("ngModelOptions",e.lJ4(9,JM0)),e.R7$(3),e.Y8G("ngIf",i.showDiscount),e.R7$(4),e.Y8G("disabled",i.priceForm.invalid)("ngClass",i.priceForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer")}}function hx0(n,a){if(1&n&&(e.j41(0,"div",47)(1,"div",48)(2,"div",49)(3,"div",39),e.DNE(4,tx0,2,0,"svg",50)(5,nx0,2,0,"svg",51),e.j41(6,"span",52),e.EFF(7),e.k0s()(),e.j41(8,"span",53),e.EFF(9),e.k0s(),e.DNE(10,lx0,2,2,"div",54),e.k0s(),e.DNE(11,ox0,5,4,"button",55),e.k0s(),e.DNE(12,px0,38,10,"div",56),e.k0s()),2&n){const c=a.$implicit,t=a.index;e.Y8G("ngClass",c.priceComponent?"border-green-500 dark:border-green-600":"border-gray-300 dark:border-gray-600"),e.R7$(4),e.Y8G("ngIf",c.priceComponent),e.R7$(),e.Y8G("ngIf",!c.priceComponent),e.R7$(2),e.Lme(" Tier ",t+1,": ",c.name," "),e.R7$(2),e.Lme(" Range: ",c.valueFrom," - ",c.valueTo," "),e.R7$(),e.Y8G("ngIf",c.priceComponent&&!c.isEditing),e.R7$(),e.Y8G("ngIf",!c.isEditing),e.R7$(),e.Y8G("ngIf",c.isEditing)}}function gx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",45),e.DNE(4,hx0,13,10,"div",46),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" Configure Pricing for Each Subrange (",c.subRanges.length,") "),e.R7$(2),e.Y8G("ngForOf",c.subRanges)("ngForTrackBy",c.trackBySubRangeId)}}function _x0(n,a){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.JRh(c)}}function Lx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",106)(2,"span",17),e.EFF(3,"Validation Errors:"),e.k0s(),e.j41(4,"ul",107),e.DNE(5,_x0,2,1,"li",108),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",c.validationErrors)}}function Cx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"div",18)(2,"label",6),e.EFF(3),e.k0s(),e.j41(4,"p",19),e.EFF(5," Add markers to divide the range into subranges. Each subrange will become a separate price component. "),e.k0s()(),e.j41(6,"div",20)(7,"button",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addMarker())}),e.qSk(),e.j41(8,"svg",22),e.nrm(9,"path",23),e.k0s(),e.EFF(10," Add Marker "),e.k0s()(),e.joV(),e.j41(11,"div",24),e.nrm(12,"div",25),e.j41(13,"div",26),e.nrm(14,"div",27),e.j41(15,"span",28),e.EFF(16),e.k0s()(),e.DNE(17,KM0,5,3,"div",29),e.j41(18,"div",30),e.nrm(19,"div",27),e.j41(20,"span",28),e.EFF(21),e.k0s()()(),e.DNE(22,cx0,5,3,"div",31)(23,gx0,5,3,"div",31)(24,Lx0,6,1,"div",31),e.k0s()}if(2&n){const c=e.XpG();e.R7$(3),e.Lme(" Divide Range: ",c.rangeMin," - ",c.rangeMax," "),e.R7$(13),e.SpI(" ",c.rangeMin," "),e.R7$(),e.Y8G("ngForOf",c.sliderMarkers)("ngForTrackBy",c.trackByIndex),e.R7$(4),e.SpI(" ",c.rangeMax," "),e.R7$(),e.Y8G("ngIf",c.sliderMarkers.length>0),e.R7$(),e.Y8G("ngIf",c.subRanges.length>0),e.R7$(),e.Y8G("ngIf",c.validationErrors.length>0)}}let zx0=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.fb=t,this.usageService=l,this.localStorage=i,this.prodChars=[],this.close=new e.bkB,this.saveTierPricing=new e.bkB,this.isOpen=!1,this.initialized=!1,this.rangeCharacteristics=[],this.selectedCharacteristic=null,this.rangeMin=0,this.rangeMax=100,this.sliderMarkers=[],this.subRanges=[],this.editingSubRangeIndex=null,this.showDiscount=!1,this.usageSpecs=[],this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.partyId="",this.validationErrors=[]}ngOnInit(){this.initialized=!1,setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50),this.rangeCharacteristics=this.prodChars.filter(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t}),this.initPartyInfo(),this.usageService.getAllUsageSpecs(this.partyId).then(c=>{this.usageSpecs=c})}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}onCharacteristicChange(c){const t=c.target.value;if(!t)return this.selectedCharacteristic=null,void this.resetSlider();if(this.selectedCharacteristic=this.rangeCharacteristics.find(l=>l.id===t),this.selectedCharacteristic){const l=this.selectedCharacteristic.productSpecCharacteristicValue[0];this.rangeMin=parseInt(l.valueFrom,10),this.rangeMax=parseInt(l.valueTo,10),this.resetSlider()}}resetSlider(){this.sliderMarkers=[],this.subRanges=[],this.validationErrors=[]}addMarker(){if(0===this.sliderMarkers.length){const c=Math.floor((this.rangeMin+this.rangeMax)/2);this.sliderMarkers.push(c)}else{const c=[this.rangeMin,...this.sliderMarkers.sort((u,C)=>u-C),this.rangeMax];let t=0,l=0;for(let u=0;ut&&(t=C,l=u)}const i=Math.floor((c[l]+c[l+1])/2);this.sliderMarkers.push(i)}this.updateSubRanges()}removeMarker(c){this.sliderMarkers.splice(c,1),this.updateSubRanges()}onMarkerChange(c,t){const l=parseInt(t.target.value,10);this.sliderMarkers[c]=l,this.updateSubRanges()}updateSubRanges(){if(!this.selectedCharacteristic)return;const c=[this.rangeMin,...this.sliderMarkers.sort((l,i)=>l-i),this.rangeMax],t=[];for(let l=0;lT.valueFrom===i&&T.valueTo===C);t.push({id:`temp-tier-${l}`,valueFrom:i,valueTo:C,name:`${this.selectedCharacteristic.name} ${i}-${C}`,priceComponent:b?.priceComponent||null})}this.subRanges=t,this.validateSubRanges(),this.cdr.detectChanges()}validateSubRanges(){if(this.validationErrors=[],this.subRanges.length<2)return void this.validationErrors.push("At least 2 subranges are required for tier pricing");const c=this.subRanges.filter(i=>!i.priceComponent);c.length>0&&this.validationErrors.push(`${c.length} subrange(s) need price configuration`);for(let i=0;i=C.valueFrom&&this.validationErrors.push(`Subranges cannot overlap: ${u.name} and ${C.name}`)}}openPriceForm(c){this.subRanges.forEach(i=>i.isEditing=!1);const t=this.subRanges[c];this.editingSubRangeIndex=c,t.isEditing=!0;const l=t.priceComponent;this.priceForm=this.fb.group({name:[l?.name||t.name,p.k0.required],price:[l?.price||"",[p.k0.required,p.k0.min(.01)]],description:[l?.description||""],priceType:[l?.priceType||"one time",p.k0.required],recurringPeriod:[l?.recurringPeriod||"month"],usageUnit:[l?.usageUnit||""],usageSpecId:[l?.usageSpecId||""],discountValue:[l?.discountValue||null,[p.k0.min(0),p.k0.max(100)]],discountUnit:[l?.discountUnit||"percentage"],discountDuration:[l?.discountDuration||null,[p.k0.min(1)]],discountDurationUnit:[l?.discountDurationUnit||"days"]}),this.showDiscount=null!=l?.discountValue,l?.usageSpecId?(this.selectedUsageSpec=this.usageSpecs.find(i=>i.id==l.usageSpecId),this.selectedMetric=l.usageUnit,this.showMetricSelect=!0):(this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1),this.cdr.detectChanges()}cancelPriceForm(){null!==this.editingSubRangeIndex&&(this.subRanges[this.editingSubRangeIndex].isEditing=!1,this.editingSubRangeIndex=null),this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.cdr.detectChanges()}changePriceComponentUsageSpec(c){""!=c.target.value?(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==c.target.value),this.selectedMetric=this.selectedUsageSpec.specCharacteristic.length>0?this.selectedUsageSpec.specCharacteristic[0].name:"",this.priceForm.patchValue({usageUnit:this.selectedMetric,usageSpecId:this.selectedUsageSpec.id}),this.showMetricSelect=!0):this.showMetricSelect=!1}changePriceComponentMetric(c){this.selectedMetric=c.target.value,this.priceForm.patchValue({usageUnit:this.selectedMetric})}savePriceForm(){if(!this.priceForm.valid||null===this.editingSubRangeIndex)return;const c=this.subRanges[this.editingSubRangeIndex],t=this.priceForm.value,l={id:c.priceComponent?.id||`temp-tier-${Date.now()}-${this.editingSubRangeIndex}`,name:t.name,price:t.price,description:t.description,priceType:t.priceType,recurringPeriod:t.recurringPeriod,discountValue:this.showDiscount?t.discountValue:null,discountUnit:this.showDiscount?t.discountUnit:null,discountDuration:this.showDiscount?t.discountDuration:null,discountDurationUnit:this.showDiscount?t.discountDurationUnit:null,selectedCharacteristic:[{id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",productSpecCharacteristicValue:[{valueFrom:c.valueFrom,valueTo:c.valueTo,isDefault:!0}]}]};"usage"===t.priceType&&(l.usageUnit=t.usageUnit,l.usageSpecId=t.usageSpecId),this.subRanges[this.editingSubRangeIndex].priceComponent=l,this.subRanges[this.editingSubRangeIndex].isEditing=!1,this.validateSubRanges(),this.editingSubRangeIndex=null,this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.cdr.detectChanges()}confirmTierPricing(){if(this.validateSubRanges(),this.validationErrors.length>0)return;const c=this.subRanges.filter(t=>null!==t.priceComponent).map(t=>t.priceComponent);this.saveTierPricing.emit(c),this.closeDrawer()}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){c.stopPropagation(),this.closeDrawer()}get canConfirm(){return 0===this.validationErrors.length&&this.subRanges.length>=2&&this.subRanges.every(c=>null!==c.priceComponent)}trackByIndex(c){return c}trackBySubRangeId(c,t){return t.id}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(p.ok),e.rXU(c5),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-tier-pricing-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{prodChars:"prodChars"},outputs:{close:"close",saveTierPricing:"saveTierPricing"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"fixed","inset-0","flex","justify-end","transition-opacity","duration-500","z-[52]",3,"ngClass"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-[52]"],[1,"w-full","md:w-2/3","lg:w-1/2","bg-secondary-50","dark:bg-gray-800","h-screen","transform","transition-transform","duration-500","flex","flex-col","relative","z-[53]",3,"ngClass"],[1,"p-6","flex-1","overflow-y-auto"],[1,"text-xl","font-semibold","text-gray-700","dark:text-white"],[1,"mt-4","space-y-4"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300"],[1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","p-4 text-sm text-blue-800 rounded-lg bg-blue-50 dark:bg-secondary-100 dark:text-blue-400",4,"ngIf"],[4,"ngIf"],[1,"flex","justify-end","space-x-3","mt-6"],["type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","dark-text:white","rounded",3,"click"],["type","button",1,"px-4","py-2","text-white","rounded",3,"click","disabled","ngClass"],[3,"value"],[1,"p-4","text-sm","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"font-medium"],[1,"mb-2"],[1,"text-xs","text-gray-500","dark:text-gray-400","mt-1"],[1,"flex","space-x-2","mb-4"],["type","button",1,"px-3","py-1","bg-green-500","text-white","rounded","text-sm","flex","items-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-4","h-4","mr-1"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],[1,"relative","w-full","h-32","bg-gray-200","dark:bg-gray-700","rounded-lg","p-4","mb-4"],[1,"absolute","top-1/2","left-4","right-4","h-2","bg-blue-300","dark:bg-blue-700","rounded","transform","-translate-y-1/2"],[1,"absolute","top-1/2","left-4","transform","-translate-y-1/2","-translate-x-1/2"],[1,"w-4","h-4","bg-blue-600","rounded-full","border-2","border-white"],[1,"absolute","top-6","left-1/2","transform","-translate-x-1/2","text-xs","font-semibold","text-gray-700","dark:text-gray-300"],["class","absolute top-1/2 transform -translate-y-1/2",3,"left",4,"ngFor","ngForOf","ngForTrackBy"],[1,"absolute","top-1/2","right-4","transform","-translate-y-1/2","translate-x-1/2"],["class","mb-4",4,"ngIf"],[1,"absolute","top-1/2","transform","-translate-y-1/2"],[1,"relative"],["title","Click to remove",1,"w-4","h-4","bg-red-500","rounded-full","border-2","border-white","cursor-pointer","hover:bg-red-600",3,"click"],[1,"mb-4"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300","mb-2"],[1,"grid","grid-cols-2","gap-2"],["class","flex items-center space-x-2",4,"ngFor","ngForOf","ngForTrackBy"],[1,"flex","items-center","space-x-2"],[1,"text-sm","text-gray-600","dark:text-gray-400"],["type","number",1,"w-20","p-1","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100","text-sm",3,"input","value","min","max"],["type","button","title","Remove marker",1,"text-red-500","hover:text-red-700",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-4","h-4"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"space-y-3"],["class","bg-white dark:bg-gray-700 border rounded overflow-hidden",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bg-white","dark:bg-gray-700","border","rounded","overflow-hidden",3,"ngClass"],[1,"p-3","flex","justify-between","items-center"],[1,"flex-1"],["class","w-5 h-5 text-green-500","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",4,"ngIf"],["class","w-5 h-5 text-gray-400","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",4,"ngIf"],[1,"text-sm","font-semibold","text-gray-700","dark:text-gray-300"],[1,"text-xs","text-gray-500","dark:text-gray-400","ml-7"],["class","text-xs text-green-600 dark:text-green-400 ml-7 mt-1",4,"ngIf"],["type","button","class","px-3 py-1 rounded text-sm flex items-center",3,"ngClass","click",4,"ngIf"],["class","border-t border-gray-200 dark:border-gray-600 p-4 bg-gray-50 dark:bg-gray-800",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-5","h-5","text-green-500"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-5","h-5","text-gray-400"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"],[1,"text-xs","text-green-600","dark:text-green-400","ml-7","mt-1"],["type","button",1,"px-3","py-1","rounded","text-sm","flex","items-center",3,"click","ngClass"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z",4,"ngIf"],["fill","currentColor","d","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z",4,"ngIf"],["fill","currentColor","d","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"],[1,"border-t","border-gray-200","dark:border-gray-600","p-4","bg-gray-50","dark:bg-gray-800"],[1,"space-y-3",3,"formGroup"],[1,"block","text-xs","font-medium","text-gray-700","dark:text-gray-300"],["formControlName","name","type","text",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","price","type","number","step","0.01",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"ngClass"],["formControlName","description","rows","2",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","priceType",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","one time"],["value","recurring"],["value","recurring-prepaid"],["value","usage"],["class","space-y-2",4,"ngIf"],[1,"flex","items-center"],["type","checkbox",1,"w-4","h-4","text-blue-600","border-gray-300","rounded","cursor-pointer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"ml-2","text-xs","font-medium","text-gray-700","dark:text-gray-300"],["class","space-y-2 pl-6 border-l-2 border-blue-300",4,"ngIf"],[1,"flex","justify-end","space-x-2","mt-4"],["type","button",1,"px-3","py-1","text-sm","bg-gray-300","dark:bg-gray-600","text-gray-700","dark:text-white","rounded","hover:bg-gray-400",3,"click"],["type","button",1,"px-3","py-1","text-sm","bg-blue-500","text-white","rounded","hover:bg-blue-600",3,"click","disabled","ngClass"],["formControlName","recurringPeriod",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","day"],["value","week"],["value","month"],["value","year"],[1,"space-y-2"],[1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[1,"space-y-2","pl-6","border-l-2","border-blue-300"],[1,"flex","space-x-2"],["formControlName","discountValue","type","number",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","discountUnit",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","percentage"],["value","fixed"],["formControlName","discountDuration","type","number",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","discountDurationUnit",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","days"],["value","weeks"],["value","months"],["value","years"],[1,"p-4","text-sm","text-red-800","rounded-lg","bg-red-50","dark:bg-red-900","dark:text-red-200"],[1,"list-disc","list-inside","mt-2"],[4,"ngFor","ngForOf"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5," Create Tier Pricing "),e.k0s(),e.j41(6,"div",5)(7,"div")(8,"label",6),e.EFF(9," Select Range Characteristic "),e.k0s(),e.j41(10,"select",7),e.bIt("change",function(u){return l.onCharacteristicChange(u)}),e.j41(11,"option",8),e.EFF(12,"-- Select a characteristic --"),e.k0s(),e.DNE(13,QM0,2,4,"option",9),e.k0s()(),e.DNE(14,ZM0,3,0,"div",10)(15,Cx0,25,9,"div",11),e.j41(16,"div",12)(17,"button",13),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(18," Cancel "),e.k0s(),e.j41(19,"button",14),e.bIt("click",function(){return l.confirmTierPricing()}),e.EFF(20," Save Tier Pricing "),e.k0s()()()()()()),2&t&&(e.Y8G("ngClass",e.l_i(7,XM0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(10,WM0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(11),e.Y8G("ngForOf",l.rangeCharacteristics),e.R7$(),e.Y8G("ngIf",!l.selectedCharacteristic),e.R7$(),e.Y8G("ngIf",l.selectedCharacteristic),e.R7$(4),e.Y8G("disabled",!l.canConfirm)("ngClass",l.canConfirm?"bg-blue-500 hover:bg-blue-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50"))},dependencies:[p.YN,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.vS,p.X1,p.j4,p.JD,s1.h,_.YU,_.bT,_.Sq]})}}return n})();const Mx0=(n,a)=>a.code,xx0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),bx0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),yx0=(n,a)=>({"bg-primary-100 hover:bg-primary-50":n,"bg-gray-400 cursor-not-allowed":a});function Fx0(n,a){1&n&&e.nrm(0,"div",21)}function vx0(n,a){1&n&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._unique")))}function kx0(n,a){1&n&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._mandatory")))}function wx0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.selectedValue.value," ",c.selectedValue.unitOfMeasure||""," ")}}function Sx0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2).$implicit;e.SpI(" ",c.selectedValue," ")}}function Nx0(n,a){if(1&n&&e.DNE(0,wx0,1,2)(1,Sx0,1,1),2&n){const c=e.XpG().$implicit;e.vxM(0,void 0!==(null==c.selectedValue?null:c.selectedValue.value)?0:1)}}function Ex0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"FORMS.PRICE_PLANS._no_value_selected")," ")}function Dx0(n,a){if(1&n&&(e.j41(0,"tr",50)(1,"td",51),e.EFF(2),e.k0s(),e.j41(3,"td",51),e.DNE(4,Nx0,2,1)(5,Ex0,2,3),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(4,null!=c.selectedValue?4:5)}}function Tx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"table",36)(2,"thead",37)(3,"tr")(4,"th",38),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",38),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.DNE(11,Dx0,6,2,"tr",39),e.k0s()()(),e.j41(12,"div",40)(13,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openConfigurationProfileDrawer())}),e.qSk(),e.j41(14,"svg",6),e.nrm(15,"path",42),e.k0s(),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.joV(),e.j41(18,"div",43)(19,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prevPage())}),e.qSk(),e.j41(20,"svg",45),e.nrm(21,"path",46),e.k0s(),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.joV(),e.j41(24,"span",47),e.EFF(25),e.k0s(),e.j41(26,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextPage())}),e.EFF(27),e.nI1(28,"translate"),e.qSk(),e.j41(29,"svg",48),e.nrm(30,"path",49),e.k0s()()()()}if(2&n){const c=e.XpG(3);e.R7$(5),e.JRh(e.bMT(6,10,"FORMS.PRICE_PLANS._char_name")),e.R7$(3),e.JRh(e.bMT(9,12,"FORMS.PRICE_PLANS._char_value")),e.R7$(3),e.Y8G("ngForOf",c.paginatedProfileData),e.R7$(5),e.SpI(" ",e.bMT(17,14,c.configurationProfileButtonText)," "),e.R7$(3),e.Y8G("disabled",0===c.currentPage),e.R7$(3),e.SpI(" ",e.bMT(23,16,"FORMS.PRICE_PLANS._prev")," "),e.R7$(3),e.Lme(" ",c.currentPage+1," / ",c.totalPages," "),e.R7$(),e.Y8G("disabled",c.currentPage>=c.totalPages-1),e.R7$(),e.SpI(" ",e.bMT(28,18,"FORMS.PRICE_PLANS._next")," ")}}function Rx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"div",53)(5,"button",54),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openConfigurationProfileDrawer())}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",42),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"FORMS.PRICE_PLANS._profile_desc")),e.R7$(6),e.SpI(" ",e.bMT(9,4,c.configurationProfileButtonText)," ")}}function Ax0(n,a){if(1&n&&e.DNE(0,Tx0,31,20)(1,Rx0,10,6),2&n){const c=e.XpG(2);e.vxM(0,c.getProcessedProfileData().length>0?0:1)}}function Ix0(n,a){1&n&&(e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._price_comp_with_chars")))}function Px0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-configuration-profile-drawer",55),e.bIt("save",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.updateConfigurationProfile(l))})("close",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showConfigurationDrawer=!1)}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("profileData",c.getProfileData())}}function jx0(n,a){if(1&n&&(e.j41(0,"option",27),e.EFF(1),e.k0s()),2&n){let c;const t=a.$implicit,l=e.XpG(2);e.FS9("value",t.code),e.Y8G("selected",t.code===(null==(c=l.formGroup.get("currency"))?null:c.value)),e.R7$(),e.Lme("(",t.code,") ",t.name,"")}}function $x0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"h3",10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Ax0,2,1)(5,Ix0,4,3)(6,Px0,1,1,"app-configuration-profile-drawer",23),e.k0s(),e.j41(7,"div",9)(8,"h3",10),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",24)(12,"label",25),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"select",26),e.Z7z(16,jx0,2,4,"option",27,Mx0),e.k0s()(),e.j41(18,"div",28)(19,"app-price-components-table",29),e.bIt("edit",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.editPriceComponent(l))})("delete",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.deletePriceComponent(l))}),e.k0s(),e.j41(20,"div",30)(21,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openPriceComponentDrawer())}),e.qSk(),e.j41(22,"svg",6),e.nrm(23,"path",32),e.k0s(),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.joV(),e.j41(26,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openTierPricingDrawer())}),e.qSk(),e.j41(27,"svg",6),e.nrm(28,"path",34),e.k0s(),e.EFF(29),e.nI1(30,"translate"),e.k0s()()()()}if(2&n){let c;const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,11,"FORMS.PRICE_PLANS._config_profile")," "),e.R7$(2),e.vxM(4,t.checkPriceCompChars()?5:4),e.R7$(2),e.Y8G("ngIf",t.showConfigurationDrawer),e.R7$(3),e.SpI(" ",e.bMT(10,13,"FORMS.PRICE_PLANS._price_components")," "),e.R7$(4),e.SpI(" ",e.bMT(14,15,"FORMS.PRICE_PLANS._currency")," "),e.R7$(3),e.Dyx(t.currencies),e.R7$(3),e.Y8G("priceComponents",null==(c=t.formGroup.get("priceComponents"))?null:c.value),e.R7$(5),e.SpI(" ",e.bMT(25,17,"FORMS.PRICE_PLANS._add_price_component")," "),e.R7$(2),e.Y8G("disabled",!t.hasRangeCharacteristics()||t.hasProfilePricePlan())("ngClass",t.hasRangeCharacteristics()&&!t.hasProfilePricePlan()?"bg-green-500 hover:bg-green-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50")("title",t.hasProfilePricePlan()?"Tier pricing is not available when a configuration profile is set":t.hasRangeCharacteristics()?"Create tier pricing based on range characteristics":"No range characteristics available in product specification"),e.R7$(3),e.SpI(" ",e.bMT(30,19,"FORMS.PRICE_PLANS._add_tier_pricing")," ")}}function Ox0(n,a){if(1&n&&(e.j41(0,"div",14)(1,"span",22),e.EFF(2),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.JRh(c.rangeValidationError)}}function Bx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-component-drawer",56),e.bIt("save",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closePriceComponentDrawer(l))})("close",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closePriceComponentDrawer(l))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("component",c.editingComponent)("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)("profileData",c.checkProfileData())}}function Vx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-tier-pricing-drawer",57),e.bIt("saveTierPricing",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closeTierPricingDrawer(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeTierPricingDrawer(null))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)}}let Ux0=(()=>{class n{constructor(c){this.fb=c,this.prodSpec=null,this.action="create",this.save=new e.bkB,this.close=new e.bkB,this.isOpen=!1,this.initialized=!1,this.showPriceComponentDrawer=!1,this.showConfigurationDrawer=!1,this.showTierPricingDrawer=!1,this.editingComponent=null,this.currencies=[sD.currencies[2]],this.destroy$=new S.B,this.rangeValidationError=null,this.currentPage=0,this.pageSize=5}ngOnInit(){if(this.initialized=!1,console.log("--- PROD PROF ----"),console.log(this.formGroup?.get("productProfile")?.value),console.log(" --- --- "),setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50),!this.formGroup)return void console.error("\u274c Error: `formGroup` is not a FormGroup!",this.formGroup);this.formGroup.get("paymentOnline")?.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{t?this.formGroup.get("priceType")?.setValue(""):this.formGroup.get("priceType")?.setValue("custom")}),this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.formGroup.markAsTouched()});const c=this.formGroup.get("paymentOnline");c&&c.disable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}savePricePlan(){if(!this.formGroup.invalid){if(!this.validateRangeCharacteristicsCoverage())return void console.log("Range characteristics validation failed");this.rangeValidationError=null,this.save.emit(this.formGroup.getRawValue()),this.closeDrawer()}}validateRangeCharacteristicsCoverage(){const c={},t={},l=this.getRangeCharacteristics();for(const u of l){const C=u.productSpecCharacteristicValue[0];c[u.id]={totalRange:{from:Number(C.valueFrom),to:Number(C.valueTo)}},t[u.id]=u.name}const i=this.formGroup.get("priceComponents")?.value||[];for(const u of i){const C=u.selectedCharacteristic?.[0];if(C&&c[C.id]){const b=C.productSpecCharacteristicValue?.[0];if(b&&"valueFrom"in b&&"valueTo"in b){const T=Number(b.valueFrom),W=Number(b.valueTo);c[C.id][T]||(c[C.id][T]=[]),c[C.id][T].push(W)}}}for(const[u,C]of Object.entries(c)){const b=C,T=Object.keys(b);if(1===T.length&&"totalRange"===T[0])continue;const W=b.totalRange;if(!this.hasCompletePathDFS(b,W.from,W.to))return this.rangeValidationError=`The range characteristic "${t[u]||u}" does not have complete coverage from ${W.from} to ${W.to}. Please ensure all ranges are continuous and cover the full specification range.`,console.log(`Range characteristic with ID "${u}" does not have complete coverage`),console.log(" Range data:",b),!1}return!0}getRangeCharacteristics(){return this.prodSpec?.productSpecCharacteristic?this.prodSpec.productSpecCharacteristic.filter(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t}):[]}hasCompletePathDFS(c,t,l){const i=new Set,u=C=>{const b=c[C];if(!b||0===b.length)return!1;for(const T of b){if(T===l)return!0;const W=T+1;if(!i.has(W)&&(i.add(W),c[W]&&u(W)))return!0}return!1};return u(t)}openPriceComponentDrawer(c=null){this.editingComponent=c,this.showPriceComponentDrawer=!0}closePriceComponentDrawer(c){if(c){const t=this.formGroup.get("priceComponents")?.value||[];if(this.editingComponent){const l=t.findIndex(i=>i.id===this.editingComponent.id);l>-1&&(this.editingComponent.id?.startsWith("temp-id")||(c.id=this.editingComponent.id),t[l]=c)}else t.push(c);this.formGroup.get("priceComponents")?.setValue(t),console.log(this.formGroup.get("priceComponents")?.value)}this.showPriceComponentDrawer=!1,this.editingComponent=null}editPriceComponent(c){this.openPriceComponentDrawer(c)}deletePriceComponent(c){const t=this.formGroup.get("priceComponents")?.value||[];this.formGroup.get("priceComponents")?.setValue(t.filter(l=>l.id!==c))}checkPriceCompChars(){return(this.formGroup.get("priceComponents")?.value??[]).some(l=>null!=l.selectedCharacteristic)}get pricePlanTranslationKey(){return"create"===this.action?"FORMS.PRICE_PLANS._new_price_plan":"FORMS.PRICE_PLANS._edit_price_plan"}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){this.showConfigurationDrawer?this.showConfigurationDrawer=!1:this.showPriceComponentDrawer||this.closeDrawer()}openConfigurationProfileDrawer(){this.showConfigurationDrawer=!0}updateConfigurationProfile(c){this.formGroup.get("prodSpecCharValueUse")?.setValue(c),this.showConfigurationDrawer=!1}get configurationProfileButtonText(){return this.formGroup?.get("prodSpecCharValueUse")?.value?.length>0?"FORMS.PRICE_PLANS._edit_profile":"FORMS.PRICE_PLANS._add_profile"}isOptionalToggleCharacteristicName(c){return(c??"").toString().trim().toLowerCase().endsWith("- enabled")}get paginatedProfileData(){const c=this.getProcessedProfileData(),t=this.currentPage*this.pageSize;return c.slice(t,t+this.pageSize)}get totalPages(){const c=this.getProcessedProfileData();return Math.ceil(c.length/this.pageSize)}nextPage(){this.currentPage0&&this.currentPage--}getProcessedProfileData(){return this.formGroup?.get("prodSpecCharValueUse")?.value?this.formGroup?.get("prodSpecCharValueUse")?.value?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name)).map(c=>({...c,selectedValue:c.productSpecCharacteristicValue?.find(t=>t.isDefault)||null}))||[]:this.formGroup?.get("productProfile")?.value?.selectedValues?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name))||[]}updateIsDefault(c,t){return c.map(l=>{const i=t.find(u=>u.id===l.id);return i?{...l,productSpecCharacteristicValue:l.productSpecCharacteristicValue.map(u=>({...u,isDefault:String(u.value)===String(i.selectedValue)}))}:l})}getProfileData(){let c=this.formGroup?.get("prodSpecCharValueUse")?.value;return(!c||0===c.length)&&(c=this.formGroup?.get("productProfile")?.value?.selectedValues.length>0?this.updateIsDefault(this.prodSpec?.productSpecCharacteristic,this.formGroup?.get("productProfile")?.value?.selectedValues):this.prodSpec?.productSpecCharacteristic||[]),c}checkProfileData(){let c=this.formGroup?.get("prodSpecCharValueUse")?.value;return!c&&this.formGroup?.get("productProfile")?.value&&(c=this.formGroup?.get("productProfile")?.value.selectedValues),!c||0===c.length}openTierPricingDrawer(){this.showTierPricingDrawer=!0}closeTierPricingDrawer(c){if(c&&Array.isArray(c)){const t=this.formGroup.get("priceComponents")?.value||[];t.push(...c),this.formGroup.get("priceComponents")?.setValue(t),console.log("Tier pricing components added:",c)}this.showTierPricingDrawer=!1}hasRangeCharacteristics(){return!!this.prodSpec?.productSpecCharacteristic&&this.prodSpec.productSpecCharacteristic.some(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t})}hasProfilePricePlan(){const c=this.formGroup?.get("prodSpecCharValueUse")?.value;return c&&c.length>0}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plan-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{formGroup:"formGroup",prodSpec:"prodSpec",action:"action"},outputs:{save:"save",close:"close"},standalone:!0,features:[e.aNF],decls:36,vars:38,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-1000","z-50",3,"ngClass"],["class","fixed inset-0 bg-black bg-opacity-30 pointer-events-none z-[51]",4,"ngIf"],[1,"w-full","md:w-5/6","bg-secondary-50","dark:bg-gray-800","h-full","p-6","overflow-y-auto","transform","transition-transform","duration-1000","relative","z-50",3,"ngClass"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white","mb-4"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47\n 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9\n 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"bg-white","dark:bg-gray-800","p-8","rounded-lg",3,"formGroup"],[1,"mb-4"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","pricePlanName","formControlName","name","type","text",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["formControlName","description"],["role","alert",1,"mb-4","p-4","text-sm","text-red-800","rounded-lg","bg-red-50","dark:bg-red-900","dark:text-red-200"],[1,"flex","justify-end","space-x-3"],["data-cy","cancelPricePlan","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],["type","submit","data-cy","savePricePlan",1,"px-4","py-2","rounded","text-white","flex","items-center","transition",3,"click","disabled","ngClass"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM128 272l16 0c-.6-5-.9-10.1-.9-15.2c0-5.7\n .4-11.3 1.1-16.8L128 240c-8.8 0-16-7.2-16-16s7.2-16 16-16l24.7 0c19.2-46.9 65.4-80 119.2-80l41.1 0c13.3\n 0 24 10.7 24 24s-10.7 24-24 24l-41.1 0c-26.3 0-49.6 12.6-64.4 32l80.5 0c8.8 0 16 7.2 16 16s-7.2 16-16\n 16l-95.1 0c-1.1 5.4-1.7 11-1.7 16.8c0 5.2 .5 10.3 1.4 15.2l95.4 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-81.6\n 0c14.7 20.3 38.5 33.5 65.5 33.5l41.1 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-41.1 0c-54.4\n 0-101-33.8-119.8-81.5L128 304c-8.8 0-16-7.2-16-16s7.2-16 16-16z"],[3,"component","prodChars","profileData","save","close",4,"ngIf"],[3,"prodChars","saveTierPricing","close",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","pointer-events-none","z-[51]"],[1,"font-medium"],[3,"profileData","save","close",4,"ngIf"],[1,"mb-4","p-2"],[1,"font-medium","text-base","dark:text-white"],["formControlName","currency",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],[3,"value","selected"],[1,"p-2"],[3,"edit","delete","priceComponents"],[1,"px-4","flex","flex-wrap","gap-2"],["data-cy","newPriceComponent","type","button",1,"mt-2","px-4","py-2","bg-blue-500","text-white","rounded","flex","items-center","hover:bg-blue-600",3,"click"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24\n 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64\n 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],["data-cy","newTierPricing","type","button",1,"mt-2","px-4","py-2","text-white","rounded","flex","items-center",3,"click","disabled","ngClass","title"],["fill","currentColor","d","M448 160l-128 0 0-32 128 0 0 32zM48 64C21.5 64 0 85.5 0 112l0 64c0 26.5 21.5 48 48 48l416 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48L48 64zM448 352l-256 0 0-32 256 0 0 32zM48 256c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l416 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48L48 256z"],[1,"overflow-x-auto"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-400"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-400"],[1,"px-4","py-2"],["class","bg-white dark:bg-gray-800 border-b",4,"ngFor","ngForOf"],[1,"flex","justify-between","items-center","mt-2"],["type","button",1,"px-4","py-1","bg-blue-500","text-white","rounded","flex","items-center",3,"click"],["fill","currentColor","d","M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0\n 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7\n 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1\n 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3\n 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7\n 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7\n 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5\n 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z"],[1,"flex","justify-end","items-center","space-x-1"],[1,"flex","items-center","justify-center","px-4","py-1","bg-gray-300","dark:bg-gray-600","rounded","disabled:opacity-50",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],[1,"text-gray-700","dark:text-gray-300"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],[1,"bg-white","dark:bg-gray-800","border-b"],[1,"px-4","py-1"],["role","alert",1,"p-4","my-2","text-sm","text-center","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"px-4"],["data-cy","configProfile","type","button",1,"mt-2","px-4","py-1","bg-blue-500","text-white","rounded","flex","items-center",3,"click"],[3,"save","close","profileData"],[3,"save","close","component","prodChars","profileData"],[3,"saveTierPricing","close","prodChars"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0),e.DNE(1,Fx0,1,0,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",5),e.bIt("click",function(){return l.closeDrawer()}),e.qSk(),e.j41(8,"svg",6),e.nrm(9,"path",7),e.k0s()()(),e.joV(),e.j41(10,"div",8)(11,"div",9)(12,"label",10),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"input",11),e.DNE(16,vx0,4,3,"p",12)(17,kx0,4,3,"p",12),e.k0s(),e.j41(18,"div",9)(19,"label",10),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"app-markdown-textarea",13),e.k0s(),e.DNE(23,$x0,31,21)(24,Ox0,3,1,"div",14),e.j41(25,"div",15)(26,"button",16),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"button",17),e.bIt("click",function(){return l.savePricePlan()}),e.qSk(),e.j41(30,"svg",6),e.nrm(31,"path",18),e.k0s(),e.EFF(32),e.nI1(33,"translate"),e.k0s()()()(),e.DNE(34,Bx0,1,3,"app-price-component-drawer",19)(35,Vx0,1,1,"app-tier-pricing-drawer",20),e.k0s()),2&t){let i,u,C,b;e.Y8G("ngClass",e.l_i(28,xx0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngIf",l.showPriceComponentDrawer||l.showTierPricingDrawer),e.R7$(),e.Y8G("ngClass",e.sMw(31,bx0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",e.bMT(6,18,l.pricePlanTranslationKey)," "),e.R7$(5),e.Y8G("formGroup",l.formGroup),e.R7$(3),e.SpI(" ",e.bMT(14,20,"FORMS.PRICE_PLANS._name")," "),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.formGroup.get("name"))?null:i.invalid)&&""!=l.formGroup.value.name||null!=(i=l.formGroup.get("name"))&&i.touched&&""==l.formGroup.value.name||l.formGroup.hasError("nonUniqueName")&&null!=(i=l.formGroup.get("name"))&&i.touched?"border-red-600":"border-gray-300 dark:border-gray-600"),e.R7$(),e.vxM(16,l.formGroup.hasError("nonUniqueName")&&null!=(u=l.formGroup.get("name"))&&u.touched?16:-1),e.R7$(),e.vxM(17,null!=(C=l.formGroup.get("name"))&&C.invalid&&null!=(C=l.formGroup.get("name"))&&null!=C.errors&&C.errors.required&&null!=(C=l.formGroup.get("name"))&&C.touched&&""==l.formGroup.value.name?17:-1),e.R7$(3),e.SpI(" ",e.bMT(21,22,"FORMS.PRICE_PLANS._description")," "),e.R7$(3),e.vxM(23,null!=(b=l.formGroup.get("paymentOnline"))&&b.value?23:-1),e.R7$(),e.vxM(24,l.rangeValidationError?24:-1),e.R7$(3),e.SpI(" ",e.bMT(28,24,"FORMS.PRICE_PLANS._cancel")," "),e.R7$(2),e.Y8G("disabled",l.formGroup.invalid)("ngClass",e.l_i(35,yx0,l.formGroup.valid,l.formGroup.invalid)),e.R7$(3),e.SpI(" ",e.bMT(33,26,"FORMS.PRICE_PLANS._save")," "),e.R7$(2),e.Y8G("ngIf",l.showPriceComponentDrawer),e.R7$(),e.Y8G("ngIf",l.showTierPricingDrawer)}},dependencies:[p.X1,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,s1.h,s1.D9,_.YU,me,_.bT,RM0,Wz0,qM0,zx0,_.Sq]})}}return n})();function Gx0(n,a){1&n&&(e.j41(0,"option",9),e.EFF(1,"Tailored price"),e.k0s())}function Hx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",6),e.EFF(1," Select the price type that best suits for you: "),e.k0s(),e.j41(2,"select",7),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onPaymentOnlineChange(l))}),e.j41(3,"option",8),e.EFF(4,"Free"),e.k0s(),e.DNE(5,Gx0,2,0,"option",9),e.j41(6,"option",10),e.EFF(7,"Online paid price"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("value",c.priceType),e.R7$(3),e.vxM(5,c.custom?-1:5)}}function Yx0(n,a){if(1&n&&(e.j41(0,"label",11),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" You've selected a ","free"===c.priceType?"free":"tailored"===c.priceType?"tailored":"online paid"," price type. If you want to change it you need to delete all your price plans before. ")}}function qx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openPricePlanDrawer())}),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14),e.k0s(),e.joV(),e.j41(3,"span",15),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.JRh(e.bMT(5,1,"FORMS.PRICE_PLANS._add")))}function Xx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-plan-drawer",16),e.bIt("save",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.savePricePlan(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.selectedPricePlan)("prodSpec",c.prodSpec)("action",c.action)}}let zE1=(()=>{class n{constructor(c,t,l){this.fb=c,this.cdr=t,this.eventMessage=l,this.prodSpec=null,this.custom=!1,this.formChange=new e.bkB,this.pricePlansForm=this.fb.array([],{validators:[]}),this.paymentOnline=!1,this.paymentOnlineControl=new p.MJ({value:!1,disabled:!1}),this.pricePlans=[],this.existingPlanNames=[],this.selectedPricePlan=null,this.showDrawer=!1,this.action="create",this.formSubscription=null,this.priceType="free",this.originalPricePlans=[],this.originalPriceComponents={},this.lastKnownState=[],this.destroy$=new S.B,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){console.log("\u{1f504} Initializing PricePlansComponent"),this.pricePlanForm=this.createPricePlanForm();const c=this.form.get("pricePlans")?.value||[];console.log("\u{1f4cb} Existing plans:",c),this.pricePlansForm=this.fb.array(c.map(t=>this.createPricePlanForm(t))),this.pricePlans=this.pricePlansForm.value,console.log("\u{1f4b0} Initial price plans:",this.pricePlans),this.pricePlans.length>0?(this.paymentOnline=this.pricePlans[0].paymentOnline,this.priceType=this.paymentOnline?"paid":"tailored"):this.priceType="free",this.originalPricePlans=this.pricePlans.map(t=>({id:t.id,name:t.name,description:t.description,isBundle:t.isBundle,lastUpdate:t.lastUpdate,lifecycleStatus:t.lifecycleStatus,paymentOnline:t.paymentOnline,priceType:t.priceType,currency:t.currency,unitOfMeasure:t.unitOfMeasure,validFor:t.validFor,priceComponents:t.priceComponents?.map(l=>({id:l.id,name:l.name,price:l.price,currency:l.currency,recurringPeriod:l.recurringPeriod,usageUnit:l.usageUnit}))||[]})),this.lastKnownState=this.pricePlans.map(t=>({id:t.id,name:t.name,description:t.description,isBundle:t.isBundle,lastUpdate:t.lastUpdate,lifecycleStatus:t.lifecycleStatus,paymentOnline:t.paymentOnline,priceType:t.priceType,currency:t.currency,unitOfMeasure:t.unitOfMeasure,validFor:t.validFor,priceComponents:t.priceComponents?.map(l=>({id:l.id,name:l.name,price:l.price,currency:l.currency,recurringPeriod:l.recurringPeriod,usageUnit:l.usageUnit}))||[]})),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),console.log("\u{1f4dd} Original state:",this.originalPricePlans),console.log("\u{1f50d} Last known state:",this.lastKnownState),this.formSubscription=this.pricePlansForm.valueChanges.pipe(GG(500),u2(),(0,U6.p)(()=>this.pricePlansForm.dirty),(0,O1.Q)(this.destroy$)).subscribe(t=>{console.log("\u{1f4ca} Form array value changed:",t),this.checkChanges()}),this.pricePlansForm.controls.forEach((t,l)=>{t.valueChanges.pipe(GG(500),u2(),(0,O1.Q)(this.destroy$)).subscribe(i=>{console.log(`\u{1f4c8} Price plan ${l} changed:`,i),this.checkChanges()})})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}checkChanges(){console.log("\u{1f50d} Checking for changes...");const c=this.pricePlansForm.getRawValue();console.log("\u{1f4ca} Current form value:",c);const t=this.getDetailedChanges(c);console.log("\u{1f4dd} Detailed changes:",t);const l={subformType:"pricePlans",isDirty:this.pricePlansForm.dirty,dirtyFields:Object.keys(this.pricePlansForm.controls).filter(i=>this.pricePlansForm.get(i)?.dirty),originalValue:this.originalValue,currentValue:c,priceComponentsChanged:t.some(i=>i.priceComponents.added.length>0||i.priceComponents.modified.length>0||i.priceComponents.deleted.length>0),profileChanged:this.checkProfileChanges(),modifiedPricePlans:t};console.log("\u{1f680} Emitting price plans change state:",l),this.formChange.emit(l),this.lastKnownState=c.map(i=>({id:i.id,name:i.name,description:i.description,isBundle:i.isBundle,lastUpdate:i.lastUpdate,lifecycleStatus:i.lifecycleStatus,paymentOnline:i.paymentOnline,priceType:i.priceType,currency:i.currency,unitOfMeasure:i.unitOfMeasure,validFor:i.validFor,priceComponents:i.priceComponents?.map(C=>({id:C.id,name:C.name,price:C.price,currency:C.currency,recurringPeriod:C.recurringPeriod,usageUnit:C.usageUnit}))||[]}))}getDetailedChanges(c){const t=[];return c.forEach(l=>{const i=this.originalPricePlans.find(T1=>T1.id===l.id),u=this.lastKnownState.find(T1=>T1.id===l.id),C=this.getModifiedFields(i,l),b=this.getModifiedFields(u,l),a1=this.getDetailedComponentChanges(i?.priceComponents||[],u?.priceComponents||[],l.priceComponents||[]);(C.length>0||b.length>0||a1.added.length>0||a1.modified.length>0||a1.deleted.length>0)&&t.push({id:l.id,isNew:!i,modifiedFields:C,oldValue:u,newValue:l,priceComponents:a1})}),t}getDetailedComponentChanges(c,t,l){const i=l.filter(b=>!c.find(T=>T.id===b.id)).map(b=>({id:b.id,name:b.name,price:b.price,currency:b.currency,recurringPeriod:b.recurringPeriod,usageUnit:b.usageUnit,modifiedFields:Object.keys(b),newValue:b})),u=c.filter(b=>!l.find(T=>T.id===b.id)).map(b=>b.id);return{added:i,modified:l.filter(b=>{const T=c.find(u1=>u1.id===b.id),W=t.find(u1=>u1.id===b.id);return T&&(this.getModifiedFields(T,b).length>0||this.getModifiedFields(W,b).length>0)}).map(b=>{c.find(u1=>u1.id===b.id);const W=t.find(u1=>u1.id===b.id);return{id:b.id,name:b.name,price:b.price,currency:b.currency,recurringPeriod:b.recurringPeriod,usageUnit:b.usageUnit,modifiedFields:this.getModifiedFields(W,b),oldValue:W,newValue:b}}),deleted:u}}getModifiedFields(c,t){return c?Object.keys(t).filter(l=>{if("priceComponents"===l||"productProfile"===l||"controls"===l||"_parent"===l)return!1;const i=c[l],u=t[l];return i instanceof p.gE||u instanceof p.gE||i instanceof p.Yp||u instanceof p.Yp?JSON.stringify(i?.value)!==JSON.stringify(u?.value):JSON.stringify(i)!==JSON.stringify(u)}):Object.keys(t)}checkProfileChanges(){return(this.pricePlansForm.get("pricePlans")?.value||[]).some(t=>t.productProfile?.dirty||t.productProfile?.touched)}onPaymentOnlineChange(c){"paid"==c.target.value?(this.paymentOnline=!0,this.priceType="paid"):"free"==c.target.value?(this.priceType="free",this.paymentOnline=!1):(this.priceType="tailored",this.paymentOnline=!1),this.cdr.detectChanges()}createPricePlanForm(c=null){return this.fb.group({id:[c?.id||this.generateId()],href:[c?.href||null],name:[c?.name||"",{validators:[p.k0.required]}],description:[c?.description||"",{validators:[p.k0.required]}],isBundle:[c?.isBundle||!1],lastUpdate:[c?.lastUpdate||null],lifecycleStatus:[c?.lifecycleStatus||"Active"],paymentOnline:[c?.paymentOnline??this.paymentOnline],priceType:[c?.priceType||"custom"],prodSpecCharValueUse:[c?.prodSpecCharValueUse||null],currency:[c?.price?.unit||"EUR"],unitOfMeasure:[c?.unitOfMeasure||null],productProfile:c?.productProfile?c.productProfile:this.mapProductProfile(c?.prodSpecCharValueUse||[]),priceComponents:[c?.priceComponents||[]],validFor:[c?.validFor||null]},{validators:[BX2,VX2(()=>this.existingPlanNames)]})}mapProductProfile(c){return this.fb.group({selectedValues:this.fb.array(c.map(t=>this.fb.group({id:[t.id],name:[t.name],selectedValue:[t.productSpecCharacteristicValue.find(l=>l.isDefault)?.value??null,p.k0.required]})))})}addPricePlan(c){console.log("add plan");const t=c?.paymentOnline??this.paymentOnline,l=this.createPricePlanForm({...c,paymentOnline:t});this.pricePlansForm.push(l),this.existingPlanNames=this.pricePlans.map(i=>i.name).filter(i=>!!i),this.form.updateValueAndValidity(),this.syncPricePlans()}removePricePlan(c){-1!==c&&(this.pricePlansForm.removeAt(c),console.log(this.pricePlansForm),this.syncPricePlans(),this.checkChanges(),0===this.pricePlans.length&&(this.paymentOnline=!1,this.priceType="free",this.cdr.detectChanges()))}savePricePlan(c){const t=this.pricePlansForm.controls.findIndex(u=>u.getRawValue().id===this.selectedPricePlan?.getRawValue().id),i={...c,paymentOnline:"edit"===this.action?this.selectedPricePlan?.getRawValue().paymentOnline:this.paymentOnline};t>-1?this.pricePlansForm.at(t).patchValue(i):this.addPricePlan(i),this.syncPricePlans(),this.showDrawer=!1,this.selectedPricePlan=null}generateId(){return`temp-id:${L4()}`}openPricePlanDrawer(c=null){if(c){console.log("\u{1f4dd} Editing existing price plan:",c);const t=this.pricePlansForm.controls.findIndex(l=>l.value.id===c.id);console.log(t),-1!==t?this.selectedPricePlan=this.pricePlansForm.at(t):(this.selectedPricePlan=this.createPricePlanForm(c),this.existingPlanNames=this.pricePlans.filter(l=>l.id!==this.selectedPricePlan.value.id).map(l=>l.name).filter(l=>!!l),this.form.updateValueAndValidity()),this.action="edit"}else console.log("\u2795 Creating a new price plan"),this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity(),this.pricePlansForm.push(this.selectedPricePlan);this.showDrawer=!0}closeDrawer(){this.showDrawer=!1,"create"==this.action&&this.removePricePlan(this.pricePlansForm.length-1)}editPricePlan(c){console.log("Editing Price Plan:",c),c?(this.action="edit",this.selectedPricePlan=this.createPricePlanForm({...c,paymentOnline:c.paymentOnline}),this.existingPlanNames=this.pricePlans.filter(t=>t.id!==this.selectedPricePlan.value.id).map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity()):(this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity()),console.log("\u{1f4dd} Form after patching:",this.selectedPricePlan.value),this.cdr.detectChanges(),this.showDrawer=!0}syncPricePlans(){this.pricePlans=this.pricePlansForm.controls.map(c=>c.getRawValue()),this.form.get("pricePlans")?.setValue(this.pricePlans),this.onChange(this.pricePlans),0===this.pricePlans.length&&(this.priceType="free"),this.cdr.detectChanges()}writeValue(c){this.pricePlansForm.clear(),c?.forEach(t=>this.addPricePlan(t))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plans-form"]],inputs:{form:"form",prodSpec:"prodSpec",custom:"custom"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:10,vars:7,consts:[[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-xl","font-semibold","text-secondary-100","dark:text-white"],[1,"mb-4","flex","flex-col"],[3,"edit","delete","pricePlans"],["data-cy","newPricePlan","type","button",1,"mt-2","px-4","py-2","flex","items-center","justify-center","text-base","font-medium","bg-secondary-50","dark:bg-secondary-100","text-primary-100","dark:text-primary-50","rounded"],["data-cy","pricePlanDrawer",3,"formGroup","prodSpec","action"],[1,"ms-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["id","pricePlanType","data-cy","pricePlanType",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change","value"],["value","free"],["value","tailored"],["value","paid"],[1,"mb-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["data-cy","newPricePlan","type","button",1,"mt-2","px-4","py-2","flex","items-center","justify-center","text-base","font-medium","bg-secondary-50","dark:bg-secondary-100","text-primary-100","dark:text-primary-50","rounded",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","md:mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24\n 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64\n 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],[1,"hidden","md:block"],["data-cy","pricePlanDrawer",3,"save","close","formGroup","prodSpec","action"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",2),e.DNE(5,Hx0,8,2)(6,Yx0,2,1),e.k0s(),e.j41(7,"app-price-plans-table",3),e.bIt("edit",function(u){return l.editPricePlan(u)})("delete",function(u){return l.removePricePlan(u)}),e.k0s(),e.DNE(8,qx0,6,3,"button",4),e.k0s(),e.DNE(9,Xx0,1,3,"app-price-plan-drawer",5)),2&t&&(e.R7$(2),e.JRh(e.bMT(3,5,"FORMS.PRICE_PLANS._price_plans")),e.R7$(3),e.vxM(5,0==l.pricePlans.length?5:6),e.R7$(2),e.Y8G("pricePlans",l.pricePlans),e.R7$(),e.vxM(8,"free"!=l.priceType?8:-1),e.R7$(),e.vxM(9,l.showDrawer?9:-1))},dependencies:[Gz0,s1.h,s1.D9,Ux0,p.X1,p.xH,p.y7,p.cb,p.j4]})}}return n})();const Wx0=(n,a)=>a.id;function Jx0(n,a){if(1&n&&(e.j41(0,"option",6),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.JRh(c.name)}}function Qx0(n,a){if(1&n&&(e.j41(0,"div",7)(1,"label",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",10),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"CREATE_OFFER._ext_billing")),e.R7$(2),e.Y8G("formControl",c.extBillingEnabledControl)}}function Zx0(n,a){1&n&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_OFFER._pla_spec_id_required")))}function Kx0(n,a){if(1&n&&(e.j41(0,"label",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",12),e.DNE(4,Zx0,3,3,"p",13)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,5,"CREATE_OFFER._pla_spec_id")),e.R7$(2),e.AVh("border-red-500",c.plaSpecIdControl.invalid&&c.plaSpecIdControl.touched),e.Y8G("formControl",c.plaSpecIdControl),e.R7$(),e.vxM(4,c.plaSpecIdControl.invalid&&c.plaSpecIdControl.touched?4:-1)}}function eb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",8)(1,"div",14)(2,"button",15),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showProcurementError=!1)}),e.qSk(),e.j41(3,"svg",16),e.nrm(4,"path",17),e.k0s()(),e.joV(),e.j41(5,"div",18),e.qSk(),e.j41(6,"svg",19),e.nrm(7,"path",20),e.k0s(),e.joV(),e.j41(8,"h3",21),e.EFF(9,"Warning!"),e.k0s()(),e.j41(10,"div",22),e.EFF(11),e.j41(12,"p",23)(13,"a",24),e.EFF(14," Check the payment gateway here. "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(11),e.SpI(" ",c.errorMessage," "),e.R7$(2),e.FS9("href",c.gatewayUrl,e.B4B)}}let ME1=(()=>{class n{constructor(c,t,l){this.cdr=c,this.eventMessage=t,this.http=l,this.formChange=new e.bkB,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.showProcurementError=!1,this.errorMessage="",this.gatewayUrl="",this.gatewayCount=0,this.onChange=()=>{},this.onTouched=()=>{},console.log("\u{1f504} Initializing ProcurementModeComponent"),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if("UpdateOffer"===i.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const u={id:this.procurementMode,name:this.procurementModes.find(C=>C.id===this.procurementMode)?.name||"Manual",extBillingEnabled:this.formGroup.get("extBillingEnabled")?.value??!1,plaSpecId:this.formGroup.get("plaSpecId")?.value??""};JSON.stringify(u)!==JSON.stringify(this.originalValue)&&(console.log("\u{1f4dd} Emitting changes on destroy"),this.formChange.emit({subformType:"procurement",isDirty:!0,dirtyFields:["id","name"],originalValue:this.originalValue,currentValue:u}))}})}writeValue(c){if(console.log("\u{1f4dd} writeValue - Input value:",c),c){const t=c.id||c;console.log("\u{1f4dd} writeValue - Selected mode:",t),this.procurementMode=t,console.log("\u{1f4dd} writeValue - Updated procurementMode:",this.procurementMode),this.formGroup&&this.formGroup.patchValue({mode:t});const l=this.procurementModes.find(i=>i.id===t);this.onChange(l||{id:t,name:"Manual"})}}get formGroup(){return this.form}get modeControl(){const c=this.formGroup.get("mode");return c instanceof p.MJ?c:null}get extBillingEnabledControl(){const c=this.formGroup.get("extBillingEnabled");return c instanceof p.MJ?c:null}get plaSpecIdControl(){const c=this.formGroup.get("plaSpecId");return c instanceof p.MJ?c:null}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}getInitialProcurementMode(){return"update"===this.formType&&this.data?.productOfferingTerm&&this.data.productOfferingTerm.find(t=>"procurement"===t.name)?.description||"manual"}ngOnInit(){console.log("\u{1f4dd} ngOnInit - Form type:",this.formType),console.log("\u{1f4dd} ngOnInit - Form value:",this.data);const c=this.getInitialProcurementMode();console.log("\u{1f4dd} ngOnInit - Initial value:",c),this.isEditMode="update"===this.formType,this.formGroup.addControl("mode",new p.MJ(c,[p.k0.required]));const t=this.data?.pricingLogicAlgorithm?.[0]?.plaSpecId??"";this.formGroup.addControl("extBillingEnabled",new p.MJ(!!t)),this.formGroup.addControl("plaSpecId",new p.MJ(t,t?[p.k0.required]:[])),this.formGroup.get("extBillingEnabled").valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{const u=this.formGroup.get("plaSpecId");i?u.setValidators([p.k0.required]):u.clearValidators(),u.updateValueAndValidity()}),this.isEditMode&&(this.originalValue={id:c,name:this.procurementModes.find(i=>i.id===c)?.name||"Manual",extBillingEnabled:!!t,plaSpecId:t},console.log("\u{1f4dd} Original value stored:",this.originalValue)),this.formSub=this.form.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if(console.log("\u{1f4dd} Form value changed in subscription:",i),i){if(i.mode){if("manual"!=i.mode&&0==this.gatewayCount)return this.errorMessage="You can't select this procurement mode as you are not registered on the payment gateway.",this.showProcurementError=!0,this.form.setErrors({invalidProcurement:!0}),void this.formGroup.patchValue({mode:"manual"},{emitEvent:!1});this.errorMessage="",this.showProcurementError=!1,this.form.setErrors(null);const u=this.procurementModes.find(C=>C.id===i.mode)||this.procurementModes[0];console.log("\u{1f4dd} Found mode:",u),this.procurementMode=u.id,console.log("\u{1f4dd} Current procurementMode:",this.procurementMode)}this.hasBeenModified=!0}}),(0,e0.s)(this.http.get(`${g1.c.BASE_URL}/paymentInfo`)).then(i=>{this.gatewayUrl=i.providerUrl,this.gatewayCount=i.gatewaysCount}).catch(()=>{this.gatewayCount=0})}changeProcurement(c){console.log("\u{1f504} changeProcurement - Event value:",c.target.value),this.procurementMode=c.target.value,console.log("\u{1f504} changeProcurement - Updated procurementMode:",this.procurementMode);let t=this.procurementModes.find(l=>l.id===c.target.value);console.log("\u{1f504} changeProcurement - Found mode:",t),t&&(this.formGroup.patchValue({mode:c.target.value}),this.hasBeenModified=!0,this.onChange(t))}ngAfterViewInit(){setTimeout(()=>{console.log("\u{1f4dd} AfterViewInit - Current procurementMode:",this.procurementMode),this.cdr.detectChanges()},0)}ngOnDestroy(){if(this.formSub?.unsubscribe(),this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={id:this.procurementMode,name:this.procurementModes.find(t=>t.id===this.procurementMode)?.name||"Manual"};JSON.stringify(c)!==JSON.stringify(this.originalValue)&&(console.log("\u{1f4dd} Emitting changes on destroy"),this.formChange.emit({subformType:"procurement",isDirty:!0,dirtyFields:["id","name"],originalValue:this.originalValue,currentValue:c}))}this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-procurement-mode"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:14,vars:7,consts:[[1,"mb-3","text-gray-500","dark:text-gray-400"],[1,"flex","flex-col","gap-4"],[1,"flex","flex-col","gap-2"],[1,"text-sm","font-medium","text-gray-700","dark:text-gray-300"],[3,"formGroup"],["data-cy","procurement","formControlName","mode",1,"w-full","p-2","border","rounded-md","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],[3,"value"],[1,"mt-4","flex","items-center","gap-3"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","extBillingToggle","type","checkbox",1,"w-4","h-4","text-primary-100","bg-gray-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-50","dark:ring-offset-gray-800","dark:bg-gray-700","dark:border-gray-600",3,"formControl"],["for","plaSpecId",1,"font-bold","text-lg","dark:text-white"],["data-cy","plaSpecId","id","plaSpecId","type","url","placeholder","https://external-billing-engine.example.com",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"text-red-500","text-sm","mt-1","mb-2"],["id","alert-additional-content-2","role","alert",1,"relative","p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["type","button","aria-label","Close",1,"absolute","top-2","right-2","text-red-500","hover:text-red-700","dark:text-white","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"],[1,"mt-2"],["target","_blank",1,"text-sm","font-medium","text-red-600","hover:underline","dark:text-red-300",3,"href"]],template:function(t,l){1&t&&(e.j41(0,"p",0),e.EFF(1,"Define which parts of the procurement/activation process will be performed automatically and which ones will be performed manually by the provider"),e.k0s(),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",4)(8,"select",5),e.Z7z(9,Jx0,2,2,"option",6,Wx0),e.k0s()()()(),e.DNE(11,Qx0,5,4,"div",7)(12,Kx0,5,7)(13,eb0,15,2,"div",8)),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"FORMS.PROCUREMENT_MODE._title")," "),e.R7$(2),e.Y8G("formGroup",l.formGroup),e.R7$(2),e.Dyx(l.procurementModes),e.R7$(2),e.vxM(11,l.extBillingEnabledControl?11:-1),e.R7$(),e.vxM(12,null!=l.extBillingEnabledControl&&l.extBillingEnabledControl.value&&l.plaSpecIdControl?12:-1),e.R7$(),e.vxM(13,l.showProcurementError?13:-1))},dependencies:[s1.h,s1.D9,p.X1,p.xH,p.y7,p.me,p.Zm,p.wz,p.BC,p.cb,p.l_,p.j4,p.JD]})}}return n})();function cb0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function tb0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"path",8),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function nb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(3);return l.stopPropagation(),e.Njj(u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",t.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",t.isSelected(c.id)),e.R7$(2),e.JRh(c.tradingName)}}function lb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"input",10),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.searchTerm,l)||(i.searchTerm=l),e.Njj(l)}),e.k0s()(),e.j41(2,"div",11)(3,"table",12)(4,"thead",13)(5,"tr"),e.nrm(6,"th",14),e.j41(7,"th",15),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,nb0,5,3,"tr",16,e.Vm6),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.R50("ngModel",c.searchTerm),e.R7$(7),e.JRh(e.bMT(9,2,"OFFERINGS._name")),e.R7$(3),e.Dyx(c.filteredParties)}}function sb0(n,a){if(1&n&&e.DNE(0,tb0,7,3,"div",5)(1,lb0,13,4),2&n){const c=e.XpG();e.vxM(0,0==c.parties.length?0:1)}}let ab0=(()=>{class n{constructor(c,t){this.accService=c,this.cdr=t,this.formChange=new e.bkB,this.loading=!1,this.parties=[],this.selectedParty=null,this.searchTerm="",this.incomingValue=null,this.onChange=()=>{},this.onTouched=()=>{}}get filteredParties(){const c=this.searchTerm.toLowerCase().trim();return c?this.parties.filter(t=>t.tradingName?.toLowerCase().includes(c)):this.parties}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.loading=!0;try{c.parties=yield c.accService.getOrgList(),console.log("Parties loaded:",c.parties);const t=c.incomingValue?.id??c.partyId;if(t){if(c.selectedParty=c.parties.find(l=>l.id===t)??null,!c.selectedParty)try{const l=yield c.accService.getOrgInfo(t);l?.id&&(c.parties=[l,...c.parties.filter(i=>i.id!==l.id)],c.selectedParty=l)}catch(l){console.error("Unable to load requested party by id:",t,l)}}else c.incomingValue?.id&&(c.selectedParty=c.incomingValue);c.onChange(c.selectedParty??null),c.onTouched(),c.cdr.detectChanges(),console.log("Selected party after init:",c.selectedParty)}finally{c.loading=!1}})()}isSelected(c){return this.selectedParty?.id===c}toggleSelection(c){this.selectedParty=c,this.onChange(c),this.onTouched()}getRowClass(c){return c===this.selectedParty?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}writeValue(c){console.log("writeValue called with:",c),this.incomingValue=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(x0.O),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-related-party-id"]],inputs:{partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","w-full","mb-4"],["type","text","placeholder","Search party...",1,"w-full","p-2","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:border-blue-500",3,"ngModelChange","ngModel"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4","mb-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","partySelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked"],[1,"px-6","py-4"]],template:function(t,l){1&t&&e.DNE(0,cb0,6,0,"div",0)(1,sb0,2,1),2&t&&e.vxM(0,l.loading?0:1)},dependencies:[s1.h,s1.D9,_.YU,p.YN,p.me,p.BC,p.vS]})}}return n})();const ob0=(n,a)=>a.id,ib0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),rb0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function db0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function fb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function ub0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function mb0(n,a){if(1&n&&e.nrm(0,"app-related-party-id",24),2&n){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function pb0(n,a){if(1&n&&e.nrm(0,"app-price-plans-form",25),2&n){let c;const t=e.XpG(3);e.Y8G("form",t.productOfferForm)("prodSpec",null==(c=t.productOfferForm.get("prodSpec"))?null:c.value)("custom",!0)}}function hb0(n,a){if(1&n&&e.nrm(0,"app-procurement-mode",26),2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)}}function gb0(n,a){if(1&n&&(e.j41(0,"h2",33),e.EFF(1,"Exclusive ad-hoc offer created for "),e.j41(2,"b"),e.EFF(3),e.k0s(),e.EFF(4,"."),e.k0s()),2&n){let c;const t=e.XpG(4);e.R7$(3),e.JRh(null==(c=t.productOfferForm.get("partyInfo"))?null:c.value.tradingName)}}function _b0(n,a){if(1&n&&(e.j41(0,"tr",39)(1,"td",40),e.EFF(2),e.k0s(),e.j41(3,"td",41),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function Lb0(n,a){if(1&n&&(e.j41(0,"h2",29),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34)(4,"table",35)(5,"thead",36)(6,"tr")(7,"th",37),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",38),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,_b0,5,2,"tr",39,ob0),e.k0s()()()),2&n){let c;const t=e.XpG(4);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._price_plans")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._description")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("pricePlans"))?null:c.value)}}function Cb0(n,a){if(1&n&&(e.j41(0,"div",27)(1,"div",28)(2,"div")(3,"label",29),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"label",30),e.EFF(7),e.k0s()(),e.j41(8,"div")(9,"label",31),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"label",32),e.EFF(13),e.k0s()()(),e.DNE(14,gb0,5,1,"h2",33)(15,Lb0,16,9),e.k0s()),2&n){let c,t;const l=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,6,"CREATE_OFFER._name")),e.R7$(3),e.SpI(" ",null==l.offer?null:l.offer.name," "),e.R7$(3),e.JRh(e.bMT(11,8,"CREATE_OFFER._version")),e.R7$(3),e.SpI(" ",null==l.offer?null:l.offer.version," "),e.R7$(),e.vxM(14,null!=(c=l.productOfferForm.get("partyInfo"))&&c.value?14:-1),e.R7$(),e.vxM(15,null!=(t=l.productOfferForm.get("pricePlans"))&&t.value?15:-1)}}function zb0(n,a){if(1&n&&(e.j41(0,"div",23),e.DNE(1,mb0,1,1,"app-related-party-id",24)(2,pb0,1,3)(3,hb0,1,2)(4,Cb0,16,10),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.vxM(1,0===c.currentStep?1:1===c.currentStep?2:2===c.currentStep?3:3===c.currentStep?4:-1)}}function Mb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.createOffer())}),e.EFF(1," Create Offer "),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",c.loading)("ngClass",c.loading?"opacity-50":"hover:bg-primary-50")}}function xb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,fb0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,ub0,6,0,"div",2)(7,zb0,5,1),e.j41(8,"div",12)(9,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep-1))}),e.qSk(),e.j41(10,"svg",14),e.nrm(11,"path",15),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.joV(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep+1))}),e.EFF(15),e.nI1(16,"translate"),e.qSk(),e.j41(17,"svg",17),e.nrm(18,"path",18),e.k0s()(),e.DNE(19,Mb0,2,2,"button",19),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.productOfferForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.steps[c.currentStep]),e.R7$(),e.vxM(6,c.loading?6:7),e.R7$(3),e.Y8G("disabled",0===c.currentStep)("ngClass",e.l_i(14,ib0,0!==c.currentStep,0===c.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(13,10,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStep===c.steps.length-1||!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,rb0,c.currentStep!==c.steps.length-1&&c.validateCurrentStep()||c.canNavigate(c.currentStep),c.currentStep===c.steps.length-1||!c.validateCurrentStep()||!c.canNavigate(c.currentStep))),e.R7$(),e.SpI(" ",e.bMT(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,3===c.currentStep?19:-1)}}function bb0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",43)(2,"div",44),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s(),e.joV(),e.j41(5,"h3",47),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",48),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let xE1=(()=>{class n{constructor(c,t,l,i){this.api=c,this.eventMessage=t,this.fb=l,this.quoteService=i,this.offer={},this.currentStep=0,this.highestStep=0,this.steps=["Party Info","Price Plans","Procurement Mode","Summary"],this.isFormValid=!1,this.pricePlans=[],this.errorMessage="",this.showError=!1,this.loading=!1,this.loadingData=!1,this.bundleChecked=!1,this.offersBundle=[],this.productOfferForm=this.fb.group({prodSpec:new p.MJ(null,[p.k0.required]),partyInfo:new p.MJ(null,[p.k0.required]),pricePlans:new p.MJ([]),procurementMode:this.fb.group({})})}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--------- OFFER DATA ----------"),console.log(c.offer),console.log(c.partyId),console.log("-------------------------------"),yield c.loadOfferData(),c.loadingData=!1})()}loadOfferData(){var c=this;return(0,C1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const t=c.offer.productOfferingTerm.find(l=>"procurement"===l.name);if(t){const l={id:t.description,name:t.description};console.log("Setting procurement value:",l),c.productOfferForm.patchValue({procurementMode:l})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}})}c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.productOfferForm.patchValue({prodSpec:l||null})});return function(l){return t.apply(this,arguments)}}()))})()}createOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0;const t=c.productOfferForm.value.pricePlans;if(console.log("---- party info value ----"),console.log(c.productOfferForm.get("partyInfo")?.value),console.log("---- full form value ----"),console.log(c.productOfferForm.value),0!==t.length)for(let l=0;lc.createPriceComponent(u1,i.currency))),T=c.createBundledPricePlan(i,b);C=(yield(0,e0.s)(c.api.postOfferingPrice(T))).id,c.productOfferForm.value.pricePlans[l].id=C,l===t.length-1&&c.saveOfferInfo()}catch(C){c.handleApiError(C)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,t=c.pricePlans.map(b=>({id:b.id,href:b.id})),l=this.offer.productOfferingTerm.find(b=>"License"===b.name);let i=this.offer.name;this.productOfferForm.get("partyInfo")?.value.tradingName&&(i=`${this.offer.name} - ${this.productOfferForm.get("partyInfo")?.value.tradingName}`);const u={name:i,description:this.offer?.description||"",lifecycleStatus:"Active",isBundle:this.bundleChecked,isSellable:!1,bundledProductOffering:this.offersBundle,place:[],version:this.offer.version,category:this.offer.category,productOfferingPrice:t,validFor:{startDateTime:(new Date).toISOString()},relatedParty:[{role:g1.c.BUYER_ROLE,href:this.productOfferForm.get("partyInfo")?.value.id,id:this.productOfferForm.get("partyInfo")?.value.id}],productOfferingTerm:[{name:"License",description:l?.description||""},{name:"procurement",description:c.procurementMode.mode}]};this.bundleChecked||(u.productSpecification=this.offer.productSpecification),this.offerToCreate=u,console.log("---- Offer to create -----"),console.log(this.offerToCreate),this.api.postProductOffering(u,null).subscribe({next:b=>{console.log("product offer created:"),console.log(b),this.loading=!1,this.goBack()},error:b=>{console.error("Error during offer save/update:",b),this.errorMessage=b?.error?.error?"Error: "+b.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}createPriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("component format"),console.log(c);let i={name:c.name,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:t,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},u=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(u)&&(i.recurringChargePeriodType=c.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===u&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},i["@baseType"]="ProductOfferingPrice",i["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",i.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(i)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(i.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(i.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const b=yield l.createPriceAlteration(c,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("create price comp"),console.log(i);const C=yield(0,e0.s)(l.api.postOfferingPrice(i));return{id:C.id,href:C.id,name:C.name}})()}createPriceAlteration(c,t){var l=this;return(0,C1.A)(function*(){const i={name:"discount",priceType:"discount",validFor:{startDateTime:$2()().toISOString(),endDateTime:$2()().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?i.percentage=c.discountValue:i.price={value:c.discountValue,unit:t},yield(0,e0.s)(l.api.postOfferingPrice(i))})()}createBundledPricePlan(c,t){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:t};return c?.priceType&&"custom"==c?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}goToStep(c){console.log("click go to step");const t=this.validateCurrentStep();console.log(!t),t&&(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep))}goBack(){this.eventMessage.emitSellerOffer(!0)}handleApiError(c){console.error("Error while creating offer price!",c),this.errorMessage=c?.error?.error?"Error: "+c.error.error:"Error creating offer price!",this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}validateCurrentStep(){switch(console.log("--- party"),console.log(this.productOfferForm.get("partyInfo")?.value),this.currentStep){case 0:const c=this.productOfferForm.get("partyInfo")?.value;return c&&0!=Object.keys(c).length;case 1:default:return!0;case 2:return this.productOfferForm.get("procurementMode")?.valid||!1}}canNavigate(c){return this.productOfferForm.get("partyInfo")?.valid&&c<=this.currentStep||this.productOfferForm.get("partyInfo")?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok),e.rXU(L3.K))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-custom-offer"]],inputs:{offer:"offer",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:7,vars:5,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","offerNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[1,"md:p-8"],["formControlName","partyInfo",3,"partyId"],[3,"form","prodSpec","custom"],[3,"data","form"],[1,"m-8"],[1,"mb-4","grid","grid-cols-2","gap-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-all","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"text-md","dark:text-white","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-all"],[1,"hidden","md:table-cell","px-6","py-4","text-wrap","break-all"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,db0,6,0,"div",2)(5,xb0,20,20),e.k0s(),e.DNE(6,bb0,9,1,"div",3)),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,3,"CREATE_OFFER._create")," "),e.R7$(2),e.vxM(4,l.loadingData?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,zE1,ME1,ab0,_.YU]})}}return n})();const yb0=(n,a)=>({"break-all":n,"break-words":a});function Fb0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function vb0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"path",8),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function kb0(n,a){if(1&n&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function wb0(n,a){if(1&n&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Sb0(n,a){if(1&n&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Nb0(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Eb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(3);return l.stopPropagation(),e.Njj(u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21),e.DNE(6,kb0,2,1,"span",22)(7,wb0,2,1)(8,Sb0,2,1)(9,Nb0,2,1),e.k0s(),e.j41(10,"td",21),e.EFF(11),e.k0s()()}if(2&n){let c;const t=a.$implicit,l=e.XpG(3);e.Y8G("ngClass",t.id==l.selectedCatalog.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(2),e.Y8G("checked",l.isSelected(t.id)),e.R7$(),e.Y8G("ngClass",e.l_i(6,yb0,l.hasLongWord(t.name,20),!l.hasLongWord(t.name,20))),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.vxM(6,"Active"==t.lifecycleStatus?6:"Launched"==t.lifecycleStatus?7:"suspended"==t.lifecycleStatus?8:"terminated"==t.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",null==t.relatedParty||null==(c=t.relatedParty.at(0))?null:c.role," ")}}function Db0(n,a){if(1&n&&(e.j41(0,"div",9)(1,"table",10)(2,"thead",11)(3,"tr"),e.nrm(4,"th",12),e.j41(5,"th",13),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",14),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"tbody",15),e.Z7z(15,Eb0,12,9,"tr",16,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,3,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,5,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,7,"OFFERINGS._role")," "),e.R7$(3),e.Dyx(c.catalogs)}}function Tb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",26)(1,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextCatalog())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",28),e.nrm(5,"path",29),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Rb0(n,a){if(1&n&&e.DNE(0,Tb0,6,3,"div",26),2&n){const c=e.XpG(2);e.vxM(0,c.catalogPageCheck?0:-1)}}function Ab0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function Ib0(n,a){if(1&n&&e.DNE(0,vb0,7,3,"div",5)(1,Db0,17,9)(2,Rb0,1,1)(3,Ab0,6,0),2&n){const c=e.XpG();e.vxM(0,0==c.catalogs.length?0:1),e.R7$(2),e.vxM(2,c.loadingCatalog_more?3:2)}}let Pb0=(()=>{class n{constructor(c,t,l){this.api=c,this.paginationService=t,this.cdr=l,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.selectedCatalogInternal=null,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(c){this.selectedCatalogInternal=c,this.onChange(c)}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}ngOnInit(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!1)})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0);let l={keywords:void 0,filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogsByUser.bind(t.api));t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page}finally{t.loadingCatalog=!1,t.loadingCatalog_more=!1}})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){c.loadingCatalog_more=!0,yield c.getSellerCatalogs(!0)})()}selectCatalog(c){this.selectedCatalog=c}isSelected(c){return this.selectedCatalogInternal?.id===c}toggleSelection(c){this.selectedCatalogInternal=this.selectedCatalogInternal?.id===c.id?null:c,this.onChange(this.selectedCatalogInternal),this.onTouched()}getRowClass(c){return c===this.selectedCatalogInternal?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(w6),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-catalogue"]],inputs:{partyId:"partyId"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","catalogList"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","catSelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked"],["data-cy","offerCatalogName",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&e.DNE(0,Fb0,6,0,"div",0)(1,Ib0,4,2),2&t&&e.vxM(0,l.loadingCatalog?0:1)},dependencies:[s1.h,s1.D9,_.YU]})}}return n})();const jb0=(n,a)=>a.id,$b0=n=>({$implicit:n,level:0}),Ob0=(n,a,c)=>({"bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600":n,"bg-gray-100 dark:bg-gray-600 hover:bg-gray-200 dark:hover:bg-gray-500":a,"bg-blue-500 dark:bg-blue-900 transition-colors duration-300":c}),Bb0=(n,a)=>({"rotate-90":n,"rotate-0":a}),Vb0=(n,a)=>({$implicit:n,level:a});function Ub0(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",2),e.nrm(2,"path",3)(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Loading..."),e.k0s()())}function Gb0(n,a){1&n&&(e.j41(0,"div",6)(1,"div",7),e.qSk(),e.j41(2,"svg",8),e.nrm(3,"path",9),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function Hb0(n,a){1&n&&e.eu8(0)}function Yb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",23),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(4).toggleCategory(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25),e.k0s()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG().level;e.xc7("padding-left",10*t,"px"),e.R7$(),e.Y8G("ngClass",e.l_i(3,Bb0,c.expanded,!c.expanded))}}function qb0(n,a){1&n&&e.eu8(0)}function Xb0(n,a){if(1&n&&e.DNE(0,qb0,1,0,"ng-container",16),2&n){const c=e.XpG().$implicit,t=e.XpG().level;e.XpG();const l=e.sdS(14);e.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",e.l_i(2,Vb0,c.children,t+1))}}function Wb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.manageCategory(l))}),e.j41(1,"td",18),e.DNE(2,Yb0,3,6,"button",19),e.k0s(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21)(6,"input",22),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(4).manageCategory(i),e.Njj(l.stopPropagation())}),e.k0s()()(),e.DNE(7,Xb0,1,5,"ng-container")}if(2&n){const c=a.$implicit,t=e.XpG().level,l=e.XpG(3);e.Y8G("ngClass",e.sMw(7,Ob0,0===t,t>0,l.isCategorySelected(c))),e.R7$(2),e.Y8G("ngIf",c.childrenLoaded||!c.childrenLoaded),e.R7$(),e.xc7("padding-left",20*t,"px"),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.Y8G("checked",l.isCategorySelected(c)),e.R7$(),e.vxM(7,c.expanded?7:-1)}}function Jb0(n,a){1&n&&(e.j41(0,"tr")(1,"td",26),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"CREATE_OFFER._no_subcats")))}function Qb0(n,a){1&n&&e.Z7z(0,Wb0,8,11,null,null,jb0,!1,Jb0,4,3,"tr"),2&n&&e.Dyx(a.$implicit)}function Zb0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"table",11)(2,"thead",12)(3,"tr"),e.nrm(4,"th",13),e.j41(5,"th",13),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s()()(),e.j41(11,"tbody",15),e.DNE(12,Hb0,1,0,"ng-container",16),e.k0s()(),e.DNE(13,Qb0,3,1,"ng-template",null,0,e.C5r),e.k0s()),2&n){const c=e.sdS(14),t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,4,"CREATE_OFFER._name")),e.R7$(3),e.JRh(e.bMT(10,6,"CREATE_OFFER._select")),e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.eq3(8,$b0,t.categories))}}function Kb0(n,a){if(1&n&&e.DNE(0,Gb0,7,3,"div",6)(1,Zb0,15,10),2&n){const c=e.XpG();e.vxM(0,0==c.categories.length?0:1)}}let ey0=(()=>{class n{constructor(c,t){this.api=c,this.cdr=t,this.formChange=new e.bkB,this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.originalValue=[],this.hasBeenModified=!1,this.isEditMode=!1,this.onChange=()=>{},this.onTouched=()=>{},this.JSON=JSON,console.log("\u{1f504} Initializing CategoryComponent")}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,yield c.getCategories()})()}writeValue(c){console.log("\u{1f4dd} Writing value to form:",c),this.selectedCategories=c||[],this.isEditMode&&c&&(this.originalValue=JSON.parse(JSON.stringify(c)),console.log("\u{1f4dd} Original value stored:",this.originalValue))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}isCategorySelected(c){return this.selectedCategories.some(t=>t.id===c.id)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Obteniendo categor\xedas..."),c.loadingCategory=!0,c.categories=[];try{const t=yield c.api.getDefaultCategories();if(!Array.isArray(t)||0===t.length)return console.error("No hay categor\xedas disponibles."),void(c.loadingCategory=!1);console.log("Datos recibidos:",t),c.categories=t.filter(l=>l.isRoot).map(l=>({...l,expanded:!1,childrenLoaded:!1,children:[]})),console.log("Categor\xedas ra\xedz:",c.categories),c.loadingCategory=!1,setTimeout(()=>c.cdr.detectChanges(),0)}catch(t){console.error("Error al obtener categor\xedas:",t),c.loadingCategory=!1}})()}loadChildren(c){var t=this;return(0,C1.A)(function*(){if(c){if(c.childrenLoaded)return void(c.expanded=!c.expanded);try{console.log(`Cargando hijos de ${c.name}...`);const l=yield t.api.getCategoriesByParentId(c.id);c.children=l.map(i=>({...i,expanded:!1,childrenLoaded:!1,children:[]})),c.childrenLoaded=!0,c.expanded=!0,setTimeout(()=>t.cdr.detectChanges(),0)}catch(l){console.error(`Error al cargar hijos de ${c.name}:`,l)}}})()}manageCategory(c){if(!c)return;const t=this.selectedCategories.findIndex(C=>C.id===c.id);t>-1?(this.selectedCategories.splice(t,1),this.removeChildren(c)):(this.selectedCategories.push(c),this.addParent(c.parentId)),this.isEditMode&&(this.hasBeenModified=!0),this.onChange([...this.selectedCategories]),this.onTouched();const l=[...this.selectedCategories],u={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",u),this.formChange.emit(u)}removeChildren(c){if(c.children&&0!==c.children.length)for(let t of c.children){const l=this.selectedCategories.findIndex(i=>i.id===t.id);l>-1&&this.selectedCategories.splice(l,1),this.removeChildren(t)}}addParent(c){if(!c)return;const t=this.findCategoryById(c,this.categories);t&&(this.selectedCategories.find(i=>i.id===t.id)||(this.selectedCategories.push(t),this.addParent(t.parentId)))}findCategoryById(c,t){for(let l of t){if(l.id===c)return l;if(l.children&&l.children.length>0){const i=this.findCategoryById(c,l.children);if(i)return i}}return null}toggleCategory(c){var t=this;return(0,C1.A)(function*(){c&&(c.childrenLoaded?c.expanded=!c.expanded:yield t.loadChildren(c))})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying CategoryComponent"),this.isEditMode&&this.hasBeenModified){const c=[...this.selectedCategories],t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getDirtyFields(c){const t=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&t.push("selectedCategories"),t}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-category-form"]],inputs:{formType:"formType",data:"data",partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["categoryRow",""],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766\n 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013\n 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50\n 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167\n 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666\n 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874\n 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928\n 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811\n 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1\n 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],["data-cy","categoryList"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"border-b","dark:border-gray-500","transition-all","duration-200","cursor-pointer",3,"click","ngClass"],["data-cy","offerCategoryExpand",1,"px-6","py-4"],["class","transition-transform duration-300 ease-in-out",3,"padding-left","click",4,"ngIf"],["data-cy","offerCategoryName",1,"px-6","py-4"],[1,"px-6","py-4","text-center"],["type","checkbox",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-2","focus:ring-blue-500","cursor-pointer","transition-all","duration-200","scale-100","checked:scale-110","checked:ring-2",3,"click","checked"],[1,"transition-transform","duration-300","ease-in-out",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","transition-transform","duration-300","ease-in-out",3,"ngClass"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8\n 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["colspan","3",1,"text-center","dark:bg-gray-800"]],template:function(t,l){1&t&&e.DNE(0,Ub0,6,0,"div",1)(1,Kb0,2,1),2&t&&e.vxM(0,l.loadingCategory?0:1)},dependencies:[s1.h,s1.D9,_.bT,_.T3,_.YU]})}}return n})();function cy0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Invalid JSON")))}function ty0(n,a){if(1&n&&(e.j41(0,"label",6),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"textarea",7),e.DNE(4,cy0,3,3,"p",5)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"Access Policy")),e.R7$(2),e.AVh("border-red-500",c.accessControl.invalid&&c.accessControl.touched),e.Y8G("formControl",c.accessControl),e.R7$(),e.vxM(4,c.accessControl.hasError("invalidJson")&&c.accessControl.touched?4:-1)}}function ny0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Invalid JSON")))}function ly0(n,a){if(1&n&&(e.j41(0,"label",6),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"textarea",8),e.DNE(4,ny0,3,3,"p",5)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"Contract Policy")),e.R7$(2),e.AVh("border-red-500",c.contractControl.invalid&&c.contractControl.touched),e.Y8G("formControl",c.contractControl),e.R7$(),e.vxM(4,c.contractControl.hasError("invalidJson")&&c.contractControl.touched?4:-1)}}function sy0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Both Access Policy and Contract Policy are required if either is filled")))}function ay0(n,a){if(1&n&&e.DNE(0,ty0,5,7)(1,ly0,5,7)(2,sy0,3,3,"p",5),2&n){const c=e.XpG();e.vxM(0,c.accessControl?0:-1),e.R7$(),e.vxM(1,c.contractControl?1:-1),e.R7$(),e.vxM(2,c.formGroup.hasError("policiesRequired")&&(null!=c.accessControl&&c.accessControl.touched||null!=c.contractControl&&c.contractControl.touched)?2:-1)}}let oy0=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.destroy$=new S.B,this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{if("UpdateOffer"===t.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={name:"edc:contractDefinition",accessPolicy:this.accessControl?.value||"",contractPolicy:this.contractControl?.value||"",dspCompatible:this.dspCompatible},i=this.getDirtyFields(l);i.length>0&&this.formChange.emit({subformType:"contractDefinition",isDirty:!0,dirtyFields:i,originalValue:this.originalValue,currentValue:l})}})}get formGroup(){return this.form}get dspCompatible(){return!!this.formGroup.get("dspCompatible")?.value}get dspCompatibleControl(){return this.formGroup.get("dspCompatible")}get accessControl(){const c=this.formGroup.get("accessPolicy");return c instanceof p.MJ?c:null}get contractControl(){const c=this.formGroup.get("contractPolicy");return c instanceof p.MJ?c:null}updatePolicyValidators(c){const t=c?[p.k0.required,D5]:[D5];this.accessControl?.setValidators(t),this.accessControl?.updateValueAndValidity({emitEvent:!1}),this.contractControl?.setValidators(t),this.contractControl?.updateValueAndValidity({emitEvent:!1}),c||(this.accessControl?.reset("",{emitEvent:!1}),this.contractControl?.reset("",{emitEvent:!1}))}ngOnInit(){if(this.isEditMode="update"===this.formType,!this.formGroup.contains("accessPolicy")){let t=null;this.isEditMode&&this.data?.productOfferingTerm&&Array.isArray(this.data.productOfferingTerm)&&(t=this.data.productOfferingTerm.find(l=>"edc:contractDefinition"===l.name)),t?(this.formGroup.addControl("dspCompatible",new p.MJ(!0)),this.formGroup.addControl("name",new p.MJ("edc:contractDefinition")),this.formGroup.addControl("accessPolicy",new p.MJ(this.jsonToString(t.accessPolicy),[p.k0.required,D5])),this.formGroup.addControl("contractPolicy",new p.MJ(this.jsonToString(t.contractPolicy),[p.k0.required,D5])),this.originalValue={name:t.name,accessPolicy:t.accessPolicy,contractPolicy:t.contractPolicy,dspCompatible:!0}):(this.formGroup.addControl("dspCompatible",new p.MJ(!1)),this.formGroup.addControl("name",new p.MJ("edc:contractDefinition")),this.formGroup.addControl("accessPolicy",new p.MJ("",[D5])),this.formGroup.addControl("contractPolicy",new p.MJ("",[D5])))}this.updatePolicyValidators(this.dspCompatible),this.dspCompatibleControl.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{this.updatePolicyValidators(!!t),t&&!this.originalValue&&(this.originalValue={name:"edc:contractDefinition",accessPolicy:"",contractPolicy:"",dspCompatible:!1})}),this.isEditMode&&this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.hasBeenModified=!0})}ngOnDestroy(){if(this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={name:"edc:contractDefinition",accessPolicy:this.accessControl?.value||"",contractPolicy:this.contractControl?.value||"",dspCompatible:this.dspCompatible},t=this.getDirtyFields(c);t.length>0&&this.formChange.emit({subformType:"contractDefinition",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c})}this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){const t=[];return this.originalValue&&(c.name!==this.originalValue.name&&t.push("name"),c.accessPolicy!==this.originalValue.accessPolicy&&t.push("accessPolicy"),c.contractPolicy!==this.originalValue.contractPolicy&&t.push("contractPolicy")),t}jsonToString(c){try{return JSON.stringify(c,null,2)}catch(t){return console.error(`Unable to stringify json: ${c}`,t),""}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-edc-contract-definition-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:7,vars:2,consts:[[1,"col-span-2","flex","items-center","h-fit"],["for","dsp-compatible",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","dsp-compatible",1,"sr-only","peer",3,"formControl"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"mt-1","text-sm","text-red-500"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","dspAccessPolicy","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"formControl"],["data-cy","dspContractPolicy","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"formControl"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"DSP Compatible"),e.k0s(),e.j41(3,"label",2),e.nrm(4,"input",3)(5,"div",4),e.k0s()(),e.DNE(6,ay0,3,3)),2&t&&(e.R7$(4),e.Y8G("formControl",l.dspCompatibleControl),e.R7$(2),e.vxM(6,l.dspCompatible?6:-1))},dependencies:[p.X1,p.me,p.Zm,p.BC,p.l_,s1.h,s1.D9]})}}return n})();function iy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",10)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function ry0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",11)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function dy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",12)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function fy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",13)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function uy0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.selectStatus(l))}),e.j41(1,"span",4),e.qSk(),e.j41(2,"svg",5),e.DNE(3,iy0,1,1,"path",6)(4,ry0,1,1,"path",7)(5,dy0,1,1,"path",8)(6,fy0,1,1,"path",9),e.k0s(),e.joV(),e.j41(7,"span"),e.EFF(8),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.Y8G("ngClass",t.getStatusClasses(c)),e.R7$(3),e.Y8G("ngIf","Active"===c),e.R7$(),e.Y8G("ngIf","Launched"===c),e.R7$(),e.Y8G("ngIf","Retired"===c),e.R7$(),e.Y8G("ngIf","Obsolete"===c),e.R7$(),e.BMQ("data-cy","offerStatus"+c),e.R7$(),e.JRh(c)}}let my0=(()=>{class n{constructor(){this.statuses=["Active","Launched","Retired","Obsolete"],this.disabledStatuses=[],this.selectedStatus="",this.onChange=c=>{},this.onTouched=()=>{}}writeValue(c){this.selectedStatus=c||""}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}selectStatus(c){this.disabledStatuses.includes(c)||(this.selectedStatus=c,this.onChange(c),this.onTouched())}getStatusClasses(c){if(this.disabledStatuses.includes(c))return"opacity-40 cursor-not-allowed flex items-center justify-center p-4 rounded-lg space-x-4 transition-all text-gray-500 dark:text-gray-200";const l="cursor-pointer flex items-center justify-center p-4 rounded-lg space-x-4 transition-all";return this.selectedStatus===c?`${l} bg-[#d2e0f0] dark:bg-primary-100 font-semibold ${{Active:"text-[#269c43]",Launched:"text-[#269c43]",Retired:"text-[#b40404]",Obsolete:"text-gray-800"}[c]||"text-gray-500"}`:`${l} text-gray-500 dark:text-gray-200 hover:bg-[#d2e0f0] dark:hover:bg-gray-700`}getFillColor(c){return this.selectedStatus===c?{Active:"#0f9d58",Launched:"#269c43",Retired:"#b40404",Obsolete:"#000000"}[c]:"#808080"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-status-selector"]],inputs:{statuses:"statuses",disabledStatuses:"disabledStatuses"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:4,vars:0,consts:[[1,"mb-2","col-span-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[3,"ngClass"],[3,"click","ngClass"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"min-w-6","w-6","h-6"],["d","M319.6 0c7.5-.2 14.1 4.9 15.9 12.1l84 336 37.6-93.9c7.3-18.2 24.9-30.2 44.6-30.2L624\n 224c8.8 0 16 7.2 16 16s-7.2 16-16 16l-122.3 0c-6.5 0-12.4 4-14.9 10.1l-56 139.9c-2.6\n 6.4-9 10.5-15.9 10s-12.8-5.4-14.4-12.1l-78.7-315-82 410.2c-1.5 7.3-7.8 12.7-15.3\n 12.9s-14.1-4.9-15.9-12.1L150.5 268.1C148.8 261 142.4 256 135 256L16 256c-8.8\n 0-16-7.2-16-16s7.2-16 16-16l119 0c22 0 41.2 15 46.6 36.4l40.7 162.7 82-410.2C305.8\n 5.5 312.1 .2 319.6 0z",4,"ngIf"],["d","M197.9 253.9c12.9 6.4 24.7 14.8 35 25.2s18.8 22.2 25.2 35c105.8-30 156.7-79.5\n 181.5-126c25-46.8 27.3-97.6 22-137.7c-40.1-5.3-90.9-3-137.7 22c-46.5 24.8-96 75.8-126 181.5zM384\n 312.1l0 82.2c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1\n .2s-12.1-12.2-12.1-20.9l0-114.7c0-22.6-9-44.3-25-60.3s-37.7-25-60.3-25L24 288c-8.6\n 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.2\n 0C281.7-3.8 408.8-8.5 483.9 5.3c11.6 2.1 20.7 11.2 22.8 22.8c13.8 75.1 9.1 202.2-122.7\n 284zM28.3 511.9c-16 .4-28.6-12.2-28.2-28.2C1 446 7.7 379.7 42 345.5c34.4-34.4 90.1-34.4 124.5\n 0s34.4 90.1 0 124.5C132.3 504.3 66 511 28.3 511.9zm50.2-64.5c12.8-.7 31.2-3.7 41.3-13.7c11.4-11.4\n 11.4-30 0-41.4s-30-11.4-41.4 0c-10.1 10.1-13 28.5-13.7 41.3c-.5 8 5.9 14.3 13.9 13.9zM328 144a40\n 40 0 1 1 80 0 40 40 0 1 1 -80 0z",4,"ngIf"],["d","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6\n 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2\n 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-208z",4,"ngIf"],["d","M368 128c0 44.4-25.4 83.5-64 106.4l0 21.6c0 17.7-14.3 32-32 32l-96 0c-17.7\n 0-32-14.3-32-32l0-21.6c-38.6-23-64-62.1-64-106.4C80 57.3 144.5 0 224 0s144 57.3 144 128zM168 176a32\n 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM3.4 273.7c7.9-15.8\n 27.1-22.2 42.9-14.3L224 348.2l177.7-88.8c15.8-7.9 35-1.5 42.9 14.3s1.5 35-14.3 42.9L295.6 384l134.8\n 67.4c15.8 7.9 22.2 27.1 14.3 42.9s-27.1 22.2-42.9 14.3L224 419.8 46.3 508.6c-15.8 7.9-35\n 1.5-42.9-14.3s-1.5-35 14.3-42.9L152.4 384 17.7 316.6C1.9 308.7-4.5 289.5 3.4 273.7z",4,"ngIf"],["d","M319.6 0c7.5-.2 14.1 4.9 15.9 12.1l84 336 37.6-93.9c7.3-18.2 24.9-30.2 44.6-30.2L624\n 224c8.8 0 16 7.2 16 16s-7.2 16-16 16l-122.3 0c-6.5 0-12.4 4-14.9 10.1l-56 139.9c-2.6\n 6.4-9 10.5-15.9 10s-12.8-5.4-14.4-12.1l-78.7-315-82 410.2c-1.5 7.3-7.8 12.7-15.3\n 12.9s-14.1-4.9-15.9-12.1L150.5 268.1C148.8 261 142.4 256 135 256L16 256c-8.8\n 0-16-7.2-16-16s7.2-16 16-16l119 0c22 0 41.2 15 46.6 36.4l40.7 162.7 82-410.2C305.8\n 5.5 312.1 .2 319.6 0z"],["d","M197.9 253.9c12.9 6.4 24.7 14.8 35 25.2s18.8 22.2 25.2 35c105.8-30 156.7-79.5\n 181.5-126c25-46.8 27.3-97.6 22-137.7c-40.1-5.3-90.9-3-137.7 22c-46.5 24.8-96 75.8-126 181.5zM384\n 312.1l0 82.2c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1\n .2s-12.1-12.2-12.1-20.9l0-114.7c0-22.6-9-44.3-25-60.3s-37.7-25-60.3-25L24 288c-8.6\n 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.2\n 0C281.7-3.8 408.8-8.5 483.9 5.3c11.6 2.1 20.7 11.2 22.8 22.8c13.8 75.1 9.1 202.2-122.7\n 284zM28.3 511.9c-16 .4-28.6-12.2-28.2-28.2C1 446 7.7 379.7 42 345.5c34.4-34.4 90.1-34.4 124.5\n 0s34.4 90.1 0 124.5C132.3 504.3 66 511 28.3 511.9zm50.2-64.5c12.8-.7 31.2-3.7 41.3-13.7c11.4-11.4\n 11.4-30 0-41.4s-30-11.4-41.4 0c-10.1 10.1-13 28.5-13.7 41.3c-.5 8 5.9 14.3 13.9 13.9zM328 144a40\n 40 0 1 1 80 0 40 40 0 1 1 -80 0z"],["d","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6\n 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2\n 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-208z"],["d","M368 128c0 44.4-25.4 83.5-64 106.4l0 21.6c0 17.7-14.3 32-32 32l-96 0c-17.7\n 0-32-14.3-32-32l0-21.6c-38.6-23-64-62.1-64-106.4C80 57.3 144.5 0 224 0s144 57.3 144 128zM168 176a32\n 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM3.4 273.7c7.9-15.8\n 27.1-22.2 42.9-14.3L224 348.2l177.7-88.8c15.8-7.9 35-1.5 42.9 14.3s1.5 35-14.3 42.9L295.6 384l134.8\n 67.4c15.8 7.9 22.2 27.1 14.3 42.9s-27.1 22.2-42.9 14.3L224 419.8 46.3 508.6c-15.8 7.9-35\n 1.5-42.9-14.3s-1.5-35 14.3-42.9L152.4 384 17.7 316.6C1.9 308.7-4.5 289.5 3.4 273.7z"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"ol",1),e.Z7z(2,uy0,9,7,"li",2,e.Vm6),e.k0s()()),2&t&&(e.R7$(2),e.Dyx(l.statuses))},dependencies:[BL,_.YU,_.bT],styles:["svg[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px}"]})}}return n})();function py0(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function hy0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",3)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("formControl",c.versionControl)}}function gy0(n,a){if(1&n&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-status-selector",5)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._status")),e.R7$(2),e.Y8G("formControl",c.statusControl)("disabledStatuses",c.disabledStatuses)}}function _y0(n,a){if(1&n&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",6)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let Ly0=(()=>{class n{constructor(c,t){this.eventMessage=c,this.apiService=t,this.formChange=new e.bkB,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.disabledStatuses=[],this.FormControl=p.MJ,console.log("\u{1f504} Initializing GeneralInfoComponent")}get formGroup(){return this.form}get nameControl(){const c=this.formGroup.get("name");return c instanceof p.MJ?c:null}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}get versionControl(){const c=this.formGroup.get("version");return c instanceof p.MJ?c:null}get statusControl(){const c=this.formGroup.get("status");return c instanceof p.MJ?c:null}ngOnInit(){console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data?(console.log("Initializing form in update mode with data:",this.data),this.formGroup.addControl("name",new p.MJ(this.data.name,[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("status",new p.MJ(this.data.lifecycleStatus)),this.formGroup.addControl("description",new p.MJ(this.data.description,p.k0.maxLength(1e5))),this.formGroup.addControl("version",new p.MJ(this.data.version,[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3])),this.originalValue={name:this.data.name,status:this.data.lifecycleStatus,description:this.data.description,version:this.data.version},console.log("\u{1f4dd} Original value stored:",this.originalValue),g1.c.LAUNCH_VALIDATION_ENABLED&&this.data.id&&this.apiService.checkOfferingLaunch(this.data.id).then(c=>{c.canBeLaunched||(this.disabledStatuses=["Launched"])}).catch(()=>{this.disabledStatuses=["Launched"]})):(console.log("Initializing form in create mode"),this.formGroup.addControl("name",new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("status",new p.MJ("Active",[p.k0.required])),this.formGroup.addControl("description",new p.MJ("")),this.formGroup.addControl("version",new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]))),this.isEditMode&&this.formGroup.valueChanges.pipe(GG(500),(0,O1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const t=this.getDirtyFields(c);if(t.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l)}else this.hasBeenModified=!1})}ngOnDestroy(){console.log("\u{1f5d1}\ufe0f Destroying GeneralInfoComponent"),this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){return Object.keys(c).filter(t=>{const i=this.originalValue[t];return JSON.stringify(c[t])!==JSON.stringify(i)})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-general-info-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:4,vars:4,consts:[["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","offerName","id","prod-name","type","text","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["data-cy","offerVersion","id","prod-version","type","text",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[3,"formControl","disabledStatuses"],[3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,py0,4,4)(1,hy0,4,4)(2,gy0,4,5)(3,_y0,4,4),2&t&&(e.vxM(0,l.nameControl?0:-1),e.R7$(),e.vxM(1,l.versionControl?1:-1),e.R7$(),e.vxM(2,l.statusControl&&"update"===l.formType?2:-1),e.R7$(),e.vxM(3,l.descControl?3:-1))},dependencies:[p.X1,p.me,p.BC,p.l_,BL,s1.D9,me,my0]})}}return n})();function Cy0(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let zy0=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.destroy$=new S.B,this.freeLicenseSelected=!1,this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{if("UpdateOffer"===t.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={treatment:"License",description:this.descControl?.value||""},i=this.getDirtyFields(l);if(i.length>0){const u={subformType:"license",isDirty:!0,dirtyFields:i,originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",u),this.formChange.emit(u)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}})}get formGroup(){return this.form}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}ngOnInit(){if(console.log("\u{1f504} Initializing LicenseComponent"),console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data)if(console.log("\u{1f4dd} Data received:",this.data),this.data.productOfferingTerm&&Array.isArray(this.data.productOfferingTerm)){let c=this.data.productOfferingTerm?.find(t=>"License"==t.name);c?(this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(c.description)),this.originalValue={treatment:c.name,description:c.description},console.log("\u{1f4dd} Original value stored:",this.originalValue)):(this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ("")))}else this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(""));else this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(""));this.isEditMode&&this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.hasBeenModified=!0})}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying LicenseComponent"),this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={treatment:"License",description:this.descControl?.value||""},t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"license",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection");this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){const t=[];return this.originalValue&&(c.treatment!==this.originalValue.treatment&&t.push("treatment"),c.description!==this.originalValue.description&&t.push("description")),t}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-license-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[[1,"font-bold","text-lg","col-span-2","dark:text-white"],[3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,Cy0,4,4),2&t&&e.vxM(0,l.descControl?0:-1)},dependencies:[me,p.X1,p.BC,p.l_,s1.h,s1.D9]})}}return n})();const bE1=(n,a)=>a.id,sf=(n,a)=>({"break-all":n,"break-words":a});function My0(n,a){if(1&n&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function xy0(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function by0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function yy0(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo.status"))||null==(c=c.get("status"))?null:c.value)}}function Fy0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"markdown",13),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sf,l.hasLongWord(null==(c=l.productOfferForm.get("generalInfo.description"))?null:c.value,20),!l.hasLongWord(null==(c=l.productOfferForm.get("generalInfo.description"))?null:c.value,20)))("data",null==(t=l.productOfferForm.get("generalInfo.description"))?null:t.value)}}function vy0(n,a){if(1&n&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function ky0(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function wy0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function Sy0(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function Ny0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",17),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",18),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody")(17,"tr",19)(18,"td",20),e.EFF(19),e.k0s(),e.j41(20,"td",21),e.DNE(21,vy0,2,1,"span",8)(22,ky0,2,1)(23,wy0,2,1)(24,Sy0,2,1),e.k0s(),e.j41(25,"td",22),e.EFF(26),e.k0s()()()()()),2&n){let c,t,l,i;const u=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"CREATE_OFFER._catalog")),e.R7$(7),e.SpI(" ",e.bMT(9,10,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,12,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(15,14,"OFFERINGS._role")," "),e.R7$(4),e.Y8G("ngClass",e.l_i(16,sf,u.hasLongWord(null==(c=u.productOfferForm.get("catalogue"))?null:c.value.name,20),!u.hasLongWord(null==(c=u.productOfferForm.get("catalogue"))?null:c.value.name,20))),e.R7$(),e.SpI(" ",null==(t=u.productOfferForm.get("catalogue"))?null:t.value.name," "),e.R7$(2),e.vxM(21,"active"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?21:"Launched"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?22:"suspended"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?23:"terminated"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?24:-1),e.R7$(5),e.SpI(" ",null==(i=u.productOfferForm.get("catalogue"))||null==i.value.relatedParty||null==(i=i.value.relatedParty.at(0))?null:i.role," ")}}function Ey0(n,a){if(1&n&&(e.j41(0,"tr",19)(1,"td",20),e.EFF(2),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.nI1(5,"date"),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(6,sf,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",e.i5U(5,3,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Dy0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",18),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ey0,6,9,"tr",19,bE1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._category")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._last_update")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("category"))?null:c.value)}}function Ty0(n,a){if(1&n&&(e.j41(0,"tr",19)(1,"td",23),e.EFF(2),e.k0s(),e.j41(3,"td",24),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,sf,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sf,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function Ry0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",18),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ty0,5,10,"tr",19,bE1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._price_plans")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._description")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("pricePlans"))?null:c.value)}}function Ay0(n,a){if(1&n&&(e.j41(0,"label",26),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",27),e.nrm(4,"markdown",13),e.k0s()),2&n){let c,t;const l=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sf,l.hasLongWord(null==(c=l.productOfferForm.get("license"))||null==(c=c.get("description"))?null:c.value,20),!l.hasLongWord(null==(c=l.productOfferForm.get("license"))||null==(c=c.get("description"))?null:c.value,20)))("data",null==(t=l.productOfferForm.get("license"))||null==(t=t.get("description"))?null:t.value)}}function Iy0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div")(4,"label",25),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"label",3),e.EFF(8),e.k0s(),e.DNE(9,Ay0,5,8),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.R7$(),e.JRh(e.bMT(2,5,"CREATE_OFFER._license")),e.R7$(4),e.JRh(e.bMT(6,7,"CREATE_OFFER._treatment")),e.R7$(2),e.Y8G("ngClass",e.l_i(9,sf,i.hasLongWord(null==(c=i.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20),!i.hasLongWord(null==(c=i.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20))),e.R7$(),e.SpI(" ",null==(t=i.productOfferForm.get("license"))||null==(t=t.get("treatment"))?null:t.value," "),e.R7$(),e.vxM(9,""!==(null==(l=i.productOfferForm.get("license"))||null==(l=l.get("description"))?null:l.value)?9:-1)}}let Py0=(()=>{class n{ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--- INFO SUMMARY"),console.log(c.productOfferForm),console.log(c.productOfferForm.get("generalInfo")?.get("status")?.value),console.log(c.productOfferForm.get("catalogue")?.value),console.log(c.productOfferForm.get("category")?.value)})()}get isLicenseEmpty(){const c=this.productOfferForm.get("license")?.value;return!c||"object"==typeof c&&0===Object.keys(c).length}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-offer-summary"]],inputs:{productOfferForm:"productOfferForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:27,vars:25,consts:[[1,"m-8"],[1,"mb-4","grid","grid-cols-2","gap-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","dark:bg-secondary-300","dark:text-white","border","dark:border-secondary-200"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],["for","treatment",1,"font-bold","text-base","dark:text-white"],[1,"font-bold","text-base","dark:text-white"],[1,"px-4","py-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","rounded-lg","p-4"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div")(3,"label",2),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"label",3),e.EFF(7),e.k0s()(),e.j41(8,"div")(9,"label",4),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"label",5),e.EFF(13),e.k0s()()(),e.j41(14,"div",6)(15,"label",7),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.DNE(18,My0,2,1,"span",8)(19,xy0,2,1)(20,by0,2,1)(21,yy0,2,1),e.k0s(),e.DNE(22,Fy0,5,8)(23,Ny0,27,19)(24,Dy0,16,9)(25,Ry0,16,9)(26,Iy0,10,12),e.k0s()),2&t){let i,u,C,b,T,W,u1,a1,T1;e.R7$(4),e.JRh(e.bMT(5,13,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(19,sf,l.hasLongWord(null==(i=l.productOfferForm.get("generalInfo.name"))?null:i.value,20),!l.hasLongWord(null==(i=l.productOfferForm.get("generalInfo.name"))?null:i.value,20))),e.R7$(),e.SpI(" ",null==(u=l.productOfferForm.get("generalInfo.name"))?null:u.value," "),e.R7$(3),e.JRh(e.bMT(11,15,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("ngClass",e.l_i(22,sf,l.hasLongWord(null==(C=l.productOfferForm.get("generalInfo.version"))?null:C.value,20),!l.hasLongWord(null==(C=l.productOfferForm.get("generalInfo.version"))?null:C.value,20))),e.R7$(),e.SpI(" ",null==(b=l.productOfferForm.get("generalInfo.version"))?null:b.value," "),e.R7$(3),e.JRh(e.bMT(17,17,"CREATE_OFFER._status")),e.R7$(2),e.vxM(18,"Active"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?18:"Launched"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?19:"Retired"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?20:"Obsolete"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?21:-1),e.R7$(4),e.vxM(22,""!=(null==(W=l.productOfferForm.get("generalInfo.description"))?null:W.value)?22:-1),e.R7$(),e.vxM(23,null!=(u1=l.productOfferForm.get("catalogue"))&&u1.value?23:-1),e.R7$(),e.vxM(24,null!=(a1=l.productOfferForm.get("category"))&&a1.value?24:-1),e.R7$(),e.vxM(25,null!=(T1=l.productOfferForm.get("pricePlans"))&&T1.value?25:-1),e.R7$(),e.vxM(26,l.isLicenseEmpty?-1:26)}},dependencies:[s1.h,s1.D9,N0,_.YU,BL,_.vh]})}}return n})();function jy0(n,a){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_OFFER._no_prod_spec")," "))}function $y0(n,a){1&n&&(e.j41(0,"div",5),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function Oy0(n,a){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function By0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",18),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(!i.isEditMode&&i.toggleSelection(l))}),e.j41(1,"td",19)(2,"input",20),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(4);return l.stopPropagation(),e.Njj(!u.isEditMode&&u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",21),e.EFF(4),e.k0s(),e.j41(5,"td",22)(6,"span",23),e.EFF(7),e.nI1(8,"translate"),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"td",22)(11,"span",23),e.EFF(12),e.k0s()(),e.j41(13,"td",24),e.EFF(14),e.nI1(15,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.Y8G("ngClass",t.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",t.isSelected(c.id))("disabled",t.isEditMode),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",t.getBundleClass(c.isBundle)),e.R7$(),e.SpI(" ",c.isBundle?e.bMT(8,9,"OFFERINGS._bundle"):e.bMT(9,11,"OFFERINGS._simple")," "),e.R7$(4),e.Y8G("ngClass",t.getStatusClass(c.lifecycleStatus)),e.R7$(),e.SpI(" ",c.lifecycleStatus," "),e.R7$(2),e.SpI(" ",e.i5U(15,13,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Vy0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"table",11)(2,"thead",12)(3,"tr"),e.nrm(4,"th",13),e.j41(5,"th",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",14),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",15),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",16),e.Z7z(18,By0,16,16,"tr",17,e.Vm6),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(6),e.JRh(e.bMT(7,4,"OFFERINGS._name")),e.R7$(3),e.JRh(e.bMT(10,6,"OFFERINGS._type")),e.R7$(3),e.JRh(e.bMT(13,8,"OFFERINGS._status")),e.R7$(3),e.SpI("",e.bMT(16,10,"OFFERINGS._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function Uy0(n,a){1&n&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30),e.k0s()())}function Gy0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextProdSpec())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",26),e.nrm(5,"path",27),e.k0s()(),e.DNE(6,Uy0,3,0,"div",28),e.k0s()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("disabled",c.loadingProdSpec_more),e.R7$(),e.SpI(" ",e.bMT(3,3,"CREATE_PROD_SPEC._load_more")," "),e.R7$(4),e.vxM(6,c.loadingProdSpec_more?6:-1)}}function Hy0(n,a){if(1&n&&e.DNE(0,Oy0,7,3,"div",0)(1,Vy0,20,12)(2,Gy0,7,5,"div",9),2&n){const c=e.XpG(2);e.vxM(0,0==c.prodSpecs.length?0:1),e.R7$(2),e.vxM(2,c.prodSpecPageCheck?2:-1)}}function Yy0(n,a){if(1&n&&e.DNE(0,$y0,6,0,"div",5)(1,Hy0,3,2),2&n){const c=e.XpG();e.vxM(0,c.loadingProdSpec?0:1)}}let qy0=(()=>{class n{constructor(c,t){this.prodSpecService=c,this.paginationService=t,this.bundleChecked=!1,this.formChange=new e.bkB,this.selectedProdSpecInternal=null,this.originalValue=null,this.formSubscription=null,this.hasBeenModified=!1,this.isEditMode=!1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.FormControl=p.MJ,this.onChange=()=>{},this.onTouched=()=>{},console.log("\u{1f504} Initializing ProdSpecComponent")}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,yield c.getSellerProdSpecs(!1)})()}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying ProdSpecComponent"),this.formSubscription&&this.formSubscription.unsubscribe(),this.isEditMode&&this.hasBeenModified){const c=this.getDirtyFields();if(c.length>0){const t={subformType:"productSpecification",isDirty:!0,dirtyFields:c,originalValue:this.originalValue,currentValue:this.selectedProdSpecInternal};console.log("\u{1f680} Emitting final change state:",t),this.formChange.emit(t)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){c||(t.loadingProdSpec=!0);let l={filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,l,t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService));t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page}finally{t.loadingProdSpec=!1,t.loadingProdSpec_more=!1}})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){c.loadingProdSpec_more=!0,yield c.getSellerProdSpecs(!0)})()}getStatusClass(c){return{Active:"text-blue-600 border-blue-400",Launched:"text-green-500 border-green-500",Retired:"text-yellow-500 border-yellow-500",Obsolete:"text-red-500 border-red-500"}[c]||"text-gray-500 border-gray-400"}getBundleClass(c){return c?"text-green-500 border-green-500":"text-blue-600 border-blue-400"}writeValue(c){console.log("\u{1f4dd} Writing value:",c),this.selectedProdSpecInternal=c,this.isEditMode&&(this.originalValue=c,this.hasBeenModified=!1),this.onChange(c)}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}isSelected(c){return this.selectedProdSpecInternal?.id===c}toggleSelection(c){this.isEditMode?console.log("\u{1f4dd} Cannot change product spec in update mode"):(console.log("\u{1f504} Toggling selection:",c),this.selectedProdSpecInternal=this.selectedProdSpecInternal?.id===c.id?null:c,this.onChange(this.selectedProdSpecInternal),this.onTouched())}getRowClass(c){return c===this.selectedProdSpecInternal?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}getDirtyFields(){return this.selectedProdSpecInternal&&this.originalValue?Object.keys(this.selectedProdSpecInternal).filter(c=>{const l=this.originalValue[c];return JSON.stringify(this.selectedProdSpecInternal[c])!==JSON.stringify(l)}):[]}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-prod-spec-form"]],inputs:{formType:"formType",data:"data",partyId:"partyId",bundleChecked:"bundleChecked"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4","mb-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","prodSpecs"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","prodSpecSelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked","disabled"],["data-cy","offerProductSpecName",1,"px-6","py-4"],[1,"px-6","py-4"],[1,"text-xs","font-medium","px-2.5","py-0.5","rounded","border",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","border","rounded-lg","hover:bg-gray-200",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading",1,"flex","items-center","justify-center","ml-2"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M93.9676 39.0409C96.393 38.4038...","fill","currentFill"]],template:function(t,l){1&t&&e.DNE(0,jy0,9,3,"div",0)(1,Yy0,2,1),2&t&&e.vxM(0,l.bundleChecked?0:1)},dependencies:[_.vh,s1.h,s1.D9,_.YU]})}}return n})();const Xy0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Wy0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function Jy0(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_OFFER._update")," "))}function Qy0(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_OFFER._create")," "))}function Zy0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function Ky0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep.id===c.id),e.R7$(),e.AVh("bg-primary-100",l.currentStep.id===c.id)("text-white",l.currentStep.id===c.id),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function eF0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function cF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-general-info-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.generalInfo)}}function tF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-prod-spec-form",25),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("partyId",c.partyId)("formType",c.formType)}}function nF0(n,a){if(1&n&&e.nrm(0,"app-catalogue",26),2&n){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function lF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-category-form",27),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)}}function sF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-license-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function aF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-edc-contract-definition-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.edcContractDefinition)}}function oF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-plans-form",28),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){let c;const t=e.XpG(3);e.Y8G("form",t.productOfferForm)("prodSpec",null==(c=t.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function iF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-procurement-mode",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.procurementMode)}}function rF0(n,a){if(1&n&&e.nrm(0,"app-offer-summary",29),2&n){const c=e.XpG(3);e.Y8G("productOfferForm",c.productOfferForm)}}function dF0(n,a){if(1&n&&(e.j41(0,"div",23),e.DNE(1,cF0,1,3)(2,tF0,1,3)(3,nF0,1,1)(4,lF0,1,2)(5,sF0,1,3)(6,aF0,1,3)(7,oF0,1,3)(8,iF0,1,3)(9,rF0,1,1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,(c=t.currentStep.id)===t.OfferStep.GENERAL_INFO?1:c===t.OfferStep.PROD_SPEC?2:c===t.OfferStep.CATALOGUE?3:c===t.OfferStep.CATEGORY?4:c===t.OfferStep.LICENSE?5:c===t.OfferStep.CONTRACT_DEFINITION?6:c===t.OfferStep.PRICE?7:c===t.OfferStep.PROCUREMENT?8:c===t.OfferStep.SUMMARY?9:-1)}}function fF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.isFormValid||c.loading)("ngClass",c.loading||"update"===c.formType&&!c.isFormValid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ","create"===c.formType?"Create Offer":"Update Offer"," ")}}function uF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,Ky0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,eF0,6,0,"div",2)(7,dF0,10,1),e.j41(8,"div",12)(9,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStepIdx-1))}),e.qSk(),e.j41(10,"svg",14),e.nrm(11,"path",15),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.joV(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStepIdx+1))}),e.EFF(15),e.nI1(16,"translate"),e.qSk(),e.j41(17,"svg",17),e.nrm(18,"path",18),e.k0s()(),e.DNE(19,fF0,2,3,"button",19),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.productOfferForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.currentStep.label),e.R7$(),e.vxM(6,c.loading?6:7),e.R7$(3),e.Y8G("disabled",0===c.currentStepIdx)("ngClass",e.l_i(14,Xy0,0!==c.currentStepIdx,0===c.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(13,10,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStepIdx===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStepIdx))("ngClass",e.l_i(17,Wy0,c.currentStepIdx!==c.steps.length-1&&("create"!==c.formType||c.validateCurrentStep()||c.canNavigate(c.currentStepIdx)),c.currentStepIdx===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStepIdx))),e.R7$(),e.SpI(" ",e.bMT(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,"create"===c.formType&&"summary"===c.currentStep.id||"update"===c.formType?19:-1)}}function mF0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",31)(2,"div",32),e.qSk(),e.j41(3,"svg",33),e.nrm(4,"path",34),e.k0s(),e.joV(),e.j41(5,"h3",35),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",36),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}var S6=function(n){return n.GENERAL_INFO="general_info",n.PROD_SPEC="prod_spec",n.CATALOGUE="catalogue",n.CATEGORY="category",n.LICENSE="license",n.CONTRACT_DEFINITION="contract_definition",n.PRICE="price",n.PROCUREMENT="procurement",n.REPLICATION="replication",n.SUMMARY="summary",n}(S6||{});let _f1=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}get dspEnable(){return g1.c.DSP_ENABLED&&g1.c.DATA_SPACE_ENABLED}constructor(c,t,l){this.api=c,this.eventMessage=t,this.fb=l,this.formType="create",this.offer={},this.highestStepIdx=0,this.contractDefinitionStep={label:"Contract Definition",id:S6.CONTRACT_DEFINITION},this.steps=[{label:"General Info",id:S6.GENERAL_INFO},{label:"Product Specification",id:S6.PROD_SPEC},{label:"Catalogue",id:S6.CATALOGUE},{label:"Category",id:S6.CATEGORY},{label:"License",id:S6.LICENSE},{label:"Price Plans",id:S6.PRICE},{label:"Procurement Mode",id:S6.PROCUREMENT},{label:"Summary",id:S6.SUMMARY}],this.currentStepIdx=0,this.OfferStep=S6,this.isFormValid=!1,this.pricePlans=[],this.errorMessage="",this.showError=!1,this.loading=!1,this.bundleChecked=!1,this.offersBundle=[],this.loadingData=!1,this.formChanges={},this.formSubscription=null,this.destroy$=new S.B,this.hasChanges=!1,this.productOfferForm=this.fb.group({generalInfo:this.fb.group({}),prodSpec:new p.MJ(null,[p.k0.required]),catalogue:new p.MJ(null,[p.k0.required]),category:new p.MJ([]),license:this.fb.group({}),edcContractDefinition:this.fb.group({}),pricePlans:new p.MJ([]),procurementMode:this.fb.group({}),replicationMode:this.fb.group({})}),this.productOfferForm.statusChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{this.isFormValid=!!(this.productOfferForm.controls.generalInfo.valid&&this.productOfferForm.get("procurementMode")?.valid&&this.productOfferForm.get("edcContractDefinition")?.valid)}),this.formSubscription=this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if(console.log("subform changed-----"),"SubformChange"===i.type){const u=i.value;console.log("Received subform change:",u),this.handleSubformChange(u)}})}handleSubformChange(c){console.log("\u{1f4dd} Subform change received:",c),this.formChanges[c.subformType]=c,this.hasChanges=Object.keys(this.formChanges).length>0,console.log("\u{1f4dd} Has changes:",this.hasChanges),console.log(this.formChanges[c.subformType])}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}goToStep(c){"create"===this.formType&&c>this.currentStepIdx&&!this.validateCurrentStep()||("prod_spec"===this.currentStep.id&&(this.isdEdcCompatible()&&this.dspEnable?this.enableContractDefinitionStep():this.disableContractDefinitionStep()),this.currentStepIdx=c,c>this.highestStepIdx&&(this.highestStepIdx=c))}validateCurrentStep(){switch(this.currentStep.id){case S6.GENERAL_INFO:return this.productOfferForm.get("generalInfo")?.valid||!1;case S6.PROD_SPEC:return!!this.productOfferForm.get("prodSpec")?.value;case S6.CATALOGUE:return!!this.productOfferForm.get("catalogue")?.value;case S6.CATEGORY:return!0;case S6.LICENSE:return this.productOfferForm.get("license")?.valid||!1;case S6.CONTRACT_DEFINITION:return this.productOfferForm.get("edcContractDefinition")?.valid||!1;case S6.PRICE:return!0;case S6.PROCUREMENT:return this.productOfferForm.get("procurementMode")?.valid||!1;default:return!0}}canNavigate(c){return"create"==this.formType?this.productOfferForm.get("generalInfo")?.valid&&c<=this.currentStepIdx||this.productOfferForm.get("generalInfo")?.valid&&c<=this.highestStepIdx:this.isFormValid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}enableContractDefinitionStep(){if(this.steps.some(l=>l.id===S6.CONTRACT_DEFINITION))return;const t=this.steps.findIndex(l=>l.id===S6.LICENSE);this.steps=[...this.steps.slice(0,t+1),this.contractDefinitionStep,...this.steps.slice(t+1)]}disableContractDefinitionStep(){this.steps=this.steps.filter(c=>c.id!==S6.CONTRACT_DEFINITION)}submitForm(){"update"===this.formType?(this.eventMessage.emitUpdateOffer(!0),console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",this.formChanges),this.updateOffer()):this.createOffer()}ngOnInit(){var c=this;return(0,C1.A)(function*(){"update"===c.formType&&c.offer&&(c.loadingData=!0,c.steps=c.steps.filter(t=>"catalogue"!==t.id),yield c.loadOfferData(),c.loadingData=!1)})()}loadOfferData(){var c=this;return(0,C1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.selectedProdSpec=l});return function(l){return t.apply(this,arguments)}}()),c.productOfferForm.patchValue({prodSpec:c.selectedProdSpec||null})),c.offer.category&&c.productOfferForm.patchValue({category:c.offer.category||null}),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const t=c.offer.productOfferingTerm.find(i=>"License"===i.name);c.productOfferForm.patchValue(t?{license:{treatment:"License",description:t.description}}:{license:{treatment:"License",description:""}});const l=c.offer.productOfferingTerm.find(i=>"procurement"===i.name);if(l){const i={id:l.description,name:l.description};console.log("Setting procurement value:",i),c.productOfferForm.patchValue({procurementMode:i})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}});if(g1.c.DSP_ENABLED){const i=c.offer.productOfferingTerm.find(u=>"edc:contractDefinition"===u.name)||{name:"edc:contractDefinition"};c.productOfferForm.patchValue({contractDefinition:{name:i.name,accessPolicy:i.accessPolicy?JSON.stringify(i.accessPolicy):"",contractPolicy:i.contractPolicy?JSON.stringify(i.contractPolicy):""}})}}if(Array.isArray(c.offer.productOfferingPrice)&&c.offer.productOfferingPrice.length>0){for(let t of c.offer.productOfferingPrice){let l=[];const i=yield c.api.getOfferingPrice(t.id);console.log("-- price plan ----"),console.log(i);let u=!1;u=!!(i?.prodSpecCharValueUse&&i?.prodSpecCharValueUse.length>0);let C={id:i.id,name:i.name,description:i.description,lifecycleStatus:i.lifecycleStatus,paymentOnline:i?.paymentOnline??!!i?.bundledPopRelationship,productProfile:u?c.mapProductProfile(i?.prodSpecCharValueUse||[]):[]};if(i.bundledPopRelationship)for(let b=0;bthis.fb.group({id:[t.id],name:[t.name],selectedValue:[t.productSpecCharacteristicValue.find(l=>l.isDefault)?.value||null,p.k0.required]})))})}handleApiError(c){console.error("Error while creating offer price!",c),this.errorMessage=c?.error?.error?"Error: "+c.error.error:"Error creating offer price!",this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}createPriceAlteration(c,t){var l=this;return(0,C1.A)(function*(){const i={name:"discount",priceType:"discount",validFor:{startDateTime:$2()().toISOString(),endDateTime:$2()().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?i.percentage=c.discountValue:i.price={value:c.discountValue,unit:t},yield(0,e0.s)(l.api.postOfferingPrice(i))})()}createPriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("component format"),console.log(c);let i={name:c.name,isBundle:!1,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:t,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},u=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(u)&&(i.recurringChargePeriodType=c.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===u&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},i["@baseType"]="ProductOfferingPrice",i["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",i.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(i)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(i.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(i.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const b=yield l.createPriceAlteration(c,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("create price comp"),console.log(i);const C=yield(0,e0.s)(l.api.postOfferingPrice(i));return{id:C.id,href:C.id,name:C.name}})()}updatePriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("update function"),console.log(c),console.log(t),console.log("------");let i={name:c.newValue.name,isBundle:!1,description:c.newValue.description,lifecycleStatus:c.newValue.lifecycleStatus,priceType:c.newValue.priceType,price:{unit:t,value:c.newValue.price}};if(["recurring","recurring-prepaid"].includes(c.newValue.priceType)&&(i.recurringChargePeriodType=c.newValue.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===c.newValue.priceType&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.newValue.usageUnit},i.usageSpecId=c.newValue.usageSpecId,console.log("----- here"),console.log(i)),c.newValue.selectedCharacteristic&&(i.prodSpecCharValueUse=c.newValue.selectedCharacteristic),c.newValue.unitOfMeasure&&(i.unitOfMeasure=c.newValue.usageUnit),null!=c.newValue.discountValue){let C={discountValue:c.newValue.discountValue};c.newValue.discountUnit&&(C.discountUnit=c.newValue.discountUnit),c.newValue.discountDuration&&(C.discountDuration=c.newValue.discountDuration),c.newValue.discountDurationUnit&&(C.discountDurationUnit=c.newValue.discountDurationUnit);const b=yield l.createPriceAlteration(C,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("update price comp"),console.log(i);const u=yield(0,e0.s)(l.api.updateOfferingPrice(i,c.id));return{id:u.id,href:u.id,name:u.name}})()}createBundledPricePlan(c,t){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:t};return c?.priceType?"custom"==c?.priceType&&(l.priceType="custom"):c?.newValue?.priceType&&"custom"==c?.newValue?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}updatePricePlan(c,t,l){var i=this;return(0,C1.A)(function*(){console.log("plan info"),console.log(c),console.log(c.id),console.log(t);let u={name:c.newValue.name,isBundle:!0,bundledPopRelationship:t};return l.includes("description")&&(u.description=c.newValue.description),l.includes("prodSpecCharValueUse")&&null!=c.newValue.prodSpecCharValueUse&&(u.prodSpecCharValueUse=c.newValue.prodSpecCharValueUse.map(b=>({...b,productSpecCharacteristicValue:b.productSpecCharacteristicValue.filter(T=>T.isDefault)}))),yield(0,e0.s)(i.api.updateOfferingPrice(u,c.id))})()}createOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0;const t=c.productOfferForm.value.pricePlans;if(0!==t.length)for(let l=0;lc.createPriceComponent(u1,i.currency))),T=c.createBundledPricePlan(i,b);C=(yield(0,e0.s)(c.api.postOfferingPrice(T))).id,c.productOfferForm.value.pricePlans[l].id=C,l===t.length-1&&c.saveOfferInfo()}catch(C){c.handleApiError(C)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,t=c.category.map(T=>({id:T.id,href:T.id})),l=c.pricePlans.map(T=>({id:T.id,href:T.id})),i=c.generalInfo,C={name:i.name,description:i.description||"",lifecycleStatus:"update"===this.formType?i.status:"Active",isBundle:this.bundleChecked,bundledProductOffering:this.offersBundle,place:[],version:i.version,...c.procurementMode.extBillingEnabled&&c.procurementMode.plaSpecId?{pricingLogicAlgorithm:[{name:"external billing",plaSpecId:c.procurementMode.plaSpecId}]}:{},category:t,productOfferingPrice:l,validFor:{startDateTime:(new Date).toISOString()},productOfferingTerm:[{name:"License",description:c.license.description||""},{name:"procurement",description:c.procurementMode.mode}]};if(this.dspEnable&&this.isdEdcCompatible()){const T=c.edcContractDefinition;C.productOfferingTerm.push({name:T.name,contractPolicy:T.contractPolicy?JSON.parse(T.contractPolicy):"",accessPolicy:T.accessPolicy?JSON.parse(T.accessPolicy):"","@schemaLocation":g1.c.DSP_CONTRACT_DEFINITION_SCHEMA}),C.externalId=L4(),C["@schemaLocation"]=g1.c.DSP_SCHEMA}!this.bundleChecked&&"create"===this.formType&&(C.productSpecification={id:c.prodSpec.id,href:c.prodSpec.href}),this.offerToCreate=C,("create"===this.formType?this.api.postProductOffering(C,c.catalogue.id):this.api.updateProductOffering(C,this.offer.id)).subscribe({next:T=>{console.log("product offer created:"),console.log(T),this.loading=!1,this.goBack()},error:T=>{console.error("Error during offer save/update:",T),this.errorMessage=T?.error?.error?"Error: "+T.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}goBack(){this.eventMessage.emitSellerOffer(!0)}addToISOString(c,t){const i={day:"days",week:"weeks",month:"months",year:"years"}[t.toLowerCase()];if(i)return $2()().add(c,i).toISOString();throw new Error(`Invalid unit: ${t}. Must be one of day, week, month, or year.`)}calculateDiscountDuration(c,t){const l=$2()(c.startDateTime);return $2()(c.endDateTime).diff(l,t)}updateOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0,console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const t={name:c.offer.name,description:c.offer.description,lifecycleStatus:c.offer.lifecycleStatus,version:c.offer.version,category:c.offer.category,productOfferingPrice:c.offer.productOfferingPrice.map(l=>({id:l.id,href:l.href})),validFor:c.offer.validFor,productOfferingTerm:c.offer.productOfferingTerm};for(const[l,i]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,i),l){case"generalInfo":t.name=i.currentValue.name,t.description=i.currentValue.description,t.version=i.currentValue.version,t.lifecycleStatus=i.currentValue.status;break;case"productSpecification":t.productSpecification={id:i.currentValue.id,href:i.currentValue.id};break;case"category":t.category=i.currentValue.map(T=>({id:T.id,href:T.id}));break;case"license":const u=t.productOfferingTerm.find(T=>"License"===T.name);u?u.description=i.currentValue.description:t.productOfferingTerm.unshift({name:"License",description:i.currentValue.description});break;case"pricePlans":t.productOfferingPrice=i.currentValue.map(T=>({id:T.id,href:T.id})),console.log("Cambio en el plan de precios"),console.log(t.productOfferingPrice),console.log(i.modifiedPricePlans);let C=i.modifiedPricePlans;for(let T=0;T0){for(let u1=0;u10)for(let u1=0;u10),console.log(C[T].priceComponents.modified[u1].id==C[T].id),C[T].priceComponents.modified[u1].id==C[T].id&&!C[T]?.oldValue.isBundle&&C[T].priceComponents.added.length>0){console.log("Si entra en el check");let a1=yield c.createPriceComponent(C[T].priceComponents.modified[u1],C[T]?.newValue.currency);W.push(a1)}else if(C[T].priceComponents.modified[u1].id!=C[T].id){let a1=yield c.updatePriceComponent(C[T].priceComponents.modified[u1],C[T]?.newValue.currency);W.push(a1)}console.log("The following price comp has been updated:"),console.log(C[T].priceComponents.modified[u1])}if(C[T].id.startsWith("temp-id")){let u1=yield c.createBundledPricePlan(C[T],W);const a1=yield(0,e0.s)(c.api.postOfferingPrice(u1));let T1=t.productOfferingPrice.findIndex(Y1=>Y1.id===C[T].id);t.productOfferingPrice[T1].id=a1.id,t.productOfferingPrice[T1].href=a1.id,console.log("New price plan"),console.log(u1)}else{let u1=yield c.updatePricePlan(C[T],W,C[T].modifiedFields);console.log("Modified price plan"),console.log(u1)}}break;case"procurement":const b=t.productOfferingTerm.find(T=>"procurement"===T.name);b?b.description=i.currentValue.id:t.productOfferingTerm.push({name:"procurement",description:i.currentValue.id}),i.currentValue.extBillingEnabled&&i.currentValue.plaSpecId?t.pricingLogicAlgorithm=[{name:"external billing",plaSpecId:i.currentValue.plaSpecId}]:i.originalValue.extBillingEnabled&&!i.currentValue.extBillingEnabled&&(t.pricingLogicAlgorithm=[]);break;case"contractDefinition":if(i.currentValue.dspCompatible){const T=t.productOfferingTerm.find(W=>"edc:contractDefinition"===W.name);T?(T.accessPolicy=JSON.parse(i.currentValue.accessPolicy),T.contractPolicy=JSON.parse(i.currentValue.contractPolicy)):t.productOfferingTerm.push({name:i.currentValue.name,contractPolicy:i.currentValue.contractPolicy?JSON.parse(i.currentValue.contractPolicy):"",accessPolicy:i.currentValue.accessPolicy?JSON.parse(i.currentValue.accessPolicy):"","@schemaLocation":g1.c.DSP_CONTRACT_DEFINITION_SCHEMA})}else t.productOfferingTerm=t.productOfferingTerm.filter(T=>"edc:contractDefinition"!==T.name)}Object.keys(t).forEach(l=>{null==t[l]&&delete t[l]}),console.log("\u{1f4dd} Final update payload:",t);try{yield(0,e0.s)(c.api.updateProductOffering(t,c.offer.id)),console.log("\u2705 Offer updated successfully"),c.loading=!1,c.goBack()}catch(l){console.error("\u274c Error updating offer:",l),c.errorMessage=l?.error?.error?"Error: "+l.error.error:"An error occurred while updating the offer!",c.loading=!1,c.showError=!0,setTimeout(()=>c.showError=!1,3e3)}})()}isdEdcCompatible(){const c=this.productOfferForm.controls.prodSpec.value;return c&&c.externalId}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-offer-form"]],inputs:{formType:"formType",offer:"offer",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],["data-cy","offerSteps",1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"flex","justify-end","mt-6","space-x-4"],["data-cy","offerPrevious",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","offerNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[1,"md:p-8"],[3,"formChange","data","formType","form"],["formControlName","prodSpec",3,"formChange","data","partyId","formType"],["formControlName","catalogue",3,"partyId"],["formControlName","category",3,"formChange","data","formType"],[3,"formChange","form","prodSpec","custom"],[3,"productOfferForm"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,Jy0,3,3,"h2",1)(2,Qy0,3,3)(3,Zy0,6,0,"div",2)(4,uF0,20,20),e.k0s(),e.DNE(5,mF0,9,1,"div",3)),2&t&&(e.R7$(),e.vxM(1,"update"===l.formType?1:2),e.R7$(2),e.vxM(3,l.loadingData?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[Ly0,s1.h,s1.D9,qy0,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,ey0,zy0,zE1,Pb0,ME1,Py0,_.YU,oy0]})}}return n})();function pF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmCancel())}),e.EFF(1," Cancel "),e.k0s()}}function hF0(n,a){1&n&&(e.j41(0,"div",11),e.nrm(1,"div",12),e.k0s())}function gF0(n,a){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",c.error," ")}}function _F0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27)(1,"div",28)(2,"div")(3,"label",29),e.EFF(4," Party ID "),e.k0s(),e.nrm(5,"input",30),e.k0s(),e.j41(6,"div")(7,"label",29),e.EFF(8," Party Type "),e.k0s(),e.nrm(9,"input",31),e.k0s()(),e.j41(10,"button",32),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeRelatedParty(l))}),e.EFF(11," Remove Party "),e.k0s()()}if(2&n){const c=a.index;e.Y8G("formGroupName",c),e.R7$(3),e.Y8G("for","partyId"+c),e.R7$(2),e.Y8G("id","partyId"+c),e.R7$(2),e.Y8G("for","partyType"+c),e.R7$(2),e.Y8G("id","partyType"+c)}}function LF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27)(1,"div")(2,"label",29),e.EFF(3," State "),e.k0s(),e.j41(4,"select",33)(5,"option",34),e.EFF(6,"Select State"),e.k0s(),e.j41(7,"option",35),e.EFF(8,"Draft"),e.k0s(),e.j41(9,"option",36),e.EFF(10,"Pending"),e.k0s(),e.j41(11,"option",37),e.EFF(12,"Accepted"),e.k0s(),e.j41(13,"option",38),e.EFF(14,"Cancelled"),e.k0s()()(),e.j41(15,"button",32),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeQuoteItem(l))}),e.EFF(16," Remove Item "),e.k0s()()}if(2&n){const c=a.index;e.Y8G("formGroupName",c),e.R7$(2),e.Y8G("for","itemState"+c),e.R7$(2),e.Y8G("id","itemState"+c)}}function CF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",14),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(1,"div",15)(2,"div")(3,"label",16),e.EFF(4," Description "),e.k0s(),e.j41(5,"div",17),e.nrm(6,"textarea",18),e.k0s()(),e.j41(7,"div")(8,"h3",19),e.EFF(9,"Related Parties"),e.k0s(),e.j41(10,"div",20),e.DNE(11,_F0,12,5,"div",21),e.k0s(),e.j41(12,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addRelatedParty())}),e.EFF(13," Add Related Party "),e.k0s()(),e.j41(14,"div")(15,"h3",19),e.EFF(16,"Quote Items"),e.k0s(),e.j41(17,"div",23),e.DNE(18,LF0,17,3,"div",21),e.k0s(),e.j41(19,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addQuoteItem())}),e.EFF(20," Add Quote Item "),e.k0s()(),e.j41(21,"div",24)(22,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmCancel())}),e.EFF(23," Cancel "),e.k0s(),e.j41(24,"button",26),e.EFF(25),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.quoteForm),e.R7$(11),e.Y8G("ngForOf",c.relatedPartyArray.controls),e.R7$(7),e.Y8G("ngForOf",c.quoteItemArray.controls),e.R7$(6),e.Y8G("disabled",c.quoteForm.invalid||c.isSubmitting),e.R7$(),e.SpI(" ",c.isSubmitting?"Saving...":"Save Quote"," ")}}let Lf1=(()=>{class n{constructor(c,t,l,i,u){this.formBuilder=c,this.quoteService=t,this.router=l,this.route=i,this.notificationService=u,this.isEditMode=!1,this.isSubmitting=!1,this.isLoading=!1,this.error=null,this.showCancelConfirm=!1,this.quoteForm=this.formBuilder.group({description:[""],relatedParty:this.formBuilder.array([]),quoteItem:this.formBuilder.array([])})}ngOnInit(){const c=this.route.snapshot.paramMap.get("id");if(c){this.isEditMode=!0;const t=decodeURIComponent(c);this.loadQuote(t)}else this.addRelatedParty(),this.addQuoteItem()}get relatedPartyArray(){return this.quoteForm.get("relatedParty")}get quoteItemArray(){return this.quoteForm.get("quoteItem")}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:t=>{for(this.quoteForm.patchValue({description:t.description});this.relatedPartyArray.length;)this.relatedPartyArray.removeAt(0);for(;this.quoteItemArray.length;)this.quoteItemArray.removeAt(0);t.relatedParty?.forEach(l=>{this.relatedPartyArray.push(this.formBuilder.group({id:[l.id],"@type":[l["@type"]]}))}),t.quoteItem?.forEach(l=>{this.quoteItemArray.push(this.formBuilder.group({state:[l.state]}))}),this.isLoading=!1},error:t=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}addRelatedParty(){this.relatedPartyArray.push(this.formBuilder.group({id:[""],"@type":[""]}))}removeRelatedParty(c){this.relatedPartyArray.removeAt(c)}addQuoteItem(){this.quoteItemArray.push(this.formBuilder.group({state:[""]}))}removeQuoteItem(c){this.quoteItemArray.removeAt(c)}onSubmit(){if(this.quoteForm.invalid)return;this.isSubmitting=!0;const t={...this.quoteForm.value,quoteDate:(new Date).toISOString(),state:"draft"},l=this.route.snapshot.paramMap.get("id");(l?this.quoteService.updateQuote(decodeURIComponent(l),t):this.quoteService.createQuote(t)).subscribe({next:()=>{this.notificationService.showSuccess(`Quote ${this.isEditMode?"updated":"created"} successfully`),this.router.navigate(["/quotes"])},error:u=>{this.error=`Failed to ${this.isEditMode?"update":"create"} quote. Please try again.`,this.isSubmitting=!1,this.notificationService.showError(this.error)}})}confirmCancel(){this.quoteForm.dirty?this.showCancelConfirm=!0:this.cancel()}cancel(){this.router.navigate(["/quotes"])}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(L3.K),e.rXU(E2.Ix),e.rXU(E2.nX),e.rXU(_4.J))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-form"]],standalone:!0,features:[e.aNF],decls:11,vars:6,consts:[[1,"container","mx-auto","px-4","py-8"],[1,"max-w-3xl","mx-auto"],[1,"bg-white","shadow-md","rounded-lg","p-6"],[1,"flex","justify-between","items-center","mb-6"],[1,"text-2xl","font-bold","text-gray-900"],["class","text-gray-600 hover:text-gray-900",3,"click",4,"ngIf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],["title","Cancel Changes","message","Are you sure you want to cancel? Any unsaved changes will be lost.","confirmText","Yes, Cancel","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen"],[1,"text-gray-600","hover:text-gray-900",3,"click"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[3,"ngSubmit","formGroup"],[1,"space-y-6"],["for","description",1,"block","text-sm","font-medium","text-gray-700"],[1,"mt-1"],["id","description","formControlName","description","rows","3","placeholder","Enter quote description",1,"shadow-sm","focus:ring-blue-500","focus:border-blue-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"],[1,"text-lg","font-medium","text-gray-900","mb-4"],["formArrayName","relatedParty"],["class","mb-4 p-4 bg-gray-50 rounded-md",3,"formGroupName",4,"ngFor","ngForOf"],["type","button",1,"mt-2","text-sm","text-blue-600","hover:text-blue-900",3,"click"],["formArrayName","quoteItem"],[1,"flex","justify-end","space-x-3"],["type","button",1,"bg-white","py-2","px-4","border","border-gray-300","rounded-md","shadow-sm","text-sm","font-medium","text-gray-700","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500",3,"click"],["type","submit",1,"bg-blue-600","py-2","px-4","border","border-transparent","rounded-md","shadow-sm","text-sm","font-medium","text-white","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500","disabled:opacity-50",3,"disabled"],[1,"mb-4","p-4","bg-gray-50","rounded-md",3,"formGroupName"],[1,"grid","grid-cols-2","gap-4"],[1,"block","text-sm","font-medium","text-gray-700",3,"for"],["type","text","formControlName","id",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["type","text","formControlName","@type",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["type","button",1,"mt-2","text-sm","text-red-600","hover:text-red-900",3,"click"],["formControlName","state",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["value",""],["value","draft"],["value","pending"],["value","accepted"],["value","cancelled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),e.EFF(5),e.k0s(),e.DNE(6,pF0,2,0,"button",5),e.k0s(),e.DNE(7,hF0,2,0,"div",6)(8,gF0,2,1,"div",7)(9,CF0,26,5,"form",8),e.k0s()()(),e.j41(10,"app-confirm-dialog",9),e.bIt("confirm",function(){return l.cancel()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s()),2&t&&(e.R7$(5),e.SpI(" ",l.isEditMode?"Edit Quote":"New Quote"," "),e.R7$(),e.Y8G("ngIf",l.isEditMode),e.R7$(),e.Y8G("ngIf",l.isLoading),e.R7$(),e.Y8G("ngIf",l.error),e.R7$(),e.Y8G("ngIf",!l.isLoading),e.R7$(),e.Y8G("isOpen",l.showCancelConfirm))},dependencies:[_.MD,_.Sq,_.bT,p.X1,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,p.$R,p.v8,q3.w],encapsulation:2})}}return n})();const zF0=[{path:"",component:e3},{path:"new",component:Lf1},{path:":id/edit",component:Lf1}],MF0=(n,a,c)=>({"px-2 inline-flex text-xs leading-5 font-semibold rounded-full":!0,"bg-green-100 text-green-800":n,"bg-red-100 text-red-800":a,"bg-blue-100 text-blue-800":c});function xF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.editQuote())}),e.EFF(1," Edit "),e.k0s()}}function bF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.confirmDelete())}),e.EFF(1," Delete "),e.k0s()}}function yF0(n,a){1&n&&(e.j41(0,"div",18),e.nrm(1,"div",19),e.k0s())}function FF0(n,a){if(1&n&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.error," ")}}function vF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"ID:"),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"div",31)(6,"span",32),e.EFF(7,"Type:"),e.k0s(),e.EFF(8),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.id||"-"," "),e.R7$(4),e.SpI(" ",c["@type"]||"-"," ")}}function kF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,vF0,9,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.relatedParty)}}function wF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No related parties"),e.k0s())}function SF0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div")(2,"h2",22),e.EFF(3,"Basic Information"),e.k0s(),e.j41(4,"dl",23)(5,"div")(6,"dt",24),e.EFF(7,"ID"),e.k0s(),e.j41(8,"dd",25),e.EFF(9),e.k0s()(),e.j41(10,"div")(11,"dt",24),e.EFF(12,"Description"),e.k0s(),e.j41(13,"dd",25),e.EFF(14),e.k0s()(),e.j41(15,"div")(16,"dt",24),e.EFF(17,"Date"),e.k0s(),e.j41(18,"dd",25),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div")(22,"dt",24),e.EFF(23,"Status"),e.k0s(),e.j41(24,"dd",26)(25,"span",27),e.EFF(26),e.k0s()()()()(),e.j41(27,"div")(28,"h2",22),e.EFF(29,"Related Parties"),e.k0s(),e.DNE(30,kF0,2,1,"div",28)(31,wF0,2,0,"ng-template",null,0,e.C5r),e.k0s()()),2&n){const c=e.sdS(32),t=e.XpG(2);e.R7$(9),e.JRh(t.quote.id),e.R7$(5),e.JRh(t.quote.description||"-"),e.R7$(5),e.JRh(e.i5U(20,7,t.quote.quoteDate,"dd/MM/yyyy")),e.R7$(6),e.Y8G("ngClass",e.sMw(10,MF0,!t.quoteService.isQuoteFinalized(t.quote),t.quoteService.isQuoteCancelled(t.quote),t.quoteService.isQuoteAccepted(t.quote))),e.R7$(),e.SpI(" ",t.getQuoteStatus()," "),e.R7$(4),e.Y8G("ngIf",null==t.quote.relatedParty?null:t.quote.relatedParty.length)("ngIfElse",c)}}function NF0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2,"Attachments:"),e.k0s(),e.EFF(3),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.SpI(" ",c.attachment.length||0," ")}}function EF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"State:"),e.k0s(),e.EFF(4),e.k0s(),e.DNE(5,NF0,4,1,"div",35),e.k0s()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.state||"-"," "),e.R7$(),e.Y8G("ngIf",c.attachment&&c.attachment.length)}}function DF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,EF0,6,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.quoteItem)}}function TF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No items"),e.k0s())}function RF0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Quote Items"),e.k0s(),e.DNE(3,DF0,2,1,"div",28)(4,TF0,2,0,"ng-template",null,1,e.C5r),e.k0s()),2&n){const c=e.sdS(5),t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==t.quote.quoteItem?null:t.quote.quoteItem.length)("ngIfElse",c)}}function AF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"Author:"),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"div",36),e.EFF(6),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.author," "),e.R7$(2),e.SpI(" ",c.text," ")}}function IF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,AF0,7,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.note)}}function PF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No notes"),e.k0s())}function jF0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Notes"),e.k0s(),e.DNE(3,IF0,2,1,"div",28)(4,PF0,2,0,"ng-template",null,2,e.C5r),e.k0s()),2&n){const c=e.sdS(5),t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==t.quote.note?null:t.quote.note.length)("ngIfElse",c)}}function $F0(n,a){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h1",8),e.EFF(4,"Quote Details"),e.k0s(),e.j41(5,"div",9),e.DNE(6,xF0,2,0,"button",10)(7,bF0,2,0,"button",11),e.k0s()(),e.DNE(8,yF0,2,0,"div",12)(9,FF0,2,1,"div",13)(10,SF0,33,14,"div",14)(11,RF0,6,2,"div",15)(12,jF0,6,2,"div",15),e.k0s()()),2&n){const c=e.XpG();e.R7$(6),e.Y8G("ngIf",!c.quoteService.isQuoteFinalized(c.quote)),e.R7$(),e.Y8G("ngIf",!c.quoteService.isQuoteFinalized(c.quote)),e.R7$(),e.Y8G("ngIf",c.isLoading),e.R7$(),e.Y8G("ngIf",c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error)}}let OF0=(()=>{class n{constructor(c,t,l,i){this.route=c,this.router=t,this.quoteService=l,this.notificationService=i,this.quote=null,this.isLoading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage=""}ngOnInit(){const c=this.route.snapshot.paramMap.get("id");if(c){const t=decodeURIComponent(c);this.loadQuote(t)}}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:t=>{this.quote=t,this.isLoading=!1},error:t=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}getQuoteStatus(){return this.quote?this.quoteService.isQuoteCancelled(this.quote)?"Cancelled":this.quoteService.isQuoteAccepted(this.quote)?"Accepted":"Draft":""}editQuote(){this.quote&&this.router.navigate(["/quotes",encodeURIComponent(this.quote.id),"edit"])}confirmDelete(){this.quote&&(this.deleteConfirmMessage=`Are you sure you want to delete quote ${this.quote.id}? This action cannot be undone.`,this.showDeleteConfirm=!0)}deleteQuote(){this.quote?.id&&(this.quoteService.deleteQuote(this.quote.id).subscribe({next:()=>{this.notificationService.showSuccess("Quote deleted successfully"),this.router.navigate(["/quotes"])},error:c=>{this.notificationService.showError("Failed to delete quote. Please try again.")}}),this.showDeleteConfirm=!1)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(L3.K),e.rXU(_4.J))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-details"]],standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[["noRelatedParties",""],["noItems",""],["noNotes",""],["class","container mx-auto px-4 py-8",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],[1,"container","mx-auto","px-4","py-8"],[1,"bg-white","shadow-md","rounded-lg","p-6"],[1,"flex","justify-between","items-center","mb-6"],[1,"text-2xl","font-bold","text-gray-900"],[1,"flex","space-x-2"],["class","bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",3,"click",4,"ngIf"],["class","bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2",3,"click",4,"ngIf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],["class","grid grid-cols-2 gap-6",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"bg-indigo-600","text-white","px-4","py-2","rounded-md","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-indigo-500","focus:ring-offset-2",3,"click"],[1,"bg-red-600","text-white","px-4","py-2","rounded-md","hover:bg-red-700","focus:outline-none","focus:ring-2","focus:ring-red-500","focus:ring-offset-2",3,"click"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[1,"grid","grid-cols-2","gap-6"],[1,"text-lg","font-semibold","mb-4"],[1,"space-y-4"],[1,"text-sm","font-medium","text-gray-500"],[1,"mt-1","text-sm","text-gray-900"],[1,"mt-1"],[3,"ngClass"],[4,"ngIf","ngIfElse"],["class","mb-4 p-4 bg-gray-50 rounded-md",4,"ngFor","ngForOf"],[1,"mb-4","p-4","bg-gray-50","rounded-md"],[1,"text-sm"],[1,"font-medium"],[1,"text-gray-500"],[1,"mt-8"],["class","text-sm",4,"ngIf"],[1,"text-sm","mt-2"]],template:function(t,l){1&t&&(e.DNE(0,$F0,13,7,"div",3),e.j41(1,"app-confirm-dialog",4),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s()),2&t&&(e.Y8G("ngIf",l.quote),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,q3.w],encapsulation:2})}}return n})(),BF0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD,E2.iI.forChild(zF0),e3,OF0,Lf1,Y4.z,q3.w]})}}return n})();function VF0(n,a){return new jz0(n,a)}let UF0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n,bootstrap:[pa0]})}static{this.\u0275inj=e.G2t({providers:[CE1,{provide:e.hnV,useFactory:n0,deps:[CE1,V6,Iz0],multi:!0},{provide:g.a7,useClass:lf,multi:!0}],imports:[m.Bb,J2.dX,BL,oa0,J2.aY,p.YN,p.X1,T0,m6,Y4.z,BF0,i3.forRoot(),s1.h.forRoot({defaultLanguage:"en",loader:{provide:s1.Wr,useFactory:VF0,deps:[g.Qq,cF]}}),xG,P8.forRoot({mode:B.AUTO_DEFERRED}),Y0,GN1,cH,_f1,xE1,O8,me,iE1,Ew1,q3.w]})}}return n})();e.wjB(aE1,function(){return[xE1,Ha0,Yf0,kC0,l_0,Po0,Nf0,mC0,Gg0,hE1,Uh0,uL0,Az0,gE1,Ea0,mo0]},function(){return[s1.D9]}),e.wjB(hE1,function(){return[_f1,E0]},function(){return[s1.D9]}),e.wjB(gE1,function(){return[_f1,E0]},function(){return[s1.D9]}),m.sG().bootstrapModule(UF0).catch(n=>console.error(n))},4261:(y1,d1,y)=>{y1.exports={currencies:y(8184)}},1544:function(y1,d1,y){!function(m){"use strict";m.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,p,_){return e<12?_?"vm":"VM":_?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},2155:function(y1,d1,y){!function(m){"use strict";var g=function(A){return 0===A?0:1===A?1:2===A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5},e={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},p=function(A){return function($,Z,K,p1){var Y=g($),h1=e[A][g($)];return 2===Y&&(h1=h1[Z?0:1]),h1.replace(/%d/i,$)}},_=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar-dz",{months:_,monthsShort:_,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(A){return"\u0645"===A},meridiem:function(A,$,Z){return A<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:p("s"),ss:p("s"),m:p("m"),mm:p("m"),h:p("h"),hh:p("h"),d:p("d"),dd:p("d"),M:p("M"),MM:p("M"),y:p("y"),yy:p("y")},postformat:function(A){return A.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(y(7586))},3583:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(y(7586))},1638:function(y1,d1,y){!function(m){"use strict";var g={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},e=function($){return 0===$?0:1===$?1:2===$?2:$%100>=3&&$%100<=10?3:$%100>=11?4:5},p={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},_=function($){return function(Z,K,p1,Y){var h1=e(Z),e1=p[$][e(Z)];return 2===h1&&(e1=e1[K?0:1]),e1.replace(/%d/i,Z)}},S=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar-ly",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function($){return"\u0645"===$},meridiem:function($,Z,K){return $<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:_("s"),ss:_("s"),m:_("m"),mm:_("m"),h:_("h"),hh:_("h"),d:_("d"),dd:_("d"),M:_("M"),MM:_("M"),y:_("y"),yy:_("y")},preparse:function($){return $.replace(/\u060c/g,",")},postformat:function($){return $.replace(/\d/g,function(Z){return g[Z]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},7823:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(y(7586))},7712:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};m.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(_){return _.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(S){return e[S]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(y(7586))},8261:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};m.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(_){return _.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(y(7586))},6703:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(y(7586))},3108:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},p=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},_={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(K,p1,Y,h1){var e1=p(K),r1=_[Z][p(K)];return 2===e1&&(r1=r1[p1?0:1]),r1.replace(/%d/i,K)}},A=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar",{months:A,monthsShort:A,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,K,p1){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(K){return e[K]}).replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(K){return g[K]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},6508:function(y1,d1,y){!function(m){"use strict";var g={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};m.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(p){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(p)},meridiem:function(p,_,S){return p<4?"gec\u0259":p<12?"s\u0259h\u0259r":p<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(p){if(0===p)return p+"-\u0131nc\u0131";var _=p%10;return p+(g[_]||g[p%100-_]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},6766:function(y1,d1,y){!function(m){"use strict";function e(_,S,A){return"m"===A?S?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===A?S?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":_+" "+function g(_,S){var A=_.split("_");return S%10==1&&S%100!=11?A[0]:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?A[1]:A[2]}({ss:S?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:S?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:S?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[A],+_)}m.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(_){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(_)},meridiem:function(_,S,A){return _<4?"\u043d\u043e\u0447\u044b":_<12?"\u0440\u0430\u043d\u0456\u0446\u044b":_<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(_,S){switch(S){case"M":case"d":case"DDD":case"w":case"W":return _%10!=2&&_%10!=3||_%100==12||_%100==13?_+"-\u044b":_+"-\u0456";case"D":return _+"-\u0433\u0430";default:return _}},week:{dow:1,doy:7}})}(y(7586))},8564:function(y1,d1,y){!function(m){"use strict";m.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var p=e%10,_=e%100;return 0===e?e+"-\u0435\u0432":0===_?e+"-\u0435\u043d":_>10&&_<20?e+"-\u0442\u0438":1===p?e+"-\u0432\u0438":2===p?e+"-\u0440\u0438":7===p||8===p?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(y(7586))},7462:function(y1,d1,y){!function(m){"use strict";m.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(y(7586))},3438:function(y1,d1,y){!function(m){"use strict";var g={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},e={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};m.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===S?_<4?_:_+12:"\u09ad\u09cb\u09b0"===S||"\u09b8\u0995\u09be\u09b2"===S?_:"\u09a6\u09c1\u09aa\u09c1\u09b0"===S?_>=3?_:_+12:"\u09ac\u09bf\u0995\u09be\u09b2"===S||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u09b0\u09be\u09a4":_<6?"\u09ad\u09cb\u09b0":_<12?"\u09b8\u0995\u09be\u09b2":_<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<18?"\u09ac\u09bf\u0995\u09be\u09b2":_<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(y(7586))},7107:function(y1,d1,y){!function(m){"use strict";var g={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},e={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};m.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===S&&_>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===S&&_<5||"\u09ac\u09bf\u0995\u09be\u09b2"===S?_+12:_},meridiem:function(_,S,A){return _<4?"\u09b0\u09be\u09a4":_<10?"\u09b8\u0995\u09be\u09b2":_<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(y(7586))},9004:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},e={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};m.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(_){return _.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===S&&_>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===S&&_<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===S?_+12:_},meridiem:function(_,S,A){return _<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":_<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":_<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":_<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(y(7586))},927:function(y1,d1,y){!function(m){"use strict";function g(r1,M1,f1){return r1+" "+function _(r1,M1){return 2===M1?function S(r1){var M1={m:"v",b:"v",d:"z"};return void 0===M1[r1.charAt(0)]?r1:M1[r1.charAt(0)]+r1.substring(1)}(r1):r1}({mm:"munutenn",MM:"miz",dd:"devezh"}[f1],r1)}function p(r1){return r1>9?p(r1%10):r1}var A=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],$=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,h1=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];m.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h1,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:h1,monthsRegex:$,monthsShortRegex:$,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:A,longMonthsParse:A,shortMonthsParse:A,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:g,h:"un eur",hh:"%d eur",d:"un devezh",dd:g,M:"ur miz",MM:g,y:"ur bloaz",yy:function e(r1){switch(p(r1)){case 1:case 3:case 4:case 5:case 9:return r1+" bloaz";default:return r1+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(r1){return r1+(1===r1?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(r1){return"g.m."===r1},meridiem:function(r1,M1,f1){return r1<12?"a.m.":"g.m."}})}(y(7586))},7768:function(y1,d1,y){!function(m){"use strict";function e(_,S,A){var $=_+" ";switch(A){case"ss":return $+(1===_?"sekunda":2===_||3===_||4===_?"sekunde":"sekundi");case"mm":return $+(1===_?"minuta":2===_||3===_||4===_?"minute":"minuta");case"h":return"jedan sat";case"hh":return $+(1===_?"sat":2===_||3===_||4===_?"sata":"sati");case"dd":return $+(1===_?"dan":"dana");case"MM":return $+(1===_?"mjesec":2===_||3===_||4===_?"mjeseca":"mjeseci");case"yy":return $+(1===_?"godina":2===_||3===_||4===_?"godine":"godina")}}m.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:function g(_,S,A,$){if("m"===A)return S?"jedna minuta":$?"jednu minutu":"jedne minute"},mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},6291:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,p){var _=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(_="a"),e+_},week:{dow:1,doy:4}})}(y(7586))},5301:function(y1,d1,y){!function(m){"use strict";var g={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},e="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),p=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],_=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function S(Z){return Z>1&&Z<5&&1!=~~(Z/10)}function A(Z,K,p1,Y){var h1=Z+" ";switch(p1){case"s":return K||Y?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return K||Y?h1+(S(Z)?"sekundy":"sekund"):h1+"sekundami";case"m":return K?"minuta":Y?"minutu":"minutou";case"mm":return K||Y?h1+(S(Z)?"minuty":"minut"):h1+"minutami";case"h":return K?"hodina":Y?"hodinu":"hodinou";case"hh":return K||Y?h1+(S(Z)?"hodiny":"hodin"):h1+"hodinami";case"d":return K||Y?"den":"dnem";case"dd":return K||Y?h1+(S(Z)?"dny":"dn\xed"):h1+"dny";case"M":return K||Y?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return K||Y?h1+(S(Z)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):h1+"m\u011bs\xedci";case"y":return K||Y?"rok":"rokem";case"yy":return K||Y?h1+(S(Z)?"roky":"let"):h1+"lety"}}m.defineLocale("cs",{months:g,monthsShort:e,monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:A,ss:A,m:A,mm:A,h:A,hh:A,d:A,dd:A,M:A,MM:A,y:A,yy:A},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6666:function(y1,d1,y){!function(m){"use strict";m.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(y(7586))},5163:function(y1,d1,y){!function(m){"use strict";m.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var _="";return e>20?_=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(_=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+_},week:{dow:1,doy:4}})}(y(7586))},7360:function(y1,d1,y){!function(m){"use strict";m.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3248:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3222:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5932:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6405:function(y1,d1,y){!function(m){"use strict";var g=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],e=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];m.defineLocale("dv",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(_){return"\u0789\u078a"===_},meridiem:function(_,S,A){return _<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(y(7586))},718:function(y1,d1,y){!function(m){"use strict";m.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(p,_){return p?"string"==typeof _&&/D/.test(_.substring(0,_.indexOf("MMMM")))?this._monthsGenitiveEl[p.month()]:this._monthsNominativeEl[p.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(p,_,S){return p>11?S?"\u03bc\u03bc":"\u039c\u039c":S?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(p){return"\u03bc"===(p+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(p,_){var S=this._calendarEl[p],A=_&&_.hours();return function g(p){return typeof Function<"u"&&p instanceof Function||"[object Function]"===Object.prototype.toString.call(p)}(S)&&(S=S.apply(_)),S.replace("{}",A%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(y(7586))},6319:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:0,doy:4}})}(y(7586))},597:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")}})}(y(7586))},1800:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},807:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},5960:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")}})}(y(7586))},4418:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:0,doy:6}})}(y(7586))},6865:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},2647:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},1931:function(y1,d1,y){!function(m){"use strict";m.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,p,_){return e>11?_?"p.t.m.":"P.T.M.":_?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(y(7586))},1805:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},3445:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(y(7586))},1516:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(y(7586))},6679:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(y(7586))},8150:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[p+"sekundi",p+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[p+" minuti",p+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[p+" tunni",p+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[p+" kuu",p+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[p+" aasta",p+" aastat"]};return _?$[S][2]?$[S][2]:$[S][1]:A?$[S][0]:$[S][1]}m.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:"%d p\xe4eva",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},757:function(y1,d1,y){!function(m){"use strict";m.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5742:function(y1,d1,y){!function(m){"use strict";var g={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},e={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};m.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(_){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(_)},meridiem:function(_,S,A){return _<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/[\u06f0-\u06f9]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(y(7586))},3958:function(y1,d1,y){!function(m){"use strict";var g="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),e=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",g[7],g[8],g[9]];function p(A,$,Z,K){var p1="";switch(Z){case"s":return K?"muutaman sekunnin":"muutama sekunti";case"ss":p1=K?"sekunnin":"sekuntia";break;case"m":return K?"minuutin":"minuutti";case"mm":p1=K?"minuutin":"minuuttia";break;case"h":return K?"tunnin":"tunti";case"hh":p1=K?"tunnin":"tuntia";break;case"d":return K?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":p1=K?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return K?"kuukauden":"kuukausi";case"MM":p1=K?"kuukauden":"kuukautta";break;case"y":return K?"vuoden":"vuosi";case"yy":p1=K?"vuoden":"vuotta"}return function _(A,$){return A<10?$?e[A]:g[A]:A}(A,K)+" "+p1}m.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6720:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},8352:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2096:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,p){switch(p){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(y(7586))},5759:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,p){switch(p){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(y(7586))},4059:function(y1,d1,y){!function(m){"use strict";var p=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,_=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];m.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:p,monthsShortRegex:p,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:_,longMonthsParse:_,shortMonthsParse:_,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(A,$){switch($){case"D":return A+(1===A?"er":"");default:case"M":case"Q":case"DDD":case"d":return A+(1===A?"er":"e");case"w":case"W":return A+(1===A?"re":"e")}},week:{dow:1,doy:4}})}(y(7586))},5958:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),e="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");m.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(_,S){return _?/-MMM-/.test(S)?e[_.month()]:g[_.month()]:g},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(_){return _+(1===_||8===_||_>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},4143:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function($){return $+(1===$?"d":$%10==2?"na":"mh")},week:{dow:1,doy:4}})}(y(7586))},7028:function(y1,d1,y){!function(m){"use strict";m.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function($){return $+(1===$?"d":$%10==2?"na":"mh")},week:{dow:1,doy:4}})}(y(7586))},428:function(y1,d1,y){!function(m){"use strict";m.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},6861:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[p+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",p+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[p+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",p+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[p+" \u0935\u0930\u093e\u0902\u0928\u0940",p+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[p+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",p+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[p+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",p+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[p+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",p+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return A?$[S][0]:$[S][1]}m.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(p,_){return"D"===_?p+"\u0935\u0947\u0930":p},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(p,_){return 12===p&&(p=0),"\u0930\u093e\u0924\u0940"===_?p<4?p:p+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===_?p:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===_?p>12?p:p+12:"\u0938\u093e\u0902\u091c\u0947"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"\u0930\u093e\u0924\u0940":p<12?"\u0938\u0915\u093e\u0933\u0940\u0902":p<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":p<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(y(7586))},7718:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["thoddea sekondamni","thodde sekond"],ss:[p+" sekondamni",p+" sekond"],m:["eka mintan","ek minut"],mm:[p+" mintamni",p+" mintam"],h:["eka voran","ek vor"],hh:[p+" voramni",p+" voram"],d:["eka disan","ek dis"],dd:[p+" disamni",p+" dis"],M:["eka mhoinean","ek mhoino"],MM:[p+" mhoineamni",p+" mhoine"],y:["eka vorsan","ek voros"],yy:[p+" vorsamni",p+" vorsam"]};return A?$[S][0]:$[S][1]}m.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(p,_){return"D"===_?p+"er":p},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(p,_){return 12===p&&(p=0),"rati"===_?p<4?p:p+12:"sokallim"===_?p:"donparam"===_?p>12?p:p+12:"sanje"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"rati":p<12?"sokallim":p<16?"donparam":p<20?"sanje":"rati"}})}(y(7586))},6827:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},e={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};m.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(_){return _.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0ab0\u0abe\u0aa4"===S?_<4?_:_+12:"\u0ab8\u0ab5\u0abe\u0ab0"===S?_:"\u0aac\u0aaa\u0acb\u0ab0"===S?_>=10?_:_+12:"\u0ab8\u0abe\u0a82\u0a9c"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0ab0\u0abe\u0aa4":_<10?"\u0ab8\u0ab5\u0abe\u0ab0":_<17?"\u0aac\u0aaa\u0acb\u0ab0":_<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(y(7586))},1936:function(y1,d1,y){!function(m){"use strict";m.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,p,_){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?_?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?_?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(y(7586))},1332:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},p=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];m.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:p,longMonthsParse:p,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(A){return A.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function($){return e[$]})},postformat:function(A){return A.replace(/\d/g,function($){return g[$]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(A,$){return 12===A&&(A=0),"\u0930\u093e\u0924"===$?A<4?A:A+12:"\u0938\u0941\u092c\u0939"===$?A:"\u0926\u094b\u092a\u0939\u0930"===$?A>=10?A:A+12:"\u0936\u093e\u092e"===$?A+12:void 0},meridiem:function(A,$,Z){return A<4?"\u0930\u093e\u0924":A<10?"\u0938\u0941\u092c\u0939":A<17?"\u0926\u094b\u092a\u0939\u0930":A<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(y(7586))},1957:function(y1,d1,y){!function(m){"use strict";function g(p,_,S){var A=p+" ";switch(S){case"ss":return A+(1===p?"sekunda":2===p||3===p||4===p?"sekunde":"sekundi");case"m":return _?"jedna minuta":"jedne minute";case"mm":return A+(1===p?"minuta":2===p||3===p||4===p?"minute":"minuta");case"h":return _?"jedan sat":"jednog sata";case"hh":return A+(1===p?"sat":2===p||3===p||4===p?"sata":"sati");case"dd":return A+(1===p?"dan":"dana");case"MM":return A+(1===p?"mjesec":2===p||3===p||4===p?"mjeseca":"mjeseci");case"yy":return A+(1===p?"godina":2===p||3===p||4===p?"godine":"godina")}}m.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:g,m:g,mm:g,h:g,hh:g,d:"dan",dd:g,M:"mjesec",MM:g,y:"godinu",yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},8928:function(y1,d1,y){!function(m){"use strict";var g="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function e(S,A,$,Z){var K=S;switch($){case"s":return Z||A?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return K+(Z||A)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(Z||A?" perc":" perce");case"mm":return K+(Z||A?" perc":" perce");case"h":return"egy"+(Z||A?" \xf3ra":" \xf3r\xe1ja");case"hh":return K+(Z||A?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(Z||A?" nap":" napja");case"dd":return K+(Z||A?" nap":" napja");case"M":return"egy"+(Z||A?" h\xf3nap":" h\xf3napja");case"MM":return K+(Z||A?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(Z||A?" \xe9v":" \xe9ve");case"yy":return K+(Z||A?" \xe9v":" \xe9ve")}return""}function p(S){return(S?"":"[m\xfalt] ")+"["+g[this.day()]+"] LT[-kor]"}m.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(S){return"u"===S.charAt(1).toLowerCase()},meridiem:function(S,A,$){return S<12?!0===$?"de":"DE":!0===$?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return p.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return p.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6215:function(y1,d1,y){!function(m){"use strict";m.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,p){switch(p){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(y(7586))},586:function(y1,d1,y){!function(m){"use strict";m.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"siang"===p?e>=11?e:e+12:"sore"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(y(7586))},211:function(y1,d1,y){!function(m){"use strict";function g(_){return _%100==11||_%10!=1}function e(_,S,A,$){var Z=_+" ";switch(A){case"s":return S||$?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return g(_)?Z+(S||$?"sek\xfandur":"sek\xfandum"):Z+"sek\xfanda";case"m":return S?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return g(_)?Z+(S||$?"m\xedn\xfatur":"m\xedn\xfatum"):S?Z+"m\xedn\xfata":Z+"m\xedn\xfatu";case"hh":return g(_)?Z+(S||$?"klukkustundir":"klukkustundum"):Z+"klukkustund";case"d":return S?"dagur":$?"dag":"degi";case"dd":return g(_)?S?Z+"dagar":Z+($?"daga":"d\xf6gum"):S?Z+"dagur":Z+($?"dag":"degi");case"M":return S?"m\xe1nu\xf0ur":$?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return g(_)?S?Z+"m\xe1nu\xf0ir":Z+($?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):S?Z+"m\xe1nu\xf0ur":Z+($?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return S||$?"\xe1r":"\xe1ri";case"yy":return g(_)?Z+(S||$?"\xe1r":"\xe1rum"):Z+(S||$?"\xe1r":"\xe1ri")}}m.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:e,ss:e,m:e,mm:e,h:"klukkustund",hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2340:function(y1,d1,y){!function(m){"use strict";m.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},170:function(y1,d1,y){!function(m){"use strict";m.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},9770:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,p){return"\u5143"===p[1]?1:parseInt(p[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,p,_){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,p){switch(p){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(y(7586))},3875:function(y1,d1,y){!function(m){"use strict";m.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,p){return 12===e&&(e=0),"enjing"===p?e:"siyang"===p?e>=11?e:e+12:"sonten"===p||"ndalu"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(y(7586))},9499:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(p,_,S){return"\u10d8"===S?_+"\u10e8\u10d8":_+S+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(y(7586))},3573:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};m.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},8807:function(y1,d1,y){!function(m){"use strict";var g={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},e={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};m.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(_){return"\u179b\u17d2\u1784\u17b6\u1785"===_},meridiem:function(_,S,A){return _<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(_){return _.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(y(7586))},5082:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},e={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};m.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(_){return _.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===S?_<4?_:_+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===S?_:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===S?_>=10?_:_+12:"\u0cb8\u0c82\u0c9c\u0cc6"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":_<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":_<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":_<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(_){return _+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(y(7586))},137:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,p,_){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(y(7586))},3744:function(y1,d1,y){!function(m){"use strict";function g(_,S,A,$){var Z={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[_+" san\xeeye",_+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[_+" deq\xeeqe",_+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[_+" saet",_+" saetan"],d:["rojek","rojek\xea"],dd:[_+" roj",_+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[_+" hefte",_+" hefteyan"],M:["mehek","mehek\xea"],MM:[_+" meh",_+" mehan"],y:["salek","salek\xea"],yy:[_+" sal",_+" salan"]};return S?Z[A][0]:Z[A][1]}m.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(_,S,A){return _<12?A?"bn":"BN":A?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,w:g,ww:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(_,S){var A=S.toLowerCase();return A.includes("w")||A.includes("m")?_+".":_+function e(_){var S=(_=""+_).substring(_.length-1),A=_.length>1?_.substring(_.length-2):"";return 12==A||13==A||"2"!=S&&"3"!=S&&"50"!=A&&"70"!=S&&"80"!=S?"\xea":"y\xea"}(_)},week:{dow:1,doy:4}})}(y(7586))},111:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},p=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];m.defineLocale("ku",{months:p,monthsShort:p,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(S){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(S)},meridiem:function(S,A,$){return S<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(A){return e[A]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(A){return g[A]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},9187:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};m.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},5969:function(y1,d1,y){!function(m){"use strict";function g(A,$,Z,K){var p1={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return $?p1[Z][0]:p1[Z][1]}function _(A){if(A=parseInt(A,10),isNaN(A))return!1;if(A<0)return!0;if(A<10)return 4<=A&&A<=7;if(A<100){var $=A%10;return _(0===$?A/10:$)}if(A<1e4){for(;A>=10;)A/=10;return _(A)}return _(A/=1e3)}m.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function e(A){return _(A.substr(0,A.indexOf(" ")))?"a "+A:"an "+A},past:function p(A){return _(A.substr(0,A.indexOf(" ")))?"viru "+A:"virun "+A},s:"e puer Sekonnen",ss:"%d Sekonnen",m:g,mm:"%d Minutten",h:g,hh:"%d Stonnen",d:g,dd:"%d Deeg",M:g,MM:"%d M\xe9int",y:g,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3526:function(y1,d1,y){!function(m){"use strict";m.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,p,_){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(y(7586))},411:function(y1,d1,y){!function(m){"use strict";var g={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function p(Z,K,p1,Y){return K?S(p1)[0]:Y?S(p1)[1]:S(p1)[2]}function _(Z){return Z%10==0||Z>10&&Z<20}function S(Z){return g[Z].split("_")}function A(Z,K,p1,Y){var h1=Z+" ";return 1===Z?h1+p(0,K,p1[0],Y):K?h1+(_(Z)?S(p1)[1]:S(p1)[0]):Y?h1+S(p1)[1]:h1+(_(Z)?S(p1)[1]:S(p1)[2])}m.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function e(Z,K,p1,Y){return K?"kelios sekund\u0117s":Y?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:A,m:p,mm:A,h:p,hh:A,d:p,dd:A,M:p,MM:A,y:p,yy:A},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(Z){return Z+"-oji"},week:{dow:1,doy:4}})}(y(7586))},2621:function(y1,d1,y){!function(m){"use strict";var g={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function e($,Z,K){return K?Z%10==1&&Z%100!=11?$[2]:$[3]:Z%10==1&&Z%100!=11?$[0]:$[1]}function p($,Z,K){return $+" "+e(g[K],$,Z)}function _($,Z,K){return e(g[K],$,Z)}m.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function S($,Z){return Z?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:p,m:_,mm:p,h:_,hh:p,d:_,dd:p,M:_,MM:p,y:_,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5869:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(p,_){return 1===p?_[0]:p>=2&&p<=4?_[1]:_[2]},translate:function(p,_,S){var A=g.words[S];return 1===S.length?_?A[0]:A[1]:p+" "+g.correctGrammaticalCase(p,A)}};m.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:"dan",dd:g.translate,M:"mjesec",MM:g.translate,y:"godinu",yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5881:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},2391:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var p=e%10,_=e%100;return 0===e?e+"-\u0435\u0432":0===_?e+"-\u0435\u043d":_>10&&_<20?e+"-\u0442\u0438":1===p?e+"-\u0432\u0438":2===p?e+"-\u0440\u0438":7===p||8===p?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(y(7586))},1126:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,p){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===p&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===p||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===p?e+12:e},meridiem:function(e,p,_){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(y(7586))},4892:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){switch(S){case"s":return _?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return p+(_?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return p+(_?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return p+(_?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return p+(_?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return p+(_?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return p+(_?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return p}}m.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(p){return"\u04ae\u0425"===p},meridiem:function(p,_,S){return p<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(p,_){switch(_){case"d":case"D":case"DDD":return p+" \u04e9\u0434\u04e9\u0440";default:return p}}})}(y(7586))},9080:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function p(S,A,$,Z){var K="";if(A)switch($){case"s":K="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":K="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":K="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":K="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":K="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":K="%d \u0924\u093e\u0938";break;case"d":K="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":K="%d \u0926\u093f\u0935\u0938";break;case"M":K="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":K="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":K="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":K="%d \u0935\u0930\u094d\u0937\u0947"}else switch($){case"s":K="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":K="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":K="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":K="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":K="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":K="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":K="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":K="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":K="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":K="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":K="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":K="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return K.replace(/%d/i,S)}m.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(A){return e[A]})},postformat:function(S){return S.replace(/\d/g,function(A){return g[A]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(S,A){return 12===S&&(S=0),"\u092a\u0939\u093e\u091f\u0947"===A||"\u0938\u0915\u093e\u0933\u0940"===A?S:"\u0926\u0941\u092a\u093e\u0930\u0940"===A||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===A||"\u0930\u093e\u0924\u094d\u0930\u0940"===A?S>=12?S:S+12:void 0},meridiem:function(S,A,$){return S>=0&&S<6?"\u092a\u0939\u093e\u091f\u0947":S<12?"\u0938\u0915\u093e\u0933\u0940":S<17?"\u0926\u0941\u092a\u093e\u0930\u0940":S<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(y(7586))},5950:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"tengahari"===p?e>=11?e:e+12:"petang"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(y(7586))},399:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"tengahari"===p?e>=11?e:e+12:"petang"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(y(7586))},9902:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},2985:function(y1,d1,y){!function(m){"use strict";var g={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},e={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};m.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(_){return _.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(y(7586))},7859:function(y1,d1,y){!function(m){"use strict";m.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3642:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};m.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(_){return _.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0930\u093e\u0924\u093f"===S?_<4?_:_+12:"\u092c\u093f\u0939\u093e\u0928"===S?_:"\u0926\u093f\u0909\u0901\u0938\u094b"===S?_>=10?_:_+12:"\u0938\u093e\u0901\u091d"===S?_+12:void 0},meridiem:function(_,S,A){return _<3?"\u0930\u093e\u0924\u093f":_<12?"\u092c\u093f\u0939\u093e\u0928":_<16?"\u0926\u093f\u0909\u0901\u0938\u094b":_<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(y(7586))},9875:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),p=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;m.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},5441:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),p=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;m.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},1311:function(y1,d1,y){!function(m){"use strict";m.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2567:function(y1,d1,y){!function(m){"use strict";m.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,p){var _=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(_="a"),e+_},week:{dow:1,doy:4}})}(y(7586))},6962:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},e={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};m.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(_){return _.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0a30\u0a3e\u0a24"===S?_<4?_:_+12:"\u0a38\u0a35\u0a47\u0a30"===S?_:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===S?_>=10?_:_+12:"\u0a38\u0a3c\u0a3e\u0a2e"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0a30\u0a3e\u0a24":_<10?"\u0a38\u0a35\u0a47\u0a30":_<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":_<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(y(7586))},1063:function(y1,d1,y){!function(m){"use strict";var g="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),e="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),p=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function _($){return $%10<5&&$%10>1&&~~($/10)%10!=1}function S($,Z,K){var p1=$+" ";switch(K){case"ss":return p1+(_($)?"sekundy":"sekund");case"m":return Z?"minuta":"minut\u0119";case"mm":return p1+(_($)?"minuty":"minut");case"h":return Z?"godzina":"godzin\u0119";case"hh":return p1+(_($)?"godziny":"godzin");case"ww":return p1+(_($)?"tygodnie":"tygodni");case"MM":return p1+(_($)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return p1+(_($)?"lata":"lat")}}m.defineLocale("pl",{months:function($,Z){return $?/D MMMM/.test(Z)?e[$.month()]:g[$.month()]:g},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:S,m:S,mm:S,h:S,hh:S,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:S,M:"miesi\u0105c",MM:S,y:"rok",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},7476:function(y1,d1,y){!function(m){"use strict";m.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(y(7586))},8719:function(y1,d1,y){!function(m){"use strict";m.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},1004:function(y1,d1,y){!function(m){"use strict";function g(p,_,S){var $=" ";return(p%100>=20||p>=100&&p%100==0)&&($=" de "),p+$+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[S]}m.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:g,m:"un minut",mm:g,h:"o or\u0103",hh:g,d:"o zi",dd:g,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:g,M:"o lun\u0103",MM:g,y:"un an",yy:g},week:{dow:1,doy:7}})}(y(7586))},1326:function(y1,d1,y){!function(m){"use strict";function e(S,A,$){return"m"===$?A?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":S+" "+function g(S,A){var $=S.split("_");return A%10==1&&A%100!=11?$[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?$[1]:$[2]}({ss:A?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:A?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[$],+S)}var p=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];m.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:p,longMonthsParse:p,shortMonthsParse:p,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(S){if(S.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(S){if(S.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0447\u0430\u0441",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(S)},meridiem:function(S,A,$){return S<4?"\u043d\u043e\u0447\u0438":S<12?"\u0443\u0442\u0440\u0430":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(S,A){switch(A){case"M":case"d":case"DDD":return S+"-\u0439";case"D":return S+"-\u0433\u043e";case"w":case"W":return S+"-\u044f";default:return S}},week:{dow:1,doy:4}})}(y(7586))},2608:function(y1,d1,y){!function(m){"use strict";var g=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],e=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];m.defineLocale("sd",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:e,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(y(7586))},3911:function(y1,d1,y){!function(m){"use strict";m.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5147:function(y1,d1,y){!function(m){"use strict";m.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,p,_){return e>11?_?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":_?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(y(7586))},3741:function(y1,d1,y){!function(m){"use strict";var g="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),e="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function p(A){return A>1&&A<5}function _(A,$,Z,K){var p1=A+" ";switch(Z){case"s":return $||K?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return $||K?p1+(p(A)?"sekundy":"sek\xfand"):p1+"sekundami";case"m":return $?"min\xfata":K?"min\xfatu":"min\xfatou";case"mm":return $||K?p1+(p(A)?"min\xfaty":"min\xfat"):p1+"min\xfatami";case"h":return $?"hodina":K?"hodinu":"hodinou";case"hh":return $||K?p1+(p(A)?"hodiny":"hod\xedn"):p1+"hodinami";case"d":return $||K?"de\u0148":"d\u0148om";case"dd":return $||K?p1+(p(A)?"dni":"dn\xed"):p1+"d\u0148ami";case"M":return $||K?"mesiac":"mesiacom";case"MM":return $||K?p1+(p(A)?"mesiace":"mesiacov"):p1+"mesiacmi";case"y":return $||K?"rok":"rokom";case"yy":return $||K?p1+(p(A)?"roky":"rokov"):p1+"rokmi"}}m.defineLocale("sk",{months:g,monthsShort:e,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3e3:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $=p+" ";switch(S){case"s":return _||A?"nekaj sekund":"nekaj sekundami";case"ss":return $+(1===p?_?"sekundo":"sekundi":2===p?_||A?"sekundi":"sekundah":p<5?_||A?"sekunde":"sekundah":"sekund");case"m":return _?"ena minuta":"eno minuto";case"mm":return $+(1===p?_?"minuta":"minuto":2===p?_||A?"minuti":"minutama":p<5?_||A?"minute":"minutami":_||A?"minut":"minutami");case"h":return _?"ena ura":"eno uro";case"hh":return $+(1===p?_?"ura":"uro":2===p?_||A?"uri":"urama":p<5?_||A?"ure":"urami":_||A?"ur":"urami");case"d":return _||A?"en dan":"enim dnem";case"dd":return $+(1===p?_||A?"dan":"dnem":2===p?_||A?"dni":"dnevoma":_||A?"dni":"dnevi");case"M":return _||A?"en mesec":"enim mesecem";case"MM":return $+(1===p?_||A?"mesec":"mesecem":2===p?_||A?"meseca":"mesecema":p<5?_||A?"mesece":"meseci":_||A?"mesecev":"meseci");case"y":return _||A?"eno leto":"enim letom";case"yy":return $+(1===p?_||A?"leto":"letom":2===p?_||A?"leti":"letoma":p<5?_||A?"leta":"leti":_||A?"let":"leti")}}m.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},451:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,p,_){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},905:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(p,_){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?_[0]:_[1]:_[2]},translate:function(p,_,S,A){var Z,$=g.words[S];return 1===S.length?"y"===S&&_?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":A||_?$[0]:$[1]:(Z=g.correctGrammaticalCase(p,$),"yy"===S&&_&&"\u0433\u043e\u0434\u0438\u043d\u0443"===Z?p+" \u0433\u043e\u0434\u0438\u043d\u0430":p+" "+Z)}};m.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:g.translate,dd:g.translate,M:g.translate,MM:g.translate,y:g.translate,yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5046:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(p,_){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?_[0]:_[1]:_[2]},translate:function(p,_,S,A){var Z,$=g.words[S];return 1===S.length?"y"===S&&_?"jedna godina":A||_?$[0]:$[1]:(Z=g.correctGrammaticalCase(p,$),"yy"===S&&_&&"godinu"===Z?p+" godina":p+" "+Z)}};m.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:g.translate,dd:g.translate,M:g.translate,MM:g.translate,y:g.translate,yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5765:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,p,_){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,p){return 12===e&&(e=0),"ekuseni"===p?e:"emini"===p?e>=11?e:e+12:"entsambama"===p||"ebusuku"===p?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(y(7586))},9290:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?":e":1===p||2===p?":a":":e")},week:{dow:1,doy:4}})}(y(7586))},5830:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(y(7586))},2688:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},e={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};m.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(_){return _+"\u0bb5\u0ba4\u0bc1"},preparse:function(_){return _.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(_,S,A){return _<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":_<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":_<10?" \u0b95\u0bbe\u0bb2\u0bc8":_<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":_<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":_<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(_,S){return 12===_&&(_=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===S?_<2?_:_+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===S||"\u0b95\u0bbe\u0bb2\u0bc8"===S||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===S&&_>=10?_:_+12},week:{dow:0,doy:6}})}(y(7586))},2060:function(y1,d1,y){!function(m){"use strict";m.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===p?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===p?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===p?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===p?e+12:void 0},meridiem:function(e,p,_){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(y(7586))},3290:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},8294:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};m.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(p,_){return 12===p&&(p=0),"\u0448\u0430\u0431"===_?p<4?p:p+12:"\u0441\u0443\u0431\u04b3"===_?p:"\u0440\u04ef\u0437"===_?p>=11?p:p+12:"\u0431\u0435\u0433\u043e\u04b3"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"\u0448\u0430\u0431":p<11?"\u0441\u0443\u0431\u04b3":p<16?"\u0440\u04ef\u0437":p<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},1231:function(y1,d1,y){!function(m){"use strict";m.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,p,_){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(y(7586))},3746:function(y1,d1,y){!function(m){"use strict";var g={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};m.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(p,_){switch(_){case"d":case"D":case"Do":case"DD":return p;default:if(0===p)return p+"'unjy";var S=p%10;return p+(g[S]||g[p%100-S]||g[p>=100?100:null])}},week:{dow:1,doy:7}})}(y(7586))},9040:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},7187:function(y1,d1,y){!function(m){"use strict";var g="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function _($,Z,K,p1){var Y=function S($){var Z=Math.floor($%1e3/100),K=Math.floor($%100/10),p1=$%10,Y="";return Z>0&&(Y+=g[Z]+"vatlh"),K>0&&(Y+=(""!==Y?" ":"")+g[K]+"maH"),p1>0&&(Y+=(""!==Y?" ":"")+g[p1]),""===Y?"pagh":Y}($);switch(K){case"ss":return Y+" lup";case"mm":return Y+" tup";case"hh":return Y+" rep";case"dd":return Y+" jaj";case"MM":return Y+" jar";case"yy":return Y+" DIS"}}m.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function e($){var Z=$;return-1!==$.indexOf("jaj")?Z.slice(0,-3)+"leS":-1!==$.indexOf("jar")?Z.slice(0,-3)+"waQ":-1!==$.indexOf("DIS")?Z.slice(0,-3)+"nem":Z+" pIq"},past:function p($){var Z=$;return-1!==$.indexOf("jaj")?Z.slice(0,-3)+"Hu\u2019":-1!==$.indexOf("jar")?Z.slice(0,-3)+"wen":-1!==$.indexOf("DIS")?Z.slice(0,-3)+"ben":Z+" ret"},s:"puS lup",ss:_,m:"wa\u2019 tup",mm:_,h:"wa\u2019 rep",hh:_,d:"wa\u2019 jaj",dd:_,M:"wa\u2019 jar",MM:_,y:"wa\u2019 DIS",yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},153:function(y1,d1,y){!function(m){"use strict";var g={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};m.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(p,_,S){return p<12?S?"\xf6\xf6":"\xd6\xd6":S?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(p){return"\xf6s"===p||"\xd6S"===p},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(p,_){switch(_){case"d":case"D":case"Do":case"DD":return p;default:if(0===p)return p+"'\u0131nc\u0131";var S=p%10;return p+(g[S]||g[p%100-S]||g[p>=100?100:null])}},week:{dow:1,doy:7}})}(y(7586))},8521:function(y1,d1,y){!function(m){"use strict";function e(p,_,S,A){var $={s:["viensas secunds","'iensas secunds"],ss:[p+" secunds",p+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[p+" m\xeduts",p+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[p+" \xfeoras",p+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[p+" ziuas",p+" ziuas"],M:["'n mes","'iens mes"],MM:[p+" mesen",p+" mesen"],y:["'n ar","'iens ar"],yy:[p+" ars",p+" ars"]};return A||_?$[S][0]:$[S][1]}m.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(p){return"d'o"===p.toLowerCase()},meridiem:function(p,_,S){return p>11?S?"d'o":"D'O":S?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2234:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(y(7586))},8010:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(y(7586))},3349:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===p||"\u0633\u06d5\u06be\u06d5\u0631"===p||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===p?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===p||"\u0643\u06d5\u0686"===p?e+12:e>=11?e:e+12},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":S<900?"\u0633\u06d5\u06be\u06d5\u0631":S<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":S<1230?"\u0686\u06c8\u0634":S<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(y(7586))},8479:function(y1,d1,y){!function(m){"use strict";function e(A,$,Z){return"m"===Z?$?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===Z?$?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":A+" "+function g(A,$){var Z=A.split("_");return $%10==1&&$%100!=11?Z[0]:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?Z[1]:Z[2]}({ss:$?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:$?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:$?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[Z],+A)}function _(A){return function(){return A+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}m.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function p(A,$){var Z={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===A?Z.nominative.slice(1,7).concat(Z.nominative.slice(0,1)):A?Z[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test($)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test($)?"genitive":"nominative"][A.day()]:Z.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:_("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:_("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:_("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:_("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:e,y:"\u0440\u0456\u043a",yy:e},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(A){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(A)},meridiem:function(A,$,Z){return A<4?"\u043d\u043e\u0447\u0456":A<12?"\u0440\u0430\u043d\u043a\u0443":A<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(A,$){switch($){case"M":case"d":case"DDD":case"w":case"W":return A+"-\u0439";case"D":return A+"-\u0433\u043e";default:return A}},week:{dow:1,doy:7}})}(y(7586))},3024:function(y1,d1,y){!function(m){"use strict";var g=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],e=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];m.defineLocale("ur",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:e,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(y(7586))},2376:function(y1,d1,y){!function(m){"use strict";m.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(y(7586))},9800:function(y1,d1,y){!function(m){"use strict";m.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(y(7586))},9366:function(y1,d1,y){!function(m){"use strict";m.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,p,_){return e<12?_?"sa":"SA":_?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},9702:function(y1,d1,y){!function(m){"use strict";m.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},2655:function(y1,d1,y){!function(m){"use strict";m.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(y(7586))},575:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:e>=11?e:e+12},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(y(7586))},8351:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1200?"\u4e0a\u5348":1200===S?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},9245:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},8887:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},7586:function(y1,d1,y){(y1=y.nmd(y1)).exports=function(){"use strict";var m,M1;function g(){return m.apply(null,arguments)}function p(L){return L instanceof Array||"[object Array]"===Object.prototype.toString.call(L)}function _(L){return null!=L&&"[object Object]"===Object.prototype.toString.call(L)}function S(L,F){return Object.prototype.hasOwnProperty.call(L,F)}function A(L){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(L).length;var F;for(F in L)if(S(L,F))return!1;return!0}function $(L){return void 0===L}function Z(L){return"number"==typeof L||"[object Number]"===Object.prototype.toString.call(L)}function K(L){return L instanceof Date||"[object Date]"===Object.prototype.toString.call(L)}function p1(L,F){var O,I=[],l1=L.length;for(O=0;O>>0;for(O=0;O0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,F-O.length)).toString().substr(1)+O}var e2=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E1={},j1={};function A1(L,F,I,O){var l1=O;"string"==typeof O&&(l1=function(){return this[O]()}),L&&(j1[L]=l1),F&&(j1[F[0]]=function(){return v1(l1.apply(this,arguments),F[1],F[2])}),I&&(j1[I]=function(){return this.localeData().ordinal(l1.apply(this,arguments),L)})}function H1(L){return L.match(/\[[\s\S]/)?L.replace(/^\[|\]$/g,""):L.replace(/\\/g,"")}function K1(L,F){return L.isValid()?(F=Q(F,L.localeData()),E1[F]=E1[F]||function P1(L){var I,O,F=L.match(e2);for(I=0,O=F.length;I=0&&C2.test(L);)L=L.replace(C2,O),C2.lastIndex=0,I-=1;return L}var N4={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function m4(L){return"string"==typeof L?N4[L]||N4[L.toLowerCase()]:void 0}function B3(L){var I,O,F={};for(O in L)S(L,O)&&(I=m4(O))&&(F[I]=L[O]);return F}var t3={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var s1,q4=/\d/,c0=/\d\d/,f0=/\d{3}/,X4=/\d{4}/,T4=/[+-]?\d{6}/,Y2=/\d\d?/,n3=/\d\d\d\d?/,y4=/\d\d\d\d\d\d?/,H4=/\d{1,3}/,u0=/\d{1,4}/,$4=/[+-]?\d{1,6}/,L0=/\d+/,S0=/[+-]?\d+/,l3=/Z|[+-]\d\d:?\d\d/gi,T0=/Z|[+-]\d\d(?::?\d\d)?/gi,s3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,F3=/^[1-9]\d?/,J2=/^([1-9]\d|\d)/;function x1(L,F,I){s1[L]=v2(F)?F:function(O,l1){return O&&I?I:F}}function m1(L,F){return S(s1,L)?s1[L](F._strict,F._locale):new RegExp(function D1(L){return Z1(L.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(F,I,O,l1,R1){return I||O||l1||R1}))}(L))}function Z1(L){return L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function F2(L){return L<0?Math.ceil(L)||0:Math.floor(L)}function b2(L){var F=+L,I=0;return 0!==F&&isFinite(F)&&(I=F2(F)),I}s1={};var U0={};function m0(L,F){var I,l1,O=F;for("string"==typeof L&&(L=[L]),Z(F)&&(O=function(R1,n2){n2[F]=b2(R1)}),l1=L.length,I=0;I68?1900:2e3)};var o1,z0=Y4("FullYear",!0);function Y4(L,F){return function(I){return null!=I?(E3(this,L,I),g.updateOffset(this,F),this):C1(this,L)}}function C1(L,F){if(!L.isValid())return NaN;var I=L._d,O=L._isUTC;switch(F){case"Milliseconds":return O?I.getUTCMilliseconds():I.getMilliseconds();case"Seconds":return O?I.getUTCSeconds():I.getSeconds();case"Minutes":return O?I.getUTCMinutes():I.getMinutes();case"Hours":return O?I.getUTCHours():I.getHours();case"Date":return O?I.getUTCDate():I.getDate();case"Day":return O?I.getUTCDay():I.getDay();case"Month":return O?I.getUTCMonth():I.getMonth();case"FullYear":return O?I.getUTCFullYear():I.getFullYear();default:return NaN}}function E3(L,F,I){var O,l1,R1,n2,Z2;if(L.isValid()&&!isNaN(I)){switch(O=L._d,l1=L._isUTC,F){case"Milliseconds":return void(l1?O.setUTCMilliseconds(I):O.setMilliseconds(I));case"Seconds":return void(l1?O.setUTCSeconds(I):O.setSeconds(I));case"Minutes":return void(l1?O.setUTCMinutes(I):O.setMinutes(I));case"Hours":return void(l1?O.setUTCHours(I):O.setHours(I));case"Date":return void(l1?O.setUTCDate(I):O.setDate(I));case"FullYear":break;default:return}R1=I,n2=L.month(),Z2=29!==(Z2=L.date())||1!==n2||z4(R1)?Z2:28,l1?O.setUTCFullYear(R1,n2,Z2):O.setFullYear(R1,n2,Z2)}}function b1(L,F){if(isNaN(L)||isNaN(F))return NaN;var I=function D6(L,F){return(L%F+F)%F}(F,12);return L+=(F-I)/12,1===I?z4(L)?29:28:31-I%7%2}o1=Array.prototype.indexOf?Array.prototype.indexOf:function(L){var F;for(F=0;F=0?(Z2=new Date(L+400,F,I,O,l1,R1,n2),isFinite(Z2.getFullYear())&&Z2.setFullYear(L)):Z2=new Date(L,F,I,O,l1,R1,n2),Z2}function W4(L){var F,I;return L<100&&L>=0?((I=Array.prototype.slice.call(arguments))[0]=L+400,F=new Date(Date.UTC.apply(null,I)),isFinite(F.getUTCFullYear())&&F.setUTCFullYear(L)):F=new Date(Date.UTC.apply(null,arguments)),F}function d4(L,F,I){var O=7+F-I;return-(7+W4(L,0,O).getUTCDay()-F)%7+O-1}function c4(L,F,I,O,l1){var $0,s4,Z2=1+7*(F-1)+(7+I-O)%7+d4(L,O,l1);return Z2<=0?s4=R4($0=L-1)+Z2:Z2>R4(L)?($0=L+1,s4=Z2-R4(L)):($0=L,s4=Z2),{year:$0,dayOfYear:s4}}function I4(L,F,I){var R1,n2,O=d4(L.year(),F,I),l1=Math.floor((L.dayOfYear()-O-1)/7)+1;return l1<1?R1=l1+U4(n2=L.year()-1,F,I):l1>U4(L.year(),F,I)?(R1=l1-U4(L.year(),F,I),n2=L.year()+1):(n2=L.year(),R1=l1),{week:R1,year:n2}}function U4(L,F,I){var O=d4(L,F,I),l1=d4(L+1,F,I);return(R4(L)-O+l1)/7}A1("w",["ww",2],"wo","week"),A1("W",["WW",2],"Wo","isoWeek"),x1("w",Y2,F3),x1("ww",Y2,c0),x1("W",Y2,F3),x1("WW",Y2,c0),t4(["w","ww","W","WW"],function(L,F,I,O){F[O.substr(0,1)]=b2(L)});function b0(L,F){return L.slice(F,7).concat(L.slice(0,F))}A1("d",0,"do","day"),A1("dd",0,0,function(L){return this.localeData().weekdaysMin(this,L)}),A1("ddd",0,0,function(L){return this.localeData().weekdaysShort(this,L)}),A1("dddd",0,0,function(L){return this.localeData().weekdays(this,L)}),A1("e",0,0,"weekday"),A1("E",0,0,"isoWeekday"),x1("d",Y2),x1("e",Y2),x1("E",Y2),x1("dd",function(L,F){return F.weekdaysMinRegex(L)}),x1("ddd",function(L,F){return F.weekdaysShortRegex(L)}),x1("dddd",function(L,F){return F.weekdaysRegex(L)}),t4(["dd","ddd","dddd"],function(L,F,I,O){var l1=I._locale.weekdaysParse(L,O,I._strict);null!=l1?F.d=l1:r1(I).invalidWeekday=L}),t4(["d","e","E"],function(L,F,I,O){F[O]=b2(L)});var y6="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Q2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),g2="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),h3=s3,J4=s3,R6=s3;function n6(L,F,I){var O,l1,R1,n2=L.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],O=0;O<7;++O)R1=h1([2e3,1]).day(O),this._minWeekdaysParse[O]=this.weekdaysMin(R1,"").toLocaleLowerCase(),this._shortWeekdaysParse[O]=this.weekdaysShort(R1,"").toLocaleLowerCase(),this._weekdaysParse[O]=this.weekdays(R1,"").toLocaleLowerCase();return I?"dddd"===F?-1!==(l1=o1.call(this._weekdaysParse,n2))?l1:null:"ddd"===F?-1!==(l1=o1.call(this._shortWeekdaysParse,n2))?l1:null:-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:"dddd"===F?-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._shortWeekdaysParse,n2))||-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:"ddd"===F?-1!==(l1=o1.call(this._shortWeekdaysParse,n2))||-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:-1!==(l1=o1.call(this._minWeekdaysParse,n2))||-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._shortWeekdaysParse,n2))?l1:null}function k4(){function L(Q1,O0){return O0.length-Q1.length}var R1,n2,Z2,$0,s4,F=[],I=[],O=[],l1=[];for(R1=0;R1<7;R1++)n2=h1([2e3,1]).day(R1),Z2=Z1(this.weekdaysMin(n2,"")),$0=Z1(this.weekdaysShort(n2,"")),s4=Z1(this.weekdays(n2,"")),F.push(Z2),I.push($0),O.push(s4),l1.push(Z2),l1.push($0),l1.push(s4);F.sort(L),I.sort(L),O.sort(L),l1.sort(L),this._weekdaysRegex=new RegExp("^("+l1.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+F.join("|")+")","i")}function V3(){return this.hours()%12||12}function g3(L,F){A1(L,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),F)})}function T3(L,F){return F._meridiemParse}A1("H",["HH",2],0,"hour"),A1("h",["hh",2],0,V3),A1("k",["kk",2],0,function p0(){return this.hours()||24}),A1("hmm",0,0,function(){return""+V3.apply(this)+v1(this.minutes(),2)}),A1("hmmss",0,0,function(){return""+V3.apply(this)+v1(this.minutes(),2)+v1(this.seconds(),2)}),A1("Hmm",0,0,function(){return""+this.hours()+v1(this.minutes(),2)}),A1("Hmmss",0,0,function(){return""+this.hours()+v1(this.minutes(),2)+v1(this.seconds(),2)}),g3("a",!0),g3("A",!1),x1("a",T3),x1("A",T3),x1("H",Y2,J2),x1("h",Y2,F3),x1("k",Y2,F3),x1("HH",Y2,c0),x1("hh",Y2,c0),x1("kk",Y2,c0),x1("hmm",n3),x1("hmmss",y4),x1("Hmm",n3),x1("Hmmss",y4),m0(["H","HH"],C0),m0(["k","kk"],function(L,F,I){var O=b2(L);F[C0]=24===O?0:O}),m0(["a","A"],function(L,F,I){I._isPm=I._locale.isPM(L),I._meridiem=L}),m0(["h","hh"],function(L,F,I){F[C0]=b2(L),r1(I).bigHour=!0}),m0("hmm",function(L,F,I){var O=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O)),r1(I).bigHour=!0}),m0("hmmss",function(L,F,I){var O=L.length-4,l1=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O,2)),F[p4]=b2(L.substr(l1)),r1(I).bigHour=!0}),m0("Hmm",function(L,F,I){var O=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O))}),m0("Hmmss",function(L,F,I){var O=L.length-4,l1=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O,2)),F[p4]=b2(L.substr(l1))});var Q6=Y4("Hours",!0);var G3,d3={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:F1,monthsShort:J1,week:{dow:0,doy:6},weekdays:y6,weekdaysMin:g2,weekdaysShort:Q2,meridiemParse:/[ap]\.?m?\.?/i},G0={},l6={};function he(L,F){var I,O=Math.min(L.length,F.length);for(I=0;I0;){if(l1=Q4(R1.slice(0,I).join("-")))return l1;if(O&&O.length>=I&&he(R1,O)>=I-1)break;I--}F++}return G3}(L)}function e8(L){var F,I=L._a;return I&&-2===r1(L).overflow&&(F=I[F4]<0||I[F4]>11?F4:I[I2]<1||I[I2]>b1(I[r4],I[F4])?I2:I[C0]<0||I[C0]>24||24===I[C0]&&(0!==I[B2]||0!==I[p4]||0!==I[M4])?C0:I[B2]<0||I[B2]>59?B2:I[p4]<0||I[p4]>59?p4:I[M4]<0||I[M4]>999?M4:-1,r1(L)._overflowDayOfYear&&(FI2)&&(F=I2),r1(L)._overflowWeeks&&-1===F&&(F=u6),r1(L)._overflowWeekday&&-1===F&&(F=c6),r1(L).overflow=F),L}var c8=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,i3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,s6=/Z|[+-]\d\d(?::?\d\d)?/,x4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],a6=/^\/?Date\((-?\d+)/i,u3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,H0={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function m3(L){var F,I,R1,n2,Z2,$0,O=L._i,l1=c8.exec(O)||i3.exec(O),s4=x4.length,Q1=P6.length;if(l1){for(r1(L).iso=!0,F=0,I=s4;F7)&&($0=!0)):(R1=L._locale._week.dow,n2=L._locale._week.doy,s4=I4(h4(),R1,n2),I=o6(F.gg,L._a[r4],s4.year),O=o6(F.w,s4.week),null!=F.d?((l1=F.d)<0||l1>6)&&($0=!0):null!=F.e?(l1=F.e+R1,(F.e<0||F.e>6)&&($0=!0)):l1=R1),O<1||O>U4(I,R1,n2)?r1(L)._overflowWeeks=!0:null!=$0?r1(L)._overflowWeekday=!0:(Z2=c4(I,O,l1,R1,n2),L._a[r4]=Z2.year,L._dayOfYear=Z2.dayOfYear)}(L),null!=L._dayOfYear&&(n2=o6(L._a[r4],l1[r4]),(L._dayOfYear>R4(n2)||0===L._dayOfYear)&&(r1(L)._overflowDayOfYear=!0),I=W4(n2,0,L._dayOfYear),L._a[F4]=I.getUTCMonth(),L._a[I2]=I.getUTCDate()),F=0;F<3&&null==L._a[F];++F)L._a[F]=O[F]=l1[F];for(;F<7;F++)L._a[F]=O[F]=null==L._a[F]?2===F?1:0:L._a[F];24===L._a[C0]&&0===L._a[B2]&&0===L._a[p4]&&0===L._a[M4]&&(L._nextDay=!0,L._a[C0]=0),L._d=(L._useUTC?W4:A4).apply(null,O),R1=L._useUTC?L._d.getUTCDay():L._d.getDay(),null!=L._tzm&&L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),L._nextDay&&(L._a[C0]=24),L._w&&typeof L._w.d<"u"&&L._w.d!==R1&&(r1(L).weekdayMismatch=!0)}}function t1(L){if(L._f!==g.ISO_8601)if(L._f!==g.RFC_2822){L._a=[],r1(L).empty=!0;var I,O,l1,R1,n2,s4,Q1,F=""+L._i,Z2=F.length,$0=0;for(Q1=(l1=Q(L._f,L._locale).match(e2)||[]).length,I=0;I0&&r1(L).unusedInput.push(n2),F=F.slice(F.indexOf(O)+O.length),$0+=O.length),j1[R1]?(O?r1(L).empty=!1:r1(L).unusedTokens.push(R1),N3(R1,O,L)):L._strict&&!O&&r1(L).unusedTokens.push(R1);r1(L).charsLeftOver=Z2-$0,F.length>0&&r1(L).unusedInput.push(F),L._a[C0]<=12&&!0===r1(L).bigHour&&L._a[C0]>0&&(r1(L).bigHour=void 0),r1(L).parsedDateParts=L._a.slice(0),r1(L).meridiem=L._meridiem,L._a[C0]=function w1(L,F,I){var O;return null==I?F:null!=L.meridiemHour?L.meridiemHour(F,I):(null!=L.isPM&&((O=L.isPM(I))&&F<12&&(F+=12),!O&&12===F&&(F=0)),F)}(L._locale,L._a[C0],L._meridiem),null!==(s4=r1(L).era)&&(L._a[r4]=L._locale.erasConvertYear(s4,L._a[r4])),G(L),e8(L)}else Z4(L);else m3(L)}function A3(L){var F=L._i,I=L._f;return L._locale=L._locale||N0(L._l),null===F||void 0===I&&""===F?$1({nullInput:!0}):("string"==typeof F&&(L._i=F=L._locale.preparse(F)),O1(F)?new G1(e8(F)):(K(F)?L._d=F:p(I)?function V2(L){var F,I,O,l1,R1,n2,Z2=!1,$0=L._f.length;if(0===$0)return r1(L).invalidFormat=!0,void(L._d=new Date(NaN));for(l1=0;l1<$0;l1++)R1=0,n2=!1,F=c2({},L),null!=L._useUTC&&(F._useUTC=L._useUTC),F._f=L._f[l1],t1(F),f1(F)&&(n2=!0),R1+=r1(F).charsLeftOver,R1+=10*r1(F).unusedTokens.length,r1(F).score=R1,Z2?R1this?this:L:$1()});function i4(L,F){var I,O;if(1===F.length&&p(F[0])&&(F=F[0]),!F.length)return h4();for(I=F[0],O=1;O=0?new Date(L+400,F,I)-n1:new Date(L,F,I).valueOf()}function k1(L,F,I){return L<100&&L>=0?Date.UTC(L+400,F,I)-n1:Date.UTC(L,F,I)}function I0(L,F){return F.erasAbbrRegex(L)}function ye(){var l1,R1,n2,Z2,$0,L=[],F=[],I=[],O=[],s4=this.eras();for(l1=0,R1=s4.length;l1(R1=U4(L,O,l1))&&(F=R1),$2.call(this,L,F,I,O,l1))}function $2(L,F,I,O,l1){var R1=c4(L,F,I,O,l1),n2=W4(R1.year,0,R1.dayOfYear);return this.year(n2.getUTCFullYear()),this.month(n2.getUTCMonth()),this.date(n2.getUTCDate()),this}A1("N",0,0,"eraAbbr"),A1("NN",0,0,"eraAbbr"),A1("NNN",0,0,"eraAbbr"),A1("NNNN",0,0,"eraName"),A1("NNNNN",0,0,"eraNarrow"),A1("y",["y",1],"yo","eraYear"),A1("y",["yy",2],0,"eraYear"),A1("y",["yyy",3],0,"eraYear"),A1("y",["yyyy",4],0,"eraYear"),x1("N",I0),x1("NN",I0),x1("NNN",I0),x1("NNNN",function Ue(L,F){return F.erasNameRegex(L)}),x1("NNNNN",function be(L,F){return F.erasNarrowRegex(L)}),m0(["N","NN","NNN","NNNN","NNNNN"],function(L,F,I,O){var l1=I._locale.erasParse(L,O,I._strict);l1?r1(I).era=l1:r1(I).invalidEra=L}),x1("y",L0),x1("yy",L0),x1("yyy",L0),x1("yyyy",L0),x1("yo",function v8(L,F){return F._eraYearOrdinalRegex||L0}),m0(["y","yy","yyy","yyyy"],r4),m0(["yo"],function(L,F,I,O){var l1;I._locale._eraYearOrdinalRegex&&(l1=L.match(I._locale._eraYearOrdinalRegex)),F[r4]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(L,l1):parseInt(L,10)}),A1(0,["gg",2],0,function(){return this.weekYear()%100}),A1(0,["GG",2],0,function(){return this.isoWeekYear()%100}),k8("gggg","weekYear"),k8("ggggg","weekYear"),k8("GGGG","isoWeekYear"),k8("GGGGG","isoWeekYear"),x1("G",S0),x1("g",S0),x1("GG",Y2,c0),x1("gg",Y2,c0),x1("GGGG",u0,X4),x1("gggg",u0,X4),x1("GGGGG",$4,T4),x1("ggggg",$4,T4),t4(["gggg","ggggg","GGGG","GGGGG"],function(L,F,I,O){F[O.substr(0,2)]=b2(L)}),t4(["gg","GG"],function(L,F,I,O){F[O]=g.parseTwoDigitYear(L)}),A1("Q",0,"Qo","quarter"),x1("Q",q4),m0("Q",function(L,F){F[F4]=3*(b2(L)-1)}),A1("D",["DD",2],"Do","date"),x1("D",Y2,F3),x1("DD",Y2,c0),x1("Do",function(L,F){return L?F._dayOfMonthOrdinalParse||F._ordinalParse:F._dayOfMonthOrdinalParseLenient}),m0(["D","DD"],I2),m0("Do",function(L,F){F[I2]=b2(L.match(Y2)[0])});var W3=Y4("Date",!0);A1("DDD",["DDDD",3],"DDDo","dayOfYear"),x1("DDD",H4),x1("DDDD",f0),m0(["DDD","DDDD"],function(L,F,I){I._dayOfYear=b2(L)}),A1("m",["mm",2],0,"minute"),x1("m",Y2,J2),x1("mm",Y2,c0),m0(["m","mm"],B2);var r5=Y4("Minutes",!1);A1("s",["ss",2],0,"second"),x1("s",Y2,J2),x1("ss",Y2,c0),m0(["s","ss"],p4);var ee,P5,gc=Y4("Seconds",!1);for(A1("S",0,0,function(){return~~(this.millisecond()/100)}),A1(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),A1(0,["SSS",3],0,"millisecond"),A1(0,["SSSS",4],0,function(){return 10*this.millisecond()}),A1(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),A1(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),A1(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),A1(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),A1(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x1("S",H4,q4),x1("SS",H4,c0),x1("SSS",H4,f0),ee="SSSS";ee.length<=9;ee+="S")x1(ee,L0);function Rn(L,F){F[M4]=b2(1e3*("0."+L))}for(ee="S";ee.length<=9;ee+="S")m0(ee,Rn);P5=Y4("Milliseconds",!1),A1("z",0,0,"zoneAbbr"),A1("zz",0,0,"zoneName");var k2=G1.prototype;function v(L){return L}k2.add=Q8,k2.calendar=function Me(L,F){1===arguments.length&&(arguments[0]?Z8(arguments[0])?(L=arguments[0],F=void 0):function U6(L){var l1,F=_(L)&&!A(L),I=!1,O=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(l1=0;l1I.valueOf():I.valueOf()9999?K1(I,F?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):v2(Date.prototype.toISOString)?F?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K1(I,"Z")):K1(I,F?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},k2.inspect=function q(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,O,L="moment",F="";return this.isLocal()||(L=0===this.utcOffset()?"moment.utc":"moment.parseZone",F="Z"),I="["+L+'("]',O=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+O+"-MM-DD[T]HH:mm:ss.SSS"+F+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(k2[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),k2.toJSON=function b4(){return this.isValid()?this.toISOString():null},k2.toString=function k6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},k2.unix=function j2(){return Math.floor(this.valueOf()/1e3)},k2.valueOf=function R2(){return this._d.valueOf()-6e4*(this._offset||0)},k2.creationData=function z2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},k2.eraName=function q3(){var L,F,I,O=this.localeData().eras();for(L=0,F=O.length;Lthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},k2.isLocal=function M8(){return!!this.isValid()&&!this._isUTC},k2.isUtcOffset=function J8(){return!!this.isValid()&&this._isUTC},k2.isUtc=I8,k2.isUTC=I8,k2.zoneAbbr=function U2(){return this._isUTC?"UTC":""},k2.zoneName=function As(){return this._isUTC?"Coordinated Universal Time":""},k2.dates=d2("dates accessor is deprecated. Use date instead.",W3),k2.months=d2("months accessor is deprecated. Use month instead",P0),k2.years=d2("years accessor is deprecated. Use year instead",z0),k2.zone=d2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function je(L,F){return null!=L?("string"!=typeof L&&(L=-L),this.utcOffset(L,F),this):-this.utcOffset()}),k2.isDSTShifted=d2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function z8(){if(!$(this._isDSTShifted))return this._isDSTShifted;var F,L={};return c2(L,this),(L=A3(L))._a?(F=L._isUTC?h1(L._a):h4(L._a),this._isDSTShifted=this.isValid()&&function s5(L,F,I){var n2,O=Math.min(L.length,F.length),l1=Math.abs(L.length-F.length),R1=0;for(n2=0;n20):this._isDSTShifted=!1,this._isDSTShifted});var N=Z0.prototype;function V(L,F,I,O){var l1=N0(),R1=h1().set(O,F);return l1[I](R1,L)}function c1(L,F,I){if(Z(L)&&(F=L,L=void 0),L=L||"",null!=F)return V(L,F,I,"month");var O,l1=[];for(O=0;O<12;O++)l1[O]=V(L,O,I,"month");return l1}function z1(L,F,I,O){"boolean"==typeof L?(Z(F)&&(I=F,F=void 0),F=F||""):(I=F=L,L=!1,Z(F)&&(I=F,F=void 0),F=F||"");var n2,l1=N0(),R1=L?l1._week.dow:0,Z2=[];if(null!=I)return V(F,(I+R1)%7,O,"day");for(n2=0;n2<7;n2++)Z2[n2]=V(F,(n2+R1)%7,O,"day");return Z2}N.calendar=function w0(L,F,I){var O=this._calendar[L]||this._calendar.sameElse;return v2(O)?O.call(F,I):O},N.longDateFormat=function s2(L){var F=this._longDateFormat[L],I=this._longDateFormat[L.toUpperCase()];return F||!I?F:(this._longDateFormat[L]=I.match(e2).map(function(O){return"MMMM"===O||"MM"===O||"DD"===O||"dddd"===O?O.slice(1):O}).join(""),this._longDateFormat[L])},N.invalidDate=function l0(){return this._invalidDate},N.ordinal=function K2(L){return this._ordinal.replace("%d",L)},N.preparse=v,N.postformat=v,N.relativeTime=function C4(L,F,I,O){var l1=this._relativeTime[I];return v2(l1)?l1(L,F,I,O):l1.replace(/%d/i,L)},N.pastFuture=function m2(L,F){var I=this._relativeTime[L>0?"future":"past"];return v2(I)?I(F):I.replace(/%s/i,F)},N.set=function t0(L){var F,I;for(I in L)S(L,I)&&(v2(F=L[I])?this[I]=F:this["_"+I]=F);this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},N.eras=function _4(L,F){var I,O,l1,R1=this._eras||N0("en")._eras;for(I=0,O=R1.length;I=0)return R1[O]},N.erasConvertYear=function o0(L,F){var I=L.since<=L.until?1:-1;return void 0===F?g(L.since).year():g(L.since).year()+(F-L.offset)*I},N.erasAbbrRegex=function g1(L){return S(this,"_erasAbbrRegex")||ye.call(this),L?this._erasAbbrRegex:this._erasRegex},N.erasNameRegex=function h0(L){return S(this,"_erasNameRegex")||ye.call(this),L?this._erasNameRegex:this._erasRegex},N.erasNarrowRegex=function K8(L){return S(this,"_erasNarrowRegex")||ye.call(this),L?this._erasNarrowRegex:this._erasRegex},N.months=function M0(L,F){return L?p(this._months)?this._months[L.month()]:this._months[(this._months.isFormat||q1).test(F)?"format":"standalone"][L.month()]:p(this._months)?this._months:this._months.standalone},N.monthsShort=function X2(L,F){return L?p(this._monthsShort)?this._monthsShort[L.month()]:this._monthsShort[q1.test(F)?"format":"standalone"][L.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},N.monthsParse=function e4(L,F,I){var O,l1,R1;if(this._monthsParseExact)return P2.call(this,L,F,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),O=0;O<12;O++){if(l1=h1([2e3,O]),I&&!this._longMonthsParse[O]&&(this._longMonthsParse[O]=new RegExp("^"+this.months(l1,"").replace(".","")+"$","i"),this._shortMonthsParse[O]=new RegExp("^"+this.monthsShort(l1,"").replace(".","")+"$","i")),!I&&!this._monthsParse[O]&&(R1="^"+this.months(l1,"")+"|^"+this.monthsShort(l1,""),this._monthsParse[O]=new RegExp(R1.replace(".",""),"i")),I&&"MMMM"===F&&this._longMonthsParse[O].test(L))return O;if(I&&"MMM"===F&&this._shortMonthsParse[O].test(L))return O;if(!I&&this._monthsParse[O].test(L))return O}},N.monthsRegex=function R0(L){return this._monthsParseExact?(S(this,"_monthsRegex")||A0.call(this),L?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=h2),this._monthsStrictRegex&&L?this._monthsStrictRegex:this._monthsRegex)},N.monthsShortRegex=function v4(L){return this._monthsParseExact?(S(this,"_monthsRegex")||A0.call(this),L?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=u2),this._monthsShortStrictRegex&&L?this._monthsShortStrictRegex:this._monthsShortRegex)},N.week=function a0(L){return I4(L,this._week.dow,this._week.doy).week},N.firstDayOfYear=function a3(){return this._week.doy},N.firstDayOfWeek=function p8(){return this._week.dow},N.weekdays=function n4(L,F){var I=p(this._weekdays)?this._weekdays:this._weekdays[L&&!0!==L&&this._weekdays.isFormat.test(F)?"format":"standalone"];return!0===L?b0(I,this._week.dow):L?I[L.day()]:I},N.weekdaysMin=function D3(L){return!0===L?b0(this._weekdaysMin,this._week.dow):L?this._weekdaysMin[L.day()]:this._weekdaysMin},N.weekdaysShort=function P4(L){return!0===L?b0(this._weekdaysShort,this._week.dow):L?this._weekdaysShort[L.day()]:this._weekdaysShort},N.weekdaysParse=function V0(L,F,I){var O,l1,R1;if(this._weekdaysParseExact)return n6.call(this,L,F,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),O=0;O<7;O++){if(l1=h1([2e3,1]).day(O),I&&!this._fullWeekdaysParse[O]&&(this._fullWeekdaysParse[O]=new RegExp("^"+this.weekdays(l1,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[O]=new RegExp("^"+this.weekdaysShort(l1,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[O]=new RegExp("^"+this.weekdaysMin(l1,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[O]||(R1="^"+this.weekdays(l1,"")+"|^"+this.weekdaysShort(l1,"")+"|^"+this.weekdaysMin(l1,""),this._weekdaysParse[O]=new RegExp(R1.replace(".",""),"i")),I&&"dddd"===F&&this._fullWeekdaysParse[O].test(L))return O;if(I&&"ddd"===F&&this._shortWeekdaysParse[O].test(L))return O;if(I&&"dd"===F&&this._minWeekdaysParse[O].test(L))return O;if(!I&&this._weekdaysParse[O].test(L))return O}},N.weekdaysRegex=function h8(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=h3),this._weekdaysStrictRegex&&L?this._weekdaysStrictRegex:this._weekdaysRegex)},N.weekdaysShortRegex=function v3(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=J4),this._weekdaysShortStrictRegex&&L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},N.weekdaysMinRegex=function g8(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=R6),this._weekdaysMinStrictRegex&&L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},N.isPM=function U3(L){return"p"===(L+"").toLowerCase().charAt(0)},N.meridiem=function x3(L,F,I){return L>11?I?"pm":"PM":I?"am":"AM"},R3("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var F=L%10;return L+(1===b2(L%100/10)?"th":1===F?"st":2===F?"nd":3===F?"rd":"th")}}),g.lang=d2("moment.lang is deprecated. Use moment.locale instead.",R3),g.langData=d2("moment.langData is deprecated. Use moment.localeData instead.",N0);var D4=Math.abs;function Fe(L,F,I,O){var l1=i6(F,I);return L._milliseconds+=O*l1._milliseconds,L._days+=O*l1._days,L._months+=O*l1._months,L._bubble()}function s8(L){return L<0?Math.floor(L):Math.ceil(L)}function An(L){return 4800*L/146097}function j5(L){return 146097*L/4800}function ce(L){return function(){return this.as(L)}}var _c=ce("ms"),Ps=ce("s"),G6=ce("m"),In=ce("h"),S7=ce("d"),Lc=ce("w"),Pn=ce("M"),af=ce("Q"),S4=ce("y"),N7=_c;function Ye(L){return function(){return this.isValid()?this._data[L]:NaN}}var $5=Ye("milliseconds"),qe=Ye("seconds"),H6=Ye("minutes"),jn=Ye("hours"),Cc=Ye("days"),js=Ye("months"),w8=Ye("years");var B8=Math.round,te={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zc(L,F,I,O,l1){return l1.relativeTime(F||1,!!I,L,O)}var ne=Math.abs;function _0(L){return(L>0)-(L<0)||+L}function le(){if(!this.isValid())return this.localeData().invalidDate();var O,l1,R1,n2,$0,s4,Q1,O0,L=ne(this._milliseconds)/1e3,F=ne(this._days),I=ne(this._months),Z2=this.asSeconds();return Z2?(O=F2(L/60),l1=F2(O/60),L%=60,O%=60,R1=F2(I/12),I%=12,n2=L?L.toFixed(3).replace(/\.?0+$/,""):"",$0=Z2<0?"-":"",s4=_0(this._months)!==_0(Z2)?"-":"",Q1=_0(this._days)!==_0(Z2)?"-":"",O0=_0(this._milliseconds)!==_0(Z2)?"-":"",$0+"P"+(R1?s4+R1+"Y":"")+(I?s4+I+"M":"")+(F?Q1+F+"D":"")+(l1||O||L?"T":"")+(l1?O0+l1+"H":"")+(O?O0+O+"M":"")+(L?O0+n2+"S":"")):"P0D"}var f4=t8.prototype;return f4.isValid=function W8(){return this._isValid},f4.abs=function He(){var L=this._data;return this._milliseconds=D4(this._milliseconds),this._days=D4(this._days),this._months=D4(this._months),L.milliseconds=D4(L.milliseconds),L.seconds=D4(L.seconds),L.minutes=D4(L.minutes),L.hours=D4(L.hours),L.months=D4(L.months),L.years=D4(L.years),this},f4.add=function ve(L,F){return Fe(this,L,F,1)},f4.subtract=function ke(L,F){return Fe(this,L,F,-1)},f4.as=function w7(L){if(!this.isValid())return NaN;var F,I,O=this._milliseconds;if("month"===(L=m4(L))||"quarter"===L||"year"===L)switch(F=this._days+O/864e5,I=this._months+An(F),L){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(F=this._days+Math.round(j5(this._months)),L){case"week":return F/7+O/6048e5;case"day":return F+O/864e5;case"hour":return 24*F+O/36e5;case"minute":return 1440*F+O/6e4;case"second":return 86400*F+O/1e3;case"millisecond":return Math.floor(864e5*F)+O;default:throw new Error("Unknown unit "+L)}},f4.asMilliseconds=_c,f4.asSeconds=Ps,f4.asMinutes=G6,f4.asHours=In,f4.asDays=S7,f4.asWeeks=Lc,f4.asMonths=Pn,f4.asQuarters=af,f4.asYears=S4,f4.valueOf=N7,f4._bubble=function Is(){var l1,R1,n2,Z2,$0,L=this._milliseconds,F=this._days,I=this._months,O=this._data;return L>=0&&F>=0&&I>=0||L<=0&&F<=0&&I<=0||(L+=864e5*s8(j5(I)+F),F=0,I=0),O.milliseconds=L%1e3,l1=F2(L/1e3),O.seconds=l1%60,R1=F2(l1/60),O.minutes=R1%60,n2=F2(R1/60),O.hours=n2%24,F+=F2(n2/24),I+=$0=F2(An(F)),F-=s8(j5($0)),Z2=F2(I/12),I%=12,O.days=F,O.months=I,O.years=Z2,this},f4.clone=function d5(){return i6(this)},f4.get=function d6(L){return L=m4(L),this.isValid()?this[L+"s"]():NaN},f4.milliseconds=$5,f4.seconds=qe,f4.minutes=H6,f4.hours=jn,f4.days=Cc,f4.weeks=function $n(){return F2(this.days()/7)},f4.months=js,f4.years=w8,f4.humanize=function E7(L,F){if(!this.isValid())return this.localeData().invalidDate();var l1,R1,I=!1,O=te;return"object"==typeof L&&(F=L,L=!1),"boolean"==typeof L&&(I=L),"object"==typeof F&&(O=Object.assign({},te,F),null!=F.s&&null==F.ss&&(O.ss=F.s-1)),R1=function Mc(L,F,I,O){var l1=i6(L).abs(),R1=B8(l1.as("s")),n2=B8(l1.as("m")),Z2=B8(l1.as("h")),$0=B8(l1.as("d")),s4=B8(l1.as("M")),Q1=B8(l1.as("w")),O0=B8(l1.as("y")),se=R1<=I.ss&&["s",R1]||R10,se[4]=O,zc.apply(null,se)}(this,!I,O,l1=this.localeData()),I&&(R1=l1.pastFuture(+this,R1)),l1.postformat(R1)},f4.toISOString=le,f4.toString=le,f4.toJSON=le,f4.locale=q2,f4.localeData=l4,f4.toIsoString=d2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",le),f4.lang=g4,A1("X",0,0,"unix"),A1("x",0,0,"valueOf"),x1("x",S0),x1("X",/[+-]?\d+(\.\d{1,3})?/),m0("X",function(L,F,I){I._d=new Date(1e3*parseFloat(L))}),m0("x",function(L,F,I){I._d=new Date(b2(L))}),g.version="2.30.1",function e(L){m=L}(h4),g.fn=k2,g.min=function Ie(){return i4("isBefore",[].slice.call(arguments,0))},g.max=function Pe(){return i4("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=h1,g.unix=function x(L){return h4(1e3*L)},g.months=function W1(L,F){return c1(L,F,"months")},g.isDate=K,g.locale=R3,g.invalid=$1,g.duration=i6,g.isMoment=O1,g.weekdays=function O2(L,F,I){return z1(L,F,I,"weekdays")},g.parseZone=function E(){return h4.apply(null,arguments).parseZone()},g.localeData=N0,g.isDuration=B6,g.monthsShort=function V1(L,F){return c1(L,F,"monthsShort")},g.weekdaysMin=function Q0(L,F,I){return z1(L,F,I,"weekdaysMin")},g.defineLocale=Z6,g.updateLocale=function k3(L,F){if(null!=F){var I,O,l1=d3;null!=G0[L]&&null!=G0[L].parentLocale?G0[L].set(X0(G0[L]._config,F)):(null!=(O=Q4(L))&&(l1=O._config),F=X0(l1,F),null==O&&(F.abbr=L),(I=new Z0(F)).parentLocale=G0[L],G0[L]=I),R3(L)}else null!=G0[L]&&(null!=G0[L].parentLocale?(G0[L]=G0[L].parentLocale,L===R3()&&R3(L)):null!=G0[L]&&delete G0[L]);return G0[L]},g.locales=function K6(){return B4(G0)},g.weekdaysShort=function J0(L,F,I){return z1(L,F,I,"weekdaysShort")},g.normalizeUnits=m4,g.relativeTimeRounding=function O5(L){return void 0===L?B8:"function"==typeof L&&(B8=L,!0)},g.relativeTimeThreshold=function xc(L,F){return void 0!==te[L]&&(void 0===F?te[L]:(te[L]=F,"s"===L&&(te.ss=F-1),!0))},g.calendarFormat=function y8(L,F){var I=L.diff(F,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},g.prototype=k2,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g}()},4412:(y1,d1,y)=>{"use strict";y.d(d1,{t:()=>g});var m=y(1413);class g extends m.B{constructor(p){super(),this._value=p}get value(){return this.getValue()}_subscribe(p){const _=super._subscribe(p);return!_.closed&&p.next(this._value),_}getValue(){const{hasError:p,thrownError:_,_value:S}=this;if(p)throw _;return this._throwIfClosed(),S}next(p){super.next(this._value=p)}}},1985:(y1,d1,y)=>{"use strict";y.d(d1,{c:()=>$});var m=y(7707),g=y(8359),e=y(3494),p=y(1203),_=y(1026),S=y(8071),A=y(9786);let $=(()=>{class Y{constructor(e1){e1&&(this._subscribe=e1)}lift(e1){const r1=new Y;return r1.source=this,r1.operator=e1,r1}subscribe(e1,r1,M1){const f1=function p1(Y){return Y&&Y instanceof m.vU||function K(Y){return Y&&(0,S.T)(Y.next)&&(0,S.T)(Y.error)&&(0,S.T)(Y.complete)}(Y)&&(0,g.Uv)(Y)}(e1)?e1:new m.Ms(e1,r1,M1);return(0,A.Y)(()=>{const{operator:$1,source:o2}=this;f1.add($1?$1.call(f1,o2):o2?this._subscribe(f1):this._trySubscribe(f1))}),f1}_trySubscribe(e1){try{return this._subscribe(e1)}catch(r1){e1.error(r1)}}forEach(e1,r1){return new(r1=Z(r1))((M1,f1)=>{const $1=new m.Ms({next:o2=>{try{e1(o2)}catch(S2){f1(S2),$1.unsubscribe()}},error:f1,complete:M1});this.subscribe($1)})}_subscribe(e1){var r1;return null===(r1=this.source)||void 0===r1?void 0:r1.subscribe(e1)}[e.s](){return this}pipe(...e1){return(0,p.m)(e1)(this)}toPromise(e1){return new(e1=Z(e1))((r1,M1)=>{let f1;this.subscribe($1=>f1=$1,$1=>M1($1),()=>r1(f1))})}}return Y.create=h1=>new Y(h1),Y})();function Z(Y){var h1;return null!==(h1=Y??_.$.Promise)&&void 0!==h1?h1:Promise}},1413:(y1,d1,y)=>{"use strict";y.d(d1,{B:()=>A});var m=y(1985),g=y(8359);const p=(0,y(1853).L)(Z=>function(){Z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var _=y(7908),S=y(9786);let A=(()=>{class Z extends m.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(p1){const Y=new $(this,this);return Y.operator=p1,Y}_throwIfClosed(){if(this.closed)throw new p}next(p1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Y of this.currentObservers)Y.next(p1)}})}error(p1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=p1;const{observers:Y}=this;for(;Y.length;)Y.shift().error(p1)}})}complete(){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:p1}=this;for(;p1.length;)p1.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var p1;return(null===(p1=this.observers)||void 0===p1?void 0:p1.length)>0}_trySubscribe(p1){return this._throwIfClosed(),super._trySubscribe(p1)}_subscribe(p1){return this._throwIfClosed(),this._checkFinalizedStatuses(p1),this._innerSubscribe(p1)}_innerSubscribe(p1){const{hasError:Y,isStopped:h1,observers:e1}=this;return Y||h1?g.Kn:(this.currentObservers=null,e1.push(p1),new g.yU(()=>{this.currentObservers=null,(0,_.o)(e1,p1)}))}_checkFinalizedStatuses(p1){const{hasError:Y,thrownError:h1,isStopped:e1}=this;Y?p1.error(h1):e1&&p1.complete()}asObservable(){const p1=new m.c;return p1.source=this,p1}}return Z.create=(K,p1)=>new $(K,p1),Z})();class $ extends A{constructor(K,p1){super(),this.destination=K,this.source=p1}next(K){var p1,Y;null===(Y=null===(p1=this.destination)||void 0===p1?void 0:p1.next)||void 0===Y||Y.call(p1,K)}error(K){var p1,Y;null===(Y=null===(p1=this.destination)||void 0===p1?void 0:p1.error)||void 0===Y||Y.call(p1,K)}complete(){var K,p1;null===(p1=null===(K=this.destination)||void 0===K?void 0:K.complete)||void 0===p1||p1.call(K)}_subscribe(K){var p1,Y;return null!==(Y=null===(p1=this.source)||void 0===p1?void 0:p1.subscribe(K))&&void 0!==Y?Y:g.Kn}}},7707:(y1,d1,y)=>{"use strict";y.d(d1,{Ms:()=>M1,vU:()=>Y});var m=y(8071),g=y(8359),e=y(1026),p=y(5334),_=y(5343);const S=Z("C",void 0,void 0);function Z(c2,G1,O1){return{kind:c2,value:G1,error:O1}}var K=y(9270),p1=y(9786);class Y extends g.yU{constructor(G1){super(),this.isStopped=!1,G1?(this.destination=G1,(0,g.Uv)(G1)&&G1.add(this)):this.destination=S2}static create(G1,O1,d0){return new M1(G1,O1,d0)}next(G1){this.isStopped?o2(function $(c2){return Z("N",c2,void 0)}(G1),this):this._next(G1)}error(G1){this.isStopped?o2(function A(c2){return Z("E",void 0,c2)}(G1),this):(this.isStopped=!0,this._error(G1))}complete(){this.isStopped?o2(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(G1){this.destination.next(G1)}_error(G1){try{this.destination.error(G1)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const h1=Function.prototype.bind;function e1(c2,G1){return h1.call(c2,G1)}class r1{constructor(G1){this.partialObserver=G1}next(G1){const{partialObserver:O1}=this;if(O1.next)try{O1.next(G1)}catch(d0){f1(d0)}}error(G1){const{partialObserver:O1}=this;if(O1.error)try{O1.error(G1)}catch(d0){f1(d0)}else f1(G1)}complete(){const{partialObserver:G1}=this;if(G1.complete)try{G1.complete()}catch(O1){f1(O1)}}}class M1 extends Y{constructor(G1,O1,d0){let d2;if(super(),(0,m.T)(G1)||!G1)d2={next:G1??void 0,error:O1??void 0,complete:d0??void 0};else{let _2;this&&e.$.useDeprecatedNextContext?(_2=Object.create(G1),_2.unsubscribe=()=>this.unsubscribe(),d2={next:G1.next&&e1(G1.next,_2),error:G1.error&&e1(G1.error,_2),complete:G1.complete&&e1(G1.complete,_2)}):d2=G1}this.destination=new r1(d2)}}function f1(c2){e.$.useDeprecatedSynchronousErrorHandling?(0,p1.l)(c2):(0,p.m)(c2)}function o2(c2,G1){const{onStoppedNotification:O1}=e.$;O1&&K.f.setTimeout(()=>O1(c2,G1))}const S2={closed:!0,next:_.l,error:function $1(c2){throw c2},complete:_.l}},8359:(y1,d1,y)=>{"use strict";y.d(d1,{Kn:()=>S,yU:()=>_,Uv:()=>A});var m=y(8071);const e=(0,y(1853).L)(Z=>function(p1){Z(this),this.message=p1?`${p1.length} errors occurred during unsubscription:\n${p1.map((Y,h1)=>`${h1+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=p1});var p=y(7908);class _{constructor(K){this.initialTeardown=K,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let K;if(!this.closed){this.closed=!0;const{_parentage:p1}=this;if(p1)if(this._parentage=null,Array.isArray(p1))for(const e1 of p1)e1.remove(this);else p1.remove(this);const{initialTeardown:Y}=this;if((0,m.T)(Y))try{Y()}catch(e1){K=e1 instanceof e?e1.errors:[e1]}const{_finalizers:h1}=this;if(h1){this._finalizers=null;for(const e1 of h1)try{$(e1)}catch(r1){K=K??[],r1 instanceof e?K=[...K,...r1.errors]:K.push(r1)}}if(K)throw new e(K)}}add(K){var p1;if(K&&K!==this)if(this.closed)$(K);else{if(K instanceof _){if(K.closed||K._hasParent(this))return;K._addParent(this)}(this._finalizers=null!==(p1=this._finalizers)&&void 0!==p1?p1:[]).push(K)}}_hasParent(K){const{_parentage:p1}=this;return p1===K||Array.isArray(p1)&&p1.includes(K)}_addParent(K){const{_parentage:p1}=this;this._parentage=Array.isArray(p1)?(p1.push(K),p1):p1?[p1,K]:K}_removeParent(K){const{_parentage:p1}=this;p1===K?this._parentage=null:Array.isArray(p1)&&(0,p.o)(p1,K)}remove(K){const{_finalizers:p1}=this;p1&&(0,p.o)(p1,K),K instanceof _&&K._removeParent(this)}}_.EMPTY=(()=>{const Z=new _;return Z.closed=!0,Z})();const S=_.EMPTY;function A(Z){return Z instanceof _||Z&&"closed"in Z&&(0,m.T)(Z.remove)&&(0,m.T)(Z.add)&&(0,m.T)(Z.unsubscribe)}function $(Z){(0,m.T)(Z)?Z():Z.unsubscribe()}},1026:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>m});const m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4843:(y1,d1,y)=>{"use strict";y.d(d1,{_:()=>e});var m=y(9350),g=y(7707);function e(p,_){const S="object"==typeof _;return new Promise((A,$)=>{const Z=new g.Ms({next:K=>{A(K),Z.unsubscribe()},error:$,complete:()=>{S?A(_.defaultValue):$(new m.G)}});p.subscribe(Z)})}},3207:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>g});var m=y(9350);function g(e,p){const _="object"==typeof p;return new Promise((S,A)=>{let Z,$=!1;e.subscribe({next:K=>{Z=K,$=!0},error:A,complete:()=>{$?S(Z):_?S(p.defaultValue):A(new m.G)}})})}},4572:(y1,d1,y)=>{"use strict";y.d(d1,{z:()=>K});var m=y(1985),g=y(3073),e=y(6648),p=y(3669),_=y(6450),S=y(9326),A=y(8496),$=y(4360),Z=y(5225);function K(...h1){const e1=(0,S.lI)(h1),r1=(0,S.ms)(h1),{args:M1,keys:f1}=(0,g.D)(h1);if(0===M1.length)return(0,e.H)([],e1);const $1=new m.c(function p1(h1,e1,r1=p.D){return M1=>{Y(e1,()=>{const{length:f1}=h1,$1=new Array(f1);let o2=f1,S2=f1;for(let c2=0;c2{const G1=(0,e.H)(h1[c2],e1);let O1=!1;G1.subscribe((0,$._)(M1,d0=>{$1[c2]=d0,O1||(O1=!0,S2--),S2||M1.next(r1($1.slice()))},()=>{--o2||M1.complete()}))},M1)},M1)}}(M1,e1,f1?o2=>(0,A.e)(f1,o2):p.D));return r1?$1.pipe((0,_.I)(r1)):$1}function Y(h1,e1,r1){h1?(0,Z.N)(r1,h1,e1):e1()}},8793:(y1,d1,y)=>{"use strict";y.d(d1,{x:()=>_});var m=y(6365),e=y(9326),p=y(6648);function _(...S){return function g(){return(0,m.U)(1)}()((0,p.H)(S,(0,e.lI)(S)))}},9030:(y1,d1,y)=>{"use strict";y.d(d1,{v:()=>e});var m=y(1985),g=y(8750);function e(p){return new m.c(_=>{(0,g.Tg)(p()).subscribe(_)})}},983:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>g});const g=new(y(1985).c)(_=>_.complete())},7468:(y1,d1,y)=>{"use strict";y.d(d1,{p:()=>$});var m=y(1985),g=y(3073),e=y(8750),p=y(9326),_=y(4360),S=y(6450),A=y(8496);function $(...Z){const K=(0,p.ms)(Z),{args:p1,keys:Y}=(0,g.D)(Z),h1=new m.c(e1=>{const{length:r1}=p1;if(!r1)return void e1.complete();const M1=new Array(r1);let f1=r1,$1=r1;for(let o2=0;o2{S2||(S2=!0,$1--),M1[o2]=c2},()=>f1--,void 0,()=>{(!f1||!S2)&&($1||e1.next(Y?(0,A.e)(Y,M1):M1),e1.complete())}))}});return K?h1.pipe((0,S.I)(K)):h1}},6648:(y1,d1,y)=>{"use strict";y.d(d1,{H:()=>d0});var m=y(8750),g=y(5225),e=y(9974),p=y(4360);function _(d2,_2=0){return(0,e.N)((w2,v2)=>{w2.subscribe((0,p._)(v2,t0=>(0,g.N)(v2,d2,()=>v2.next(t0),_2),()=>(0,g.N)(v2,d2,()=>v2.complete(),_2),t0=>(0,g.N)(v2,d2,()=>v2.error(t0),_2)))})}function S(d2,_2=0){return(0,e.N)((w2,v2)=>{v2.add(d2.schedule(()=>w2.subscribe(v2),_2))})}var Z=y(1985),p1=y(4761),Y=y(8071);function e1(d2,_2){if(!d2)throw new Error("Iterable cannot be null");return new Z.c(w2=>{(0,g.N)(w2,_2,()=>{const v2=d2[Symbol.asyncIterator]();(0,g.N)(w2,_2,()=>{v2.next().then(t0=>{t0.done?w2.complete():w2.next(t0.value)})},0,!0)})})}var r1=y(5055),M1=y(9858),f1=y(7441),$1=y(5397),o2=y(7953),S2=y(591),c2=y(5196);function d0(d2,_2){return _2?function O1(d2,_2){if(null!=d2){if((0,r1.l)(d2))return function A(d2,_2){return(0,m.Tg)(d2).pipe(S(_2),_(_2))}(d2,_2);if((0,f1.X)(d2))return function K(d2,_2){return new Z.c(w2=>{let v2=0;return _2.schedule(function(){v2===d2.length?w2.complete():(w2.next(d2[v2++]),w2.closed||this.schedule())})})}(d2,_2);if((0,M1.y)(d2))return function $(d2,_2){return(0,m.Tg)(d2).pipe(S(_2),_(_2))}(d2,_2);if((0,o2.T)(d2))return e1(d2,_2);if((0,$1.x)(d2))return function h1(d2,_2){return new Z.c(w2=>{let v2;return(0,g.N)(w2,_2,()=>{v2=d2[p1.l](),(0,g.N)(w2,_2,()=>{let t0,X0;try{({value:t0,done:X0}=v2.next())}catch(Z0){return void w2.error(Z0)}X0?w2.complete():w2.next(t0)},0,!0)}),()=>(0,Y.T)(v2?.return)&&v2.return()})}(d2,_2);if((0,c2.U)(d2))return function G1(d2,_2){return e1((0,c2.C)(d2),_2)}(d2,_2)}throw(0,S2.L)(d2)}(d2,_2):(0,m.Tg)(d2)}},8750:(y1,d1,y)=>{"use strict";y.d(d1,{Tg:()=>h1});var m=y(1635),g=y(7441),e=y(9858),p=y(1985),_=y(5055),S=y(7953),A=y(591),$=y(5397),Z=y(5196),K=y(8071),p1=y(5334),Y=y(3494);function h1(c2){if(c2 instanceof p.c)return c2;if(null!=c2){if((0,_.l)(c2))return function e1(c2){return new p.c(G1=>{const O1=c2[Y.s]();if((0,K.T)(O1.subscribe))return O1.subscribe(G1);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(c2);if((0,g.X)(c2))return function r1(c2){return new p.c(G1=>{for(let O1=0;O1{c2.then(O1=>{G1.closed||(G1.next(O1),G1.complete())},O1=>G1.error(O1)).then(null,p1.m)})}(c2);if((0,S.T)(c2))return $1(c2);if((0,$.x)(c2))return function f1(c2){return new p.c(G1=>{for(const O1 of c2)if(G1.next(O1),G1.closed)return;G1.complete()})}(c2);if((0,Z.U)(c2))return function o2(c2){return $1((0,Z.C)(c2))}(c2)}throw(0,A.L)(c2)}function $1(c2){return new p.c(G1=>{(function S2(c2,G1){var O1,d0,d2,_2;return(0,m.sH)(this,void 0,void 0,function*(){try{for(O1=(0,m.xN)(c2);!(d0=yield O1.next()).done;)if(G1.next(d0.value),G1.closed)return}catch(w2){d2={error:w2}}finally{try{d0&&!d0.done&&(_2=O1.return)&&(yield _2.call(O1))}finally{if(d2)throw d2.error}}G1.complete()})})(c2,G1).catch(O1=>G1.error(O1))})}},7673:(y1,d1,y)=>{"use strict";y.d(d1,{of:()=>e});var m=y(9326),g=y(6648);function e(...p){const _=(0,m.lI)(p);return(0,g.H)(p,_)}},8810:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>e});var m=y(1985),g=y(8071);function e(p,_){const S=(0,g.T)(p)?p:()=>p,A=$=>$.error(S());return new m.c(_?$=>_.schedule(A,0,$):A)}},4360:(y1,d1,y)=>{"use strict";y.d(d1,{_:()=>g});var m=y(7707);function g(p,_,S,A,$){return new e(p,_,S,A,$)}class e extends m.vU{constructor(_,S,A,$,Z,K){super(_),this.onFinalize=Z,this.shouldUnsubscribe=K,this._next=S?function(p1){try{S(p1)}catch(Y){_.error(Y)}}:super._next,this._error=$?function(p1){try{$(p1)}catch(Y){_.error(Y)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(p1){_.error(p1)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var _;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:S}=this;super.unsubscribe(),!S&&(null===(_=this.onFinalize)||void 0===_||_.call(this))}}}},9437:(y1,d1,y)=>{"use strict";y.d(d1,{W:()=>p});var m=y(8750),g=y(4360),e=y(9974);function p(_){return(0,e.N)((S,A)=>{let K,$=null,Z=!1;$=S.subscribe((0,g._)(A,void 0,void 0,p1=>{K=(0,m.Tg)(_(p1,p(_)(S))),$?($.unsubscribe(),$=null,K.subscribe(A)):Z=!0})),Z&&($.unsubscribe(),$=null,K.subscribe(A))})}},274:(y1,d1,y)=>{"use strict";y.d(d1,{H:()=>e});var m=y(3028),g=y(8071);function e(p,_){return(0,g.T)(_)?(0,m.Z)(p,_,1):(0,m.Z)(p,1)}},9901:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>e});var m=y(9974),g=y(4360);function e(p){return(0,m.N)((_,S)=>{let A=!1;_.subscribe((0,g._)(S,$=>{A=!0,S.next($)},()=>{A||S.next(p),S.complete()}))})}},5964:(y1,d1,y)=>{"use strict";y.d(d1,{p:()=>e});var m=y(9974),g=y(4360);function e(p,_){return(0,m.N)((S,A)=>{let $=0;S.subscribe((0,g._)(A,Z=>p.call(_,Z,$++)&&A.next(Z)))})}},980:(y1,d1,y)=>{"use strict";y.d(d1,{j:()=>g});var m=y(9974);function g(e){return(0,m.N)((p,_)=>{try{p.subscribe(_)}finally{_.add(e)}})}},1594:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>A});var m=y(9350),g=y(5964),e=y(6697),p=y(9901),_=y(3774),S=y(3669);function A($,Z){const K=arguments.length>=2;return p1=>p1.pipe($?(0,g.p)((Y,h1)=>$(Y,h1,p1)):S.D,(0,e.s)(1),K?(0,p.U)(Z):(0,_.v)(()=>new m.G))}},6354:(y1,d1,y)=>{"use strict";y.d(d1,{T:()=>e});var m=y(9974),g=y(4360);function e(p,_){return(0,m.N)((S,A)=>{let $=0;S.subscribe((0,g._)(A,Z=>{A.next(p.call(_,Z,$++))}))})}},3703:(y1,d1,y)=>{"use strict";y.d(d1,{u:()=>g});var m=y(6354);function g(e){return(0,m.T)(()=>e)}},6365:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>e});var m=y(3028),g=y(3669);function e(p=1/0){return(0,m.Z)(g.D,p)}},5412:(y1,d1,y)=>{"use strict";y.d(d1,{h:()=>p});var m=y(8750),g=y(5225),e=y(4360);function p(_,S,A,$,Z,K,p1,Y){const h1=[];let e1=0,r1=0,M1=!1;const f1=()=>{M1&&!h1.length&&!e1&&S.complete()},$1=S2=>e1<$?o2(S2):h1.push(S2),o2=S2=>{K&&S.next(S2),e1++;let c2=!1;(0,m.Tg)(A(S2,r1++)).subscribe((0,e._)(S,G1=>{Z?.(G1),K?$1(G1):S.next(G1)},()=>{c2=!0},void 0,()=>{if(c2)try{for(e1--;h1.length&&e1<$;){const G1=h1.shift();p1?(0,g.N)(S,p1,()=>o2(G1)):o2(G1)}f1()}catch(G1){S.error(G1)}}))};return _.subscribe((0,e._)(S,$1,()=>{M1=!0,f1()})),()=>{Y?.()}}},3028:(y1,d1,y)=>{"use strict";y.d(d1,{Z:()=>S});var m=y(6354),g=y(8750),e=y(9974),p=y(5412),_=y(8071);function S(A,$,Z=1/0){return(0,_.T)($)?S((K,p1)=>(0,m.T)((Y,h1)=>$(K,Y,p1,h1))((0,g.Tg)(A(K,p1))),Z):("number"==typeof $&&(Z=$),(0,e.N)((K,p1)=>(0,p.h)(K,p1,A,Z)))}},6649:(y1,d1,y)=>{"use strict";y.d(d1,{S:()=>g});var m=y(4360);function g(e,p,_,S,A){return($,Z)=>{let K=_,p1=p,Y=0;$.subscribe((0,m._)(Z,h1=>{const e1=Y++;p1=K?e(p1,h1,e1):(K=!0,h1),S&&Z.next(p1)},A&&(()=>{K&&Z.next(p1),Z.complete()})))}}},253:(y1,d1,y)=>{"use strict";y.d(d1,{t:()=>Z});var m=y(1413),g=y(6129);class e extends m.B{constructor(p1=1/0,Y=1/0,h1=g.U){super(),this._bufferSize=p1,this._windowTime=Y,this._timestampProvider=h1,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Y===1/0,this._bufferSize=Math.max(1,p1),this._windowTime=Math.max(1,Y)}next(p1){const{isStopped:Y,_buffer:h1,_infiniteTimeWindow:e1,_timestampProvider:r1,_windowTime:M1}=this;Y||(h1.push(p1),!e1&&h1.push(r1.now()+M1)),this._trimBuffer(),super.next(p1)}_subscribe(p1){this._throwIfClosed(),this._trimBuffer();const Y=this._innerSubscribe(p1),{_infiniteTimeWindow:h1,_buffer:e1}=this,r1=e1.slice();for(let M1=0;M1{h1.unsubscribe(),K()}});return(0,p.Tg)(p1(...Y)).subscribe(h1)}function Z(K,p1,Y){let h1,e1=!1;return K&&"object"==typeof K?({bufferSize:h1=1/0,windowTime:p1=1/0,refCount:e1=!1,scheduler:Y}=K):h1=K??1/0,function A(K={}){const{connector:p1=(()=>new m.B),resetOnError:Y=!0,resetOnComplete:h1=!0,resetOnRefCountZero:e1=!0}=K;return r1=>{let M1,f1,$1,o2=0,S2=!1,c2=!1;const G1=()=>{f1?.unsubscribe(),f1=void 0},O1=()=>{G1(),M1=$1=void 0,S2=c2=!1},d0=()=>{const d2=M1;O1(),d2?.unsubscribe()};return(0,S.N)((d2,_2)=>{o2++,!c2&&!S2&&G1();const w2=$1=$1??p1();_2.add(()=>{o2--,0===o2&&!c2&&!S2&&(f1=$(d0,e1))}),w2.subscribe(_2),!M1&&o2>0&&(M1=new _.Ms({next:v2=>w2.next(v2),error:v2=>{c2=!0,G1(),f1=$(O1,Y,v2),w2.error(v2)},complete:()=>{S2=!0,G1(),f1=$(O1,h1),w2.complete()}}),(0,p.Tg)(d2).subscribe(M1))})(r1)}}({connector:()=>new e(h1,p1,Y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:e1})}},9172:(y1,d1,y)=>{"use strict";y.d(d1,{Z:()=>p});var m=y(8793),g=y(9326),e=y(9974);function p(..._){const S=(0,g.lI)(_);return(0,e.N)((A,$)=>{(S?(0,m.x)(_,A,S):(0,m.x)(_,A)).subscribe($)})}},5558:(y1,d1,y)=>{"use strict";y.d(d1,{n:()=>p});var m=y(8750),g=y(9974),e=y(4360);function p(_,S){return(0,g.N)((A,$)=>{let Z=null,K=0,p1=!1;const Y=()=>p1&&!Z&&$.complete();A.subscribe((0,e._)($,h1=>{Z?.unsubscribe();let e1=0;const r1=K++;(0,m.Tg)(_(h1,r1)).subscribe(Z=(0,e._)($,M1=>$.next(S?S(h1,M1,r1,e1++):M1),()=>{Z=null,Y()}))},()=>{p1=!0,Y()}))})}},6697:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>p});var m=y(983),g=y(9974),e=y(4360);function p(_){return _<=0?()=>m.w:(0,g.N)((S,A)=>{let $=0;S.subscribe((0,e._)(A,Z=>{++$<=_&&(A.next(Z),_<=$&&A.complete())}))})}},6977:(y1,d1,y)=>{"use strict";y.d(d1,{Q:()=>_});var m=y(9974),g=y(4360),e=y(8750),p=y(5343);function _(S){return(0,m.N)((A,$)=>{(0,e.Tg)(S).subscribe((0,g._)($,()=>$.complete(),p.l)),!$.closed&&A.subscribe($)})}},8141:(y1,d1,y)=>{"use strict";y.d(d1,{M:()=>_});var m=y(8071),g=y(9974),e=y(4360),p=y(3669);function _(S,A,$){const Z=(0,m.T)(S)||A||$?{next:S,error:A,complete:$}:S;return Z?(0,g.N)((K,p1)=>{var Y;null===(Y=Z.subscribe)||void 0===Y||Y.call(Z);let h1=!0;K.subscribe((0,e._)(p1,e1=>{var r1;null===(r1=Z.next)||void 0===r1||r1.call(Z,e1),p1.next(e1)},()=>{var e1;h1=!1,null===(e1=Z.complete)||void 0===e1||e1.call(Z),p1.complete()},e1=>{var r1;h1=!1,null===(r1=Z.error)||void 0===r1||r1.call(Z,e1),p1.error(e1)},()=>{var e1,r1;h1&&(null===(e1=Z.unsubscribe)||void 0===e1||e1.call(Z)),null===(r1=Z.finalize)||void 0===r1||r1.call(Z)}))}):p.D}},3774:(y1,d1,y)=>{"use strict";y.d(d1,{v:()=>p});var m=y(9350),g=y(9974),e=y(4360);function p(S=_){return(0,g.N)((A,$)=>{let Z=!1;A.subscribe((0,e._)($,K=>{Z=!0,$.next(K)},()=>Z?$.complete():$.error(S())))})}function _(){return new m.G}},6129:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>m});const m={now:()=>(m.delegate||Date).now(),delegate:void 0}},9270:(y1,d1,y)=>{"use strict";y.d(d1,{f:()=>m});const m={setTimeout(g,e,...p){const{delegate:_}=m;return _?.setTimeout?_.setTimeout(g,e,...p):setTimeout(g,e,...p)},clearTimeout(g){const{delegate:e}=m;return(e?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(y1,d1,y)=>{"use strict";y.d(d1,{l:()=>g});const g=function m(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>m});const m="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(y1,d1,y)=>{"use strict";y.d(d1,{G:()=>g});const g=(0,y(1853).L)(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(y1,d1,y)=>{"use strict";y.d(d1,{R0:()=>S,lI:()=>_,ms:()=>p});var m=y(8071),g=y(9470);function e(A){return A[A.length-1]}function p(A){return(0,m.T)(e(A))?A.pop():void 0}function _(A){return(0,g.m)(e(A))?A.pop():void 0}function S(A,$){return"number"==typeof e(A)?A.pop():$}},3073:(y1,d1,y)=>{"use strict";y.d(d1,{D:()=>_});const{isArray:m}=Array,{getPrototypeOf:g,prototype:e,keys:p}=Object;function _(A){if(1===A.length){const $=A[0];if(m($))return{args:$,keys:null};if(function S(A){return A&&"object"==typeof A&&g(A)===e}($)){const Z=p($);return{args:Z.map(K=>$[K]),keys:Z}}}return{args:A,keys:null}}},7908:(y1,d1,y)=>{"use strict";function m(g,e){if(g){const p=g.indexOf(e);0<=p&&g.splice(p,1)}}y.d(d1,{o:()=>m})},1853:(y1,d1,y)=>{"use strict";function m(g){const p=g(_=>{Error.call(_),_.stack=(new Error).stack});return p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p}y.d(d1,{L:()=>m})},8496:(y1,d1,y)=>{"use strict";function m(g,e){return g.reduce((p,_,S)=>(p[_]=e[S],p),{})}y.d(d1,{e:()=>m})},9786:(y1,d1,y)=>{"use strict";y.d(d1,{Y:()=>e,l:()=>p});var m=y(1026);let g=null;function e(_){if(m.$.useDeprecatedSynchronousErrorHandling){const S=!g;if(S&&(g={errorThrown:!1,error:null}),_(),S){const{errorThrown:A,error:$}=g;if(g=null,A)throw $}}else _()}function p(_){m.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=_)}},5225:(y1,d1,y)=>{"use strict";function m(g,e,p,_=0,S=!1){const A=e.schedule(function(){p(),S?g.add(this.schedule(null,_)):this.unsubscribe()},_);if(g.add(A),!S)return A}y.d(d1,{N:()=>m})},3669:(y1,d1,y)=>{"use strict";function m(g){return g}y.d(d1,{D:()=>m})},7441:(y1,d1,y)=>{"use strict";y.d(d1,{X:()=>m});const m=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(y1,d1,y)=>{"use strict";y.d(d1,{T:()=>g});var m=y(8071);function g(e){return Symbol.asyncIterator&&(0,m.T)(e?.[Symbol.asyncIterator])}},8071:(y1,d1,y)=>{"use strict";function m(g){return"function"==typeof g}y.d(d1,{T:()=>m})},5055:(y1,d1,y)=>{"use strict";y.d(d1,{l:()=>e});var m=y(3494),g=y(8071);function e(p){return(0,g.T)(p[m.s])}},5397:(y1,d1,y)=>{"use strict";y.d(d1,{x:()=>e});var m=y(4761),g=y(8071);function e(p){return(0,g.T)(p?.[m.l])}},4402:(y1,d1,y)=>{"use strict";y.d(d1,{A:()=>e});var m=y(1985),g=y(8071);function e(p){return!!p&&(p instanceof m.c||(0,g.T)(p.lift)&&(0,g.T)(p.subscribe))}},9858:(y1,d1,y)=>{"use strict";y.d(d1,{y:()=>g});var m=y(8071);function g(e){return(0,m.T)(e?.then)}},5196:(y1,d1,y)=>{"use strict";y.d(d1,{C:()=>e,U:()=>p});var m=y(1635),g=y(8071);function e(_){return(0,m.AQ)(this,arguments,function*(){const A=_.getReader();try{for(;;){const{value:$,done:Z}=yield(0,m.N3)(A.read());if(Z)return yield(0,m.N3)(void 0);yield yield(0,m.N3)($)}}finally{A.releaseLock()}})}function p(_){return(0,g.T)(_?.getReader)}},9470:(y1,d1,y)=>{"use strict";y.d(d1,{m:()=>g});var m=y(8071);function g(e){return e&&(0,m.T)(e.schedule)}},9974:(y1,d1,y)=>{"use strict";y.d(d1,{N:()=>e,S:()=>g});var m=y(8071);function g(p){return(0,m.T)(p?.lift)}function e(p){return _=>{if(g(_))return _.lift(function(S){try{return p(S,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(y1,d1,y)=>{"use strict";y.d(d1,{I:()=>p});var m=y(6354);const{isArray:g}=Array;function p(_){return(0,m.T)(S=>function e(_,S){return g(S)?_(...S):_(S)}(_,S))}},5343:(y1,d1,y)=>{"use strict";function m(){}y.d(d1,{l:()=>m})},1203:(y1,d1,y)=>{"use strict";y.d(d1,{F:()=>g,m:()=>e});var m=y(3669);function g(...p){return e(p)}function e(p){return 0===p.length?m.D:1===p.length?p[0]:function(S){return p.reduce((A,$)=>$(A),S)}}},5334:(y1,d1,y)=>{"use strict";y.d(d1,{m:()=>e});var m=y(1026),g=y(9270);function e(p){g.f.setTimeout(()=>{const{onUnhandledError:_}=m.$;if(!_)throw p;_(p)})}},591:(y1,d1,y)=>{"use strict";function m(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}y.d(d1,{L:()=>m})},5358:(y1,d1,y)=>{var m={"./af":1544,"./af.js":1544,"./ar":3108,"./ar-dz":2155,"./ar-dz.js":2155,"./ar-kw":3583,"./ar-kw.js":3583,"./ar-ly":1638,"./ar-ly.js":1638,"./ar-ma":7823,"./ar-ma.js":7823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":8261,"./ar-sa.js":8261,"./ar-tn":6703,"./ar-tn.js":6703,"./ar.js":3108,"./az":6508,"./az.js":6508,"./be":6766,"./be.js":6766,"./bg":8564,"./bg.js":8564,"./bm":7462,"./bm.js":7462,"./bn":7107,"./bn-bd":3438,"./bn-bd.js":3438,"./bn.js":7107,"./bo":9004,"./bo.js":9004,"./br":927,"./br.js":927,"./bs":7768,"./bs.js":7768,"./ca":6291,"./ca.js":6291,"./cs":5301,"./cs.js":5301,"./cv":6666,"./cv.js":6666,"./cy":5163,"./cy.js":5163,"./da":7360,"./da.js":7360,"./de":5932,"./de-at":3248,"./de-at.js":3248,"./de-ch":3222,"./de-ch.js":3222,"./de.js":5932,"./dv":6405,"./dv.js":6405,"./el":718,"./el.js":718,"./en-au":6319,"./en-au.js":6319,"./en-ca":597,"./en-ca.js":597,"./en-gb":1800,"./en-gb.js":1800,"./en-ie":807,"./en-ie.js":807,"./en-il":5960,"./en-il.js":5960,"./en-in":4418,"./en-in.js":4418,"./en-nz":6865,"./en-nz.js":6865,"./en-sg":2647,"./en-sg.js":2647,"./eo":1931,"./eo.js":1931,"./es":6679,"./es-do":1805,"./es-do.js":1805,"./es-mx":3445,"./es-mx.js":3445,"./es-us":1516,"./es-us.js":1516,"./es.js":6679,"./et":8150,"./et.js":8150,"./eu":757,"./eu.js":757,"./fa":5742,"./fa.js":5742,"./fi":3958,"./fi.js":3958,"./fil":6720,"./fil.js":6720,"./fo":8352,"./fo.js":8352,"./fr":4059,"./fr-ca":2096,"./fr-ca.js":2096,"./fr-ch":5759,"./fr-ch.js":5759,"./fr.js":4059,"./fy":5958,"./fy.js":5958,"./ga":4143,"./ga.js":4143,"./gd":7028,"./gd.js":7028,"./gl":428,"./gl.js":428,"./gom-deva":6861,"./gom-deva.js":6861,"./gom-latn":7718,"./gom-latn.js":7718,"./gu":6827,"./gu.js":6827,"./he":1936,"./he.js":1936,"./hi":1332,"./hi.js":1332,"./hr":1957,"./hr.js":1957,"./hu":8928,"./hu.js":8928,"./hy-am":6215,"./hy-am.js":6215,"./id":586,"./id.js":586,"./is":211,"./is.js":211,"./it":170,"./it-ch":2340,"./it-ch.js":2340,"./it.js":170,"./ja":9770,"./ja.js":9770,"./jv":3875,"./jv.js":3875,"./ka":9499,"./ka.js":9499,"./kk":3573,"./kk.js":3573,"./km":8807,"./km.js":8807,"./kn":5082,"./kn.js":5082,"./ko":137,"./ko.js":137,"./ku":111,"./ku-kmr":3744,"./ku-kmr.js":3744,"./ku.js":111,"./ky":9187,"./ky.js":9187,"./lb":5969,"./lb.js":5969,"./lo":3526,"./lo.js":3526,"./lt":411,"./lt.js":411,"./lv":2621,"./lv.js":2621,"./me":5869,"./me.js":5869,"./mi":5881,"./mi.js":5881,"./mk":2391,"./mk.js":2391,"./ml":1126,"./ml.js":1126,"./mn":4892,"./mn.js":4892,"./mr":9080,"./mr.js":9080,"./ms":399,"./ms-my":5950,"./ms-my.js":5950,"./ms.js":399,"./mt":9902,"./mt.js":9902,"./my":2985,"./my.js":2985,"./nb":7859,"./nb.js":7859,"./ne":3642,"./ne.js":3642,"./nl":5441,"./nl-be":9875,"./nl-be.js":9875,"./nl.js":5441,"./nn":1311,"./nn.js":1311,"./oc-lnc":2567,"./oc-lnc.js":2567,"./pa-in":6962,"./pa-in.js":6962,"./pl":1063,"./pl.js":1063,"./pt":8719,"./pt-br":7476,"./pt-br.js":7476,"./pt.js":8719,"./ro":1004,"./ro.js":1004,"./ru":1326,"./ru.js":1326,"./sd":2608,"./sd.js":2608,"./se":3911,"./se.js":3911,"./si":5147,"./si.js":5147,"./sk":3741,"./sk.js":3741,"./sl":3e3,"./sl.js":3e3,"./sq":451,"./sq.js":451,"./sr":5046,"./sr-cyrl":905,"./sr-cyrl.js":905,"./sr.js":5046,"./ss":5765,"./ss.js":5765,"./sv":9290,"./sv.js":9290,"./sw":5830,"./sw.js":5830,"./ta":2688,"./ta.js":2688,"./te":2060,"./te.js":2060,"./tet":3290,"./tet.js":3290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":9040,"./tl-ph.js":9040,"./tlh":7187,"./tlh.js":7187,"./tr":153,"./tr.js":153,"./tzl":8521,"./tzl.js":8521,"./tzm":8010,"./tzm-latn":2234,"./tzm-latn.js":2234,"./tzm.js":8010,"./ug-cn":3349,"./ug-cn.js":3349,"./uk":8479,"./uk.js":8479,"./ur":3024,"./ur.js":3024,"./uz":9800,"./uz-latn":2376,"./uz-latn.js":2376,"./uz.js":9800,"./vi":9366,"./vi.js":9366,"./x-pseudo":9702,"./x-pseudo.js":9702,"./yo":2655,"./yo.js":2655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":8351,"./zh-hk.js":8351,"./zh-mo":9245,"./zh-mo.js":9245,"./zh-tw":8887,"./zh-tw.js":8887};function g(p){var _=e(p);return y(_)}function e(p){if(!y.o(m,p)){var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}return m[p]}g.keys=function(){return Object.keys(m)},g.resolve=e,y1.exports=g,g.id=5358},177:(y1,d1,y)=>{"use strict";y.d(d1,{AJ:()=>I6,B3:()=>a0,Jj:()=>b0,MD:()=>U3,N0:()=>Z6,QT:()=>e,QX:()=>v3,Sm:()=>M1,Sq:()=>X2,T3:()=>H2,UE:()=>G0,VF:()=>_,Vy:()=>l6,Xr:()=>f3,YU:()=>q1,ZD:()=>p,_b:()=>b1,aZ:()=>$1,bT:()=>F0,fw:()=>f1,hb:()=>e1,hj:()=>Z,kB:()=>r1,kF:()=>Z0,qQ:()=>A,vh:()=>P4});var m=y(4438);let g=null;function e(){return g}function p(w){g??=w}class _{}const A=new m.nKC("");let $=(()=>{class w{historyGo(R){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>(0,m.WQX)(K),providedIn:"platform"})}}return w})();const Z=new m.nKC("");let K=(()=>{class w extends ${constructor(){super(),this._doc=(0,m.WQX)(A),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return e().getBaseHref(this._doc)}onPopState(R){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("popstate",R,!1),()=>U.removeEventListener("popstate",R)}onHashChange(R){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("hashchange",R,!1),()=>U.removeEventListener("hashchange",R)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(R){this._location.pathname=R}pushState(R,U,L1){this._history.pushState(R,U,L1)}replaceState(R,U,L1){this._history.replaceState(R,U,L1)}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>new w,providedIn:"platform"})}}return w})();function p1(w,q){if(0==w.length)return q;if(0==q.length)return w;let R=0;return w.endsWith("/")&&R++,q.startsWith("/")&&R++,2==R?w+q.substring(1):1==R?w+q:w+"/"+q}function Y(w){const q=w.match(/#|\?|$/),R=q&&q.index||w.length;return w.slice(0,R-("/"===w[R-1]?1:0))+w.slice(R)}function h1(w){return w&&"?"!==w[0]?"?"+w:w}let e1=(()=>{class w{historyGo(R){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>(0,m.WQX)(M1),providedIn:"root"})}}return w})();const r1=new m.nKC("");let M1=(()=>{class w extends e1{constructor(R,U){super(),this._platformLocation=R,this._removeListenerFns=[],this._baseHref=U??this._platformLocation.getBaseHrefFromDOM()??(0,m.WQX)(A).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return p1(this._baseHref,R)}path(R=!1){const U=this._platformLocation.pathname+h1(this._platformLocation.search),L1=this._platformLocation.hash;return L1&&R?`${U}${L1}`:U}pushState(R,U,L1,X1){const a2=this.prepareExternalUrl(L1+h1(X1));this._platformLocation.pushState(R,U,a2)}replaceState(R,U,L1,X1){const a2=this.prepareExternalUrl(L1+h1(X1));this._platformLocation.replaceState(R,U,a2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static{this.\u0275fac=function(U){return new(U||w)(m.KVO($),m.KVO(r1,8))}}static{this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})(),f1=(()=>{class w extends e1{constructor(R,U){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=U&&(this._baseHref=U)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){const U=this._platformLocation.hash??"#";return U.length>0?U.substring(1):U}prepareExternalUrl(R){const U=p1(this._baseHref,R);return U.length>0?"#"+U:U}pushState(R,U,L1,X1){let a2=this.prepareExternalUrl(L1+h1(X1));0==a2.length&&(a2=this._platformLocation.pathname),this._platformLocation.pushState(R,U,a2)}replaceState(R,U,L1,X1){let a2=this.prepareExternalUrl(L1+h1(X1));0==a2.length&&(a2=this._platformLocation.pathname),this._platformLocation.replaceState(R,U,a2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static{this.\u0275fac=function(U){return new(U||w)(m.KVO($),m.KVO(r1,8))}}static{this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac})}}return w})(),$1=(()=>{class w{constructor(R){this._subject=new m.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=R;const U=this._locationStrategy.getBaseHref();this._basePath=function G1(w){if(new RegExp("^(https?:)?//").test(w)){const[,R]=w.split(/\/\/[^\/]+/);return R}return w}(Y(c2(U))),this._locationStrategy.onPopState(L1=>{this._subject.emit({url:this.path(!0),pop:!0,state:L1.state,type:L1.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(R=!1){return this.normalize(this._locationStrategy.path(R))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(R,U=""){return this.path()==this.normalize(R+h1(U))}normalize(R){return w.stripTrailingSlash(function S2(w,q){if(!w||!q.startsWith(w))return q;const R=q.substring(w.length);return""===R||["/",";","?","#"].includes(R[0])?R:q}(this._basePath,c2(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._locationStrategy.prepareExternalUrl(R)}go(R,U="",L1=null){this._locationStrategy.pushState(L1,"",R,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+h1(U)),L1)}replaceState(R,U="",L1=null){this._locationStrategy.replaceState(L1,"",R,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+h1(U)),L1)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(R=0){this._locationStrategy.historyGo?.(R)}onUrlChange(R){return this._urlChangeListeners.push(R),this._urlChangeSubscription??=this.subscribe(U=>{this._notifyUrlChangeListeners(U.url,U.state)}),()=>{const U=this._urlChangeListeners.indexOf(R);this._urlChangeListeners.splice(U,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(R="",U){this._urlChangeListeners.forEach(L1=>L1(R,U))}subscribe(R,U,L1){return this._subject.subscribe({next:R,error:U,complete:L1})}static{this.normalizeQueryParams=h1}static{this.joinWithSlash=p1}static{this.stripTrailingSlash=Y}static{this.\u0275fac=function(U){return new(U||w)(m.KVO(e1))}}static{this.\u0275prov=m.jDH({token:w,factory:()=>function o2(){return new $1((0,m.KVO)(e1))}(),providedIn:"root"})}}return w})();function c2(w){return w.replace(/\/index.html$/,"")}var d0=function(w){return w[w.Decimal=0]="Decimal",w[w.Percent=1]="Percent",w[w.Currency=2]="Currency",w[w.Scientific=3]="Scientific",w}(d0||{}),_2=function(w){return w[w.Format=0]="Format",w[w.Standalone=1]="Standalone",w}(_2||{}),w2=function(w){return w[w.Narrow=0]="Narrow",w[w.Abbreviated=1]="Abbreviated",w[w.Wide=2]="Wide",w[w.Short=3]="Short",w}(w2||{}),v2=function(w){return w[w.Short=0]="Short",w[w.Medium=1]="Medium",w[w.Long=2]="Long",w[w.Full=3]="Full",w}(v2||{});const t0={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Z0(w){return(0,m.H5H)(w)[m.KH2.LocaleId]}function E1(w,q){return y0((0,m.H5H)(w)[m.KH2.DateFormat],q)}function j1(w,q){return y0((0,m.H5H)(w)[m.KH2.TimeFormat],q)}function A1(w,q){return y0((0,m.H5H)(w)[m.KH2.DateTimeFormat],q)}function H1(w,q){const R=(0,m.H5H)(w),U=R[m.KH2.NumberSymbols][q];if(typeof U>"u"){if(q===t0.CurrencyDecimal)return R[m.KH2.NumberSymbols][t0.Decimal];if(q===t0.CurrencyGroup)return R[m.KH2.NumberSymbols][t0.Group]}return U}function l0(w){if(!w[m.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${w[m.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function y0(w,q){for(let R=q;R>-1;R--)if(typeof w[R]<"u")return w[R];throw new Error("Locale data API: locale data undefined")}function C4(w){const[q,R]=w.split(":");return{hours:+q,minutes:+R}}const B3=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,t3={},E6=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var q4=function(w){return w[w.Short=0]="Short",w[w.ShortGMT=1]="ShortGMT",w[w.Long=2]="Long",w[w.Extended=3]="Extended",w}(q4||{}),c0=function(w){return w[w.FullYear=0]="FullYear",w[w.Month=1]="Month",w[w.Date=2]="Date",w[w.Hours=3]="Hours",w[w.Minutes=4]="Minutes",w[w.Seconds=5]="Seconds",w[w.FractionalSeconds=6]="FractionalSeconds",w[w.Day=7]="Day",w}(c0||{}),f0=function(w){return w[w.DayPeriods=0]="DayPeriods",w[w.Days=1]="Days",w[w.Months=2]="Months",w[w.Eras=3]="Eras",w}(f0||{});function X4(w,q,R,U){let L1=function b2(w){if(m0(w))return w;if("number"==typeof w&&!isNaN(w))return new Date(w);if("string"==typeof w){if(w=w.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(w)){const[L1,X1=1,a2=1]=w.split("-").map(q2=>+q2);return T4(L1,X1-1,a2)}const R=parseFloat(w);if(!isNaN(w-R))return new Date(R);let U;if(U=w.match(B3))return function U0(w){const q=new Date(0);let R=0,U=0;const L1=w[8]?q.setUTCFullYear:q.setFullYear,X1=w[8]?q.setUTCHours:q.setHours;w[9]&&(R=Number(w[9]+w[10]),U=Number(w[9]+w[11])),L1.call(q,Number(w[1]),Number(w[2])-1,Number(w[3]));const a2=Number(w[4]||0)-R,q2=Number(w[5]||0)-U,g4=Number(w[6]||0),l4=Math.floor(1e3*parseFloat("0."+(w[7]||0)));return X1.call(q,a2,q2,g4,l4),q}(U)}const q=new Date(w);if(!m0(q))throw new Error(`Unable to convert "${w}" into a date`);return q}(w);q=Y2(R,q)||q;let q2,a2=[];for(;q;){if(q2=E6.exec(q),!q2){a2.push(q);break}{a2=a2.concat(q2.slice(1));const P=a2.pop();if(!P)break;q=P}}let g4=L1.getTimezoneOffset();U&&(g4=D1(U,g4),L1=function F2(w,q,R){const U=R?-1:1,L1=w.getTimezoneOffset();return function Z1(w,q){return(w=new Date(w.getTime())).setMinutes(w.getMinutes()+q),w}(w,U*(D1(q,L1)-L1))}(L1,U,!0));let l4="";return a2.forEach(P=>{const X=function m1(w){if(x1[w])return x1[w];let q;switch(w){case"G":case"GG":case"GGG":q=L0(f0.Eras,w2.Abbreviated);break;case"GGGG":q=L0(f0.Eras,w2.Wide);break;case"GGGGG":q=L0(f0.Eras,w2.Narrow);break;case"y":q=u0(c0.FullYear,1,0,!1,!0);break;case"yy":q=u0(c0.FullYear,2,0,!0,!0);break;case"yyy":q=u0(c0.FullYear,3,0,!1,!0);break;case"yyyy":q=u0(c0.FullYear,4,0,!1,!0);break;case"Y":q=s1(1);break;case"YY":q=s1(2,!0);break;case"YYY":q=s1(3);break;case"YYYY":q=s1(4);break;case"M":case"L":q=u0(c0.Month,1,1);break;case"MM":case"LL":q=u0(c0.Month,2,1);break;case"MMM":q=L0(f0.Months,w2.Abbreviated);break;case"MMMM":q=L0(f0.Months,w2.Wide);break;case"MMMMM":q=L0(f0.Months,w2.Narrow);break;case"LLL":q=L0(f0.Months,w2.Abbreviated,_2.Standalone);break;case"LLLL":q=L0(f0.Months,w2.Wide,_2.Standalone);break;case"LLLLL":q=L0(f0.Months,w2.Narrow,_2.Standalone);break;case"w":q=J2(1);break;case"ww":q=J2(2);break;case"W":q=J2(1,!0);break;case"d":q=u0(c0.Date,1);break;case"dd":q=u0(c0.Date,2);break;case"c":case"cc":q=u0(c0.Day,1);break;case"ccc":q=L0(f0.Days,w2.Abbreviated,_2.Standalone);break;case"cccc":q=L0(f0.Days,w2.Wide,_2.Standalone);break;case"ccccc":q=L0(f0.Days,w2.Narrow,_2.Standalone);break;case"cccccc":q=L0(f0.Days,w2.Short,_2.Standalone);break;case"E":case"EE":case"EEE":q=L0(f0.Days,w2.Abbreviated);break;case"EEEE":q=L0(f0.Days,w2.Wide);break;case"EEEEE":q=L0(f0.Days,w2.Narrow);break;case"EEEEEE":q=L0(f0.Days,w2.Short);break;case"a":case"aa":case"aaa":q=L0(f0.DayPeriods,w2.Abbreviated);break;case"aaaa":q=L0(f0.DayPeriods,w2.Wide);break;case"aaaaa":q=L0(f0.DayPeriods,w2.Narrow);break;case"b":case"bb":case"bbb":q=L0(f0.DayPeriods,w2.Abbreviated,_2.Standalone,!0);break;case"bbbb":q=L0(f0.DayPeriods,w2.Wide,_2.Standalone,!0);break;case"bbbbb":q=L0(f0.DayPeriods,w2.Narrow,_2.Standalone,!0);break;case"B":case"BB":case"BBB":q=L0(f0.DayPeriods,w2.Abbreviated,_2.Format,!0);break;case"BBBB":q=L0(f0.DayPeriods,w2.Wide,_2.Format,!0);break;case"BBBBB":q=L0(f0.DayPeriods,w2.Narrow,_2.Format,!0);break;case"h":q=u0(c0.Hours,1,-12);break;case"hh":q=u0(c0.Hours,2,-12);break;case"H":q=u0(c0.Hours,1);break;case"HH":q=u0(c0.Hours,2);break;case"m":q=u0(c0.Minutes,1);break;case"mm":q=u0(c0.Minutes,2);break;case"s":q=u0(c0.Seconds,1);break;case"ss":q=u0(c0.Seconds,2);break;case"S":q=u0(c0.FractionalSeconds,1);break;case"SS":q=u0(c0.FractionalSeconds,2);break;case"SSS":q=u0(c0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=l3(q4.Short);break;case"ZZZZZ":q=l3(q4.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=l3(q4.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=l3(q4.Long);break;default:return null}return x1[w]=q,q}(P);l4+=X?X(L1,R,g4):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l4}function T4(w,q,R){const U=new Date(0);return U.setFullYear(w,q,R),U.setHours(0,0,0),U}function Y2(w,q){const R=Z0(w);if(t3[R]??={},t3[R][q])return t3[R][q];let U="";switch(q){case"shortDate":U=E1(w,v2.Short);break;case"mediumDate":U=E1(w,v2.Medium);break;case"longDate":U=E1(w,v2.Long);break;case"fullDate":U=E1(w,v2.Full);break;case"shortTime":U=j1(w,v2.Short);break;case"mediumTime":U=j1(w,v2.Medium);break;case"longTime":U=j1(w,v2.Long);break;case"fullTime":U=j1(w,v2.Full);break;case"short":const L1=Y2(w,"shortTime"),X1=Y2(w,"shortDate");U=n3(A1(w,v2.Short),[L1,X1]);break;case"medium":const a2=Y2(w,"mediumTime"),q2=Y2(w,"mediumDate");U=n3(A1(w,v2.Medium),[a2,q2]);break;case"long":const g4=Y2(w,"longTime"),l4=Y2(w,"longDate");U=n3(A1(w,v2.Long),[g4,l4]);break;case"full":const P=Y2(w,"fullTime"),X=Y2(w,"fullDate");U=n3(A1(w,v2.Full),[P,X])}return U&&(t3[R][q]=U),U}function n3(w,q){return q&&(w=w.replace(/\{([^}]+)}/g,function(R,U){return null!=q&&U in q?q[U]:R})),w}function y4(w,q,R="-",U,L1){let X1="";(w<0||L1&&w<=0)&&(L1?w=1-w:(w=-w,X1=R));let a2=String(w);for(;a2.length0||q2>-R)&&(q2+=R),w===c0.Hours)0===q2&&-12===R&&(q2=12);else if(w===c0.FractionalSeconds)return function H4(w,q){return y4(w,3).substring(0,q)}(q2,q);const g4=H1(a2,t0.MinusSign);return y4(q2,q,g4,U,L1)}}function L0(w,q,R=_2.Format,U=!1){return function(L1,X1){return function S0(w,q,R,U,L1,X1){switch(R){case f0.Months:return function w0(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.MonthsFormat],U[m.KH2.MonthsStandalone]],q);return y0(X1,R)}(q,L1,U)[w.getMonth()];case f0.Days:return function x2(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.DaysFormat],U[m.KH2.DaysStandalone]],q);return y0(X1,R)}(q,L1,U)[w.getDay()];case f0.DayPeriods:const a2=w.getHours(),q2=w.getMinutes();if(X1){const l4=function s0(w){const q=(0,m.H5H)(w);return l0(q),(q[m.KH2.ExtraData][2]||[]).map(U=>"string"==typeof U?C4(U):[C4(U[0]),C4(U[1])])}(q),P=function D0(w,q,R){const U=(0,m.H5H)(w);l0(U);const X1=y0([U[m.KH2.ExtraData][0],U[m.KH2.ExtraData][1]],q)||[];return y0(X1,R)||[]}(q,L1,U),X=l4.findIndex(J=>{if(Array.isArray(J)){const[n1,_1]=J,S1=a2>=n1.hours&&q2>=n1.minutes,k1=a2<_1.hours||a2===_1.hours&&q2<_1.minutes;if(n1.hours<_1.hours){if(S1&&k1)return!0}else if(S1||k1)return!0}else if(J.hours===a2&&J.minutes===q2)return!0;return!1});if(-1!==X)return P[X]}return function B4(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.DayPeriodsFormat],U[m.KH2.DayPeriodsStandalone]],q);return y0(X1,R)}(q,L1,U)[a2<12?0:1];case f0.Eras:return function v1(w,q){return y0((0,m.H5H)(w)[m.KH2.Eras],q)}(q,U)[w.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(L1,X1,w,q,R,U)}}function l3(w){return function(q,R,U){const L1=-1*U,X1=H1(R,t0.MinusSign),a2=L1>0?Math.floor(L1/60):Math.ceil(L1/60);switch(w){case q4.Short:return(L1>=0?"+":"")+y4(a2,2,X1)+y4(Math.abs(L1%60),2,X1);case q4.ShortGMT:return"GMT"+(L1>=0?"+":"")+y4(a2,1,X1);case q4.Long:return"GMT"+(L1>=0?"+":"")+y4(a2,2,X1)+":"+y4(Math.abs(L1%60),2,X1);case q4.Extended:return 0===U?"Z":(L1>=0?"+":"")+y4(a2,2,X1)+":"+y4(Math.abs(L1%60),2,X1);default:throw new Error(`Unknown zone width "${w}"`)}}}const T0=0,V4=4;function F3(w){const q=w.getDay(),R=0===q?-3:V4-q;return T4(w.getFullYear(),w.getMonth(),w.getDate()+R)}function J2(w,q=!1){return function(R,U){let L1;if(q){const X1=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,a2=R.getDate();L1=1+Math.floor((a2+X1)/7)}else{const X1=F3(R),a2=function s3(w){const q=T4(w,T0,1).getDay();return T4(w,0,1+(q<=V4?V4:V4+7)-q)}(X1.getFullYear()),q2=X1.getTime()-a2.getTime();L1=1+Math.round(q2/6048e5)}return y4(L1,w,H1(U,t0.MinusSign))}}function s1(w,q=!1){return function(R,U){return y4(F3(R).getFullYear(),w,H1(U,t0.MinusSign),q)}}const x1={};function D1(w,q){w=w.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+w)/6e4;return isNaN(R)?q:R}function m0(w){return w instanceof Date&&!isNaN(w.valueOf())}const t4=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function E3(w){const q=parseInt(w);if(isNaN(q))throw new Error("Invalid integer literal when parsing "+w);return q}function b1(w,q){q=encodeURIComponent(q);for(const R of w.split(";")){const U=R.indexOf("="),[L1,X1]=-1==U?[R,""]:[R.slice(0,U),R.slice(U+1)];if(L1.trim()===q)return decodeURIComponent(X1)}return null}const F1=/\s+/,J1=[];let q1=(()=>{class w{constructor(R,U){this._ngEl=R,this._renderer=U,this.initialClasses=J1,this.stateMap=new Map}set klass(R){this.initialClasses=null!=R?R.trim().split(F1):J1}set ngClass(R){this.rawClass="string"==typeof R?R.trim().split(F1):R}ngDoCheck(){for(const U of this.initialClasses)this._updateState(U,!0);const R=this.rawClass;if(Array.isArray(R)||R instanceof Set)for(const U of R)this._updateState(U,!0);else if(null!=R)for(const U of Object.keys(R))this._updateState(U,!!R[U]);this._applyStateDiff()}_updateState(R,U){const L1=this.stateMap.get(R);void 0!==L1?(L1.enabled!==U&&(L1.changed=!0,L1.enabled=U),L1.touched=!0):this.stateMap.set(R,{enabled:U,changed:!0,touched:!0})}_applyStateDiff(){for(const R of this.stateMap){const U=R[0],L1=R[1];L1.changed?(this._toggleClass(U,L1.enabled),L1.changed=!1):L1.touched||(L1.enabled&&this._toggleClass(U,!1),this.stateMap.delete(U)),L1.touched=!1}}_toggleClass(R,U){(R=R.trim()).length>0&&R.split(F1).forEach(L1=>{U?this._renderer.addClass(this._ngEl.nativeElement,L1):this._renderer.removeClass(this._ngEl.nativeElement,L1)})}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.aKT),m.rXU(m.sFG))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngClass",""]],inputs:{klass:[m.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return w})();class M0{constructor(q,R,U,L1){this.$implicit=q,this.ngForOf=R,this.index=U,this.count=L1}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let X2=(()=>{class w{set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}constructor(R,U,L1){this._viewContainer=R,this._template=U,this._differs=L1,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const U=this._viewContainer;R.forEachOperation((L1,X1,a2)=>{if(null==L1.previousIndex)U.createEmbeddedView(this._template,new M0(L1.item,this._ngForOf,-1,-1),null===a2?void 0:a2);else if(null==a2)U.remove(null===X1?void 0:X1);else if(null!==X1){const q2=U.get(X1);U.move(q2,a2),P2(q2,L1)}});for(let L1=0,X1=U.length;L1{P2(U.get(L1.currentIndex),L1)})}static ngTemplateContextGuard(R,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b),m.rXU(m.C4Q),m.rXU(m._q3))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return w})();function P2(w,q){w.context.$implicit=q.item}let F0=(()=>{class w{constructor(R,U){this._viewContainer=R,this._context=new P0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=U}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){o4("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){o4("ngIfElse",R),this._elseTemplateRef=R,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(R,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b),m.rXU(m.C4Q))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return w})();class P0{constructor(){this.$implicit=null,this.ngIf=null}}function o4(w,q){if(q&&!q.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,m.Tbb)(q)}'.`)}let a0=(()=>{class w{constructor(R,U,L1){this._ngEl=R,this._differs=U,this._renderer=L1,this._ngStyle=null,this._differ=null}set ngStyle(R){this._ngStyle=R,!this._differ&&R&&(this._differ=this._differs.find(R).create())}ngDoCheck(){if(this._differ){const R=this._differ.diff(this._ngStyle);R&&this._applyChanges(R)}}_setStyle(R,U){const[L1,X1]=R.split("."),a2=-1===L1.indexOf("-")?void 0:m.czy.DashCase;null!=U?this._renderer.setStyle(this._ngEl.nativeElement,L1,X1?`${U}${X1}`:U,a2):this._renderer.removeStyle(this._ngEl.nativeElement,L1,a2)}_applyChanges(R){R.forEachRemovedItem(U=>this._setStyle(U.key,null)),R.forEachAddedItem(U=>this._setStyle(U.key,U.currentValue)),R.forEachChangedItem(U=>this._setStyle(U.key,U.currentValue))}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.aKT),m.rXU(m.MKu),m.rXU(m.sFG))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return w})(),H2=(()=>{class w{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(R){if(this._shouldRecreateView(R)){const U=this._viewContainerRef;if(this._viewRef&&U.remove(U.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const L1=this._createContextForwardProxy();this._viewRef=U.createEmbeddedView(this.ngTemplateOutlet,L1,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(R){return!!R.ngTemplateOutlet||!!R.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(R,U,L1)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,U,L1),get:(R,U,L1)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,U,L1)}})}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[m.OA$]})}}return w})();function a3(w,q){return new m.wOt(2100,!1)}class h6{createSubscription(q,R){return(0,m.O8t)(()=>q.subscribe({next:R,error:U=>{throw U}}))}dispose(q){(0,m.O8t)(()=>q.unsubscribe())}}class T6{createSubscription(q,R){return q.then(R,U=>{throw U})}dispose(q){}}const R8=new T6,t6=new h6;let b0=(()=>{class w{constructor(R){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=R}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(R){if(!this._obj){if(R)try{this.markForCheckOnValueUpdate=!1,this._subscribe(R)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,U=>this._updateLatestValue(R,U))}_selectStrategy(R){if((0,m.jNT)(R))return R8;if((0,m.zjR)(R))return t6;throw a3()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,U){R===this._obj&&(this._latestValue=U,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.gRc,16))}}static{this.\u0275pipe=m.EJ8({name:"async",type:w,pure:!1,standalone:!0})}}return w})();const R6=new m.nKC(""),n4=new m.nKC("");let P4=(()=>{class w{constructor(R,U,L1){this.locale=R,this.defaultTimezone=U,this.defaultOptions=L1}transform(R,U,L1,X1){if(null==R||""===R||R!=R)return null;try{return X4(R,U??this.defaultOptions?.dateFormat??"mediumDate",X1||this.locale,L1??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a2){throw a3()}}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.xe9,16),m.rXU(R6,24),m.rXU(n4,24))}}static{this.\u0275pipe=m.EJ8({name:"date",type:w,pure:!0,standalone:!0})}}return w})(),v3=(()=>{class w{constructor(R){this._locale=R}transform(R,U,L1){if(!function V3(w){return!(null==w||""===w||w!=w)}(R))return null;L1||=this._locale;try{return function R4(w,q,R){return function M4(w,q,R,U,L1,X1,a2=!1){let q2="",g4=!1;if(isFinite(w)){let l4=function Y4(w){let U,L1,X1,a2,q2,q=Math.abs(w)+"",R=0;for((L1=q.indexOf("."))>-1&&(q=q.replace(".","")),(X1=q.search(/e/i))>0?(L1<0&&(L1=X1),L1+=+q.slice(X1+1),q=q.substring(0,X1)):L1<0&&(L1=q.length),X1=0;"0"===q.charAt(X1);X1++);if(X1===(q2=q.length))U=[0],L1=1;else{for(q2--;"0"===q.charAt(q2);)q2--;for(L1-=X1,U=[],a2=0;X1<=q2;X1++,a2++)U[a2]=Number(q.charAt(X1))}return L1>22&&(U=U.splice(0,21),R=L1-1,L1=1),{digits:U,exponent:R,integerLen:L1}}(w);a2&&(l4=function m6(w){if(0===w.digits[0])return w;const q=w.digits.length-w.integerLen;return w.exponent?w.exponent+=2:(0===q?w.digits.push(0,0):1===q&&w.digits.push(0),w.integerLen+=2),w}(l4));let P=q.minInt,X=q.minFrac,J=q.maxFrac;if(X1){const y2=X1.match(t4);if(null===y2)throw new Error(`${X1} is not a valid digit info`);const R2=y2[1],j2=y2[3],g0=y2[5];null!=R2&&(P=E3(R2)),null!=j2&&(X=E3(j2)),null!=g0?J=E3(g0):null!=j2&&X>J&&(J=X)}!function C1(w,q,R){if(q>R)throw new Error(`The minimum number of digits after fraction (${q}) is higher than the maximum (${R}).`);let U=w.digits,L1=U.length-w.integerLen;const X1=Math.min(Math.max(q,L1),R);let a2=X1+w.integerLen,q2=U[a2];if(a2>0){U.splice(Math.max(w.integerLen,a2));for(let X=a2;X=5)if(a2-1<0){for(let X=0;X>a2;X--)U.unshift(0),w.integerLen++;U.unshift(1),w.integerLen++}else U[a2-1]++;for(;L1=l4?_1.pop():g4=!1),J>=10?1:0},0);P&&(U.unshift(P),w.integerLen++)}(l4,X,J);let n1=l4.digits,_1=l4.integerLen;const S1=l4.exponent;let k1=[];for(g4=n1.every(y2=>!y2);_10?k1=n1.splice(_1,n1.length):(k1=n1,n1=[0]);const U1=[];for(n1.length>=q.lgSize&&U1.unshift(n1.splice(-q.lgSize,n1.length).join(""));n1.length>q.gSize;)U1.unshift(n1.splice(-q.gSize,n1.length).join(""));n1.length&&U1.unshift(n1.join("")),q2=U1.join(H1(R,U)),k1.length&&(q2+=H1(R,L1)+k1.join("")),S1&&(q2+=H1(R,t0.Exponential)+"+"+S1)}else q2=H1(R,t0.Infinity);return q2=w<0&&!g4?q.negPre+q2+q.negSuf:q.posPre+q2+q.posSuf,q2}(w,function z0(w,q="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},U=w.split(";"),L1=U[0],X1=U[1],a2=-1!==L1.indexOf(".")?L1.split("."):[L1.substring(0,L1.lastIndexOf("0")+1),L1.substring(L1.lastIndexOf("0")+1)],q2=a2[0],g4=a2[1]||"";R.posPre=q2.substring(0,q2.indexOf("#"));for(let P=0;P{class w{static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275mod=m.$C({type:w})}static{this.\u0275inj=m.G2t({})}}return w})();const I6="browser",Q6="server";function G0(w){return w===I6}function l6(w){return w===Q6}let f3=(()=>{class w{static{this.\u0275prov=(0,m.jDH)({token:w,providedIn:"root",factory:()=>G0((0,m.WQX)(m.Agw))?new o3((0,m.WQX)(A),window):new R3})}}return w})();class o3{constructor(q,R){this.document=q,this.window=R,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(q){this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){const R=function Q4(w,q){const R=w.getElementById(q)||w.getElementsByName(q)[0];if(R)return R;if("function"==typeof w.createTreeWalker&&w.body&&"function"==typeof w.body.attachShadow){const U=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let L1=U.currentNode;for(;L1;){const X1=L1.shadowRoot;if(X1){const a2=X1.getElementById(q)||X1.querySelector(`[name="${q}"]`);if(a2)return a2}L1=U.nextNode()}}return null}(this.document,q);R&&(this.scrollToElement(R),R.focus())}setHistoryScrollRestoration(q){this.window.history.scrollRestoration=q}scrollToElement(q){const R=q.getBoundingClientRect(),U=R.left+this.window.pageXOffset,L1=R.top+this.window.pageYOffset,X1=this.offset();this.window.scrollTo(U-X1[0],L1-X1[1])}}class R3{setOffset(q){}getScrollPosition(){return[0,0]}scrollToPosition(q){}scrollToAnchor(q){}setHistoryScrollRestoration(q){}}class Z6{}},1626:(y1,d1,y)=>{"use strict";y.d(d1,{Lr:()=>e1,Nl:()=>G1,Qq:()=>E1,a7:()=>s0,q1:()=>F4}),y(467);var g=y(4438),e=y(7673),p=y(1985),_=y(6648),S=y(274),A=y(5964),$=y(6354),Z=y(980),K=y(5558),p1=y(177);class Y{}class h1{}class e1{constructor(b1){this.normalizedNames=new Map,this.lazyUpdate=null,b1?"string"==typeof b1?this.lazyInit=()=>{this.headers=new Map,b1.split("\n").forEach(F1=>{const J1=F1.indexOf(":");if(J1>0){const q1=F1.slice(0,J1),u2=q1.toLowerCase(),h2=F1.slice(J1+1).trim();this.maybeSetNormalizedName(q1,u2),this.headers.has(u2)?this.headers.get(u2).push(h2):this.headers.set(u2,[h2])}})}:typeof Headers<"u"&&b1 instanceof Headers?(this.headers=new Map,b1.forEach((F1,J1)=>{this.setHeaderEntries(J1,F1)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(b1).forEach(([F1,J1])=>{this.setHeaderEntries(F1,J1)})}:this.headers=new Map}has(b1){return this.init(),this.headers.has(b1.toLowerCase())}get(b1){this.init();const F1=this.headers.get(b1.toLowerCase());return F1&&F1.length>0?F1[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(b1){return this.init(),this.headers.get(b1.toLowerCase())||null}append(b1,F1){return this.clone({name:b1,value:F1,op:"a"})}set(b1,F1){return this.clone({name:b1,value:F1,op:"s"})}delete(b1,F1){return this.clone({name:b1,value:F1,op:"d"})}maybeSetNormalizedName(b1,F1){this.normalizedNames.has(F1)||this.normalizedNames.set(F1,b1)}init(){this.lazyInit&&(this.lazyInit instanceof e1?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(b1=>this.applyUpdate(b1)),this.lazyUpdate=null))}copyFrom(b1){b1.init(),Array.from(b1.headers.keys()).forEach(F1=>{this.headers.set(F1,b1.headers.get(F1)),this.normalizedNames.set(F1,b1.normalizedNames.get(F1))})}clone(b1){const F1=new e1;return F1.lazyInit=this.lazyInit&&this.lazyInit instanceof e1?this.lazyInit:this,F1.lazyUpdate=(this.lazyUpdate||[]).concat([b1]),F1}applyUpdate(b1){const F1=b1.name.toLowerCase();switch(b1.op){case"a":case"s":let J1=b1.value;if("string"==typeof J1&&(J1=[J1]),0===J1.length)return;this.maybeSetNormalizedName(b1.name,F1);const q1=("a"===b1.op?this.headers.get(F1):void 0)||[];q1.push(...J1),this.headers.set(F1,q1);break;case"d":const u2=b1.value;if(u2){let h2=this.headers.get(F1);if(!h2)return;h2=h2.filter(M0=>-1===u2.indexOf(M0)),0===h2.length?(this.headers.delete(F1),this.normalizedNames.delete(F1)):this.headers.set(F1,h2)}else this.headers.delete(F1),this.normalizedNames.delete(F1)}}setHeaderEntries(b1,F1){const J1=(Array.isArray(F1)?F1:[F1]).map(u2=>u2.toString()),q1=b1.toLowerCase();this.headers.set(q1,J1),this.maybeSetNormalizedName(b1,q1)}forEach(b1){this.init(),Array.from(this.normalizedNames.keys()).forEach(F1=>b1(this.normalizedNames.get(F1),this.headers.get(F1)))}}class M1{encodeKey(b1){return S2(b1)}encodeValue(b1){return S2(b1)}decodeKey(b1){return decodeURIComponent(b1)}decodeValue(b1){return decodeURIComponent(b1)}}const $1=/%(\d[a-f0-9])/gi,o2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function S2(o1){return encodeURIComponent(o1).replace($1,(b1,F1)=>o2[F1]??b1)}function c2(o1){return`${o1}`}class G1{constructor(b1={}){if(this.updates=null,this.cloneFrom=null,this.encoder=b1.encoder||new M1,b1.fromString){if(b1.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f1(o1,b1){const F1=new Map;return o1.length>0&&o1.replace(/^\?/,"").split("&").forEach(q1=>{const u2=q1.indexOf("="),[h2,M0]=-1==u2?[b1.decodeKey(q1),""]:[b1.decodeKey(q1.slice(0,u2)),b1.decodeValue(q1.slice(u2+1))],X2=F1.get(h2)||[];X2.push(M0),F1.set(h2,X2)}),F1}(b1.fromString,this.encoder)}else b1.fromObject?(this.map=new Map,Object.keys(b1.fromObject).forEach(F1=>{const J1=b1.fromObject[F1],q1=Array.isArray(J1)?J1.map(c2):[c2(J1)];this.map.set(F1,q1)})):this.map=null}has(b1){return this.init(),this.map.has(b1)}get(b1){this.init();const F1=this.map.get(b1);return F1?F1[0]:null}getAll(b1){return this.init(),this.map.get(b1)||null}keys(){return this.init(),Array.from(this.map.keys())}append(b1,F1){return this.clone({param:b1,value:F1,op:"a"})}appendAll(b1){const F1=[];return Object.keys(b1).forEach(J1=>{const q1=b1[J1];Array.isArray(q1)?q1.forEach(u2=>{F1.push({param:J1,value:u2,op:"a"})}):F1.push({param:J1,value:q1,op:"a"})}),this.clone(F1)}set(b1,F1){return this.clone({param:b1,value:F1,op:"s"})}delete(b1,F1){return this.clone({param:b1,value:F1,op:"d"})}toString(){return this.init(),this.keys().map(b1=>{const F1=this.encoder.encodeKey(b1);return this.map.get(b1).map(J1=>F1+"="+this.encoder.encodeValue(J1)).join("&")}).filter(b1=>""!==b1).join("&")}clone(b1){const F1=new G1({encoder:this.encoder});return F1.cloneFrom=this.cloneFrom||this,F1.updates=(this.updates||[]).concat(b1),F1}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(b1=>this.map.set(b1,this.cloneFrom.map.get(b1))),this.updates.forEach(b1=>{switch(b1.op){case"a":case"s":const F1=("a"===b1.op?this.map.get(b1.param):void 0)||[];F1.push(c2(b1.value)),this.map.set(b1.param,F1);break;case"d":if(void 0===b1.value){this.map.delete(b1.param);break}{let J1=this.map.get(b1.param)||[];const q1=J1.indexOf(c2(b1.value));-1!==q1&&J1.splice(q1,1),J1.length>0?this.map.set(b1.param,J1):this.map.delete(b1.param)}}}),this.cloneFrom=this.updates=null)}}class d0{constructor(){this.map=new Map}set(b1,F1){return this.map.set(b1,F1),this}get(b1){return this.map.has(b1)||this.map.set(b1,b1.defaultValue()),this.map.get(b1)}delete(b1){return this.map.delete(b1),this}has(b1){return this.map.has(b1)}keys(){return this.map.keys()}}function _2(o1){return typeof ArrayBuffer<"u"&&o1 instanceof ArrayBuffer}function w2(o1){return typeof Blob<"u"&&o1 instanceof Blob}function v2(o1){return typeof FormData<"u"&&o1 instanceof FormData}class X0{constructor(b1,F1,J1,q1){let u2;if(this.url=F1,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=b1.toUpperCase(),function d2(o1){switch(o1){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||q1?(this.body=void 0!==J1?J1:null,u2=q1):u2=J1,u2&&(this.reportProgress=!!u2.reportProgress,this.withCredentials=!!u2.withCredentials,u2.responseType&&(this.responseType=u2.responseType),u2.headers&&(this.headers=u2.headers),u2.context&&(this.context=u2.context),u2.params&&(this.params=u2.params),this.transferCache=u2.transferCache),this.headers??=new e1,this.context??=new d0,this.params){const h2=this.params.toString();if(0===h2.length)this.urlWithParams=F1;else{const M0=F1.indexOf("?");this.urlWithParams=F1+(-1===M0?"?":M0P0.set(o4,b1.setHeaders[o4]),P2)),b1.setParams&&(e4=Object.keys(b1.setParams).reduce((P0,o4)=>P0.set(o4,b1.setParams[o4]),e4)),new X0(F1,J1,h2,{params:e4,headers:P2,context:F0,reportProgress:X2,responseType:q1,withCredentials:M0,transferCache:u2})}}var Z0=function(o1){return o1[o1.Sent=0]="Sent",o1[o1.UploadProgress=1]="UploadProgress",o1[o1.ResponseHeader=2]="ResponseHeader",o1[o1.DownloadProgress=3]="DownloadProgress",o1[o1.Response=4]="Response",o1[o1.User=5]="User",o1}(Z0||{});class B4{constructor(b1,F1=e2.Ok,J1="OK"){this.headers=b1.headers||new e1,this.status=void 0!==b1.status?b1.status:F1,this.statusText=b1.statusText||J1,this.url=b1.url||null,this.ok=this.status>=200&&this.status<300}}class x2 extends B4{constructor(b1={}){super(b1),this.type=Z0.ResponseHeader}clone(b1={}){return new x2({headers:b1.headers||this.headers,status:void 0!==b1.status?b1.status:this.status,statusText:b1.statusText||this.statusText,url:b1.url||this.url||void 0})}}class w0 extends B4{constructor(b1={}){super(b1),this.type=Z0.Response,this.body=void 0!==b1.body?b1.body:null}clone(b1={}){return new w0({body:void 0!==b1.body?b1.body:this.body,headers:b1.headers||this.headers,status:void 0!==b1.status?b1.status:this.status,statusText:b1.statusText||this.statusText,url:b1.url||this.url||void 0})}}class v1 extends B4{constructor(b1){super(b1,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${b1.url||"(unknown url)"}`:`Http failure response for ${b1.url||"(unknown url)"}: ${b1.status} ${b1.statusText}`,this.error=b1.error||null}}var e2=function(o1){return o1[o1.Continue=100]="Continue",o1[o1.SwitchingProtocols=101]="SwitchingProtocols",o1[o1.Processing=102]="Processing",o1[o1.EarlyHints=103]="EarlyHints",o1[o1.Ok=200]="Ok",o1[o1.Created=201]="Created",o1[o1.Accepted=202]="Accepted",o1[o1.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",o1[o1.NoContent=204]="NoContent",o1[o1.ResetContent=205]="ResetContent",o1[o1.PartialContent=206]="PartialContent",o1[o1.MultiStatus=207]="MultiStatus",o1[o1.AlreadyReported=208]="AlreadyReported",o1[o1.ImUsed=226]="ImUsed",o1[o1.MultipleChoices=300]="MultipleChoices",o1[o1.MovedPermanently=301]="MovedPermanently",o1[o1.Found=302]="Found",o1[o1.SeeOther=303]="SeeOther",o1[o1.NotModified=304]="NotModified",o1[o1.UseProxy=305]="UseProxy",o1[o1.Unused=306]="Unused",o1[o1.TemporaryRedirect=307]="TemporaryRedirect",o1[o1.PermanentRedirect=308]="PermanentRedirect",o1[o1.BadRequest=400]="BadRequest",o1[o1.Unauthorized=401]="Unauthorized",o1[o1.PaymentRequired=402]="PaymentRequired",o1[o1.Forbidden=403]="Forbidden",o1[o1.NotFound=404]="NotFound",o1[o1.MethodNotAllowed=405]="MethodNotAllowed",o1[o1.NotAcceptable=406]="NotAcceptable",o1[o1.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",o1[o1.RequestTimeout=408]="RequestTimeout",o1[o1.Conflict=409]="Conflict",o1[o1.Gone=410]="Gone",o1[o1.LengthRequired=411]="LengthRequired",o1[o1.PreconditionFailed=412]="PreconditionFailed",o1[o1.PayloadTooLarge=413]="PayloadTooLarge",o1[o1.UriTooLong=414]="UriTooLong",o1[o1.UnsupportedMediaType=415]="UnsupportedMediaType",o1[o1.RangeNotSatisfiable=416]="RangeNotSatisfiable",o1[o1.ExpectationFailed=417]="ExpectationFailed",o1[o1.ImATeapot=418]="ImATeapot",o1[o1.MisdirectedRequest=421]="MisdirectedRequest",o1[o1.UnprocessableEntity=422]="UnprocessableEntity",o1[o1.Locked=423]="Locked",o1[o1.FailedDependency=424]="FailedDependency",o1[o1.TooEarly=425]="TooEarly",o1[o1.UpgradeRequired=426]="UpgradeRequired",o1[o1.PreconditionRequired=428]="PreconditionRequired",o1[o1.TooManyRequests=429]="TooManyRequests",o1[o1.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",o1[o1.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",o1[o1.InternalServerError=500]="InternalServerError",o1[o1.NotImplemented=501]="NotImplemented",o1[o1.BadGateway=502]="BadGateway",o1[o1.ServiceUnavailable=503]="ServiceUnavailable",o1[o1.GatewayTimeout=504]="GatewayTimeout",o1[o1.HttpVersionNotSupported=505]="HttpVersionNotSupported",o1[o1.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",o1[o1.InsufficientStorage=507]="InsufficientStorage",o1[o1.LoopDetected=508]="LoopDetected",o1[o1.NotExtended=510]="NotExtended",o1[o1.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",o1}(e2||{});function C2(o1,b1){return{body:b1,headers:o1.headers,context:o1.context,observe:o1.observe,params:o1.params,reportProgress:o1.reportProgress,responseType:o1.responseType,withCredentials:o1.withCredentials,transferCache:o1.transferCache}}let E1=(()=>{class o1{constructor(F1){this.handler=F1}request(F1,J1,q1={}){let u2;if(F1 instanceof X0)u2=F1;else{let X2,P2;X2=q1.headers instanceof e1?q1.headers:new e1(q1.headers),q1.params&&(P2=q1.params instanceof G1?q1.params:new G1({fromObject:q1.params})),u2=new X0(F1,J1,void 0!==q1.body?q1.body:null,{headers:X2,context:q1.context,params:P2,reportProgress:q1.reportProgress,responseType:q1.responseType||"json",withCredentials:q1.withCredentials,transferCache:q1.transferCache})}const h2=(0,e.of)(u2).pipe((0,S.H)(X2=>this.handler.handle(X2)));if(F1 instanceof X0||"events"===q1.observe)return h2;const M0=h2.pipe((0,A.p)(X2=>X2 instanceof w0));switch(q1.observe||"body"){case"body":switch(u2.responseType){case"arraybuffer":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&!(X2.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return X2.body}));case"blob":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&!(X2.body instanceof Blob))throw new Error("Response is not a Blob.");return X2.body}));case"text":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&"string"!=typeof X2.body)throw new Error("Response is not a string.");return X2.body}));default:return M0.pipe((0,$.T)(X2=>X2.body))}case"response":return M0;default:throw new Error(`Unreachable: unhandled observe type ${q1.observe}}`)}}delete(F1,J1={}){return this.request("DELETE",F1,J1)}get(F1,J1={}){return this.request("GET",F1,J1)}head(F1,J1={}){return this.request("HEAD",F1,J1)}jsonp(F1,J1){return this.request("JSONP",F1,{params:(new G1).append(J1,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(F1,J1={}){return this.request("OPTIONS",F1,J1)}patch(F1,J1,q1={}){return this.request("PATCH",F1,C2(q1,J1))}post(F1,J1,q1={}){return this.request("POST",F1,C2(q1,J1))}put(F1,J1,q1={}){return this.request("PUT",F1,C2(q1,J1))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(Y))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();function s2(o1,b1){return b1(o1)}function p2(o1,b1){return(F1,J1)=>b1.intercept(F1,{handle:q1=>o1(q1,J1)})}const s0=new g.nKC(""),D0=new g.nKC(""),K2=new g.nKC(""),y0=new g.nKC("");function C4(){let o1=null;return(b1,F1)=>{null===o1&&(o1=((0,g.WQX)(s0,{optional:!0})??[]).reduceRight(p2,s2));const J1=(0,g.WQX)(g.TgB),q1=J1.add();return o1(b1,F1).pipe((0,Z.j)(()=>J1.remove(q1)))}}let m4=(()=>{class o1 extends Y{constructor(F1,J1){super(),this.backend=F1,this.injector=J1,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const q1=(0,g.WQX)(y0,{optional:!0});this.backend=q1??F1}handle(F1){if(null===this.chain){const q1=Array.from(new Set([...this.injector.get(D0),...this.injector.get(K2,[])]));this.chain=q1.reduceRight((u2,h2)=>function l0(o1,b1,F1){return(J1,q1)=>(0,g.N4e)(F1,()=>b1(J1,u2=>o1(u2,q1)))}(u2,h2,this.injector),s2)}const J1=this.pendingTasks.add();return this.chain(F1,q1=>this.backend.handle(q1)).pipe((0,Z.j)(()=>this.pendingTasks.remove(J1)))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(h1),g.KVO(g.uvJ))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();const H4=/^\)\]\}',?\n/;let $4=(()=>{class o1{constructor(F1){this.xhrFactory=F1}handle(F1){if("JSONP"===F1.method)throw new g.wOt(-2800,!1);const J1=this.xhrFactory;return(J1.\u0275loadImpl?(0,_.H)(J1.\u0275loadImpl()):(0,e.of)(null)).pipe((0,K.n)(()=>new p.c(u2=>{const h2=J1.build();if(h2.open(F1.method,F1.urlWithParams),F1.withCredentials&&(h2.withCredentials=!0),F1.headers.forEach((R0,A0)=>h2.setRequestHeader(R0,A0.join(","))),F1.headers.has("Accept")||h2.setRequestHeader("Accept","application/json, text/plain, */*"),!F1.headers.has("Content-Type")){const R0=F1.detectContentTypeHeader();null!==R0&&h2.setRequestHeader("Content-Type",R0)}if(F1.responseType){const R0=F1.responseType.toLowerCase();h2.responseType="json"!==R0?R0:"text"}const M0=F1.serializeBody();let X2=null;const P2=()=>{if(null!==X2)return X2;const R0=h2.statusText||"OK",A0=new e1(h2.getAllResponseHeaders()),A4=function u0(o1){return"responseURL"in o1&&o1.responseURL?o1.responseURL:/^X-Request-URL:/m.test(o1.getAllResponseHeaders())?o1.getResponseHeader("X-Request-URL"):null}(h2)||F1.url;return X2=new x2({headers:A0,status:h2.status,statusText:R0,url:A4}),X2},e4=()=>{let{headers:R0,status:A0,statusText:A4,url:W4}=P2(),d4=null;A0!==e2.NoContent&&(d4=typeof h2.response>"u"?h2.responseText:h2.response),0===A0&&(A0=d4?e2.Ok:0);let c4=A0>=200&&A0<300;if("json"===F1.responseType&&"string"==typeof d4){const I4=d4;d4=d4.replace(H4,"");try{d4=""!==d4?JSON.parse(d4):null}catch(U4){d4=I4,c4&&(c4=!1,d4={error:U4,text:d4})}}c4?(u2.next(new w0({body:d4,headers:R0,status:A0,statusText:A4,url:W4||void 0})),u2.complete()):u2.error(new v1({error:d4,headers:R0,status:A0,statusText:A4,url:W4||void 0}))},F0=R0=>{const{url:A0}=P2(),A4=new v1({error:R0,status:h2.status||0,statusText:h2.statusText||"Unknown Error",url:A0||void 0});u2.error(A4)};let P0=!1;const o4=R0=>{P0||(u2.next(P2()),P0=!0);let A0={type:Z0.DownloadProgress,loaded:R0.loaded};R0.lengthComputable&&(A0.total=R0.total),"text"===F1.responseType&&h2.responseText&&(A0.partialText=h2.responseText),u2.next(A0)},v4=R0=>{let A0={type:Z0.UploadProgress,loaded:R0.loaded};R0.lengthComputable&&(A0.total=R0.total),u2.next(A0)};return h2.addEventListener("load",e4),h2.addEventListener("error",F0),h2.addEventListener("timeout",F0),h2.addEventListener("abort",F0),F1.reportProgress&&(h2.addEventListener("progress",o4),null!==M0&&h2.upload&&h2.upload.addEventListener("progress",v4)),h2.send(M0),u2.next({type:Z0.Sent}),()=>{h2.removeEventListener("error",F0),h2.removeEventListener("abort",F0),h2.removeEventListener("load",e4),h2.removeEventListener("timeout",F0),F1.reportProgress&&(h2.removeEventListener("progress",o4),null!==M0&&h2.upload&&h2.upload.removeEventListener("progress",v4)),h2.readyState!==h2.DONE&&h2.abort()}})))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(p1.N0))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();const L0=new g.nKC(""),l3=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),V4=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class s3{}let F3=(()=>{class o1{constructor(F1,J1,q1){this.doc=F1,this.platform=J1,this.cookieName=q1,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const F1=this.doc.cookie||"";return F1!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,p1._b)(F1,this.cookieName),this.lastCookieString=F1),this.lastToken}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(p1.qQ),g.KVO(g.Agw),g.KVO(l3))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();function J2(o1,b1){const F1=o1.url.toLowerCase();if(!(0,g.WQX)(L0)||"GET"===o1.method||"HEAD"===o1.method||F1.startsWith("http://")||F1.startsWith("https://"))return b1(o1);const J1=(0,g.WQX)(s3).getToken(),q1=(0,g.WQX)(V4);return null!=J1&&!o1.headers.has(q1)&&(o1=o1.clone({headers:o1.headers.set(q1,J1)})),b1(o1)}var x1=function(o1){return o1[o1.Interceptors=0]="Interceptors",o1[o1.LegacyInterceptors=1]="LegacyInterceptors",o1[o1.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",o1[o1.NoXsrfProtection=3]="NoXsrfProtection",o1[o1.JsonpSupport=4]="JsonpSupport",o1[o1.RequestsMadeViaParent=5]="RequestsMadeViaParent",o1[o1.Fetch=6]="Fetch",o1}(x1||{});function m1(o1,b1){return{\u0275kind:o1,\u0275providers:b1}}function D1(...o1){const b1=[E1,$4,m4,{provide:Y,useExisting:m4},{provide:h1,useExisting:$4},{provide:D0,useValue:J2,multi:!0},{provide:L0,useValue:!0},{provide:s3,useClass:F3}];for(const F1 of o1)b1.push(...F1.\u0275providers);return(0,g.EmA)(b1)}const F2=new g.nKC("");let F4=(()=>{class o1{static{this.\u0275fac=function(J1){return new(J1||o1)}}static{this.\u0275mod=g.$C({type:o1})}static{this.\u0275inj=g.G2t({providers:[D1(m1(x1.LegacyInterceptors,[{provide:F2,useFactory:C4},{provide:D0,useExisting:F2,multi:!0}]))]})}}return o1})()},4438:(y1,d1,y)=>{"use strict";y.d(d1,{iLQ:()=>_s,sZ2:()=>su,hnV:()=>w_,Hbi:()=>ay,o8S:()=>v5,BIS:()=>iu,gRc:()=>V_,Ql9:()=>jb,Ocv:()=>Vb,abz:()=>p5,Z63:()=>m3,aKT:()=>Y7,uvJ:()=>Y3,zcH:()=>oe,bkB:()=>G8,duS:()=>_6,$GK:()=>b0,nKC:()=>q1,zZn:()=>q6,_q3:()=>Ad,MKu:()=>Pd,xe9:()=>Cn,Co$:()=>gi,Vns:()=>x5,SKi:()=>j3,Xx1:()=>G0,Agw:()=>d9,PLl:()=>au,sFG:()=>$m,_9s:()=>jm,czy:()=>k9,WPN:()=>_5,kdw:()=>G3,C4Q:()=>_t,NYb:()=>Rb,giA:()=>v_,RxE:()=>dd,c1b:()=>Q9,gXe:()=>_3,mal:()=>Hm,L39:()=>Es,Ol2:()=>Ci,w6W:()=>Np,oH4:()=>j_,Rfq:()=>J2,WQX:()=>p0,hFB:()=>iC,QuC:()=>p3,EmA:()=>C8,fpN:()=>ys,HJs:()=>Kd,N4e:()=>r6,O8t:()=>Sy,H3F:()=>fd,H8p:()=>Q8,KH2:()=>Re,TgB:()=>Z5,wOt:()=>m2,WHO:()=>F_,e01:()=>_d,lNU:()=>C4,h9k:()=>vu,$MX:()=>z9,ZF7:()=>Pc,Kcf:()=>Lu,e5t:()=>Cu,UyX:()=>PC,cWb:()=>IC,osQ:()=>jC,H5H:()=>lr,Zy3:()=>N4,mq5:()=>Jt,JZv:()=>u0,LfX:()=>E3,plB:()=>z5,jNT:()=>Ld,zjR:()=>k_,TL$:()=>zC,Tbb:()=>T0,rcV:()=>Ne,Vt3:()=>sl,Mj6:()=>Z4,GFd:()=>Sp,OA$:()=>ke,Jv_:()=>Vg,aNF:()=>qr,R7$:()=>rm,BMQ:()=>Gt,HbH:()=>gh,ZvI:()=>Fl,AVh:()=>Xi,vxM:()=>Nh,wni:()=>Er,VBU:()=>W8,FsC:()=>s5,jDH:()=>z0,G2t:()=>Y4,$C:()=>B6,EJ8:()=>V6,rXU:()=>Vc,nrm:()=>Nl,eu8:()=>Tl,bVm:()=>Dl,qex:()=>El,k0s:()=>Sl,j41:()=>wl,RV6:()=>Ph,xGo:()=>Ef,Mr5:()=>Rl,KVO:()=>k4,kS0:()=>n9,QTQ:()=>dm,bIt:()=>br,lsd:()=>Sg,joV:()=>Hs,qSk:()=>Yn,XpG:()=>Gl,nI1:()=>Qg,bMT:()=>ss,i5U:()=>e_,SdG:()=>bg,NAR:()=>vr,Y8G:()=>yl,FS9:()=>kr,Mz_:()=>h7,lJ4:()=>Jr,eq3:()=>Gg,l_i:()=>Hg,sMw:()=>Qr,ziG:()=>Zr,mGM:()=>wg,sdS:()=>Eg,Dyx:()=>Dh,Z7z:()=>kl,fX1:()=>er,Vm6:()=>Ki,Njj:()=>$s,EBC:()=>Hu,tSv:()=>at,eBV:()=>se,npT:()=>ku,f$h:()=>$a,B4B:()=>ja,n$t:()=>Oa,wjB:()=>Xr,Aen:()=>de,muq:()=>Dr,xc7:()=>qi,DNE:()=>e7,C5r:()=>as,EFF:()=>Ir,JRh:()=>Pr,SpI:()=>_7,Lme:()=>jr,E5c:()=>an,LHq:()=>$r,SjE:()=>Ql,DH7:()=>$g,mxI:()=>Kl,R50:()=>Vr,GBs:()=>Yl}),y(467);let e=null,p=!1,_=1;const S=Symbol("SIGNAL");function A(s){const o=e;return e=s,o}const p1={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Y(s){if(p)throw new Error("");if(null===e)return;e.consumerOnSignalRead(s);const o=e.nextProducerIndex++;d2(e),o0}function d2(s){s.producerNode??=[],s.producerIndexOfThis??=[],s.producerLastReadVersion??=[]}function _2(s){s.liveConsumerNode??=[],s.liveConsumerIndexOfThis??=[]}let x2=function B4(){throw new Error};function A1(s,o){(function M1(){return!1!==e?.consumerAllowSignalWrites})()||function w0(){x2()}(),s.equal(s.value,o)||(s.value=o,function K1(s){s.version++,function h1(){_++}(),r1(s)}(s))}const P1={...p1,equal:function g(s,o){return Object.is(s,o)},value:void 0};var l0=y(1413),s0=y(8359),D0=y(4412),K2=y(6354);const C4="https://g.co/ng/security#xss";class m2 extends Error{constructor(o,r){super(N4(o,r)),this.code=o}}function N4(s,o){return`NG0${Math.abs(s)}${o?": "+o:""}`}const m4=Symbol("InputSignalNode#UNSET"),B3={...P1,transformFn:void 0,applyValueToInputSignal(s,o){A1(s,o)}};function q4(s,o){const r=Object.create(B3);function d(){if(Y(r),r.value===m4)throw new m2(-950,!1);return r.value}return r.value=s,r.transformFn=o?.transform,d[S]=r,d}function c0(s){return{toString:s}.toString()}const X4="__parameters__";function y4(s,o,r){return c0(()=>{const d=function n3(s){return function(...r){if(s){const d=s(...r);for(const f in d)this[f]=d[f]}}}(o);function f(...h){if(this instanceof f)return d.apply(this,h),this;const z=new f(...h);return M.annotation=z,M;function M(k,j,H){const i1=k.hasOwnProperty(X4)?k[X4]:Object.defineProperty(k,X4,{value:[]})[X4];for(;i1.length<=H;)i1.push(null);return(i1[H]=i1[H]||[]).push(z),k}}return r&&(f.prototype=Object.create(r.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}const u0=globalThis;function S0(s){for(let o in s)if(s[o]===S0)return o;throw Error("Could not find renamed property on target object.")}function l3(s,o){for(const r in o)o.hasOwnProperty(r)&&!s.hasOwnProperty(r)&&(s[r]=o[r])}function T0(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(T0).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const o=s.toString();if(null==o)return""+o;const r=o.indexOf("\n");return-1===r?o:o.substring(0,r)}function V4(s,o){return null==s||""===s?null===o?"":o:null==o||""===o?s:s+" "+o}const F3=S0({__forward_ref__:S0});function J2(s){return s.__forward_ref__=J2,s.toString=function(){return T0(this())},s}function s1(s){return x1(s)?s():s}function x1(s){return"function"==typeof s&&s.hasOwnProperty(F3)&&s.__forward_ref__===J2}function z0(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function Y4(s){return{providers:s.providers||[],imports:s.imports||[]}}function C1(s){return z3(s,o1)||z3(s,F1)}function E3(s){return null!==C1(s)}function z3(s,o){return s.hasOwnProperty(o)?s[o]:null}function D6(s){return s&&(s.hasOwnProperty(b1)||s.hasOwnProperty(J1))?s[b1]:null}const o1=S0({\u0275prov:S0}),b1=S0({\u0275inj:S0}),F1=S0({ngInjectableDef:S0}),J1=S0({ngInjectorDef:S0});class q1{constructor(o,r){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=z0({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function R0(s){return s&&!!s.\u0275providers}const A0=S0({\u0275cmp:S0}),A4=S0({\u0275dir:S0}),W4=S0({\u0275pipe:S0}),d4=S0({\u0275mod:S0}),c4=S0({\u0275fac:S0}),I4=S0({__NG_ELEMENT_ID__:S0}),U4=S0({__NG_ENV_ID__:S0});function a0(s){return"string"==typeof s?s:null==s?"":String(s)}function t6(s,o){throw new m2(-201,!1)}var b0=function(s){return s[s.Default=0]="Default",s[s.Host=1]="Host",s[s.Self=2]="Self",s[s.SkipSelf=4]="SkipSelf",s[s.Optional=8]="Optional",s}(b0||{});let y6;function Q2(){return y6}function g2(s){const o=y6;return y6=s,o}function h3(s,o,r){const d=C1(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:r&b0.Optional?null:void 0!==o?o:void t6()}const n4={},P4="__NG_DI_FLAG__",D3="ngTempTokenPath",V0=/\n/gm,A6="__source";let M3;function v3(s){const o=M3;return M3=s,o}function g8(s,o=b0.Default){if(void 0===M3)throw new m2(-203,!1);return null===M3?h3(s,void 0,o):M3.get(s,o&b0.Optional?null:void 0,o)}function k4(s,o=b0.Default){return(Q2()||g8)(s1(s),o)}function p0(s,o=b0.Default){return k4(s,g3(o))}function g3(s){return typeof s>"u"||"number"==typeof s?s:(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function T3(s){const o=[];for(let r=0;rArray.isArray(r)?Q4(r,o):o(r))}function R3(s,o,r){o>=s.length?s.push(r):s.splice(o,0,r)}function Z6(s,o){return o>=s.length-1?s.pop():s.splice(o,1)[0]}function i3(s,o,r){let d=x4(s,o);return d>=0?s[1|d]=r:(d=~d,function e8(s,o,r,d){let f=s.length;if(f==o)s.push(r,d);else if(1===f)s.push(d,s[0]),s[0]=r;else{for(f--,s.push(s[f-1],s[f]);f>o;)s[f]=s[f-2],f--;s[o]=r,s[o+1]=d}}(s,d,o,r)),d}function s6(s,o){const r=x4(s,o);if(r>=0)return s[1|r]}function x4(s,o){return function a6(s,o,r){let d=0,f=s.length>>r;for(;f!==d;){const h=d+(f-d>>1),z=s[h<o?f=h:d=h+1}return~(f<o){z=h-1;break}}}for(;h-1){let h;for(;++fh?"":f[H+1].toLowerCase(),2&d&&j!==i1){if(O4(d))return!1;z=!0}}}}else{if(!z&&!O4(d)&&!O4(k))return!1;if(z&&O4(k))continue;z=!1,d=k|1&d}}return O4(d)||z}function O4(s){return!(1&s)}function F6(s,o,r,d){if(null===o)return-1;let f=0;if(d||!r){let h=!1;for(;f-1)for(r++;r0?'="'+M+'"':"")+"]"}else 8&d?f+="."+z:4&d&&(f+=" "+z);else""!==f&&!O4(z)&&(o+=Pe(h,f),f=""),d=z,h=h||!O4(d);r++}return""!==f&&(o+=Pe(h,f)),o}function W8(s){return c0(()=>{const o=je(s),r={...o,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===$6.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&s.dependencies||null,getStandaloneInjector:null,signals:s.signals??!1,data:s.data||{},encapsulation:s.encapsulation||_3.Emulated,styles:s.styles||H0,_:null,schemas:s.schemas||null,tView:null,id:""};A8(r);const d=s.dependencies;return r.directiveDefs=n8(d,!1),r.pipeDefs=n8(d,!0),r.id=function a5(s){let o=0;const r=[s.selectors,s.ngContentSelectors,s.hostVars,s.hostAttrs,s.consts,s.vars,s.decls,s.encapsulation,s.standalone,s.signals,s.exportAs,JSON.stringify(s.inputs),JSON.stringify(s.outputs),Object.getOwnPropertyNames(s.type.prototype),!!s.contentQueries,!!s.viewQuery].join("|");for(const f of r)o=Math.imul(31,o)+f.charCodeAt(0)|0;return o+=2147483648,"c"+o}(r),r})}function Ce(s){return j0(s)||E4(s)}function t8(s){return null!==s}function B6(s){return c0(()=>({type:s.type,bootstrap:s.bootstrap||H0,declarations:s.declarations||H0,imports:s.imports||H0,exports:s.exports||H0,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function L6(s,o){if(null==s)return u3;const r={};for(const d in s)if(s.hasOwnProperty(d)){const f=s[d];let h,z,M=Z4.None;Array.isArray(f)?(M=f[0],h=f[1],z=f[2]??h):(h=f,z=f),o?(r[h]=M!==Z4.None?[d,M]:d,o[h]=z):r[h]=d}return r}function s5(s){return c0(()=>{const o=je(s);return A8(o),o})}function V6(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function j0(s){return s[A0]||null}function E4(s){return s[A4]||null}function w4(s){return s[W4]||null}function p3(s){const o=j0(s)||E4(s)||w4(s);return null!==o&&o.standalone}function K4(s,o){const r=s[d4]||null;if(!r&&!0===o)throw new Error(`Type ${T0(s)} does not have '\u0275mod' property.`);return r}function je(s){const o={};return{type:s.type,providersResolver:null,factory:null,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:o,inputTransforms:null,inputConfig:s.inputs||u3,exportAs:s.exportAs||null,standalone:!0===s.standalone,signals:!0===s.signals,selectors:s.selectors||H0,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:L6(s.inputs,o),outputs:L6(s.outputs),debugInfo:null}}function A8(s){s.features?.forEach(o=>o(s))}function n8(s,o){if(!s)return null;const r=o?w4:Ce;return()=>("function"==typeof s?s():s).map(d=>r(d)).filter(t8)}function C8(s){return{\u0275providers:s}}function z8(...s){return{\u0275providers:M8(0,s),\u0275fromNgModule:!0}}function M8(s,...o){const r=[],d=new Set;let f;const h=z=>{r.push(z)};return Q4(o,z=>{const M=z;I8(M,h,[],d)&&(f||=[],f.push(M))}),void 0!==f&&J8(f,h),r}function J8(s,o){for(let r=0;r{o(h,d)})}}function I8(s,o,r,d){if(!(s=s1(s)))return!1;let f=null,h=D6(s);const z=!h&&j0(s);if(h||z){if(z&&!z.standalone)return!1;f=s}else{const k=s.ngModule;if(h=D6(k),!h)return!1;f=k}const M=d.has(f);if(z){if(M)return!1;if(d.add(f),z.dependencies){const k="function"==typeof z.dependencies?z.dependencies():z.dependencies;for(const j of k)I8(j,o,r,d)}}else{if(!h)return!1;{if(null!=h.imports&&!M){let j;d.add(f);try{Q4(h.imports,H=>{I8(H,o,r,d)&&(j||=[],j.push(H))})}finally{}void 0!==j&&J8(j,o)}if(!M){const j=H3(f)||(()=>new f);o({provide:f,useFactory:j,deps:H0},f),o({provide:w3,useValue:f,multi:!0},f),o({provide:m3,useValue:()=>k4(f),multi:!0},f)}const k=h.providers;if(null!=k&&!M){const j=s;P8(k,H=>{o(H,j)})}}}return f!==s&&void 0!==s.providers}function P8(s,o){for(let r of s)R0(r)&&(r=r.\u0275providers),Array.isArray(r)?P8(r,o):o(r)}const i6=S0({provide:String,useValue:S0});function v6(s){return null!==s&&"object"==typeof s&&i6 in s}function C6(s){return"function"==typeof s}const Q8=new q1(""),x8={},Be={};let Z8;function b8(){return void 0===Z8&&(Z8=new j6),Z8}class Y3{}class U6 extends Y3{get destroyed(){return this._destroyed}constructor(o,r,d,f){super(),this.parent=r,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,F8(o,z=>this.processProvider(z)),this.records.set(_6,I3(void 0,this)),f.has("environment")&&this.records.set(Y3,I3(void 0,this));const h=this.records.get(Q8);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(w3,H0,b0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const o=A(null);try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of r)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(o)}}onDestroy(o){return this.assertNotDestroyed(),this._onDestroyHooks.push(o),()=>this.removeOnDestroy(o)}runInContext(o){this.assertNotDestroyed();const r=v3(this),d=g2(void 0);try{return o()}finally{v3(r),g2(d)}}get(o,r=n4,d=b0.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(U4))return o[U4](this);d=g3(d);const h=v3(this),z=g2(void 0);try{if(!(d&b0.SkipSelf)){let k=this.records.get(o);if(void 0===k){const j=function o5(s){return"function"==typeof s||"object"==typeof s&&s instanceof q1}(o)&&C1(o);k=j&&this.injectableDefInScope(j)?I3(y8(o),x8):null,this.records.set(o,k)}if(null!=k)return this.hydrate(o,k)}return(d&b0.Self?b8():this.parent).get(o,r=d&b0.Optional&&r===n4?null:r)}catch(M){if("NullInjectorError"===M.name){if((M[D3]=M[D3]||[]).unshift(T0(o)),h)throw M;return function Q6(s,o,r,d){const f=s[D3];throw o[A6]&&f.unshift(o[A6]),s.message=function x3(s,o,r,d=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.slice(2):s;let f=T0(o);if(Array.isArray(o))f=o.map(T0).join(" -> ");else if("object"==typeof o){let h=[];for(let z in o)if(o.hasOwnProperty(z)){let M=o[z];h.push(z+":"+("string"==typeof M?JSON.stringify(M):T0(M)))}f=`{${h.join(", ")}}`}return`${r}${d?"("+d+")":""}[${f}]: ${s.replace(V0,"\n ")}`}("\n"+s.message,f,r,d),s.ngTokenPath=f,s[D3]=null,s}(M,o,"R3InjectorError",this.source)}throw M}finally{g2(z),v3(h)}}resolveInjectorInitializers(){const o=A(null),r=v3(this),d=g2(void 0);try{const h=this.get(m3,H0,b0.Self);for(const z of h)z()}finally{v3(r),g2(d),A(o)}}toString(){const o=[],r=this.records;for(const d of r.keys())o.push(T0(d));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m2(205,!1)}processProvider(o){let r=C6(o=s1(o))?o:s1(o&&o.provide);const d=function Ve(s){return v6(s)?I3(void 0,s.useValue):I3(z6(s),x8)}(o);if(!C6(o)&&!0===o.multi){let f=this.records.get(r);f||(f=I3(void 0,x8,!0),f.factory=()=>T3(f.multi),this.records.set(r,f)),r=o,f.multi.push(o)}this.records.set(r,d)}hydrate(o,r){const d=A(null);try{return r.value===x8&&(r.value=Be,r.value=r.factory()),"object"==typeof r.value&&r.value&&function xe(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{A(d)}}injectableDefInScope(o){if(!o.providedIn)return!1;const r=s1(o.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(o){const r=this._onDestroyHooks.indexOf(o);-1!==r&&this._onDestroyHooks.splice(r,1)}}function y8(s){const o=C1(s),r=null!==o?o.factory:H3(s);if(null!==r)return r;if(s instanceof q1)throw new m2(204,!1);if(s instanceof Function)return function Me(s){if(s.length>0)throw new m2(204,!1);const r=function p6(s){return s&&(s[o1]||s[F1])||null}(s);return null!==r?()=>r.factory(s):()=>new s}(s);throw new m2(204,!1)}function z6(s,o,r){let d;if(C6(s)){const f=s1(s);return H3(f)||y8(f)}if(v6(s))d=()=>s1(s.useValue);else if(function E2(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...T3(s.deps||[]));else if(function Oe(s){return!(!s||!s.useExisting)}(s))d=()=>k4(s1(s.useExisting));else{const f=s1(s&&(s.useClass||s.provide));if(!function j8(s){return!!s.deps}(s))return H3(f)||y8(f);d=()=>new f(...T3(s.deps))}return d}function I3(s,o,r=!1){return{factory:s,value:o,multi:r?[]:void 0}}function F8(s,o){for(const r of s)Array.isArray(r)?F8(r,o):r&&R0(r)?F8(r.\u0275providers,o):o(r)}function r6(s,o){s instanceof U6&&s.assertNotDestroyed();const d=v3(s),f=g2(void 0);try{return o()}finally{v3(d),g2(f)}}function l8(){return void 0!==Q2()||null!=function h8(){return M3}()}const S1=0,k1=1,U1=2,y2=3,R2=4,j2=5,g0=6,q0=7,Y0=8,b4=9,E0=10,n0=11,L3=12,z2=13,_4=14,x0=15,o0=16,q3=17,M6=18,$8=19,I5=20,h0=21,g1=22,K8=23,I0=25,Ue=1,v8=7,k8=9,r3=10;var i5=function(s){return s[s.None=0]="None",s[s.HasTransplantedViews=2]="HasTransplantedViews",s}(i5||{});function X3(s){return Array.isArray(s)&&"object"==typeof s[Ue]}function e3(s){return Array.isArray(s)&&!0===s[Ue]}function A2(s){return!!(4&s.flags)}function O8(s){return s.componentOffset>-1}function Ge(s){return!(1&~s.flags)}function $2(s){return!!s.template}function e0(s){return!!(512&s[U1])}class Fe{constructor(o,r,d){this.previousValue=o,this.currentValue=r,this.firstChange=d}isFirstChange(){return this.firstChange}}function ve(s,o,r,d){null!==o?o.applyValueToInputSignal(o,d):s[r]=d}function ke(){return s8}function s8(s){return s.type.prototype.ngOnChanges&&(s.setInput=An),Is}function Is(){const s=w7(this),o=s?.current;if(o){const r=s.previous;if(r===u3)s.previous=o;else for(let d in o)r[d]=o[d];s.current=null,this.ngOnChanges(o)}}function An(s,o,r,d,f){const h=this.declaredInputs[d],z=w7(s)||function ce(s,o){return s[j5]=o}(s,{previous:u3,current:null}),M=z.current||(z.current={}),k=z.previous,j=k[h];M[h]=new Fe(j&&j.currentValue,r,k===u3),ve(s,o,f,r)}ke.ngInherit=!0;const j5="__ngSimpleChanges__";function w7(s){return s[j5]||null}const G6=function(s,o,r){},In="svg";let Lc=!1;function S4(s){for(;Array.isArray(s);)s=s[S1];return s}function d5(s,o){return S4(o[s])}function d6(s,o){return S4(o[s.index])}function $5(s,o){return s.data[o]}function qe(s,o){return s[o]}function H6(s,o){const r=o[s];return X3(r)?r:r[S1]}function Cc(s){return!(128&~s[U1])}function w8(s,o){return null==o?null:s[o]}function $n(s){s[q3]=0}function B8(s){1024&s[U1]||(s[U1]|=1024,Cc(s)&&O5(s))}function zc(s){return!!(9216&s[U1]||s[K8]?.dirty)}function Mc(s){s[E0].changeDetectionScheduler?.notify(1),zc(s)?O5(s):64&s[U1]&&(function Pn(){return Lc}()?(s[U1]|=1024,O5(s)):s[E0].changeDetectionScheduler?.notify())}function O5(s){s[E0].changeDetectionScheduler?.notify();let o=ne(s);for(;null!==o&&!(8192&o[U1])&&(o[U1]|=8192,Cc(o));)o=ne(o)}function xc(s,o){if(!(256&~s[U1]))throw new m2(911,!1);null===s[h0]&&(s[h0]=[]),s[h0].push(o)}function ne(s){const o=s[y2];return e3(o)?o[y2]:o}const _0={lFrame:Gs(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function O(){return _0.bindingsEnabled}function l1(){return null!==_0.skipHydrationRootTNode}function Q1(){return _0.lFrame.lView}function O0(){return _0.lFrame.tView}function se(s){return _0.lFrame.contextLView=s,s[Y0]}function $s(s){return _0.lFrame.contextLView=null,s}function j4(){let s=rf();for(;null!==s&&64===s.type;)s=s.parent;return s}function rf(){return _0.lFrame.currentTNode}function we(s,o){const r=_0.lFrame;r.currentTNode=s,r.isParent=o}function On(){return _0.lFrame.isParent}function Os(){_0.lFrame.isParent=!1}function Y6(){const s=_0.lFrame;let o=s.bindingRootIndex;return-1===o&&(o=s.bindingRootIndex=s.tView.bindingStartIndex),o}function Se(){return _0.lFrame.bindingIndex}function V8(){return _0.lFrame.bindingIndex++}function Xe(s){const o=_0.lFrame,r=o.bindingIndex;return o.bindingIndex=o.bindingIndex+s,r}function ff(s,o){const r=_0.lFrame;r.bindingIndex=r.bindingRootIndex=s,Vn(o)}function Vn(s){_0.lFrame.currentDirectiveIndex=s}function Un(){return _0.lFrame.currentQueryIndex}function Gn(s){_0.lFrame.currentQueryIndex=s}function mf(s){const o=s[k1];return 2===o.type?o.declTNode:1===o.type?s[j2]:null}function pf(s,o,r){if(r&b0.SkipSelf){let f=o,h=s;for(;!(f=f.parent,null!==f||r&b0.Host||(f=mf(h),null===f||(h=h[_4],10&f.type))););if(null===f)return!1;o=f,s=h}const d=_0.lFrame=hf();return d.currentTNode=o,d.lView=s,!0}function Us(s){const o=hf(),r=s[k1];_0.lFrame=o,o.currentTNode=r.firstChild,o.lView=s,o.tView=r,o.contextLView=s,o.bindingIndex=r.bindingStartIndex,o.inI18n=!1}function hf(){const s=_0.lFrame,o=null===s?null:s.child;return null===o?Gs(s):o}function Gs(s){const o={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=o),o}function gf(){const s=_0.lFrame;return _0.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const _f=gf;function Hn(){const s=gf();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function x6(){return _0.lFrame.selectedIndex}function f5(s){_0.lFrame.selectedIndex=s}function c3(){const s=_0.lFrame;return $5(s.tView,s.selectedIndex)}function Yn(){_0.lFrame.currentNamespace=In}function Hs(){!function Lf(){_0.lFrame.currentNamespace=null}()}let Cf=!0;function bc(){return Cf}function ae(s){Cf=s}function Xn(s,o){for(let r=o.directiveStart,d=o.directiveEnd;r=d)break}else o[k]<0&&(s[q3]+=65536),(M>14>16&&(3&s[U1])===o&&(s[U1]+=16384,Mf(M,h)):Mf(M,h)}const yc=-1;class u5{constructor(o,r,d){this.factory=o,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=d}}function Zn(s){return s!==yc}function A7(s){return 32767&s}function I7(s,o){let r=function vf(s){return s>>16}(s),d=o;for(;r>0;)d=d[_4],r--;return d}let Kn=!0;function P7(s){const o=Kn;return Kn=s,o}const qs=255,e9=5;let QL=0;const U8={};function j7(s,o){const r=Ws(s,o);if(-1!==r)return r;const d=o[k1];d.firstCreatePass&&(s.injectorIndex=o.length,Xs(d.data,s),Xs(o,null),Xs(d.blueprint,null));const f=$7(s,o),h=s.injectorIndex;if(Zn(f)){const z=A7(f),M=I7(f,o),k=M[k1].data;for(let j=0;j<8;j++)o[h+j]=M[z+j]|k[z+j]}return o[h+8]=f,h}function Xs(s,o){s.push(0,0,0,0,0,0,0,0,o)}function Ws(s,o){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===o[s.injectorIndex+8]?-1:s.injectorIndex}function $7(s,o){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let r=0,d=null,f=o;for(;null!==f;){if(d=Ks(f),null===d)return yc;if(r++,f=f[_4],-1!==d.injectorIndex)return d.injectorIndex|r<<16}return yc}function O7(s,o,r){!function ZL(s,o,r){let d;"string"==typeof r?d=r.charCodeAt(0)||0:r.hasOwnProperty(I4)&&(d=r[I4]),null==d&&(d=r[I4]=QL++);const f=d&qs;o.data[s+(f>>e9)]|=1<=0?o&qs:eC:o}(r);if("function"==typeof h){if(!pf(o,s,d))return d&b0.Host?kf(f,0,d):c9(o,r,d,f);try{let z;if(z=h(d),null!=z||d&b0.Optional)return z;t6()}finally{_f()}}else if("number"==typeof h){let z=null,M=Ws(s,o),k=yc,j=d&b0.Host?o[x0][j2]:null;for((-1===M||d&b0.SkipSelf)&&(k=-1===M?$7(s,o):o[M+8],k!==yc&&B7(d,!1)?(z=o[k1],M=A7(k),o=I7(k,o)):M=-1);-1!==M;){const H=o[k1];if(Nf(h,M,H.data)){const i1=wf(M,o,r,z,d,j);if(i1!==U8)return i1}k=o[M+8],k!==yc&&B7(d,o[k1].data[M+8]===j)&&Nf(h,M,o)?(z=H,M=A7(k),o=I7(k,o)):M=-1}}return f}function wf(s,o,r,d,f,h){const z=o[k1],M=z.data[s+8],H=t9(M,z,r,null==d?O8(M)&&Kn:d!=z&&!!(3&M.type),f&b0.Host&&h===M);return null!==H?m5(o,z,H,M):U8}function t9(s,o,r,d,f){const h=s.providerIndexes,z=o.data,M=1048575&h,k=s.directiveStart,H=h>>20,N1=f?M+H:s.directiveEnd;for(let I1=d?M:M+H;I1=k&&B1.type===r)return I1}if(f){const I1=z[k];if(I1&&$2(I1)&&I1.type===r)return k}return null}function m5(s,o,r,d){let f=s[r];const h=o.data;if(function XL(s){return s instanceof u5}(f)){const z=f;z.resolving&&function h6(s,o){throw o&&o.join(" > "),new m2(-200,s)}(function H2(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():a0(s)}(h[r]));const M=P7(z.canSeeViewProviders);z.resolving=!0;const j=z.injectImpl?g2(z.injectImpl):null;pf(s,d,b0.Default);try{f=s[r]=z.factory(void 0,h,s,d),o.firstCreatePass&&r>=d.directiveStart&&function zf(s,o,r){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:h}=o.type.prototype;if(d){const z=s8(o);(r.preOrderHooks??=[]).push(s,z),(r.preOrderCheckHooks??=[]).push(s,z)}f&&(r.preOrderHooks??=[]).push(0-s,f),h&&((r.preOrderHooks??=[]).push(s,h),(r.preOrderCheckHooks??=[]).push(s,h))}(r,h[r],o)}finally{null!==j&&g2(j),P7(M),z.resolving=!1,_f()}}return f}function Nf(s,o,r){return!!(r[o+(s>>e9)]&1<{const o=s.prototype.constructor,r=o[c4]||V7(o),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const h=f[c4]||V7(f);if(h&&h!==r)return h;f=Object.getPrototypeOf(f)}return h=>new h})}function V7(s){return x1(s)?()=>{const o=V7(s1(s));return o&&o()}:H3(s)}function Ks(s){const o=s[k1],r=o.type;return 2===r?o.declTNode:1===r?s[j2]:null}function n9(s){return function KL(s,o){if("class"===o)return s.classes;if("style"===o)return s.styles;const r=s.attrs;if(r){const d=r.length;let f=0;for(;f{class s{static{this.THROW_IF_NOT_FOUND=n4}static{this.NULL=new j6}static create(r,d){if(Array.isArray(r))return Rf({name:""},d,r,"");{const f=r.name??"";return Rf({name:f},r.parent,r.providers,f)}}static{this.\u0275prov=z0({token:s,providedIn:"any",factory:()=>k4(_6)})}static{this.__NG_ELEMENT_ID__=-1}}return s})();function na(s){return s.ngOriginalError}class oe{constructor(){this._console=console}handleError(o){const r=this._findOriginalError(o);this._console.error("ERROR",o),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(o){let r=o&&na(o);for(;r&&na(r);)r=na(r);return r||null}}const If=new q1("",{providedIn:"root",factory:()=>p0(oe).handleError.bind(void 0)});let p5=(()=>{class s{static{this.__NG_ELEMENT_ID__=Pf}static{this.__NG_ENV_ID__=r=>r}}return s})();class oC extends p5{constructor(o){super(),this._lView=o}onDestroy(o){return xc(this._lView,o),()=>function E7(s,o){if(null===s[h0])return;const r=s[h0].indexOf(o);-1!==r&&s[h0].splice(r,1)}(this._lView,o)}}function Pf(){return new oC(Q1())}function $f(s,o){return q4(s,o)}const iC=($f.required=function s9(s){return q4(m4,s)},$f);function rC(){return We(j4(),Q1())}function We(s,o){return new Y7(d6(s,o))}let Y7=(()=>{class s{constructor(r){this.nativeElement=r}static{this.__NG_ELEMENT_ID__=rC}}return s})();function Of(s){return s instanceof Y7?s.nativeElement:s}function sa(s){return o=>{setTimeout(s,void 0,o)}}const G8=class dC extends l0.B{constructor(o=!1){super(),this.destroyRef=void 0,this.__isAsync=o,l8()&&(this.destroyRef=p0(p5,{optional:!0})??void 0)}emit(o){const r=A(null);try{super.next(o)}finally{A(r)}}subscribe(o,r,d){let f=o,h=r||(()=>null),z=d;if(o&&"object"==typeof o){const k=o;f=k.next?.bind(k),h=k.error?.bind(k),z=k.complete?.bind(k)}this.__isAsync&&(h=sa(h),f&&(f=sa(f)),z&&(z=sa(z)));const M=super.subscribe({next:f,error:h,complete:z});return o instanceof s0.yU&&o.add(M),M}};function fC(){return this._results[Symbol.iterator]()}class aa{get changes(){return this._changes??=new G8}constructor(o=!1){this._emitDistinctChangesOnly=o,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=aa.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=fC)}get(o){return this._results[o]}map(o){return this._results.map(o)}filter(o){return this._results.filter(o)}find(o){return this._results.find(o)}reduce(o,r){return this._results.reduce(o,r)}forEach(o){this._results.forEach(o)}some(o){return this._results.some(o)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(o,r){this.dirty=!1;const d=function o3(s){return s.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function f3(s,o,r){if(s.length!==o.length)return!1;for(let d=0;dMC}),MC="ng",au=new q1(""),d9=new q1("",{providedIn:"platform",factory:()=>"unknown"}),iu=new q1("",{providedIn:"root",factory:()=>ie().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let fu=()=>null;function p9(s,o,r=!1){return fu(s,o,r)}const wa=new q1("",{providedIn:"root",factory:()=>!1});let et,C9;function Ic(s){return function L9(){if(void 0===et&&(et=null,u0.trustedTypes))try{et=u0.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return et}()?.createHTML(s)||s}function Sa(){if(void 0===C9&&(C9=null,u0.trustedTypes))try{C9=u0.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return C9}function Na(s){return Sa()?.createHTML(s)||s}function Da(s){return Sa()?.createScriptURL(s)||s}class g5{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${C4})`}}class TC extends g5{getTypeName(){return"HTML"}}class gu extends g5{getTypeName(){return"Style"}}class _u extends g5{getTypeName(){return"Script"}}class Ta extends g5{getTypeName(){return"URL"}}class RC extends g5{getTypeName(){return"ResourceURL"}}function Ne(s){return s instanceof g5?s.changingThisBreaksApplicationSecurity:s}function Pc(s,o){const r=function AC(s){return s instanceof g5&&s.getTypeName()||null}(s);if(null!=r&&r!==o){if("ResourceURL"===r&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${r} (see ${C4})`)}return r===o}function Lu(s){return new TC(s)}function IC(s){return new gu(s)}function PC(s){return new _u(s)}function jC(s){return new Ta(s)}function Cu(s){return new RC(s)}class $C{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const r=(new window.DOMParser).parseFromString(Ic(o),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(o):(r.removeChild(r.firstChild),r)}catch{return null}}}class OC{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const r=this.inertDocument.createElement("template");return r.innerHTML=Ic(o),r}}const VC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function z9(s){return(s=String(s)).match(VC)?s:"unsafe:"+s}function re(s){const o={};for(const r of s.split(","))o[r]=!0;return o}function tt(...s){const o={};for(const r of s)for(const d in r)r.hasOwnProperty(d)&&(o[d]=!0);return o}const M9=re("area,br,col,hr,img,wbr"),Ra=re("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zu=re("rp,rt"),x9=tt(M9,tt(Ra,re("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tt(zu,re("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),tt(zu,Ra)),b9=re("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mu=tt(b9,re("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),re("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),YC=re("script,style,template");class qC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let r=o.firstChild,d=!0,f=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?d=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,d&&r.firstChild)f.push(r),r=XC(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let h=Aa(r);if(h){r=h;break}r=f.pop()}return this.buf.join("")}startElement(o){const r=bu(o).toLowerCase();if(!x9.hasOwnProperty(r))return this.sanitizedSomething=!0,!YC.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const d=o.attributes;for(let f=0;f"),!0}endElement(o){const r=bu(o).toLowerCase();x9.hasOwnProperty(r)&&!M9.hasOwnProperty(r)&&(this.buf.push(""))}chars(o){this.buf.push(Ia(o))}}function Aa(s){const o=s.nextSibling;if(o&&s!==o.previousSibling)throw y9(o);return o}function XC(s){const o=s.firstChild;if(o&&function xu(s,o){return(s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(s,o))throw y9(o);return o}function bu(s){const o=s.nodeName;return"string"==typeof o?o:"FORM"}function y9(s){return new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`)}const yu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fu=/([^\#-~ |!])/g;function Ia(s){return s.replace(/&/g,"&").replace(yu,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(Fu,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let lt;function vu(s,o){let r=null;try{lt=lt||function ct(s){const o=new OC(s);return function BC(){try{return!!(new window.DOMParser).parseFromString(Ic(""),"text/html")}catch{return!1}}()?new $C(o):o}(s);let d=o?String(o):"";r=lt.getInertBodyElement(d);let f=5,h=d;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,d=h,h=r.innerHTML,r=lt.getInertBodyElement(d)}while(d!==h);return Ic((new qC).sanitizeChildren(Pa(r)||r))}finally{if(r){const d=Pa(r)||r;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function Pa(s){return"content"in s&&function WC(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var _5=function(s){return s[s.NONE=0]="NONE",s[s.HTML=1]="HTML",s[s.STYLE=2]="STYLE",s[s.SCRIPT=3]="SCRIPT",s[s.URL=4]="URL",s[s.RESOURCE_URL=5]="RESOURCE_URL",s}(_5||{});function ku(s){const o=jc();return o?Na(o.sanitize(_5.HTML,s)||""):Pc(s,"HTML")?Na(Ne(s)):vu(ie(),a0(s))}function ja(s){const o=jc();return o?o.sanitize(_5.URL,s)||"":Pc(s,"URL")?Ne(s):z9(a0(s))}function $a(s){const o=jc();if(o)return Da(o.sanitize(_5.RESOURCE_URL,s)||"");if(Pc(s,"ResourceURL"))return Da(Ne(s));throw new m2(904,!1)}function Oa(s,o,r){return function JC(s,o){return"src"===o&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===o&&("base"===s||"link"===s)?$a:ja}(o,r)(s)}function jc(){const s=Q1();return s&&s[E0].sanitizer}const Du=/^>|^->||--!>|)/g,Tu="\u200b$1\u200b";function at(s){return s.ownerDocument.defaultView}function Hu(s){return s.ownerDocument}function W6(s){return s instanceof Function?s():s}var k9=function(s){return s[s.Important=1]="Important",s[s.DashCase=2]="DashCase",s}(k9||{});let ot;function qa(s,o){return ot(s,o)}function Oc(s,o,r,d,f){if(null!=d){let h,z=!1;e3(d)?h=d:X3(d)&&(z=!0,d=d[S1]);const M=S4(d);0===s&&null!==r?null==f?em(o,r,M):V5(o,r,M,f||null,!0):1===s&&null!==r?V5(o,r,M,f||null,!0):2===s?function H5(s,o,r){const d=it(s,o);d&&function cm(s,o,r,d){s.removeChild(o,r,d)}(s,d,o,r)}(o,M,z):3===s&&o.destroyNode(M),null!=h&&function im(s,o,r,d,f){const h=r[v8];h!==S4(r)&&Oc(o,s,d,h,f);for(let M=r3;Mo.replace(Va,Tu))}(o))}function S9(s,o,r){return s.createElement(o,r)}function Qu(s,o){o[E0].changeDetectionScheduler?.notify(1),A9(s,o,o[n0],2,null,null)}function Zu(s,o){const r=s[k8],d=r.indexOf(o);r.splice(d,1)}function Bc(s,o){if(s.length<=r3)return;const r=r3+o,d=s[r];if(d){const f=d[o0];null!==f&&f!==s&&Zu(f,d),o>0&&(s[r-1][R2]=d[R2]);const h=Z6(s,r3+o);!function nz(s,o){Qu(s,o),o[S1]=null,o[j2]=null}(d[k1],d);const z=h[M6];null!==z&&z.detachView(h[k1]),d[y2]=null,d[R2]=null,d[U1]&=-129}return d}function N9(s,o){if(!(256&o[U1])){const r=o[n0];r.destroyNode&&A9(s,o,r,3,null,null),function lz(s){let o=s[L3];if(!o)return Qa(s[k1],s);for(;o;){let r=null;if(X3(o))r=o[L3];else{const d=o[r3];d&&(r=d)}if(!r){for(;o&&!o[R2]&&o!==s;)X3(o)&&Qa(o[k1],o),o=o[y2];null===o&&(o=s),X3(o)&&Qa(o[k1],o),r=o&&o[R2]}o=r}}(o)}}function Qa(s,o){if(256&o[U1])return;const r=A(null);try{o[U1]&=-129,o[U1]|=256,o[K8]&&function c2(s){if(d2(s),d0(s))for(let o=0;o=0?d[z]():d[-z].unsubscribe(),h+=2}else r[h].call(d[r[h+1]]);null!==d&&(o[q0]=null);const f=o[h0];if(null!==f){o[h0]=null;for(let h=0;h-1){const{encapsulation:h}=s.data[d.directiveStart+f];if(h===_3.None||h===_3.Emulated)return null}return d6(d,r)}}(s,o.parent,r)}function V5(s,o,r,d,f){s.insertBefore(o,r,d,f)}function em(s,o,r){s.appendChild(o,r)}function T9(s,o,r,d,f){null!==d?V5(s,o,r,d,f):em(s,o,r)}function it(s,o){return s.parentNode(o)}function nm(s,o,r){return lm(s,o,r)}let U5,lm=function Za(s,o,r){return 40&s.type?d6(s,r):null};function G5(s,o,r,d){const f=E9(s,d,o),h=o[n0],M=nm(d.parent||o[j2],d,o);if(null!=f)if(Array.isArray(r))for(let k=0;kI0&&to(s,o,I0,!1),G6(z?2:0,f),r(d,f)}finally{f5(h),G6(z?3:1,f)}}function Gc(s,o,r){if(A2(o)){const d=A(null);try{const h=o.directiveEnd;for(let z=o.directiveStart;znull;function io(s,o,r,d,f){for(let h in o){if(!o.hasOwnProperty(h))continue;const z=o[h];if(void 0===z)continue;d??={};let M,k=Z4.None;Array.isArray(z)?(M=z[0],k=z[1]):M=z;let j=h;if(null!==f){if(!f.hasOwnProperty(h))continue;j=f[h]}0===s?ro(d,r,j,M,k):ro(d,r,j,M)}return d}function ro(s,o,r,d,f){let h;s.hasOwnProperty(r)?(h=s[r]).push(o,d):h=s[r]=[o,d],void 0!==f&&h.push(f)}function a8(s,o,r,d,f,h,z,M){const k=d6(o,r);let H,j=o.inputs;!M&&null!=j&&(H=j[d])?(B9(s,r,H,d,f),O8(o)&&function fo(s,o){const r=H6(o,s);16&r[U1]||(r[U1]|=64)}(r,o.index)):3&o.type&&(d=function hm(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(d),f=null!=z?z(f,o.value||"",d):f,h.setProperty(k,d,f))}function j9(s,o,r,d){if(O()){const f=null===d?null:{"":-1},h=function _m(s,o){const r=s.directiveRegistry;let d=null,f=null;if(r)for(let h=0;h0;){const r=s[--o];if("number"==typeof r&&r<0)return r}return 0})(z)!=M&&z.push(M),z.push(r,d,h)}}(s,o,d,Uc(s,r,f.hostVars,W0),f)}function Ee(s,o,r,d,f,h){const z=d6(s,o);!function mt(s,o,r,d,f,h,z){if(null==h)s.removeAttribute(o,f,r);else{const M=null==z?a0(h):z(h,d||"",f);s.setAttribute(o,f,M,r)}}(o[n0],z,h,s.value,r,d,f)}function Cm(s,o,r,d,f,h){const z=h[o];if(null!==z)for(let M=0;M0&&(r[f-1][R2]=o),d{O5(s.lView)},consumerOnSignalRead(){this.lView[K8]=this}},ko=100;function V9(s,o=!0,r=0){const d=s[E0],f=d.rendererFactory;f.begin?.();try{!function wo(s,o){No(s,o);let r=0;for(;zc(s);){if(r===ko)throw new m2(103,!1);r++,No(s,1)}}(s,r)}catch(z){throw o&&O9(s,z),z}finally{f.end?.(),d.inlineEffectRunner?.flush()}}function wz(s,o,r,d){const f=o[U1];if(!(256&~f))return;o[E0].inlineEffectRunner?.flush(),Us(o);let z=null,M=null;(function Sz(s){return 2!==s.type})(s)&&(M=function bm(s){return s[K8]??function vo(s){const o=xm.pop()??Object.create(ym);return o.lView=s,o}(s)}(o),z=function $1(s){return s&&(s.nextProducerIndex=0),A(s)}(M));try{$n(o),function Vs(s){return _0.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==r&&fm(s,o,r,2,d);const k=!(3&~f);if(k){const i1=s.preOrderCheckHooks;null!==i1&&R7(o,i1,null)}else{const i1=s.preOrderHooks;null!==i1&&Wn(o,i1,0,null),Ys(o,0)}if(function Nz(s){for(let o=ua(s);null!==o;o=Kf(o)){if(!(o[U1]&i5.HasTransplantedViews))continue;const r=o[k8];for(let d=0;ds.nextProducerIndex;)s.producerNode.pop(),s.producerLastReadVersion.pop(),s.producerIndexOfThis.pop()}}(M,z),function vz(s){s.lView[K8]!==s&&(s.lView=null,xm.push(s))}(M)),Hn()}}function q5(s,o){for(let r=ua(s);null!==r;r=Kf(r))for(let d=r3;d-1&&(Bc(o,d),Z6(r,d))}this._attachedToViewContainer=!1}N9(this._lView[k1],this._lView)}onDestroy(o){xc(this._lView,o)}markForCheck(){gt(this._cdRefInjectingView||this._lView)}detach(){this._lView[U1]&=-129}reattach(){Mc(this._lView),this._lView[U1]|=128}detectChanges(){this._lView[U1]|=1024,V9(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m2(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Qu(this._lView[k1],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new m2(902,!1);this._appRef=o,Mc(this._lView)}}let _t=(()=>{class s{static{this.__NG_ELEMENT_ID__=Tz}}return s})();const Fm=_t,Dz=class extends Fm{constructor(o,r,d){super(),this._declarationLView=o,this._declarationTContainer=r,this.elementRef=d}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,r){return this.createEmbeddedViewImpl(o,r)}createEmbeddedViewImpl(o,r,d){const f=pt(this._declarationLView,this._declarationTContainer,o,{embeddedViewInjector:r,dehydratedView:d});return new Yc(f)}};function Tz(){return Lt(j4(),Q1())}function Lt(s,o){return 4&s.type?new Dz(o,s,We(s,o)):null}let jo=()=>null;function Xc(s,o){return jo(s,o)}class $o{}class Qz{}class Im{}class yt{resolveComponentFactory(o){throw function Pm(s){const o=Error(`No component factory found for ${T0(s)}.`);return o.ngComponent=s,o}(o)}}let Ft=(()=>{class s{static{this.NULL=new yt}}return s})();class jm{}let $m=(()=>{class s{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Om(){const s=Q1(),r=H6(j4().index,s);return(X3(r)?r:s)[n0]}()}}return s})(),Kz=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:()=>null})}}return s})();const Oo={},Bm=new Set;function H8(s){Bm.has(s)||(Bm.add(s),performance?.mark?.("mark_feature_usage",{detail:{feature:s}}))}function Bo(...s){}class j3{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G8(!1),this.onMicrotaskEmpty=new G8(!1),this.onStable=new G8(!1),this.onError=new G8(!1),typeof Zone>"u")throw new m2(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!d&&r,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function cM(){const s="function"==typeof u0.requestAnimationFrame;let o=u0[s?"requestAnimationFrame":"setTimeout"],r=u0[s?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&r){const d=o[Zone.__symbol__("OriginalDelegate")];d&&(o=d);const f=r[Zone.__symbol__("OriginalDelegate")];f&&(r=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Go(s){const o=()=>{!function tM(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(u0,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Ho(s),s.isCheckStableRunning=!0,Uo(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Ho(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,d,f,h,z,M)=>{if(function nM(s){return!(!Array.isArray(s)||1!==s.length)&&!0===s[0].data?.__ignore_ng_zone__}(M))return r.invokeTask(f,h,z,M);try{return Vm(s),r.invokeTask(f,h,z,M)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||s.shouldCoalesceRunChangeDetection)&&o(),X9(s)}},onInvoke:(r,d,f,h,z,M,k)=>{try{return Vm(s),r.invoke(f,h,z,M,k)}finally{s.shouldCoalesceRunChangeDetection&&o(),X9(s)}},onHasTask:(r,d,f,h)=>{r.hasTask(f,h),d===f&&("microTask"==h.change?(s._hasPendingMicrotasks=h.microTask,Ho(s),Uo(s)):"macroTask"==h.change&&(s.hasPendingMacrotasks=h.macroTask))},onHandleError:(r,d,f,h)=>(r.handleError(f,h),s.runOutsideAngular(()=>s.onError.emit(h)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!j3.isInAngularZone())throw new m2(909,!1)}static assertNotInAngularZone(){if(j3.isInAngularZone())throw new m2(909,!1)}run(o,r,d){return this._inner.run(o,r,d)}runTask(o,r,d,f){const h=this._inner,z=h.scheduleEventTask("NgZoneEvent: "+f,o,Vo,Bo,Bo);try{return h.runTask(z,r,d)}finally{h.cancelTask(z)}}runGuarded(o,r,d){return this._inner.runGuarded(o,r,d)}runOutsideAngular(o){return this._outer.run(o)}}const Vo={};function Uo(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Ho(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Vm(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function X9(s){s._nesting--,Uo(s)}class Yo{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G8,this.onMicrotaskEmpty=new G8,this.onStable=new G8,this.onError=new G8}run(o,r,d){return o.apply(r,d)}runGuarded(o,r,d){return o.apply(r,d)}runOutsideAngular(o){return o()}runTask(o,r,d,f){return o.apply(r,d)}}var Qe=function(s){return s[s.EarlyRead=0]="EarlyRead",s[s.Write=1]="Write",s[s.MixedReadWrite=2]="MixedReadWrite",s[s.Read=3]="Read",s}(Qe||{});const Gm={destroy(){}};function Hm(s,o){!o&&function k6(s){if(!l8())throw new m2(-203,!1)}();const r=o?.injector??p0(q6);if(!function S8(s){return"browser"===(s??p0(q6)).get(d9)}(r))return Gm;H8("NgAfterNextRender");const d=r.get(Wc),f=d.handler??=new Ym,h=o?.phase??Qe.MixedReadWrite,z=()=>{f.unregister(k),M()},M=r.get(p5).onDestroy(z),k=r6(r,()=>new W9(h,()=>{z(),s()}));return f.register(k),{destroy:z}}class W9{constructor(o,r){this.phase=o,this.callbackFn=r,this.zone=p0(j3),this.errorHandler=p0(oe,{optional:!0}),p0($o,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(o){this.errorHandler?.handleError(o)}}}class Ym{constructor(){this.executingCallbacks=!1,this.buckets={[Qe.EarlyRead]:new Set,[Qe.Write]:new Set,[Qe.MixedReadWrite]:new Set,[Qe.Read]:new Set},this.deferredCallbacks=new Set}register(o){(this.executingCallbacks?this.deferredCallbacks:this.buckets[o.phase]).add(o)}unregister(o){this.buckets[o.phase].delete(o),this.deferredCallbacks.delete(o)}execute(){this.executingCallbacks=!0;for(const o of Object.values(this.buckets))for(const r of o)r.invoke();this.executingCallbacks=!1;for(const o of this.deferredCallbacks)this.buckets[o.phase].add(o);this.deferredCallbacks.clear()}destroy(){for(const o of Object.values(this.buckets))o.clear();this.deferredCallbacks.clear()}}let Wc=(()=>{class s{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const d of r)d()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=z0({token:s,providedIn:"root",factory:()=>new s})}}return s})();function z5(s){return!!K4(s)}function kt(s,o,r){let d=r?s.styles:null,f=r?s.classes:null,h=0;if(null!==o)for(let z=0;z0&&eo(s,r,h.join(" "))}}(I1,$3,l2,d),void 0!==r&&function aM(s,o,r){const d=s.projection=[];for(let f=0;f{class s{static{this.__NG_ELEMENT_ID__=iM}}return s})();function iM(){return wt(j4(),Q1())}const rM=Q9,ep=class extends rM{constructor(o,r,d){super(),this._lContainer=o,this._hostTNode=r,this._hostLView=d}get element(){return We(this._hostTNode,this._hostLView)}get injector(){return new P3(this._hostTNode,this._hostLView)}get parentInjector(){const o=$7(this._hostTNode,this._hostLView);if(Zn(o)){const r=I7(o,this._hostLView),d=A7(o);return new P3(r[k1].data[d+8],r)}return new P3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const r=ci(this._lContainer);return null!==r&&r[o]||null}get length(){return this._lContainer.length-r3}createEmbeddedView(o,r,d){let f,h;"number"==typeof d?f=d:null!=d&&(f=d.index,h=d.injector);const z=Xc(this._lContainer,o.ssrId),M=o.createEmbeddedViewImpl(r||{},h,z);return this.insertImpl(M,f,C5(this._hostTNode,z)),M}createComponent(o,r,d,f,h){const z=o&&!function a2(s){return"function"==typeof s}(o);let M;if(z)M=r;else{const B1=r||{};M=B1.index,d=B1.injector,f=B1.projectableNodes,h=B1.environmentInjector||B1.ngModuleRef}const k=z?o:new Jc(j0(o)),j=d||this.parentInjector;if(!h&&null==k.ngModule){const l2=(z?j:this.parentInjector).get(Y3,null);l2&&(h=l2)}const H=j0(k.componentType??{}),i1=Xc(this._lContainer,H?.id??null),I1=k.create(j,f,i1?.firstChild??null,h);return this.insertImpl(I1.hostView,M,C5(this._hostTNode,i1)),I1}insert(o,r){return this.insertImpl(o,r,!0)}insertImpl(o,r,d){const f=o._lView;if(function js(s){return e3(s[y2])}(f)){const M=this.indexOf(o);if(-1!==M)this.detach(M);else{const k=f[y2],j=new ep(k,k[j2],k[y2]);j.detach(j.indexOf(o))}}const h=this._adjustIndex(r),z=this._lContainer;return ht(z,f,h,d),o.attachToViewContainerRef(),R3(ti(z),h,o),o}move(o,r){return this.insert(o,r)}indexOf(o){const r=ci(this._lContainer);return null!==r?r.indexOf(o):-1}remove(o){const r=this._adjustIndex(o,-1),d=Bc(this._lContainer,r);d&&(Z6(ti(this._lContainer),r),N9(d[k1],d))}detach(o){const r=this._adjustIndex(o,-1),d=Bc(this._lContainer,r);return d&&null!=Z6(ti(this._lContainer),r)?new Yc(d):null}_adjustIndex(o,r=0){return o??this.length+r}};function ci(s){return s[8]}function ti(s){return s[8]||(s[8]=[])}function wt(s,o){let r;const d=o[s.index];return e3(d)?r=d:(r=_o(d,o,null,s),o[s.index]=r,$9(o,r)),St(r,o,s,d),new ep(r,s,o)}let St=function Nt(s,o,r,d){if(s[v8])return;let f;f=8&r.type?S4(d):function dM(s,o){const r=s[n0],d=r.createComment(""),f=d6(o,s);return V5(r,it(r,f),d,function tm(s,o){return s.nextSibling(o)}(r,f),!1),d}(o,r),s[v8]=f},ni=()=>!1;class li{constructor(o){this.queryList=o,this.matches=null}clone(){return new li(this.queryList)}setDirty(){this.queryList.setDirty()}}class si{constructor(o=[]){this.queries=o}createEmbeddedView(o){const r=o.queries;if(null!==r){const d=null!==o.contentQueries?o.contentQueries[0]:r.length,f=[];for(let h=0;ho.trim())}(o):o}}class Z9{constructor(o=[]){this.queries=o}elementStart(o,r){for(let d=0;d0)d.push(z[M/2]);else{const j=h[M+1],H=o[-k];for(let i1=r3;i1=0;d--){const f=s[d];f.hostVars=o+=f.hostVars,f.hostAttrs=D(f.hostAttrs,r=D(r,f.hostAttrs))}}(d)}function wM(s,o){for(const r in o.inputs){if(!o.inputs.hasOwnProperty(r)||s.inputs.hasOwnProperty(r))continue;const d=o.inputs[r];if(void 0!==d&&(s.inputs[r]=d,s.declaredInputs[r]=o.declaredInputs[r],null!==o.inputTransforms)){const f=Array.isArray(d)?d[0]:d;if(!o.inputTransforms.hasOwnProperty(f))continue;s.inputTransforms??={},s.inputTransforms[f]=o.inputTransforms[f]}}}function It(s){return s===u3?{}:s===H0?[]:s}function yp(s,o){const r=s.viewQuery;s.viewQuery=r?(d,f)=>{o(d,f),r(d,f)}:o}function SM(s,o){const r=s.contentQueries;s.contentQueries=r?(d,f,h)=>{o(d,f,h),r(d,f,h)}:o}function NM(s,o){const r=s.hostBindings;s.hostBindings=r?(d,f)=>{o(d,f),r(d,f)}:o}function Sp(s){const o=s.inputConfig,r={};for(const d in o)if(o.hasOwnProperty(d)){const f=o[d];Array.isArray(f)&&f[3]&&(r[d]=f[3])}s.inputTransforms=r}class x5{}class gi{}function Np(s,o){return new al(s,o??null,[])}class al extends x5{constructor(o,r,d){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ko(this);const f=K4(o);this._bootstrapComponents=W6(f.bootstrap),this._r3Injector=Af(o,r,[{provide:x5,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver},...d],T0(o),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(o)}get injector(){return this._r3Injector}destroy(){const o=this._r3Injector;!o.destroyed&&o.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class _i extends gi{constructor(o){super(),this.moduleType=o}create(o){return new al(this.moduleType,o,[])}}class Li extends x5{constructor(o){super(),this.componentFactoryResolver=new Ko(this),this.instance=null;const r=new U6([...o.providers,{provide:x5,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver}],o.parent||b8(),o.debugName,new Set(["environment"]));this.injector=r,o.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function Ci(s,o,r=null){return new Li({providers:s,parent:o,debugName:r,runEnvironmentInitializers:!0}).injector}let Z5=(()=>{class s{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new D0.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function jt(s){return!!il(s)&&(Array.isArray(s)||!(s instanceof Map)&&Symbol.iterator in s)}function il(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function De(s,o,r){return s[o]=r}function S3(s,o,r){return!Object.is(s[o],r)&&(s[o]=r,!0)}function K5(s,o,r,d){const f=S3(s,o,r);return S3(s,o+1,d)||f}function $t(s,o,r,d,f){const h=K5(s,o,r,d);return S3(s,o+2,f)||h}function Y8(s,o,r,d,f,h){const z=K5(s,o,r,d);return K5(s,o+2,f,h)||z}function e7(s,o,r,d,f,h,z,M){const k=Q1(),j=O0(),H=s+I0,i1=j.firstCreatePass?function rl(s,o,r,d,f,h,z,M,k){const j=o.consts,H=L5(o,s,4,z||null,w8(j,M));j9(o,r,H,w8(j,k)),Xn(o,H);const i1=H.tView=ao(2,H,d,f,h,o.directiveRegistry,o.pipeRegistry,null,o.schemas,j,null);return null!==o.queries&&(o.queries.template(o,H),i1.queries=o.queries.embeddedTView(H)),H}(H,j,k,o,r,d,f,h,z):j.data[H];we(i1,!1);const N1=Tp(j,k,i1,s);bc()&&G5(j,k,N1,i1),b6(N1,k);const I1=_o(N1,k,N1,i1);return k[H]=I1,$9(k,I1),function cp(s,o,r){return ni(s,o,r)}(I1,i1,k),Ge(i1)&&lo(j,k,i1),null!=z&&so(k,i1,M),e7}let Tp=function Mi(s,o,r,d){return ae(!0),o[n0].createComment("")};function Gt(s,o,r,d){const f=Q1();return S3(f,V8(),o)&&(O0(),Ee(c3(),f,s,o,r,d)),Gt}function lc(s,o,r,d){return S3(s,V8(),r)?o+a0(r)+d:W0}function Ml(s,o){return s<<17|o<<2}function Ze(s){return s>>17&32767}function Ui(s){return 2|s}function ic(s){return(131068&s)>>2}function Gi(s,o){return-131069&s|o<<2}function xl(s){return 1|s}function rh(s,o,r,d){const f=s[r+1],h=null===o;let z=d?Ze(f):ic(f),M=!1;for(;0!==z&&(!1===M||h);){const j=s[z+1];cx(s[z],o)&&(M=!0,s[z+1]=d?xl(j):Ui(j)),z=d?Ze(j):ic(j)}M&&(s[r+1]=d?Ui(f):xl(f))}function cx(s,o){return null===s||null==o||(Array.isArray(s)?s[1]:s)===o||!(!Array.isArray(s)||"string"!=typeof o)&&x4(s,o)>=0}const J3={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dh(s){return s.substring(J3.key,J3.keyEnd)}function Ht(s){return s.substring(J3.value,J3.valueEnd)}function fh(s,o){const r=J3.textEnd;return r===o?-1:(o=J3.keyEnd=function lx(s,o,r){for(;o32;)o++;return o}(s,J3.key=o,r),u7(s,o,r))}function bl(s,o){const r=J3.textEnd;let d=J3.key=u7(s,o,r);return r===d?-1:(d=J3.keyEnd=function mh(s,o,r){let d;for(;o=65&&(-33&d)<=90||d>=48&&d<=57);)o++;return o}(s,d,r),d=ph(s,d,r),d=J3.value=u7(s,d,r),d=J3.valueEnd=function Yi(s,o,r){let d=-1,f=-1,h=-1,z=o,M=z;for(;z32&&(M=z),h=f,f=d,d=-33&k}return M}(s,d,r),ph(s,d,r))}function uh(s){J3.key=0,J3.keyEnd=0,J3.value=0,J3.valueEnd=0,J3.textEnd=s.length}function u7(s,o,r){for(;o=0;r=bl(o,r))m7(s,dh(o),Ht(o))}function gh(s){q8(ix,fe,s,!0)}function fe(s,o){for(let r=function tx(s){return uh(s),fh(s,u7(s,0,J3.textEnd))}(o);r>=0;r=fh(o,r))i3(s,dh(o),!0)}function E8(s,o,r,d){const f=Q1(),h=O0(),z=Xe(2);h.firstUpdatePass&&_h(h,s,z,d),o!==W0&&S3(f,z,o)&&Mh(h,h.data[x6()],f,f[n0],s,f[z+1]=function dx(s,o){return null==s||""===s||("string"==typeof o?s+=o:"object"==typeof s&&(s=T0(Ne(s)))),s}(o,r),d,z)}function q8(s,o,r,d){const f=O0(),h=Xe(2);f.firstUpdatePass&&_h(f,null,h,d);const z=Q1();if(r!==W0&&S3(z,h,r)){const M=f.data[x6()];if(bh(M,d)&&!qt(f,h)){let k=d?M.classesWithoutHost:M.stylesWithoutHost;null!==k&&(r=V4(k,r||"")),Yt(f,M,z,r,d)}else!function rx(s,o,r,d,f,h,z,M){f===W0&&(f=H0);let k=0,j=0,H=0=s.expandoStartIndex}function _h(s,o,r,d){const f=s.data;if(null===f[r+1]){const h=f[x6()],z=qt(s,r);bh(h,d)&&null===o&&!z&&(o=!1),o=function Lh(s,o,r,d){const f=function T7(s){const o=_0.lFrame.currentDirectiveIndex;return-1===o?null:s[o]}(s);let h=d?o.residualClasses:o.residualStyles;if(null===f)0===(d?o.classBindings:o.styleBindings)&&(r=rc(r=Wi(null,s,o,r,d),o.attrs,d),h=null);else{const z=o.directiveStylingLast;if(-1===z||s[z]!==f)if(r=Wi(f,s,o,r,d),null===h){let k=function ax(s,o,r){const d=r?o.classBindings:o.styleBindings;if(0!==ic(d))return s[Ze(d)]}(s,o,d);void 0!==k&&Array.isArray(k)&&(k=Wi(null,s,o,k[1],d),k=rc(k,o.attrs,d),function Ch(s,o,r,d){s[Ze(r?o.classBindings:o.styleBindings)]=d}(s,o,d,k))}else h=function zh(s,o,r){let d;const f=o.directiveEnd;for(let h=1+o.directiveStylingLast;h0)&&(j=!0)):H=r,f)if(0!==k){const N1=Ze(s[M+1]);s[d+1]=Ml(N1,M),0!==N1&&(s[N1+1]=Gi(s[N1+1],d)),s[M+1]=function ih(s,o){return 131071&s|o<<17}(s[M+1],d)}else s[d+1]=Ml(M,0),0!==M&&(s[M+1]=Gi(s[M+1],d)),M=d;else s[d+1]=Ml(k,0),0===M?M=d:s[k+1]=Gi(s[k+1],d),k=d;j&&(s[d+1]=Ui(s[d+1])),rh(s,H,d,!0),rh(s,H,d,!1),function ex(s,o,r,d,f){const h=f?s.residualClasses:s.residualStyles;null!=h&&"string"==typeof o&&x4(h,o)>=0&&(r[d+1]=xl(r[d+1]))}(o,H,s,d,h),z=Ml(M,k),h?o.classBindings=z:o.styleBindings=z}(f,h,o,r,z,d)}}function Wi(s,o,r,d,f){let h=null;const z=r.directiveEnd;let M=r.directiveStylingLast;for(-1===M?M=r.directiveStart:M++;M0;){const k=s[f],j=Array.isArray(k),H=j?k[1]:k,i1=null===H;let N1=r[f+1];N1===W0&&(N1=i1?H0:void 0);let I1=i1?s6(N1,d):H===d?N1:void 0;if(j&&!b5(I1)&&(I1=s6(k,d)),b5(I1)&&(M=I1,z))return M;const B1=s[f+1];f=z?Ze(B1):ic(B1)}if(null!==o){let k=h?o.residualClasses:o.residualStyles;null!=k&&(M=s6(k,d))}return M}function b5(s){return void 0!==s}function bh(s,o){return!!(s.flags&(o?8:16))}function Fl(s,o,r){q8(i3,fe,lc(Q1(),s,o,r),!0)}class Xt{destroy(o){}updateValue(o,r){}swap(o,r){const d=Math.min(o,r),f=Math.max(o,r),h=this.detach(f);if(f-d>1){const z=this.detach(d);this.attach(d,h),this.attach(f,z)}else this.attach(d,h)}move(o,r){this.attach(r,this.detach(o))}}function Qi(s,o,r,d,f){return s===r&&Object.is(o,d)?1:Object.is(f(s,o),f(r,d))?-1:0}function vl(s,o,r,d){return!(void 0===o||!o.has(d)||(s.attach(r,o.get(d)),o.delete(d),0))}function Zi(s,o,r,d,f){if(vl(s,o,d,r(d,f)))s.updateValue(d,f);else{const h=s.create(d,f);s.attach(d,h)}}function wh(s,o,r,d){const f=new Set;for(let h=o;h<=r;h++)f.add(d(h,s.at(h)));return f}class Sh{constructor(){this.kvMap=new Map,this._vMap=void 0}has(o){return this.kvMap.has(o)}delete(o){if(!this.has(o))return!1;const r=this.kvMap.get(o);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(o,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(o),!0}get(o){return this.kvMap.get(o)}set(o,r){if(this.kvMap.has(o)){let d=this.kvMap.get(o);void 0===this._vMap&&(this._vMap=new Map);const f=this._vMap;for(;f.has(d);)d=f.get(d);f.set(d,r)}else this.kvMap.set(o,r)}forEach(o){for(let[r,d]of this.kvMap)if(o(d,r),void 0!==this._vMap){const f=this._vMap;for(;f.has(d);)d=f.get(d),o(d,r)}}}function Nh(s,o,r){H8("NgControlFlow");const d=Q1(),f=V8(),h=Wt(d,I0+s);if(S3(d,f,o)){const M=A(null);try{if(yo(h,0),-1!==o){const k=tr(d[k1],I0+o),j=Xc(h,k.tView.ssrId);ht(h,pt(d,k,r,{dehydratedView:j}),0,C5(k,j))}}finally{A(M)}}else{const M=Mm(h,0);void 0!==M&&(M[Y0]=r)}}class gx{constructor(o,r,d){this.lContainer=o,this.$implicit=r,this.$index=d}get $count(){return this.lContainer.length-r3}}function Ki(s){return s}function er(s,o){return o}class Eh{constructor(o,r,d){this.hasEmptyBlock=o,this.trackByFn=r,this.liveCollection=d}}function kl(s,o,r,d,f,h,z,M,k,j,H,i1,N1){H8("NgControlFlow");const I1=void 0!==k,B1=Q1(),l2=M?z.bind(B1[x0][Y0]):z,L2=new Eh(I1,l2);B1[I0+s]=L2,e7(s+1,o,r,d,f,h),I1&&e7(s+2,k,j,H,i1,N1)}class _x extends Xt{constructor(o,r,d){super(),this.lContainer=o,this.hostLView=r,this.templateTNode=d,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-r3}at(o){return this.getLView(o)[Y0].$implicit}attach(o,r){const d=r[g0];this.needsIndexUpdate||=o!==this.length,ht(this.lContainer,r,o,C5(this.templateTNode,d))}detach(o){return this.needsIndexUpdate||=o!==this.length-1,function Lx(s,o){return Bc(s,o)}(this.lContainer,o)}create(o,r){const d=Xc(this.lContainer,this.templateTNode.tView.ssrId);return pt(this.hostLView,this.templateTNode,new gx(this.lContainer,r,o),{dehydratedView:d})}destroy(o){N9(o[k1],o)}updateValue(o,r){this.getLView(o)[Y0].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let o=0;o{s.destroy(M)})}(z,s,h.trackByFn),z.updateIndexes(),h.hasEmptyBlock){const M=V8(),k=0===z.length;if(S3(d,M,k)){const j=r+2,H=Wt(d,j);if(k){const i1=tr(f,j),N1=Xc(H,i1.tView.ssrId);ht(H,pt(d,i1,void 0,{dehydratedView:N1}),0,C5(i1,N1))}else yo(H,0)}}}finally{A(o)}}function Wt(s,o){return s[o]}function tr(s,o){return $5(s,o)}function wl(s,o,r,d){const f=Q1(),h=O0(),z=I0+s,M=f[n0],k=h.firstCreatePass?function Cx(s,o,r,d,f,h){const z=o.consts,k=L5(o,s,2,d,w8(z,f));return j9(o,r,k,w8(z,h)),null!==k.attrs&&kt(k,k.attrs,!1),null!==k.mergedAttrs&&kt(k,k.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,k),k}(z,h,f,o,r,d):h.data[z],j=nr(h,f,k,M,o,s);f[z]=j;const H=Ge(k);return we(k,!0),co(M,j,k),!function Kc(s){return!(32&~s.flags)}(k)&&bc()&&G5(h,f,j,k),0===function L(){return _0.lFrame.elementDepthCount}()&&b6(j,f),function F(){_0.lFrame.elementDepthCount++}(),H&&(lo(h,f,k),Gc(h,k,f)),null!==d&&so(f,k),wl}function Sl(){let s=j4();On()?Os():(s=s.parent,we(s,!1));const o=s;(function R1(s){return _0.skipHydrationRootTNode===s})(o)&&function s4(){_0.skipHydrationRootTNode=null}(),function I(){_0.lFrame.elementDepthCount--}();const r=O0();return r.firstCreatePass&&(Xn(r,s),A2(s)&&r.queries.elementEnd(s)),null!=o.classesWithoutHost&&function yf(s){return!!(8&s.flags)}(o)&&Yt(r,o,Q1(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function Ff(s){return!!(16&s.flags)}(o)&&Yt(r,o,Q1(),o.stylesWithoutHost,!1),Sl}function Nl(s,o,r,d){return wl(s,o,r,d),Sl(),Nl}let nr=(s,o,r,d,f,h)=>(ae(!0),S9(d,f,function qn(){return _0.lFrame.currentNamespace}()));function El(s,o,r){const d=Q1(),f=O0(),h=s+I0,z=f.firstCreatePass?function Rh(s,o,r,d,f){const h=o.consts,z=w8(h,d),M=L5(o,s,8,"ng-container",z);return null!==z&&kt(M,z,!0),j9(o,r,M,w8(h,f)),null!==o.queries&&o.queries.elementStart(o,M),M}(h,f,d,o,r):f.data[h];we(z,!0);const M=Ah(f,d,z,s);return d[h]=M,bc()&&G5(f,d,M,z),b6(M,d),Ge(z)&&(lo(f,d,z),Gc(f,z,d)),null!=r&&so(d,z),El}function Dl(){let s=j4();const o=O0();return On()?Os():(s=s.parent,we(s,!1)),o.firstCreatePass&&(Xn(o,s),A2(s)&&o.queries.elementEnd(s)),Dl}function Tl(s,o,r){return El(s,o,r),Dl(),Tl}let Ah=(s,o,r,d)=>(ae(!0),Ja(o[n0],""));function Ph(){return Q1()}function Rl(s,o,r){const d=Q1();return S3(d,V8(),o)&&a8(O0(),c3(),d,s,o,d[n0],r,!0),Rl}const dc=void 0;var $h=["en",[["a","p"],["AM","PM"],dc],[["AM","PM"],dc,dc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],dc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",dc,"{1} 'at' {0}",dc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function xx(s){const r=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===d?1:5}];let y5={};function lr(s){const o=function Bh(s){return s.toLowerCase().replace(/_/g,"-")}(s);let r=Oh(o);if(r)return r;const d=o.split("-")[0];if(r=Oh(d),r)return r;if("en"===d)return $h;throw new m2(701,!1)}function Jt(s){return lr(s)[Re.PluralCase]}function Oh(s){return s in y5||(y5[s]=u0.ng&&u0.ng.common&&u0.ng.common.locales&&u0.ng.common.locales[s]),y5[s]}var Re=function(s){return s[s.LocaleId=0]="LocaleId",s[s.DayPeriodsFormat=1]="DayPeriodsFormat",s[s.DayPeriodsStandalone=2]="DayPeriodsStandalone",s[s.DaysFormat=3]="DaysFormat",s[s.DaysStandalone=4]="DaysStandalone",s[s.MonthsFormat=5]="MonthsFormat",s[s.MonthsStandalone=6]="MonthsStandalone",s[s.Eras=7]="Eras",s[s.FirstDayOfWeek=8]="FirstDayOfWeek",s[s.WeekendRange=9]="WeekendRange",s[s.DateFormat=10]="DateFormat",s[s.TimeFormat=11]="TimeFormat",s[s.DateTimeFormat=12]="DateTimeFormat",s[s.NumberSymbols=13]="NumberSymbols",s[s.NumberFormats=14]="NumberFormats",s[s.CurrencyCode=15]="CurrencyCode",s[s.CurrencySymbol=16]="CurrencySymbol",s[s.CurrencyName=17]="CurrencyName",s[s.Currencies=18]="Currencies",s[s.Directionality=19]="Directionality",s[s.PluralCase=20]="PluralCase",s[s.ExtraData=21]="ExtraData",s}(Re||{});const fc="en-US";let sr=fc;function br(s,o,r,d){const f=Q1(),h=O0(),z=j4();return Fr(h,f,f[n0],z,s,o,d),br}function Fr(s,o,r,d,f,h,z){const M=Ge(d),j=s.firstCreatePass&&Mo(s),H=o[Y0],i1=zo(o);let N1=!0;if(3&d.type||z){const l2=d6(d,o),L2=z?z(l2):l2,T2=i1.length,r2=z?u4=>z(S4(u4[d.index])):d.index;let k0=null;if(!z&&M&&(k0=function Ul(s,o,r,d){const f=s.cleanup;if(null!=f)for(let h=0;hk?M[k]:null}"string"==typeof z&&(h+=2)}return null}(s,o,f,d.index)),null!==k0)(k0.__ngLastListenerFn__||k0).__ngNextListenerFn__=h,k0.__ngLastListenerFn__=h,N1=!1;else{h=ln(d,o,H,h,!1);const u4=r.listen(L2,f,h);i1.push(h,u4),j&&j.push(f,r2,T2,T2+1)}}else h=ln(d,o,H,h,!1);const I1=d.outputs;let B1;if(N1&&null!==I1&&(B1=I1[f])){const l2=B1.length;if(l2)for(let L2=0;L2-1?H6(s.index,o):o);let k=Mg(o,r,d,z),j=h.__ngNextListenerFn__;for(;j;)k=Mg(o,r,j,z)&&k,j=j.__ngNextListenerFn__;return f&&!1===k&&z.preventDefault(),k}}function Gl(s=1){return function YL(s){return(_0.lFrame.contextLView=function te(s,o){for(;s>0;)o=o[_4],s--;return o}(s,_0.lFrame.contextLView))[Y0]}(s)}function xg(s,o){let r=null;const d=function ge(s){const o=s.attrs;if(null!=o){const r=o.indexOf(5);if(!(1&r))return o[r+1]}return null}(s);for(let f=0;f(ae(!0),function Xa(s,o){return s.createText(o)}(o[n0],d));function Pr(s){return _7("",s,""),Pr}function _7(s,o,r){const d=Q1(),f=lc(d,s,o,r);return f!==W0&&Je(d,x6(),f),_7}function jr(s,o,r,d,f){const h=Q1(),z=function o7(s,o,r,d,f,h){const M=K5(s,Se(),r,f);return Xe(2),M?o+a0(r)+d+a0(f)+h:W0}(h,s,o,r,d,f);return z!==W0&&Je(h,x6(),z),jr}function an(s,o,r,d,f,h,z){const M=Q1(),k=function sc(s,o,r,d,f,h,z,M){const j=$t(s,Se(),r,f,z);return Xe(3),j?o+a0(r)+d+a0(f)+h+a0(z)+M:W0}(M,s,o,r,d,f,h,z);return k!==W0&&Je(M,x6(),k),an}function $r(s,o,r,d,f,h,z,M,k){const j=Q1(),H=function ac(s,o,r,d,f,h,z,M,k,j){const i1=Y8(s,Se(),r,f,z,k);return Xe(4),i1?o+a0(r)+d+a0(f)+h+a0(z)+M+a0(k)+j:W0}(j,s,o,r,d,f,h,z,M,k);return H!==W0&&Je(j,x6(),H),$r}function Ql(s,o,r,d,f,h,z,M,k,j,H){const i1=Q1(),N1=function i7(s,o,r,d,f,h,z,M,k,j,H,i1){const N1=Se();let I1=Y8(s,N1,r,f,z,k);return I1=S3(s,N1+4,H)||I1,Xe(5),I1?o+a0(r)+d+a0(f)+h+a0(z)+M+a0(k)+j+a0(H)+i1:W0}(i1,s,o,r,d,f,h,z,M,k,j,H);return N1!==W0&&Je(i1,x6(),N1),Ql}function Vr(s,o,r){fp(o)&&(o=o());const d=Q1();return S3(d,V8(),o)&&a8(O0(),c3(),d,s,o,d[n0],r,!1),Vr}function $g(s,o){const r=fp(s);return r&&s.set(o),r}function Kl(s,o){const r=Q1(),d=O0(),f=j4();return Fr(d,r,r[n0],f,s,o),Kl}function es(s,o,r,d,f){if(s=s1(s),Array.isArray(s))for(let h=0;h>20;if(C6(s)||!s.multi){const I1=new u5(j,f,Vc),B1=Gr(k,o,f?H:H+N1,i1);-1===B1?(O7(j7(M,z),h,k),Ur(h,s,o.length),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),r.push(I1),z.push(I1)):(r[B1]=I1,z[B1]=I1)}else{const I1=Gr(k,o,H+N1,i1),B1=Gr(k,o,H,H+N1),L2=B1>=0&&r[B1];if(f&&!L2||!f&&!(I1>=0&&r[I1])){O7(j7(M,z),h,k);const T2=function Hr(s,o,r,d,f){const h=new u5(s,r,Vc);return h.multi=[],h.index=o,h.componentProviders=0,Og(h,f,d&&!r),h}(f?tb:Bg,r.length,f,d,j);!f&&L2&&(r[B1].providerFactory=T2),Ur(h,s,o.length,0),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),r.push(T2),z.push(T2)}else Ur(h,s,I1>-1?I1:B1,Og(r[f?B1:I1],j,!f&&d));!f&&d&&L2&&r[B1].componentProviders++}}}function Ur(s,o,r,d){const f=C6(o),h=function ze(s){return!!s.useClass}(o);if(f||h){const k=(h?s1(o.useClass):o).prototype.ngOnDestroy;if(k){const j=s.destroyHooks||(s.destroyHooks=[]);if(!f&&o.multi){const H=j.indexOf(r);-1===H?j.push(r,[d,k]):j[H+1].push(d,k)}else j.push(r,k)}}}function Og(s,o,r){return r&&s.componentProviders++,s.multi.push(o)-1}function Gr(s,o,r,d){for(let f=r;f{r.providersResolver=(d,f)=>function cb(s,o,r){const d=O0();if(d.firstCreatePass){const f=$2(s);es(r,d.data,d.blueprint,f,!0),es(o,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,o)}}let Yr=(()=>{class s{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const d=M8(0,r.type),f=d.length>0?Ci([d],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=z0({token:s,providedIn:"environment",factory:()=>new s(k4(Y3))})}}return s})();function qr(s){H8("NgStandalone"),s.getStandaloneInjector=o=>o.get(Yr).getOrCreateStandaloneInjector(s)}function Xr(s,o,r){const d=s.\u0275cmp;d.directiveDefs=n8(o,!1),d.pipeDefs=n8(r,!0)}function Jr(s,o,r){const d=Y6()+s,f=Q1();return f[d]===W0?De(f,d,r?o.call(r):o()):function Zc(s,o){return s[o]}(f,d)}function Gg(s,o,r,d){return Kr(Q1(),Y6(),s,o,r,d)}function Hg(s,o,r,d,f){return ns(Q1(),Y6(),s,o,r,d,f)}function Qr(s,o,r,d,f,h){return function ed(s,o,r,d,f,h,z,M){const k=o+r;return $t(s,k,f,h,z)?De(s,k+3,M?d.call(M,f,h,z):d(f,h,z)):rn(s,k+3)}(Q1(),Y6(),s,o,r,d,f,h)}function Zr(s,o,r,d,f,h,z){return function Jg(s,o,r,d,f,h,z,M,k){const j=o+r;return Y8(s,j,f,h,z,M)?De(s,j+4,k?d.call(k,f,h,z,M):d(f,h,z,M)):rn(s,j+4)}(Q1(),Y6(),s,o,r,d,f,h,z)}function rn(s,o){const r=s[o];return r===W0?void 0:r}function Kr(s,o,r,d,f,h){const z=o+r;return S3(s,z,f)?De(s,z+1,h?d.call(h,f):d(f)):rn(s,z+1)}function ns(s,o,r,d,f,h,z){const M=o+r;return K5(s,M,f,h)?De(s,M+2,z?d.call(z,f,h):d(f,h)):rn(s,M+2)}function Qg(s,o){const r=O0();let d;const f=s+I0;r.firstCreatePass?(d=function Zg(s,o){if(o)for(let r=o.length-1;r>=0;r--){const d=o[r];if(s===d.name)return d}}(o,r.pipeRegistry),r.data[f]=d,d.onDestroy&&(r.destroyHooks??=[]).push(f,d.onDestroy)):d=r.data[f];const h=d.factory||(d.factory=H3(d.type)),M=g2(Vc);try{const k=P7(!1),j=h();return P7(k),function Xx(s,o,r,d){r>=s.data.length&&(s.data[r]=null,s.blueprint[r]=null),o[r]=d}(r,Q1(),f,j),j}finally{g2(M)}}function ss(s,o,r){const d=s+I0,f=Q1(),h=qe(f,d);return dn(f,d)?Kr(f,Y6(),o,h.transform,r,h):h.transform(r)}function e_(s,o,r,d){const f=s+I0,h=Q1(),z=qe(h,f);return dn(h,f)?ns(h,Y6(),o,z.transform,r,d,z):z.transform(r,d)}function dn(s,o){return s[k1].data[o].pure}function as(s,o){return Lt(s,o)}class dd{constructor(o){this.full=o;const r=o.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}let fd=(()=>{class s{log(r){console.log(r)}warn(r){console.warn(r)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const F_=new q1(""),_d=new q1("");let gn,Rb=(()=>{class s{constructor(r,d,f){this._ngZone=r,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,gn||(function Ab(s){gn=s}(f),f.addToWindow(d)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{j3.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(r)||(clearTimeout(d.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,d,f){let h=-1;d&&d>0&&(h=setTimeout(()=>{this._callbacks=this._callbacks.filter(z=>z.timeoutId!==h),r()},d)),this._callbacks.push({doneCb:r,timeoutId:h,updateCb:f})}whenStable(r,d,f){if(f&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,d,f){return[]}static{this.\u0275fac=function(d){return new(d||s)(k4(j3),k4(v_),k4(_d))}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac})}}return s})(),v_=(()=>{class s{constructor(){this._applications=new Map}registerApplication(r,d){this._applications.set(r,d)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,d=!0){return gn?.findTestabilityInTree(this,r,d)??null}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();function Ld(s){return!!s&&"function"==typeof s.then}function k_(s){return!!s&&"function"==typeof s.subscribe}const w_=new q1("");let gs=(()=>{class s{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,d)=>{this.resolve=r,this.reject=d}),this.appInits=p0(w_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const h=f();if(Ld(h))r.push(h);else if(k_(h)){const z=new Promise((M,k)=>{h.subscribe({complete:M,error:k})});r.push(z)}}const d=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{d()}).catch(f=>{this.reject(f)}),0===r.length&&d(),this.initialized=!0}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const _s=new q1("");function E_(s,o){return Array.isArray(o)?o.reduce(E_,s):{...s,...o}}let v5=(()=>{class s{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p0(If),this.afterRenderEffectManager=p0(Wc),this.externalTestViews=new Set,this.beforeRender=new l0.B,this.afterTick=new l0.B,this.componentTypes=[],this.components=[],this.isStable=p0(Z5).hasPendingTasks.pipe((0,K2.T)(r=>!r)),this._injector=p0(Y3)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,d){const f=r instanceof Im;if(!this._injector.get(gs).done)throw!f&&p3(r),new m2(405,!1);let z;z=f?r:this._injector.get(Ft).resolveComponentFactory(r),this.componentTypes.push(z.componentType);const M=function N_(s){return s.isBoundToModule}(z)?void 0:this._injector.get(x5),j=z.create(q6.NULL,[],d||z.selector,M),H=j.location.nativeElement,i1=j.injector.get(F_,null);return i1?.registerApplication(H),j.onDestroy(()=>{this.detachView(j.hostView),Cs(this.components,j),i1?.unregisterApplication(H)}),this._loadComponent(j),j}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new m2(101,!1);const d=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(f){this.internalErrorHandler(f)}finally{this.afterTick.next(),this._runningTick=!1,A(d)}}detectChangesInAttachedViews(r){let d=0;const f=this.afterRenderEffectManager;for(;;){if(d===ko)throw new m2(103,!1);if(r){const h=0===d;this.beforeRender.next(h);for(let{_lView:z,notifyErrorHandler:M}of this._views)Ib(z,h,M)}if(d++,f.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>Ln(h))&&(f.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>Ln(h))))break}}attachView(r){const d=r;this._views.push(d),d.attachToAppRef(this)}detachView(r){const d=r;Cs(this._views,d),d.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const d=this._injector.get(_s,[]);[...this._bootstrapListeners,...d].forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Cs(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new m2(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Cs(s,o){const r=s.indexOf(o);r>-1&&s.splice(r,1)}function Ib(s,o,r){!o&&!Ln(s)||function T_(s,o,r){let d;r?(d=0,s[U1]|=1024):d=64&s[U1]?0:1,V9(s,o,d)}(s,r,o)}function Ln(s){return zc(s)}class Pb{constructor(o,r){this.ngModuleFactory=o,this.componentFactories=r}}let jb=(()=>{class s{compileModuleSync(r){return new _i(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const d=this.compileModuleSync(r),h=W6(K4(r).declarations).reduce((z,M)=>{const k=j0(M);return k&&z.push(new Jc(k)),z},[]);return new Pb(d,h)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),$b=(()=>{class s{constructor(){this.zone=p0(j3),this.applicationRef=p0(v5)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Bb(){const s=p0(j3),o=p0(oe);return r=>s.runOutsideAngular(()=>o.handleError(r))}let I_=(()=>{class s{constructor(){this.subscription=new s0.yU,this.initialized=!1,this.zone=p0(j3),this.pendingTasks=p0(Z5)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{j3.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{j3.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const Cn=new q1("",{providedIn:"root",factory:()=>p0(Cn,b0.Optional|b0.SkipSelf)||function zs(){return typeof $localize<"u"&&$localize.locale||fc}()}),Vb=new q1("",{providedIn:"root",factory:()=>"USD"}),bd=new q1("");let yd=(()=>{class s{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,d){const f=function Um(s="zone.js",o){return"noop"===s?new Yo:"zone.js"===s?new j3(o):s}(d?.ngZone,function A_(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:s?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:s?.runCoalescing??!1}}({eventCoalescing:d?.ngZoneEventCoalescing,runCoalescing:d?.ngZoneRunCoalescing}));return f.run(()=>{const h=function RM(s,o,r){return new al(s,o,r)}(r.moduleType,this.injector,function Md(s){return[{provide:j3,useFactory:s},{provide:m3,multi:!0,useFactory:()=>{const o=p0($b,{optional:!0});return()=>o.initialize()}},{provide:m3,multi:!0,useFactory:()=>{const o=p0(I_);return()=>{o.initialize()}}},{provide:If,useFactory:Bb}]}(()=>f)),z=h.injector.get(oe,null);return f.runOutsideAngular(()=>{const M=f.onError.subscribe({next:k=>{z.handleError(k)}});h.onDestroy(()=>{Cs(this._modules,h),M.unsubscribe()})}),function Ls(s,o,r){try{const d=r();return Ld(d)?d.catch(f=>{throw o.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw o.runOutsideAngular(()=>s.handleError(d)),d}}(z,f,()=>{const M=h.injector.get(gs);return M.runInitializers(),M.donePromise.then(()=>(function ar(s){"string"==typeof s&&(sr=s.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Cn,fc)||fc),this._moduleDoBootstrap(h),h))})})}bootstrapModule(r,d=[]){const f=E_({},d);return function R_(s,o,r){const d=new _i(r);return Promise.resolve(d)}(0,0,r).then(h=>this.bootstrapModuleFactory(h,f))}_moduleDoBootstrap(r){const d=r.injector.get(v5);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!r.instance.ngDoBootstrap)throw new m2(-403,!1);r.instance.ngDoBootstrap(d)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new m2(404,!1);this._modules.slice().forEach(d=>d.destroy()),this._destroyListeners.forEach(d=>d());const r=this._injector.get(bd,null);r&&(r.forEach(d=>d()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(d){return new(d||s)(k4(q6))}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),k5=null;const Fd=new q1("");function j_(s,o,r=[]){const d=`Platform: ${o}`,f=new q1(d);return(h=[])=>{let z=vd();if(!z||z.injector.get(Fd,!1)){const M=[...r,...h,{provide:f,useValue:!0}];s?s(M):function Hb(s){if(k5&&!k5.get(Fd,!1))throw new m2(400,!1);(function S_(){!function v1(s){x2=s}(()=>{throw new m2(600,!1)})})(),k5=s;const o=s.get(yd);(function $_(s){s.get(au,null)?.forEach(r=>r())})(s)}(function Ms(s=[],o){return q6.create({name:o,providers:[{provide:Q8,useValue:"platform"},{provide:bd,useValue:new Set([()=>k5=null])},...s]})}(M,d))}return function Yb(s){const o=vd();if(!o)throw new m2(401,!1);return o}()}}function vd(){return k5?.get(yd)??null}let V_=(()=>{class s{static{this.__NG_ELEMENT_ID__=wd}}return s})();function wd(s){return function Wb(s,o,r){if(O8(s)&&!r){const d=H6(s.index,o);return new Yc(d,d)}return 47&s.type?new Yc(o[x0],o):null}(j4(),Q1(),!(16&~s))}class Y_{constructor(){}supports(o){return jt(o)}create(o){return new ty(o)}}const q_=(s,o)=>o;class ty{constructor(o){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=o||q_}forEachItem(o){let r;for(r=this._itHead;null!==r;r=r._next)o(r)}forEachOperation(o){let r=this._itHead,d=this._removalsHead,f=0,h=null;for(;r||d;){const z=!d||r&&r.currentIndex{z=this._trackByFn(f,M),null!==r&&Object.is(r.trackById,z)?(d&&(r=this._verifyReinsertion(r,M,z,f)),Object.is(r.item,M)||this._addIdentityChange(r,M)):(r=this._mismatch(r,M,z,f),d=!0),r=r._next,f++}),this.length=f;return this._truncate(r),this.collection=o,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let o;for(o=this._previousItHead=this._itHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._additionsHead;null!==o;o=o._nextAdded)o.previousIndex=o.currentIndex;for(this._additionsHead=this._additionsTail=null,o=this._movesHead;null!==o;o=o._nextMoved)o.previousIndex=o.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(o,r,d,f){let h;return null===o?h=this._itTail:(h=o._prev,this._remove(o)),null!==(o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._reinsertAfter(o,h,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._moveAfter(o,h,f)):o=this._addAfter(new X_(r,d),h,f),o}_verifyReinsertion(o,r,d,f){let h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null);return null!==h?o=this._reinsertAfter(h,o._prev,f):o.currentIndex!=f&&(o.currentIndex=f,this._addToMoves(o,f)),o}_truncate(o){for(;null!==o;){const r=o._next;this._addToRemovals(this._unlink(o)),o=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(o,r,d){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(o);const f=o._prevRemoved,h=o._nextRemoved;return null===f?this._removalsHead=h:f._nextRemoved=h,null===h?this._removalsTail=f:h._prevRemoved=f,this._insertAfter(o,r,d),this._addToMoves(o,d),o}_moveAfter(o,r,d){return this._unlink(o),this._insertAfter(o,r,d),this._addToMoves(o,d),o}_addAfter(o,r,d){return this._insertAfter(o,r,d),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,r,d){const f=null===r?this._itHead:r._next;return o._next=f,o._prev=r,null===f?this._itTail=o:f._prev=o,null===r?this._itHead=o:r._next=o,null===this._linkedRecords&&(this._linkedRecords=new W_),this._linkedRecords.put(o),o.currentIndex=d,o}_remove(o){return this._addToRemovals(this._unlink(o))}_unlink(o){null!==this._linkedRecords&&this._linkedRecords.remove(o);const r=o._prev,d=o._next;return null===r?this._itHead=d:r._next=d,null===d?this._itTail=r:d._prev=r,o}_addToMoves(o,r){return o.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W_),this._unlinkedRecords.put(o),o.currentIndex=null,o._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=o,o._prevRemoved=null):(o._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=o),o}_addIdentityChange(o,r){return o.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class X_{constructor(o,r){this.item=o,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Td{constructor(){this._head=null,this._tail=null}add(o){null===this._head?(this._head=this._tail=o,o._nextDup=null,o._prevDup=null):(this._tail._nextDup=o,o._prevDup=this._tail,o._nextDup=null,this._tail=o)}get(o,r){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===r||r<=d.currentIndex)&&Object.is(d.trackById,o))return d;return null}remove(o){const r=o._prevDup,d=o._nextDup;return null===r?this._head=d:r._nextDup=d,null===d?this._tail=r:d._prevDup=r,null===this._head}}class W_{constructor(){this.map=new Map}put(o){const r=o.trackById;let d=this.map.get(r);d||(d=new Td,this.map.set(r,d)),d.add(o)}get(o,r){const f=this.map.get(o);return f?f.get(o,r):null}remove(o){const r=o.trackById;return this.map.get(r).remove(o)&&this.map.delete(r),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function J_(s,o,r){const d=s.previousIndex;if(null===d)return d;let f=0;return r&&d{if(r&&r.key===f)this._maybeAddToChanges(r,d),this._appendAfter=r,r=r._next;else{const h=this._getOrCreateRecordForKey(f,d);r=this._insertBeforeOrAppend(r,h)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let d=r;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(o,r){if(o){const d=o._prev;return r._next=o,r._prev=d,o._prev=r,d&&(d._next=r),o===this._mapHead&&(this._mapHead=r),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(o,r){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,r);const h=f._prev,z=f._next;return h&&(h._next=z),z&&(z._prev=h),f._next=null,f._prev=null,f}const d=new K_(o);return this._records.set(o,d),d.currentValue=r,this._addToAdditions(d),d}_reset(){if(this.isDirty){let o;for(this._previousMapHead=this._mapHead,o=this._previousMapHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._changesHead;null!==o;o=o._nextChanged)o.previousValue=o.currentValue;for(o=this._additionsHead;null!=o;o=o._nextAdded)o.previousValue=o.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(o,r){Object.is(r,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=r,this._addToChanges(o))}_addToAdditions(o){null===this._additionsHead?this._additionsHead=this._additionsTail=o:(this._additionsTail._nextAdded=o,this._additionsTail=o)}_addToChanges(o){null===this._changesHead?this._changesHead=this._changesTail=o:(this._changesTail._nextChanged=o,this._changesTail=o)}_forEach(o,r){o instanceof Map?o.forEach(r):Object.keys(o).forEach(d=>r(o[d],d))}}class K_{constructor(o){this.key=o,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Rd(){return new Ad([new Y_])}let Ad=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:Rd})}constructor(r){this.factories=r}static create(r,d){if(null!=d){const f=d.factories.slice();r=r.concat(f)}return new s(r)}static extend(r){return{provide:s,useFactory:d=>s.create(r,d||Rd()),deps:[[s,new G3,new G0]]}}find(r){const d=this.factories.find(f=>f.supports(r));if(null!=d)return d;throw new m2(901,!1)}}return s})();function Id(){return new Pd([new Q_])}let Pd=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:Id})}constructor(r){this.factories=r}static create(r,d){if(d){const f=d.factories.slice();r=r.concat(f)}return new s(r)}static extend(r){return{provide:s,useFactory:d=>s.create(r,d||Id()),deps:[[s,new G3,new G0]]}}find(r){const d=this.factories.find(f=>f.supports(r));if(d)return d;throw new m2(901,!1)}}return s})();const ys=j_(null,"core",[]);let ay=(()=>{class s{constructor(r){}static{this.\u0275fac=function(d){return new(d||s)(k4(v5))}}static{this.\u0275mod=B6({type:s})}static{this.\u0275inj=Y4({})}}return s})();function Es(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function Sy(s){const o=A(null);try{return s()}finally{A(o)}}function Kd(s){const o=j0(s);if(!o)return null;const r=new Jc(o);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},9417:(y1,d1,y)=>{"use strict";y.d(d1,{$R:()=>D3,BC:()=>C4,Fm:()=>b0,JD:()=>M3,MJ:()=>P0,MR:()=>Q2,Q0:()=>h6,R_:()=>s6,VZ:()=>H3,X1:()=>o6,YN:()=>O6,YS:()=>Q4,Yp:()=>H0,Zm:()=>K,cV:()=>P2,cb:()=>m2,gE:()=>F2,j4:()=>n4,k0:()=>S2,kq:()=>$,l_:()=>J4,me:()=>e1,ok:()=>j6,qT:()=>p8,v8:()=>V0,vS:()=>H2,wz:()=>k4,xH:()=>V3,y7:()=>Q6});var m=y(4438),g=y(177),e=y(6648),p=y(7468),_=y(6354);let S=(()=>{class B{constructor(D,t1){this._renderer=D,this._elementRef=t1,this.onChange=w1=>{},this.onTouched=()=>{}}setProperty(D,t1){this._renderer.setProperty(this._elementRef.nativeElement,D,t1)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT))}}static{this.\u0275dir=m.FsC({type:B})}}return B})(),A=(()=>{class B extends S{static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,features:[m.Vt3]})}}return B})();const $=new m.nKC(""),Z={provide:$,useExisting:(0,m.Rfq)(()=>K),multi:!0};let K=(()=>{class B extends A{writeValue(D){this.setProperty("checked",D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.checked)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([Z]),m.Vt3]})}}return B})();const p1={provide:$,useExisting:(0,m.Rfq)(()=>e1),multi:!0},h1=new m.nKC("");let e1=(()=>{class B extends S{constructor(D,t1,w1){super(D,t1),this._compositionMode=w1,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y(){const B=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(D){this.setProperty("value",D??"")}_handleInput(D){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(D)}_compositionStart(){this._composing=!0}_compositionEnd(D){this._composing=!1,this._compositionMode&&this.onChange(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(h1,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("input",function(v0){return w1._handleInput(v0.target.value)})("blur",function(){return w1.onTouched()})("compositionstart",function(){return w1._compositionStart()})("compositionend",function(v0){return w1._compositionEnd(v0.target.value)})},features:[m.Jv_([p1]),m.Vt3]})}}return B})();function r1(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}function M1(B){return null!=B&&"number"==typeof B.length}const f1=new m.nKC(""),$1=new m.nKC(""),o2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class S2{static min(G){return c2(G)}static max(G){return function G1(B){return G=>{if(r1(G.value)||r1(B))return null;const D=parseFloat(G.value);return!isNaN(D)&&D>B?{max:{max:B,actual:G.value}}:null}}(G)}static required(G){return O1(G)}static requiredTrue(G){return function d0(B){return!0===B.value?null:{required:!0}}(G)}static email(G){return function d2(B){return r1(B.value)||o2.test(B.value)?null:{email:!0}}(G)}static minLength(G){return function _2(B){return G=>r1(G.value)||!M1(G.value)?null:G.value.lengthM1(G.value)&&G.value.length>B?{maxlength:{requiredLength:B,actualLength:G.value.length}}:null}(G)}static pattern(G){return v2(G)}static nullValidator(G){return null}static compose(G){return e2(G)}static composeAsync(G){return E1(G)}}function c2(B){return G=>{if(r1(G.value)||r1(B))return null;const D=parseFloat(G.value);return!isNaN(D)&&D{if(r1(t1.value))return null;const w1=t1.value;return G.test(w1)?null:{pattern:{requiredPattern:D,actualValue:w1}}}}function t0(B){return null}function X0(B){return null!=B}function Z0(B){return(0,m.jNT)(B)?(0,e.H)(B):B}function B4(B){let G={};return B.forEach(D=>{G=null!=D?{...G,...D}:G}),0===Object.keys(G).length?null:G}function x2(B,G){return G.map(D=>D(B))}function v1(B){return B.map(G=>function w0(B){return!B.validate}(G)?G:D=>G.validate(D))}function e2(B){if(!B)return null;const G=B.filter(X0);return 0==G.length?null:function(D){return B4(x2(D,G))}}function C2(B){return null!=B?e2(v1(B)):null}function E1(B){if(!B)return null;const G=B.filter(X0);return 0==G.length?null:function(D){const t1=x2(D,G).map(Z0);return(0,p.p)(t1).pipe((0,_.T)(B4))}}function j1(B){return null!=B?E1(v1(B)):null}function A1(B,G){return null===B?[G]:Array.isArray(B)?[...B,G]:[B,G]}function H1(B){return B._rawValidators}function P1(B){return B._rawAsyncValidators}function K1(B){return B?Array.isArray(B)?B:[B]:[]}function Q(B,G){return Array.isArray(B)?B.includes(G):B===G}function t2(B,G){const D=K1(G);return K1(B).forEach(w1=>{Q(D,w1)||D.push(w1)}),D}function s2(B,G){return K1(G).filter(D=>!Q(B,D))}class p2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(G){this._rawValidators=G||[],this._composedValidatorFn=C2(this._rawValidators)}_setAsyncValidators(G){this._rawAsyncValidators=G||[],this._composedAsyncValidatorFn=j1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(G){this._onDestroyCallbacks.push(G)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(G=>G()),this._onDestroyCallbacks=[]}reset(G=void 0){this.control&&this.control.reset(G)}hasError(G,D){return!!this.control&&this.control.hasError(G,D)}getError(G,D){return this.control?this.control.getError(G,D):null}}class l0 extends p2{get formDirective(){return null}get path(){return null}}class s0 extends p2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D0{constructor(G){this._cd=G}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let C4=(()=>{class B extends D0{constructor(D){super(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(s0,2))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t1,w1){2&t1&&m.AVh("ng-untouched",w1.isUntouched)("ng-touched",w1.isTouched)("ng-pristine",w1.isPristine)("ng-dirty",w1.isDirty)("ng-valid",w1.isValid)("ng-invalid",w1.isInvalid)("ng-pending",w1.isPending)},features:[m.Vt3]})}}return B})(),m2=(()=>{class B extends D0{constructor(D){super(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t1,w1){2&t1&&m.AVh("ng-untouched",w1.isUntouched)("ng-touched",w1.isTouched)("ng-pristine",w1.isPristine)("ng-dirty",w1.isDirty)("ng-valid",w1.isValid)("ng-invalid",w1.isInvalid)("ng-pending",w1.isPending)("ng-submitted",w1.isSubmitted)},features:[m.Vt3]})}}return B})();const S0="VALID",l3="INVALID",T0="PENDING",V4="DISABLED";function s3(B){return(x1(B)?B.validators:B)||null}function J2(B,G){return(x1(G)?G.asyncValidators:B)||null}function x1(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}function m1(B,G,D){const t1=B.controls;if(!(G?Object.keys(t1):t1).length)throw new m.wOt(1e3,"");if(!t1[D])throw new m.wOt(1001,"")}function D1(B,G,D){B._forEachChild((t1,w1)=>{if(void 0===D[w1])throw new m.wOt(1002,"")})}class Z1{constructor(G,D){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(G),this._assignAsyncValidators(D)}get validator(){return this._composedValidatorFn}set validator(G){this._rawValidators=this._composedValidatorFn=G}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(G){this._rawAsyncValidators=this._composedAsyncValidatorFn=G}get parent(){return this._parent}get valid(){return this.status===S0}get invalid(){return this.status===l3}get pending(){return this.status==T0}get disabled(){return this.status===V4}get enabled(){return this.status!==V4}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(G){this._assignValidators(G)}setAsyncValidators(G){this._assignAsyncValidators(G)}addValidators(G){this.setValidators(t2(G,this._rawValidators))}addAsyncValidators(G){this.setAsyncValidators(t2(G,this._rawAsyncValidators))}removeValidators(G){this.setValidators(s2(G,this._rawValidators))}removeAsyncValidators(G){this.setAsyncValidators(s2(G,this._rawAsyncValidators))}hasValidator(G){return Q(this._rawValidators,G)}hasAsyncValidator(G){return Q(this._rawAsyncValidators,G)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(G={}){this.touched=!0,this._parent&&!G.onlySelf&&this._parent.markAsTouched(G)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(G=>G.markAllAsTouched())}markAsUntouched(G={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(D=>{D.markAsUntouched({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}markAsDirty(G={}){this.pristine=!1,this._parent&&!G.onlySelf&&this._parent.markAsDirty(G)}markAsPristine(G={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(D=>{D.markAsPristine({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}markAsPending(G={}){this.status=T0,!1!==G.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!G.onlySelf&&this._parent.markAsPending(G)}disable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=V4,this.errors=null,this._forEachChild(t1=>{t1.disable({...G,onlySelf:!0})}),this._updateValue(),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(t1=>t1(!0))}enable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=S0,this._forEachChild(t1=>{t1.enable({...G,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent}),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(t1=>t1(!1))}_updateAncestors(G){this._parent&&!G.onlySelf&&(this._parent.updateValueAndValidity(G),G.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(G){this._parent=G}getRawValue(){return this.value}updateValueAndValidity(G={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===S0||this.status===T0)&&this._runAsyncValidator(G.emitEvent)),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!G.onlySelf&&this._parent.updateValueAndValidity(G)}_updateTreeValidity(G={emitEvent:!0}){this._forEachChild(D=>D._updateTreeValidity(G)),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V4:S0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(G){if(this.asyncValidator){this.status=T0,this._hasOwnPendingAsyncValidator=!0;const D=Z0(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(t1=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t1,{emitEvent:G})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(G,D={}){this.errors=G,this._updateControlsErrors(!1!==D.emitEvent)}get(G){let D=G;return null==D||(Array.isArray(D)||(D=D.split(".")),0===D.length)?null:D.reduce((t1,w1)=>t1&&t1._find(w1),this)}getError(G,D){const t1=D?this.get(D):this;return t1&&t1.errors?t1.errors[G]:null}hasError(G,D){return!!this.getError(G,D)}get root(){let G=this;for(;G._parent;)G=G._parent;return G}_updateControlsErrors(G){this.status=this._calculateStatus(),G&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(G)}_initObservables(){this.valueChanges=new m.bkB,this.statusChanges=new m.bkB}_calculateStatus(){return this._allControlsDisabled()?V4:this.errors?l3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T0)?T0:this._anyControlsHaveStatus(l3)?l3:S0}_anyControlsHaveStatus(G){return this._anyControls(D=>D.status===G)}_anyControlsDirty(){return this._anyControls(G=>G.dirty)}_anyControlsTouched(){return this._anyControls(G=>G.touched)}_updatePristine(G={}){this.pristine=!this._anyControlsDirty(),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}_updateTouched(G={}){this.touched=this._anyControlsTouched(),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}_registerOnCollectionChange(G){this._onCollectionChange=G}_setUpdateStrategy(G){x1(G)&&null!=G.updateOn&&(this._updateOn=G.updateOn)}_parentMarkedDirty(G){return!G&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(G){return null}_assignValidators(G){this._rawValidators=Array.isArray(G)?G.slice():G,this._composedValidatorFn=function F3(B){return Array.isArray(B)?C2(B):B||null}(this._rawValidators)}_assignAsyncValidators(G){this._rawAsyncValidators=Array.isArray(G)?G.slice():G,this._composedAsyncValidatorFn=function s1(B){return Array.isArray(B)?j1(B):B||null}(this._rawAsyncValidators)}}class F2 extends Z1{constructor(G,D,t1){super(s3(D),J2(t1,D)),this.controls=G,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(G,D){return this.controls[G]?this.controls[G]:(this.controls[G]=D,D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange),D)}addControl(G,D,t1={}){this.registerControl(G,D),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}removeControl(G,D={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}setControl(G,D,t1={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],D&&this.registerControl(G,D),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}contains(G){return this.controls.hasOwnProperty(G)&&this.controls[G].enabled}setValue(G,D={}){D1(this,0,G),Object.keys(G).forEach(t1=>{m1(this,!0,t1),this.controls[t1].setValue(G[t1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(Object.keys(G).forEach(t1=>{const w1=this.controls[t1];w1&&w1.patchValue(G[t1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G={},D={}){this._forEachChild((t1,w1)=>{t1.reset(G?G[w1]:null,{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this._reduceChildren({},(G,D,t1)=>(G[t1]=D.getRawValue(),G))}_syncPendingControls(){let G=this._reduceChildren(!1,(D,t1)=>!!t1._syncPendingControls()||D);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){Object.keys(this.controls).forEach(D=>{const t1=this.controls[D];t1&&G(t1,D)})}_setUpControls(){this._forEachChild(G=>{G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(G){for(const[D,t1]of Object.entries(this.controls))if(this.contains(D)&&G(t1))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,t1,w1)=>((t1.enabled||this.disabled)&&(D[w1]=t1.value),D))}_reduceChildren(G,D){let t1=G;return this._forEachChild((w1,V2)=>{t1=D(t1,w1,V2)}),t1}_allControlsDisabled(){for(const G of Object.keys(this.controls))if(this.controls[G].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(G){return this.controls.hasOwnProperty(G)?this.controls[G]:null}}class t4 extends F2{}const z4=new m.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>r4}),r4="always";function F4(B,G){return[...G.path,B]}function I2(B,G,D=r4){M4(B,G),G.valueAccessor.writeValue(B.value),(B.disabled||"always"===D)&&G.valueAccessor.setDisabledState?.(B.disabled),function c6(B,G){G.valueAccessor.registerOnChange(D=>{B._pendingValue=D,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&z0(B,G)})}(B,G),function m6(B,G){const D=(t1,w1)=>{G.valueAccessor.writeValue(t1),w1&&G.viewToModelUpdate(t1)};B.registerOnChange(D),G._registerOnDestroy(()=>{B._unregisterOnChange(D)})}(B,G),function R4(B,G){G.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&z0(B,G),"submit"!==B.updateOn&&B.markAsTouched()})}(B,G),function p4(B,G){if(G.valueAccessor.setDisabledState){const D=t1=>{G.valueAccessor.setDisabledState(t1)};B.registerOnDisabledChange(D),G._registerOnDestroy(()=>{B._unregisterOnDisabledChange(D)})}}(B,G)}function C0(B,G,D=!0){const t1=()=>{};G.valueAccessor&&(G.valueAccessor.registerOnChange(t1),G.valueAccessor.registerOnTouched(t1)),u6(B,G),B&&(G._invokeOnDestroyCallbacks(),B._registerOnCollectionChange(()=>{}))}function B2(B,G){B.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(G)})}function M4(B,G){const D=H1(B);null!==G.validator?B.setValidators(A1(D,G.validator)):"function"==typeof D&&B.setValidators([D]);const t1=P1(B);null!==G.asyncValidator?B.setAsyncValidators(A1(t1,G.asyncValidator)):"function"==typeof t1&&B.setAsyncValidators([t1]);const w1=()=>B.updateValueAndValidity();B2(G._rawValidators,w1),B2(G._rawAsyncValidators,w1)}function u6(B,G){let D=!1;if(null!==B){if(null!==G.validator){const w1=H1(B);if(Array.isArray(w1)&&w1.length>0){const V2=w1.filter(v0=>v0!==G.validator);V2.length!==w1.length&&(D=!0,B.setValidators(V2))}}if(null!==G.asyncValidator){const w1=P1(B);if(Array.isArray(w1)&&w1.length>0){const V2=w1.filter(v0=>v0!==G.asyncValidator);V2.length!==w1.length&&(D=!0,B.setAsyncValidators(V2))}}}const t1=()=>{};return B2(G._rawValidators,t1),B2(G._rawAsyncValidators,t1),D}function z0(B,G){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),G.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Y4(B,G){M4(B,G)}function b1(B,G){if(!B.hasOwnProperty("model"))return!1;const D=B.model;return!!D.isFirstChange()||!Object.is(G,D.currentValue)}function J1(B,G){B._syncPendingControls(),G.forEach(D=>{const t1=D.control;"submit"===t1.updateOn&&t1._pendingChange&&(D.viewToModelUpdate(t1._pendingValue),t1._pendingChange=!1)})}function q1(B,G){if(!G)return null;let D,t1,w1;return Array.isArray(G),G.forEach(V2=>{V2.constructor===e1?D=V2:function F1(B){return Object.getPrototypeOf(B.constructor)===A}(V2)?t1=V2:w1=V2}),w1||t1||D||null}const M0={provide:l0,useExisting:(0,m.Rfq)(()=>P2)},X2=Promise.resolve();let P2=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._directives=new Set,this.ngSubmit=new m.bkB,this.form=new F2({},C2(D),j1(t1))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){X2.then(()=>{const t1=this._findContainer(D.path);D.control=t1.registerControl(D.name,D.control),I2(D.control,D,this.callSetDisabledState),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){X2.then(()=>{const t1=this._findContainer(D.path);t1&&t1.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){X2.then(()=>{const t1=this._findContainer(D.path),w1=new F2({});Y4(w1,D),t1.registerControl(D.name,w1),w1.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){X2.then(()=>{const t1=this._findContainer(D.path);t1&&t1.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,t1){X2.then(()=>{this.form.get(D.path).setValue(t1)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,J1(this.form,this._directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(D){return D.pop(),D.length?this.form.get(D):this.form}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("submit",function(v0){return w1.onSubmit(v0)})("reset",function(){return w1.onReset()})},inputs:{options:[m.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m.Jv_([M0]),m.Vt3]})}}return B})();function e4(B,G){const D=B.indexOf(G);D>-1&&B.splice(D,1)}function F0(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}const P0=class extends Z1{constructor(G=null,D,t1){super(s3(D),J2(t1,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(G),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),x1(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=F0(G)?G.value:G)}setValue(G,D={}){this.value=this._pendingValue=G,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(t1=>t1(this.value,!1!==D.emitViewToModelChange)),this.updateValueAndValidity(D)}patchValue(G,D={}){this.setValue(G,D)}reset(G=this.defaultValue,D={}){this._applyFormState(G),this.markAsPristine(D),this.markAsUntouched(D),this.setValue(this.value,D),this._pendingChange=!1}_updateValue(){}_anyControls(G){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(G){this._onChange.push(G)}_unregisterOnChange(G){e4(this._onChange,G)}registerOnDisabledChange(G){this._onDisabledChange.push(G)}_unregisterOnDisabledChange(G){e4(this._onDisabledChange,G)}_forEachChild(G){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(G){F0(G)?(this.value=this._pendingValue=G.value,G.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=G}};let R0=(()=>{class B extends l0{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,features:[m.Vt3]})}}return B})();const U4={provide:s0,useExisting:(0,m.Rfq)(()=>H2)},a0=Promise.resolve();let H2=(()=>{class B extends s0{constructor(D,t1,w1,V2,v0,b3){super(),this._changeDetectorRef=v0,this.callSetDisabledState=b3,this.control=new P0,this._registered=!1,this.name="",this.update=new m.bkB,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1),this.valueAccessor=q1(0,V2)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const t1=D.name.previousValue;this.formDirective.removeControl({name:t1,path:this._getPath(t1)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),b1(D,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){I2(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(D){a0.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(D){const t1=D.isDisabled.currentValue,w1=0!==t1&&(0,m.L39)(t1);a0.then(()=>{w1&&!this.control.disabled?this.control.disable():!w1&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(D){return this._parent?F4(D,this._parent):[D]}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,9),m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(m.gRc,8),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"],options:[m.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m.Jv_([U4]),m.Vt3,m.OA$]})}}return B})(),p8=(()=>{class B{static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275dir=m.FsC({type:B,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return B})();const a3={provide:$,useExisting:(0,m.Rfq)(()=>h6),multi:!0};let h6=(()=>{class B extends A{writeValue(D){this.setProperty("value",D??"")}registerOnChange(D){this.onChange=t1=>{D(""==t1?null:parseFloat(t1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("input",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([a3]),m.Vt3]})}}return B})();const T6={provide:$,useExisting:(0,m.Rfq)(()=>b0),multi:!0};let t6=(()=>{class B{constructor(){this._accessors=[]}add(D,t1){this._accessors.push([D,t1])}remove(D){for(let t1=this._accessors.length-1;t1>=0;--t1)if(this._accessors[t1][1]===D)return void this._accessors.splice(t1,1)}select(D){this._accessors.forEach(t1=>{this._isSameGroup(t1,D)&&t1[1]!==D&&t1[1].fireUncheck(D.value)})}_isSameGroup(D,t1){return!!D[0].control&&D[0]._parent===t1._control._parent&&D[1].name===t1.name}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275prov=m.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})(),b0=(()=>{class B extends A{constructor(D,t1,w1,V2){super(D,t1),this._registry=w1,this._injector=V2,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,m.WQX)(z4,{optional:!0})??r4}ngOnInit(){this._control=this._injector.get(s0),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(D){this._state=D===this.value,this.setProperty("checked",this._state)}registerOnChange(D){this._fn=D,this.onChange=()=>{D(this.value),this._registry.select(this)}}setDisabledState(D){(this.setDisabledStateFired||D||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",D),this.setDisabledStateFired=!0}fireUncheck(D){this.writeValue(D)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(t6),m.rXU(m.zZn))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(){return w1.onChange()})("blur",function(){return w1.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[m.Jv_([T6]),m.Vt3]})}}return B})();const y6={provide:$,useExisting:(0,m.Rfq)(()=>Q2),multi:!0};let Q2=(()=>{class B extends A{writeValue(D){this.setProperty("value",parseFloat(D))}registerOnChange(D){this.onChange=t1=>{D(""==t1?null:parseFloat(t1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.value)})("input",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([y6]),m.Vt3]})}}return B})();const g2=new m.nKC(""),h3={provide:s0,useExisting:(0,m.Rfq)(()=>J4)};let J4=(()=>{class B extends s0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,t1,w1,V2,v0){super(),this._ngModelWarningConfig=V2,this.callSetDisabledState=v0,this.update=new m.bkB,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(t1),this.valueAccessor=q1(0,w1)}ngOnChanges(D){if(this._isControlChanged(D)){const t1=D.form.previousValue;t1&&C0(t1,this,!1),I2(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}b1(D,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&C0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_isControlChanged(D){return D.hasOwnProperty("form")}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(g2,8),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControl",""]],inputs:{form:[m.Mj6.None,"formControl","form"],isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[m.Jv_([h3]),m.Vt3,m.OA$]})}}return B})();const R6={provide:l0,useExisting:(0,m.Rfq)(()=>n4)};let n4=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new m.bkB,this._setValidators(D),this._setAsyncValidators(t1)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(u6(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(D){const t1=this.form.get(D.path);return I2(t1,D,this.callSetDisabledState),t1.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),t1}getControl(D){return this.form.get(D.path)}removeControl(D){C0(D.control||null,D,!1),function u2(B,G){const D=B.indexOf(G);D>-1&&B.splice(D,1)}(this.directives,D)}addFormGroup(D){this._setUpFormContainer(D)}removeFormGroup(D){this._cleanUpFormContainer(D)}getFormGroup(D){return this.form.get(D.path)}addFormArray(D){this._setUpFormContainer(D)}removeFormArray(D){this._cleanUpFormContainer(D)}getFormArray(D){return this.form.get(D.path)}updateModel(D,t1){this.form.get(D.path).setValue(t1)}onSubmit(D){return this.submitted=!0,J1(this.form,this.directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_updateDomValue(){this.directives.forEach(D=>{const t1=D.control,w1=this.form.get(D.path);t1!==w1&&(C0(t1||null,D),(B=>B instanceof P0)(w1)&&(I2(w1,D,this.callSetDisabledState),D.control=w1))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const t1=this.form.get(D.path);Y4(t1,D),t1.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const t1=this.form.get(D.path);t1&&function C1(B,G){return u6(B,G)}(t1,D)&&t1.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M4(this.form,this),this._oldForm&&u6(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroup",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("submit",function(v0){return w1.onSubmit(v0)})("reset",function(){return w1.onReset()})},inputs:{form:[m.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m.Jv_([R6]),m.Vt3,m.OA$]})}}return B})();const P4={provide:l0,useExisting:(0,m.Rfq)(()=>D3)};let D3=(()=>{class B extends R0{constructor(D,t1,w1){super(),this.name=null,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1)}_checkParentType(){g6(this._parent)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroupName",""]],inputs:{name:[m.Mj6.None,"formGroupName","name"]},features:[m.Jv_([P4]),m.Vt3]})}}return B})();const n6={provide:l0,useExisting:(0,m.Rfq)(()=>V0)};let V0=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.name=null,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){g6(this._parent)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formArrayName",""]],inputs:{name:[m.Mj6.None,"formArrayName","name"]},features:[m.Jv_([n6]),m.Vt3]})}}return B})();function g6(B){return!(B instanceof D3||B instanceof n4||B instanceof V0)}const A6={provide:s0,useExisting:(0,m.Rfq)(()=>M3)};let M3=(()=>{class B extends s0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,t1,w1,V2,v0){super(),this._ngModelWarningConfig=v0,this._added=!1,this.name=null,this.update=new m.bkB,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1),this.valueAccessor=q1(0,V2)}ngOnChanges(D){this._added||this._setUpControl(),b1(D,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(g2,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControlName",""]],inputs:{name:[m.Mj6.None,"formControlName","name"],isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[m.Jv_([A6]),m.Vt3,m.OA$]})}}return B})();const h8={provide:$,useExisting:(0,m.Rfq)(()=>k4),multi:!0};function v3(B,G){return null==B?`${G}`:(G&&"object"==typeof G&&(G="Object"),`${B}: ${G}`.slice(0,50))}let k4=(()=>{class B extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){this.value=D;const w1=v3(this._getOptionId(D),D);this.setProperty("value",w1)}registerOnChange(D){this.onChange=t1=>{this.value=this._getOptionValue(t1),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const t1 of this._optionMap.keys())if(this._compareWith(this._optionMap.get(t1),D))return t1;return null}_getOptionValue(D){const t1=function g8(B){return B.split(":")[0]}(D);return this._optionMap.has(t1)?this._optionMap.get(t1):D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[m.Jv_([h8]),m.Vt3]})}}return B})(),V3=(()=>{class B{constructor(D,t1,w1){this._element=D,this._renderer=t1,this._select=w1,this._select&&(this.id=this._select._registerOption())}set ngValue(D){null!=this._select&&(this._select._optionMap.set(this.id,D),this._setElementValue(v3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._setElementValue(D),this._select&&this._select.writeValue(this._select.value)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.aKT),m.rXU(m.sFG),m.rXU(k4,9))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return B})();const p0={provide:$,useExisting:(0,m.Rfq)(()=>I6),multi:!0};function g3(B,G){return null==B?`${G}`:("string"==typeof G&&(G=`'${G}'`),G&&"object"==typeof G&&(G="Object"),`${B}: ${G}`.slice(0,50))}let I6=(()=>{class B extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){let t1;if(this.value=D,Array.isArray(D)){const w1=D.map(V2=>this._getOptionId(V2));t1=(V2,v0)=>{V2._setSelected(w1.indexOf(v0.toString())>-1)}}else t1=(w1,V2)=>{w1._setSelected(!1)};this._optionMap.forEach(t1)}registerOnChange(D){this.onChange=t1=>{const w1=[],V2=t1.selectedOptions;if(void 0!==V2){const v0=V2;for(let b3=0;b3{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[m.Jv_([p0]),m.Vt3]})}}return B})(),Q6=(()=>{class B{constructor(D,t1,w1){this._element=D,this._renderer=t1,this._select=w1,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(g3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(g3(this.id,D)),this._select.writeValue(this._select.value)):this._setElementValue(D)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}_setSelected(D){this._renderer.setProperty(this._element.nativeElement,"selected",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.aKT),m.rXU(m.sFG),m.rXU(I6,9))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return B})();let G0=(()=>{class B{constructor(){this._validator=t0}ngOnChanges(D){if(this.inputName in D){const t1=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(t1),this._validator=this._enabled?this.createValidator(t1):t0,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275dir=m.FsC({type:B,features:[m.OA$]})}}return B})();const he={provide:f1,useExisting:(0,m.Rfq)(()=>H3),multi:!0};let H3=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>function d3(B){return"number"==typeof B?B:parseFloat(B)}(D),this.createValidator=D=>c2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("min",w1._enabled?w1.min:null)},inputs:{min:"min"},features:[m.Jv_([he]),m.Vt3]})}}return B})();const f3={provide:f1,useExisting:(0,m.Rfq)(()=>Q4),multi:!0};let Q4=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=m.L39,this.createValidator=D=>O1}enabled(D){return D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("required",w1._enabled?"":null)},inputs:{required:"required"},features:[m.Jv_([f3]),m.Vt3]})}}return B})();const i3={provide:f1,useExisting:(0,m.Rfq)(()=>s6),multi:!0};let s6=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=D=>D,this.createValidator=D=>v2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("pattern",w1._enabled?w1.pattern:null)},inputs:{pattern:"pattern"},features:[m.Jv_([i3]),m.Vt3]})}}return B})(),u3=(()=>{class B{static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({})}}return B})();class H0 extends Z1{constructor(G,D,t1){super(s3(D),J2(t1,D)),this.controls=G,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(G){return this.controls[this._adjustIndex(G)]}push(G,D={}){this.controls.push(G),this._registerControl(G),this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}insert(G,D,t1={}){this.controls.splice(G,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:t1.emitEvent})}removeAt(G,D={}){let t1=this._adjustIndex(G);t1<0&&(t1=0),this.controls[t1]&&this.controls[t1]._registerOnCollectionChange(()=>{}),this.controls.splice(t1,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(G,D,t1={}){let w1=this._adjustIndex(G);w1<0&&(w1=0),this.controls[w1]&&this.controls[w1]._registerOnCollectionChange(()=>{}),this.controls.splice(w1,1),D&&(this.controls.splice(w1,0,D),this._registerControl(D)),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(G,D={}){D1(this,0,G),G.forEach((t1,w1)=>{m1(this,!1,w1),this.at(w1).setValue(t1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(G.forEach((t1,w1)=>{this.at(w1)&&this.at(w1).patchValue(t1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G=[],D={}){this._forEachChild((t1,w1)=>{t1.reset(G[w1],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this.controls.map(G=>G.getRawValue())}clear(G={}){this.controls.length<1||(this._forEachChild(D=>D._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:G.emitEvent}))}_adjustIndex(G){return G<0?G+this.length:G}_syncPendingControls(){let G=this.controls.reduce((D,t1)=>!!t1._syncPendingControls()||D,!1);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){this.controls.forEach((D,t1)=>{G(D,t1)})}_updateValue(){this.value=this.controls.filter(G=>G.enabled||this.disabled).map(G=>G.value)}_anyControls(G){return this.controls.some(D=>D.enabled&&G(D))}_setUpControls(){this._forEachChild(G=>this._registerControl(G))}_allControlsDisabled(){for(const G of this.controls)if(G.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(G){G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)}_find(G){return this.at(G)??null}}function w3(B){return!!B&&(void 0!==B.asyncValidators||void 0!==B.validators||void 0!==B.updateOn)}let j6=(()=>{class B{constructor(){this.useNonNullable=!1}get nonNullable(){const D=new B;return D.useNonNullable=!0,D}group(D,t1=null){const w1=this._reduceControls(D);let V2={};return w3(t1)?V2=t1:null!==t1&&(V2.validators=t1.validator,V2.asyncValidators=t1.asyncValidator),new F2(w1,V2)}record(D,t1=null){const w1=this._reduceControls(D);return new t4(w1,t1)}control(D,t1,w1){let V2={};return this.useNonNullable?(w3(t1)?V2=t1:(V2.validators=t1,V2.asyncValidators=w1),new P0(D,{...V2,nonNullable:!0})):new P0(D,t1,w1)}array(D,t1,w1){const V2=D.map(v0=>this._createControl(v0));return new H0(V2,t1,w1)}_reduceControls(D){const t1={};return Object.keys(D).forEach(w1=>{t1[w1]=this._createControl(D[w1])}),t1}_createControl(D){return D instanceof P0||D instanceof Z1?D:Array.isArray(D)?this.control(D[0],D.length>1?D[1]:null,D.length>2?D[2]:null):this.control(D)}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275prov=m.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})(),O6=(()=>{class B{static withConfig(D){return{ngModule:B,providers:[{provide:z4,useValue:D.callSetDisabledState??r4}]}}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({imports:[u3]})}}return B})(),o6=(()=>{class B{static withConfig(D){return{ngModule:B,providers:[{provide:g2,useValue:D.warnOnNgModelWithFormControl??"always"},{provide:z4,useValue:D.callSetDisabledState??r4}]}}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({imports:[u3]})}}return B})()},345:(y1,d1,y)=>{"use strict";y.d(d1,{Bb:()=>D0,W8:()=>K2,hE:()=>C4,sG:()=>s2,up:()=>H4});var m=y(4438),g=y(177);class e extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p extends e{static makeCurrent(){(0,g.ZD)(new p)}onAndCancel(x1,m1,D1){return x1.addEventListener(m1,D1),()=>{x1.removeEventListener(m1,D1)}}dispatchEvent(x1,m1){x1.dispatchEvent(m1)}remove(x1){x1.parentNode&&x1.parentNode.removeChild(x1)}createElement(x1,m1){return(m1=m1||this.getDefaultDocument()).createElement(x1)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(x1){return x1.nodeType===Node.ELEMENT_NODE}isShadowRoot(x1){return x1 instanceof DocumentFragment}getGlobalEventTarget(x1,m1){return"window"===m1?window:"document"===m1?x1:"body"===m1?x1.body:null}getBaseHref(x1){const m1=function S(){return _=_||document.querySelector("base"),_?_.getAttribute("href"):null}();return null==m1?null:function A(s1){return new URL(s1,document.baseURI).pathname}(m1)}resetBaseElement(){_=null}getUserAgent(){return window.navigator.userAgent}getCookie(x1){return(0,g._b)(document.cookie,x1)}}let _=null,Z=(()=>{class s1{build(){return new XMLHttpRequest}static{this.\u0275fac=function(D1){return new(D1||s1)}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const K=new m.nKC("");let p1=(()=>{class s1{constructor(m1,D1){this._zone=D1,this._eventNameToPlugin=new Map,m1.forEach(Z1=>{Z1.manager=this}),this._plugins=m1.slice().reverse()}addEventListener(m1,D1,Z1){return this._findPluginFor(D1).addEventListener(m1,D1,Z1)}getZone(){return this._zone}_findPluginFor(m1){let D1=this._eventNameToPlugin.get(m1);if(D1)return D1;if(D1=this._plugins.find(F2=>F2.supports(m1)),!D1)throw new m.wOt(5101,!1);return this._eventNameToPlugin.set(m1,D1),D1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(K),m.KVO(m.SKi))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class Y{constructor(x1){this._doc=x1}}const h1="ng-app-id";let e1=(()=>{class s1{constructor(m1,D1,Z1,F2={}){this.doc=m1,this.appId=D1,this.nonce=Z1,this.platformId=F2,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(F2),this.resetHostNodes()}addStyles(m1){for(const D1 of m1)1===this.changeUsageCount(D1,1)&&this.onStyleAdded(D1)}removeStyles(m1){for(const D1 of m1)this.changeUsageCount(D1,-1)<=0&&this.onStyleRemoved(D1)}ngOnDestroy(){const m1=this.styleNodesInDOM;m1&&(m1.forEach(D1=>D1.remove()),m1.clear());for(const D1 of this.getAllStyles())this.onStyleRemoved(D1);this.resetHostNodes()}addHost(m1){this.hostNodes.add(m1);for(const D1 of this.getAllStyles())this.addStyleToHost(m1,D1)}removeHost(m1){this.hostNodes.delete(m1)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(m1){for(const D1 of this.hostNodes)this.addStyleToHost(D1,m1)}onStyleRemoved(m1){const D1=this.styleRef;D1.get(m1)?.elements?.forEach(Z1=>Z1.remove()),D1.delete(m1)}collectServerRenderedStyles(){const m1=this.doc.head?.querySelectorAll(`style[${h1}="${this.appId}"]`);if(m1?.length){const D1=new Map;return m1.forEach(Z1=>{null!=Z1.textContent&&D1.set(Z1.textContent,Z1)}),D1}return null}changeUsageCount(m1,D1){const Z1=this.styleRef;if(Z1.has(m1)){const F2=Z1.get(m1);return F2.usage+=D1,F2.usage}return Z1.set(m1,{usage:D1,elements:[]}),D1}getStyleElement(m1,D1){const Z1=this.styleNodesInDOM,F2=Z1?.get(D1);if(F2?.parentNode===m1)return Z1.delete(D1),F2.removeAttribute(h1),F2;{const b2=this.doc.createElement("style");return this.nonce&&b2.setAttribute("nonce",this.nonce),b2.textContent=D1,this.platformIsServer&&b2.setAttribute(h1,this.appId),m1.appendChild(b2),b2}}addStyleToHost(m1,D1){const Z1=this.getStyleElement(m1,D1),F2=this.styleRef,b2=F2.get(D1)?.elements;b2?b2.push(Z1):F2.set(D1,{elements:[Z1],usage:1})}resetHostNodes(){const m1=this.hostNodes;m1.clear(),m1.add(this.doc.head)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ),m.KVO(m.sZ2),m.KVO(m.BIS,8),m.KVO(m.Agw))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const r1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},M1=/%COMP%/g,c2=new m.nKC("",{providedIn:"root",factory:()=>!0});function d0(s1,x1){return x1.map(m1=>m1.replace(M1,s1))}let d2=(()=>{class s1{constructor(m1,D1,Z1,F2,b2,U0,m0,t4=null){this.eventManager=m1,this.sharedStylesHost=D1,this.appId=Z1,this.removeStylesOnCompDestroy=F2,this.doc=b2,this.platformId=U0,this.ngZone=m0,this.nonce=t4,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(U0),this.defaultRenderer=new _2(m1,b2,m0,this.platformIsServer)}createRenderer(m1,D1){if(!m1||!D1)return this.defaultRenderer;this.platformIsServer&&D1.encapsulation===m.gXe.ShadowDom&&(D1={...D1,encapsulation:m.gXe.Emulated});const Z1=this.getOrCreateRenderer(m1,D1);return Z1 instanceof B4?Z1.applyToHost(m1):Z1 instanceof Z0&&Z1.applyStyles(),Z1}getOrCreateRenderer(m1,D1){const Z1=this.rendererByCompId;let F2=Z1.get(D1.id);if(!F2){const b2=this.doc,U0=this.ngZone,m0=this.eventManager,t4=this.sharedStylesHost,N3=this.removeStylesOnCompDestroy,z4=this.platformIsServer;switch(D1.encapsulation){case m.gXe.Emulated:F2=new B4(m0,t4,D1,this.appId,N3,b2,U0,z4);break;case m.gXe.ShadowDom:return new X0(m0,t4,m1,D1,b2,U0,this.nonce,z4);default:F2=new Z0(m0,t4,D1,N3,b2,U0,z4)}Z1.set(D1.id,F2)}return F2}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(p1),m.KVO(e1),m.KVO(m.sZ2),m.KVO(c2),m.KVO(g.qQ),m.KVO(m.Agw),m.KVO(m.SKi),m.KVO(m.BIS))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class _2{constructor(x1,m1,D1,Z1){this.eventManager=x1,this.doc=m1,this.ngZone=D1,this.platformIsServer=Z1,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(x1,m1){return m1?this.doc.createElementNS(r1[m1]||m1,x1):this.doc.createElement(x1)}createComment(x1){return this.doc.createComment(x1)}createText(x1){return this.doc.createTextNode(x1)}appendChild(x1,m1){(t0(x1)?x1.content:x1).appendChild(m1)}insertBefore(x1,m1,D1){x1&&(t0(x1)?x1.content:x1).insertBefore(m1,D1)}removeChild(x1,m1){x1&&x1.removeChild(m1)}selectRootElement(x1,m1){let D1="string"==typeof x1?this.doc.querySelector(x1):x1;if(!D1)throw new m.wOt(-5104,!1);return m1||(D1.textContent=""),D1}parentNode(x1){return x1.parentNode}nextSibling(x1){return x1.nextSibling}setAttribute(x1,m1,D1,Z1){if(Z1){m1=Z1+":"+m1;const F2=r1[Z1];F2?x1.setAttributeNS(F2,m1,D1):x1.setAttribute(m1,D1)}else x1.setAttribute(m1,D1)}removeAttribute(x1,m1,D1){if(D1){const Z1=r1[D1];Z1?x1.removeAttributeNS(Z1,m1):x1.removeAttribute(`${D1}:${m1}`)}else x1.removeAttribute(m1)}addClass(x1,m1){x1.classList.add(m1)}removeClass(x1,m1){x1.classList.remove(m1)}setStyle(x1,m1,D1,Z1){Z1&(m.czy.DashCase|m.czy.Important)?x1.style.setProperty(m1,D1,Z1&m.czy.Important?"important":""):x1.style[m1]=D1}removeStyle(x1,m1,D1){D1&m.czy.DashCase?x1.style.removeProperty(m1):x1.style[m1]=""}setProperty(x1,m1,D1){null!=x1&&(x1[m1]=D1)}setValue(x1,m1){x1.nodeValue=m1}listen(x1,m1,D1){if("string"==typeof x1&&!(x1=(0,g.QT)().getGlobalEventTarget(this.doc,x1)))throw new Error(`Unsupported event target ${x1} for event ${m1}`);return this.eventManager.addEventListener(x1,m1,this.decoratePreventDefault(D1))}decoratePreventDefault(x1){return m1=>{if("__ngUnwrap__"===m1)return x1;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>x1(m1)):x1(m1))&&m1.preventDefault()}}}function t0(s1){return"TEMPLATE"===s1.tagName&&void 0!==s1.content}class X0 extends _2{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){super(x1,F2,b2,m0),this.sharedStylesHost=m1,this.hostEl=D1,this.shadowRoot=D1.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const t4=d0(Z1.id,Z1.styles);for(const N3 of t4){const z4=document.createElement("style");U0&&z4.setAttribute("nonce",U0),z4.textContent=N3,this.shadowRoot.appendChild(z4)}}nodeOrShadowRoot(x1){return x1===this.hostEl?this.shadowRoot:x1}appendChild(x1,m1){return super.appendChild(this.nodeOrShadowRoot(x1),m1)}insertBefore(x1,m1,D1){return super.insertBefore(this.nodeOrShadowRoot(x1),m1,D1)}removeChild(x1,m1){return super.removeChild(this.nodeOrShadowRoot(x1),m1)}parentNode(x1){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(x1)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Z0 extends _2{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){super(x1,F2,b2,U0),this.sharedStylesHost=m1,this.removeStylesOnCompDestroy=Z1,this.styles=m0?d0(m0,D1.styles):D1.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class B4 extends Z0{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){const t4=Z1+"-"+D1.id;super(x1,m1,D1,F2,b2,U0,m0,t4),this.contentAttr=function G1(s1){return"_ngcontent-%COMP%".replace(M1,s1)}(t4),this.hostAttr=function O1(s1){return"_nghost-%COMP%".replace(M1,s1)}(t4)}applyToHost(x1){this.applyStyles(),this.setAttribute(x1,this.hostAttr,"")}createElement(x1,m1){const D1=super.createElement(x1,m1);return super.setAttribute(D1,this.contentAttr,""),D1}}let x2=(()=>{class s1 extends Y{constructor(m1){super(m1)}supports(m1){return!0}addEventListener(m1,D1,Z1){return m1.addEventListener(D1,Z1,!1),()=>this.removeEventListener(m1,D1,Z1)}removeEventListener(m1,D1,Z1){return m1.removeEventListener(D1,Z1)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const w0=["alt","control","meta","shift"],v1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e2={alt:s1=>s1.altKey,control:s1=>s1.ctrlKey,meta:s1=>s1.metaKey,shift:s1=>s1.shiftKey};let C2=(()=>{class s1 extends Y{constructor(m1){super(m1)}supports(m1){return null!=s1.parseEventName(m1)}addEventListener(m1,D1,Z1){const F2=s1.parseEventName(D1),b2=s1.eventCallback(F2.fullKey,Z1,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(m1,F2.domEventName,b2))}static parseEventName(m1){const D1=m1.toLowerCase().split("."),Z1=D1.shift();if(0===D1.length||"keydown"!==Z1&&"keyup"!==Z1)return null;const F2=s1._normalizeKey(D1.pop());let b2="",U0=D1.indexOf("code");if(U0>-1&&(D1.splice(U0,1),b2="code."),w0.forEach(t4=>{const N3=D1.indexOf(t4);N3>-1&&(D1.splice(N3,1),b2+=t4+".")}),b2+=F2,0!=D1.length||0===F2.length)return null;const m0={};return m0.domEventName=Z1,m0.fullKey=b2,m0}static matchEventFullKeyCode(m1,D1){let Z1=v1[m1.key]||m1.key,F2="";return D1.indexOf("code.")>-1&&(Z1=m1.code,F2="code."),!(null==Z1||!Z1)&&(Z1=Z1.toLowerCase()," "===Z1?Z1="space":"."===Z1&&(Z1="dot"),w0.forEach(b2=>{b2!==Z1&&(0,e2[b2])(m1)&&(F2+=b2+".")}),F2+=Z1,F2===D1)}static eventCallback(m1,D1,Z1){return F2=>{s1.matchEventFullKeyCode(F2,m1)&&Z1.runGuarded(()=>D1(F2))}}static _normalizeKey(m1){return"esc"===m1?"escape":m1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const s2=(0,m.oH4)(m.fpN,"browser",[{provide:m.Agw,useValue:g.AJ},{provide:m.PLl,useValue:function P1(){p.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function Q(){return(0,m.TL$)(document),document},deps:[]}]),p2=new m.nKC(""),l0=[{provide:m.e01,useClass:class ${addToWindow(x1){m.JZv.getAngularTestability=(D1,Z1=!0)=>{const F2=x1.findTestabilityInTree(D1,Z1);if(null==F2)throw new m.wOt(5103,!1);return F2},m.JZv.getAllAngularTestabilities=()=>x1.getAllTestabilities(),m.JZv.getAllAngularRootElements=()=>x1.getAllRootElements(),m.JZv.frameworkStabilizers||(m.JZv.frameworkStabilizers=[]),m.JZv.frameworkStabilizers.push(D1=>{const Z1=m.JZv.getAllAngularTestabilities();let F2=Z1.length;const b2=function(){F2--,0==F2&&D1()};Z1.forEach(U0=>{U0.whenStable(b2)})})}findTestabilityInTree(x1,m1,D1){return null==m1?null:x1.getTestability(m1)??(D1?(0,g.QT)().isShadowRoot(m1)?this.findTestabilityInTree(x1,m1.host,!0):this.findTestabilityInTree(x1,m1.parentElement,!0):null)}},deps:[]},{provide:m.WHO,useClass:m.NYb,deps:[m.SKi,m.giA,m.e01]},{provide:m.NYb,useClass:m.NYb,deps:[m.SKi,m.giA,m.e01]}],s0=[{provide:m.H8p,useValue:"root"},{provide:m.zcH,useFactory:function K1(){return new m.zcH},deps:[]},{provide:K,useClass:x2,multi:!0,deps:[g.qQ,m.SKi,m.Agw]},{provide:K,useClass:C2,multi:!0,deps:[g.qQ]},d2,e1,p1,{provide:m._9s,useExisting:d2},{provide:g.N0,useClass:Z,deps:[]},[]];let D0=(()=>{class s1{constructor(m1){}static withServerTransition(m1){return{ngModule:s1,providers:[{provide:m.sZ2,useValue:m1.appId}]}}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(p2,12))}}static{this.\u0275mod=m.$C({type:s1})}static{this.\u0275inj=m.G2t({providers:[...s0,...l0],imports:[g.MD,m.Hbi]})}}return s1})(),K2=(()=>{class s1{constructor(m1){this._doc=m1,this._dom=(0,g.QT)()}addTag(m1,D1=!1){return m1?this._getOrCreateElement(m1,D1):null}addTags(m1,D1=!1){return m1?m1.reduce((Z1,F2)=>(F2&&Z1.push(this._getOrCreateElement(F2,D1)),Z1),[]):[]}getTag(m1){return m1&&this._doc.querySelector(`meta[${m1}]`)||null}getTags(m1){if(!m1)return[];const D1=this._doc.querySelectorAll(`meta[${m1}]`);return D1?[].slice.call(D1):[]}updateTag(m1,D1){if(!m1)return null;D1=D1||this._parseSelector(m1);const Z1=this.getTag(D1);return Z1?this._setMetaElementAttributes(m1,Z1):this._getOrCreateElement(m1,!0)}removeTag(m1){this.removeTagElement(this.getTag(m1))}removeTagElement(m1){m1&&this._dom.remove(m1)}_getOrCreateElement(m1,D1=!1){if(!D1){const b2=this._parseSelector(m1),U0=this.getTags(b2).filter(m0=>this._containsAttributes(m1,m0))[0];if(void 0!==U0)return U0}const Z1=this._dom.createElement("meta");return this._setMetaElementAttributes(m1,Z1),this._doc.getElementsByTagName("head")[0].appendChild(Z1),Z1}_setMetaElementAttributes(m1,D1){return Object.keys(m1).forEach(Z1=>D1.setAttribute(this._getMetaKeyMap(Z1),m1[Z1])),D1}_parseSelector(m1){const D1=m1.name?"name":"property";return`${D1}="${m1[D1]}"`}_containsAttributes(m1,D1){return Object.keys(m1).every(Z1=>D1.getAttribute(this._getMetaKeyMap(Z1))===m1[Z1])}_getMetaKeyMap(m1){return y0[m1]||m1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})();const y0={httpEquiv:"http-equiv"};let C4=(()=>{class s1{constructor(m1){this._doc=m1}getTitle(){return this._doc.title}setTitle(m1){this._doc.title=m1||""}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})(),H4=(()=>{class s1{static{this.\u0275fac=function(D1){return new(D1||s1)}}static{this.\u0275prov=m.jDH({token:s1,factory:function(D1){let Z1=null;return Z1=D1?new(D1||s1):m.KVO(u0),Z1},providedIn:"root"})}}return s1})(),u0=(()=>{class s1 extends H4{constructor(m1){super(),this._doc=m1}sanitize(m1,D1){if(null==D1)return null;switch(m1){case m.WPN.NONE:return D1;case m.WPN.HTML:return(0,m.ZF7)(D1,"HTML")?(0,m.rcV)(D1):(0,m.h9k)(this._doc,String(D1)).toString();case m.WPN.STYLE:return(0,m.ZF7)(D1,"Style")?(0,m.rcV)(D1):D1;case m.WPN.SCRIPT:if((0,m.ZF7)(D1,"Script"))return(0,m.rcV)(D1);throw new m.wOt(5200,!1);case m.WPN.URL:return(0,m.ZF7)(D1,"URL")?(0,m.rcV)(D1):(0,m.$MX)(String(D1));case m.WPN.RESOURCE_URL:if((0,m.ZF7)(D1,"ResourceURL"))return(0,m.rcV)(D1);throw new m.wOt(5201,!1);default:throw new m.wOt(5202,!1)}}bypassSecurityTrustHtml(m1){return(0,m.Kcf)(m1)}bypassSecurityTrustStyle(m1){return(0,m.cWb)(m1)}bypassSecurityTrustScript(m1){return(0,m.UyX)(m1)}bypassSecurityTrustUrl(m1){return(0,m.osQ)(m1)}bypassSecurityTrustResourceUrl(m1){return(0,m.e5t)(m1)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})()},1583:(y1,d1,y)=>{"use strict";y.d(d1,{nX:()=>g6,wF:()=>P0,Z:()=>F0,Ix:()=>S1,Wk:()=>y2,iI:()=>O8,n3:()=>g3});var m=y(467),g=y(4438),e=y(4402),p=y(6648),_=y(7673),S=y(4412),A=y(4572),$=y(9350),Z=y(8793),K=y(9030),p1=y(1203),Y=y(8810),h1=y(983),e1=y(1985),r1=y(8359),M1=y(9974),f1=y(4360);function $1(){return(0,M1.N)((x,E)=>{let v=null;x._refCount++;const N=(0,f1._)(E,void 0,void 0,void 0,()=>{if(!x||x._refCount<=0||0<--x._refCount)return void(v=null);const V=x._connection,c1=v;v=null,V&&(!c1||V===c1)&&V.unsubscribe(),E.unsubscribe()});x.subscribe(N),N.closed||(v=x.connect())})}class o2 extends e1.c{constructor(E,v){super(),this.source=E,this.subjectFactory=v,this._subject=null,this._refCount=0,this._connection=null,(0,M1.S)(E)&&(this.lift=E.lift)}_subscribe(E){return this.getSubject().subscribe(E)}getSubject(){const E=this._subject;return(!E||E.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:E}=this;this._subject=this._connection=null,E?.unsubscribe()}connect(){let E=this._connection;if(!E){E=this._connection=new r1.yU;const v=this.getSubject();E.add(this.source.subscribe((0,f1._)(v,void 0,()=>{this._teardown(),v.complete()},N=>{this._teardown(),v.error(N)},()=>this._teardown()))),E.closed&&(this._connection=null,E=r1.yU.EMPTY)}return E}refCount(){return $1()(this)}}var S2=y(1413),c2=y(177),G1=y(6354),O1=y(5558),d0=y(6697),d2=y(9172),_2=y(5964),w2=y(3028),v2=y(1594),t0=y(274),X0=y(8141),Z0=y(9437),B4=y(6649),w0=y(9901);function v1(x){return x<=0?()=>h1.w:(0,M1.N)((E,v)=>{let N=[];E.subscribe((0,f1._)(v,V=>{N.push(V),x{for(const V of N)v.next(V);v.complete()},void 0,()=>{N=null}))})}var e2=y(3774),C2=y(3669),j1=y(3703),A1=y(980),H1=y(6977),P1=y(6365),K1=y(345);const Q="primary",t2=Symbol("RouteTitle");class s2{constructor(E){this.params=E||{}}has(E){return Object.prototype.hasOwnProperty.call(this.params,E)}get(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v[0]:v}return null}getAll(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v:[v]}return[]}get keys(){return Object.keys(this.params)}}function p2(x){return new s2(x)}function l0(x,E,v){const N=v.path.split("/");if(N.length>x.length||"full"===v.pathMatch&&(E.hasChildren()||N.lengthN[c1]===V)}return x===E}function C4(x){return x.length>0?x[x.length-1]:null}function m2(x){return(0,e.A)(x)?x:(0,g.jNT)(x)?(0,p.H)(Promise.resolve(x)):(0,_.of)(x)}const N4={exact:function E6(x,E,v){if(!H4(x.segments,E.segments)||!X4(x.segments,E.segments,v)||x.numberOfChildren!==E.numberOfChildren)return!1;for(const N in E.children)if(!x.children[N]||!E6(x.children[N],E.children[N],v))return!1;return!0},subset:c0},m4={exact:function t3(x,E){return D0(x,E)},subset:function q4(x,E){return Object.keys(E).length<=Object.keys(x).length&&Object.keys(E).every(v=>y0(x[v],E[v]))},ignored:()=>!0};function B3(x,E,v){return N4[v.paths](x.root,E.root,v.matrixParams)&&m4[v.queryParams](x.queryParams,E.queryParams)&&!("exact"===v.fragment&&x.fragment!==E.fragment)}function c0(x,E,v){return f0(x,E,E.segments,v)}function f0(x,E,v,N){if(x.segments.length>v.length){const V=x.segments.slice(0,v.length);return!(!H4(V,v)||E.hasChildren()||!X4(V,v,N))}if(x.segments.length===v.length){if(!H4(x.segments,v)||!X4(x.segments,v,N))return!1;for(const V in E.children)if(!x.children[V]||!c0(x.children[V],E.children[V],N))return!1;return!0}{const V=v.slice(0,x.segments.length),c1=v.slice(x.segments.length);return!!(H4(x.segments,V)&&X4(x.segments,V,N)&&x.children[Q])&&f0(x.children[Q],E,c1,N)}}function X4(x,E,v){return E.every((N,V)=>m4[v](x[V].parameters,N.parameters))}class T4{constructor(E=new Y2([],{}),v={},N=null){this.root=E,this.queryParams=v,this.fragment=N}get queryParamMap(){return this._queryParamMap??=p2(this.queryParams),this._queryParamMap}toString(){return S0.serialize(this)}}class Y2{constructor(E,v){this.segments=E,this.children=v,this.parent=null,Object.values(v).forEach(N=>N.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return l3(this)}}class n3{constructor(E,v){this.path=E,this.parameters=v}get parameterMap(){return this._parameterMap??=p2(this.parameters),this._parameterMap}toString(){return m1(this)}}function H4(x,E){return x.length===E.length&&x.every((v,N)=>v.path===E[N].path)}let $4=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>new L0,providedIn:"root"})}}return x})();class L0{parse(E){const v=new F4(E);return new T4(v.parseRootSegment(),v.parseQueryParams(),v.parseFragment())}serialize(E){const v=`/${T0(E.root,!0)}`,N=function Z1(x){const E=Object.entries(x).map(([v,N])=>Array.isArray(N)?N.map(V=>`${s3(v)}=${s3(V)}`).join("&"):`${s3(v)}=${s3(N)}`).filter(v=>v);return E.length?`?${E.join("&")}`:""}(E.queryParams);return`${v}${N}${"string"==typeof E.fragment?`#${function F3(x){return encodeURI(x)}(E.fragment)}`:""}`}}const S0=new L0;function l3(x){return x.segments.map(E=>m1(E)).join("/")}function T0(x,E){if(!x.hasChildren())return l3(x);if(E){const v=x.children[Q]?T0(x.children[Q],!1):"",N=[];return Object.entries(x.children).forEach(([V,c1])=>{V!==Q&&N.push(`${V}:${T0(c1,!1)}`)}),N.length>0?`${v}(${N.join("//")})`:v}{const v=function u0(x,E){let v=[];return Object.entries(x.children).forEach(([N,V])=>{N===Q&&(v=v.concat(E(V,N)))}),Object.entries(x.children).forEach(([N,V])=>{N!==Q&&(v=v.concat(E(V,N)))}),v}(x,(N,V)=>V===Q?[T0(x.children[Q],!1)]:[`${V}:${T0(N,!1)}`]);return 1===Object.keys(x.children).length&&null!=x.children[Q]?`${l3(x)}/${v[0]}`:`${l3(x)}/(${v.join("//")})`}}function V4(x){return encodeURIComponent(x).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function s3(x){return V4(x).replace(/%3B/gi,";")}function J2(x){return V4(x).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function s1(x){return decodeURIComponent(x)}function x1(x){return s1(x.replace(/\+/g,"%20"))}function m1(x){return`${J2(x.path)}${function D1(x){return Object.entries(x).map(([E,v])=>`;${J2(E)}=${J2(v)}`).join("")}(x.parameters)}`}const F2=/^[^\/()?;#]+/;function b2(x){const E=x.match(F2);return E?E[0]:""}const U0=/^[^\/()?;=#]+/,t4=/^[^=?&#]+/,z4=/^[^&#]+/;class F4{constructor(E){this.url=E,this.remaining=E}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y2([],{}):new Y2([],this.parseChildren())}parseQueryParams(){const E={};if(this.consumeOptional("?"))do{this.parseQueryParam(E)}while(this.consumeOptional("&"));return E}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const E=[];for(this.peekStartsWith("(")||E.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),E.push(this.parseSegment());let v={};this.peekStartsWith("/(")&&(this.capture("/"),v=this.parseParens(!0));let N={};return this.peekStartsWith("(")&&(N=this.parseParens(!1)),(E.length>0||Object.keys(v).length>0)&&(N[Q]=new Y2(E,v)),N}parseSegment(){const E=b2(this.remaining);if(""===E&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(E),new n3(s1(E),this.parseMatrixParams())}parseMatrixParams(){const E={};for(;this.consumeOptional(";");)this.parseParam(E);return E}parseParam(E){const v=function m0(x){const E=x.match(U0);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let N="";if(this.consumeOptional("=")){const V=b2(this.remaining);V&&(N=V,this.capture(N))}E[s1(v)]=s1(N)}parseQueryParam(E){const v=function N3(x){const E=x.match(t4);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let N="";if(this.consumeOptional("=")){const z1=function r4(x){const E=x.match(z4);return E?E[0]:""}(this.remaining);z1&&(N=z1,this.capture(N))}const V=x1(v),c1=x1(N);if(E.hasOwnProperty(V)){let z1=E[V];Array.isArray(z1)||(z1=[z1],E[V]=z1),z1.push(c1)}else E[V]=c1}parseParens(E){const v={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const N=b2(this.remaining),V=this.remaining[N.length];if("/"!==V&&")"!==V&&";"!==V)throw new g.wOt(4010,!1);let c1;N.indexOf(":")>-1?(c1=N.slice(0,N.indexOf(":")),this.capture(c1),this.capture(":")):E&&(c1=Q);const z1=this.parseChildren();v[c1]=1===Object.keys(z1).length?z1[Q]:new Y2([],z1),this.consumeOptional("//")}return v}peekStartsWith(E){return this.remaining.startsWith(E)}consumeOptional(E){return!!this.peekStartsWith(E)&&(this.remaining=this.remaining.substring(E.length),!0)}capture(E){if(!this.consumeOptional(E))throw new g.wOt(4011,!1)}}function I2(x){return x.segments.length>0?new Y2([],{[Q]:x}):x}function C0(x){const E={};for(const[N,V]of Object.entries(x.children)){const c1=C0(V);if(N===Q&&0===c1.segments.length&&c1.hasChildren())for(const[z1,W1]of Object.entries(c1.children))E[z1]=W1;else(c1.segments.length>0||c1.hasChildren())&&(E[N]=c1)}return function B2(x){if(1===x.numberOfChildren&&x.children[Q]){const E=x.children[Q];return new Y2(x.segments.concat(E.segments),E.children)}return x}(new Y2(x.segments,E))}function p4(x){return x instanceof T4}function u6(x){let E;const V=I2(function v(c1){const z1={};for(const V1 of c1.children){const O2=v(V1);z1[V1.outlet]=O2}const W1=new Y2(c1.url,z1);return c1===x&&(E=W1),W1}(x.root));return E??V}function c6(x,E,v,N){let V=x;for(;V.parent;)V=V.parent;if(0===E.length)return m6(V,V,V,v,N);const c1=function E3(x){if("string"==typeof x[0]&&1===x.length&&"/"===x[0])return new C1(!0,0,x);let E=0,v=!1;const N=x.reduce((V,c1,z1)=>{if("object"==typeof c1&&null!=c1){if(c1.outlets){const W1={};return Object.entries(c1.outlets).forEach(([V1,O2])=>{W1[V1]="string"==typeof O2?O2.split("/"):O2}),[...V,{outlets:W1}]}if(c1.segmentPath)return[...V,c1.segmentPath]}return"string"!=typeof c1?[...V,c1]:0===z1?(c1.split("/").forEach((W1,V1)=>{0==V1&&"."===W1||(0==V1&&""===W1?v=!0:".."===W1?E++:""!=W1&&V.push(W1))}),V):[...V,c1]},[]);return new C1(v,E,N)}(E);if(c1.toRoot())return m6(V,V,new Y2([],{}),v,N);const z1=function p6(x,E,v){if(x.isAbsolute)return new z3(E,!0,0);if(!v)return new z3(E,!1,NaN);if(null===v.parent)return new z3(v,!0,0);const N=R4(x.commands[0])?0:1;return function D6(x,E,v){let N=x,V=E,c1=v;for(;c1>V;){if(c1-=V,N=N.parent,!N)throw new g.wOt(4005,!1);V=N.segments.length}return new z3(N,!1,V-c1)}(v,v.segments.length-1+N,x.numberOfDoubleDots)}(c1,V,x),W1=z1.processChildren?F1(z1.segmentGroup,z1.index,c1.commands):b1(z1.segmentGroup,z1.index,c1.commands);return m6(V,z1.segmentGroup,W1,v,N)}function R4(x){return"object"==typeof x&&null!=x&&!x.outlets&&!x.segmentPath}function z0(x){return"object"==typeof x&&null!=x&&x.outlets}function m6(x,E,v,N,V){let z1,c1={};N&&Object.entries(N).forEach(([V1,O2])=>{c1[V1]=Array.isArray(O2)?O2.map(J0=>`${J0}`):`${O2}`}),z1=x===E?v:Y4(x,E,v);const W1=I2(C0(z1));return new T4(W1,c1,V)}function Y4(x,E,v){const N={};return Object.entries(x.children).forEach(([V,c1])=>{N[V]=c1===E?v:Y4(c1,E,v)}),new Y2(x.segments,N)}class C1{constructor(E,v,N){if(this.isAbsolute=E,this.numberOfDoubleDots=v,this.commands=N,E&&N.length>0&&R4(N[0]))throw new g.wOt(4003,!1);const V=N.find(z0);if(V&&V!==C4(N))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class z3{constructor(E,v,N){this.segmentGroup=E,this.processChildren=v,this.index=N}}function b1(x,E,v){if(x??=new Y2([],{}),0===x.segments.length&&x.hasChildren())return F1(x,E,v);const N=function J1(x,E,v){let N=0,V=E;const c1={match:!1,pathIndex:0,commandIndex:0};for(;V=v.length)return c1;const z1=x.segments[V],W1=v[N];if(z0(W1))break;const V1=`${W1}`,O2=N0&&void 0===V1)break;if(V1&&O2&&"object"==typeof O2&&void 0===O2.outlets){if(!M0(V1,O2,z1))return c1;N+=2}else{if(!M0(V1,{},z1))return c1;N++}V++}return{match:!0,pathIndex:V,commandIndex:N}}(x,E,v),V=v.slice(N.commandIndex);if(N.match&&N.pathIndexc1!==Q)&&x.children[Q]&&1===x.numberOfChildren&&0===x.children[Q].segments.length){const c1=F1(x.children[Q],E,v);return new Y2(x.segments,c1.children)}return Object.entries(N).forEach(([c1,z1])=>{"string"==typeof z1&&(z1=[z1]),null!==z1&&(V[c1]=b1(x.children[c1],E,z1))}),Object.entries(x.children).forEach(([c1,z1])=>{void 0===N[c1]&&(V[c1]=z1)}),new Y2(x.segments,V)}}function q1(x,E,v){const N=x.segments.slice(0,E);let V=0;for(;V{"string"==typeof N&&(N=[N]),null!==N&&(E[v]=q1(new Y2([],{}),0,N))}),E}function h2(x){const E={};return Object.entries(x).forEach(([v,N])=>E[v]=`${N}`),E}function M0(x,E,v){return x==v.path&&D0(E,v.parameters)}const X2="imperative";var P2=function(x){return x[x.NavigationStart=0]="NavigationStart",x[x.NavigationEnd=1]="NavigationEnd",x[x.NavigationCancel=2]="NavigationCancel",x[x.NavigationError=3]="NavigationError",x[x.RoutesRecognized=4]="RoutesRecognized",x[x.ResolveStart=5]="ResolveStart",x[x.ResolveEnd=6]="ResolveEnd",x[x.GuardsCheckStart=7]="GuardsCheckStart",x[x.GuardsCheckEnd=8]="GuardsCheckEnd",x[x.RouteConfigLoadStart=9]="RouteConfigLoadStart",x[x.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",x[x.ChildActivationStart=11]="ChildActivationStart",x[x.ChildActivationEnd=12]="ChildActivationEnd",x[x.ActivationStart=13]="ActivationStart",x[x.ActivationEnd=14]="ActivationEnd",x[x.Scroll=15]="Scroll",x[x.NavigationSkipped=16]="NavigationSkipped",x}(P2||{});class e4{constructor(E,v){this.id=E,this.url=v}}class F0 extends e4{constructor(E,v,N="imperative",V=null){super(E,v),this.type=P2.NavigationStart,this.navigationTrigger=N,this.restoredState=V}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class P0 extends e4{constructor(E,v,N){super(E,v),this.urlAfterRedirects=N,this.type=P2.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var o4=function(x){return x[x.Redirect=0]="Redirect",x[x.SupersededByNewNavigation=1]="SupersededByNewNavigation",x[x.NoDataFromResolver=2]="NoDataFromResolver",x[x.GuardRejected=3]="GuardRejected",x}(o4||{}),v4=function(x){return x[x.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",x[x.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",x}(v4||{});class R0 extends e4{constructor(E,v,N,V){super(E,v),this.reason=N,this.code=V,this.type=P2.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class A0 extends e4{constructor(E,v,N,V){super(E,v),this.reason=N,this.code=V,this.type=P2.NavigationSkipped}}class A4 extends e4{constructor(E,v,N,V){super(E,v),this.error=N,this.target=V,this.type=P2.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class W4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class d4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class c4 extends e4{constructor(E,v,N,V,c1){super(E,v),this.urlAfterRedirects=N,this.state=V,this.shouldActivate=c1,this.type=P2.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class I4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class a0{constructor(E){this.route=E,this.type=P2.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class H2{constructor(E){this.route=E,this.type=P2.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class p8{constructor(E){this.snapshot=E,this.type=P2.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a3{constructor(E){this.snapshot=E,this.type=P2.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h6{constructor(E){this.snapshot=E,this.type=P2.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class T6{constructor(E){this.snapshot=E,this.type=P2.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R8{constructor(E,v,N){this.routerEvent=E,this.position=v,this.anchor=N,this.type=P2.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class t6{}class b0{constructor(E){this.url=E}}class Q2{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new g2,this.attachRef=null}}let g2=(()=>{class x{constructor(){this.contexts=new Map}onChildOutletCreated(v,N){const V=this.getOrCreateContext(v);V.outlet=N,this.contexts.set(v,V)}onChildOutletDestroyed(v){const N=this.getContext(v);N&&(N.outlet=null,N.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let N=this.getContext(v);return N||(N=new Q2,this.contexts.set(v,N)),N}getContext(v){return this.contexts.get(v)||null}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();class h3{constructor(E){this._root=E}get root(){return this._root.value}parent(E){const v=this.pathFromRoot(E);return v.length>1?v[v.length-2]:null}children(E){const v=J4(E,this._root);return v?v.children.map(N=>N.value):[]}firstChild(E){const v=J4(E,this._root);return v&&v.children.length>0?v.children[0].value:null}siblings(E){const v=R6(E,this._root);return v.length<2?[]:v[v.length-2].children.map(V=>V.value).filter(V=>V!==E)}pathFromRoot(E){return R6(E,this._root).map(v=>v.value)}}function J4(x,E){if(x===E.value)return E;for(const v of E.children){const N=J4(x,v);if(N)return N}return null}function R6(x,E){if(x===E.value)return[E];for(const v of E.children){const N=R6(x,v);if(N.length)return N.unshift(E),N}return[]}class n4{constructor(E,v){this.value=E,this.children=v}toString(){return`TreeNode(${this.value})`}}function P4(x){const E={};return x&&x.children.forEach(v=>E[v.value.outlet]=v),E}class D3 extends h3{constructor(E,v){super(E),this.snapshot=v,v3(this,E)}toString(){return this.snapshot.toString()}}function n6(x){const E=function V0(x){const c1=new M3([],{},{},"",{},Q,x,null,{});return new h8("",new n4(c1,[]))}(x),v=new S.t([new n3("",{})]),N=new S.t({}),V=new S.t({}),c1=new S.t({}),z1=new S.t(""),W1=new g6(v,N,c1,z1,V,Q,x,E.root);return W1.snapshot=E.root,new D3(new n4(W1,[]),E)}class g6{constructor(E,v,N,V,c1,z1,W1,V1){this.urlSubject=E,this.paramsSubject=v,this.queryParamsSubject=N,this.fragmentSubject=V,this.dataSubject=c1,this.outlet=z1,this.component=W1,this._futureSnapshot=V1,this.title=this.dataSubject?.pipe((0,G1.T)(O2=>O2[t2]))??(0,_.of)(void 0),this.url=E,this.params=v,this.queryParams=N,this.fragment=V,this.data=c1}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,G1.T)(E=>p2(E))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,G1.T)(E=>p2(E))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function A6(x,E,v="emptyOnly"){let N;const{routeConfig:V}=x;return N=null===E||"always"!==v&&""!==V?.path&&(E.component||E.routeConfig?.loadComponent)?{params:{...x.params},data:{...x.data},resolve:{...x.data,...x._resolvedData??{}}}:{params:{...E.params,...x.params},data:{...E.data,...x.data},resolve:{...x.data,...E.data,...V?.data,...x._resolvedData}},V&&p0(V)&&(N.resolve[t2]=V.title),N}class M3{get title(){return this.data?.[t2]}constructor(E,v,N,V,c1,z1,W1,V1,O2){this.url=E,this.params=v,this.queryParams=N,this.fragment=V,this.data=c1,this.outlet=z1,this.component=W1,this.routeConfig=V1,this._resolve=O2}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=p2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=p2(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(N=>N.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class h8 extends h3{constructor(E,v){super(v),this.url=E,v3(this,v)}toString(){return g8(this._root)}}function v3(x,E){E.value._routerState=x,E.children.forEach(v=>v3(x,v))}function g8(x){const E=x.children.length>0?` { ${x.children.map(g8).join(", ")} } `:"";return`${x.value}${E}`}function k4(x){if(x.snapshot){const E=x.snapshot,v=x._futureSnapshot;x.snapshot=v,D0(E.queryParams,v.queryParams)||x.queryParamsSubject.next(v.queryParams),E.fragment!==v.fragment&&x.fragmentSubject.next(v.fragment),D0(E.params,v.params)||x.paramsSubject.next(v.params),function s0(x,E){if(x.length!==E.length)return!1;for(let v=0;vD0(v.parameters,E[N].parameters))}(x.url,E.url);return v&&!(!x.parent!=!E.parent)&&(!x.parent||V3(x.parent,E.parent))}function p0(x){return"string"==typeof x.title||null===x.title}let g3=(()=>{class x{constructor(){this.activated=null,this._activatedRoute=null,this.name=Q,this.activateEvents=new g.bkB,this.deactivateEvents=new g.bkB,this.attachEvents=new g.bkB,this.detachEvents=new g.bkB,this.parentContexts=(0,g.WQX)(g2),this.location=(0,g.WQX)(g.c1b),this.changeDetector=(0,g.WQX)(g.gRc),this.environmentInjector=(0,g.WQX)(g.uvJ),this.inputBinder=(0,g.WQX)(U3,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(v){if(v.name){const{firstChange:N,previousValue:V}=v.name;if(N)return;this.isTrackedInParentContexts(V)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(V)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(v){return this.parentContexts.getContext(v)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const v=this.parentContexts.getContext(this.name);v?.route&&(v.attachRef?this.attach(v.attachRef,v.route):this.activateWith(v.route,v.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.wOt(4012,!1);this.location.detach();const v=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(v.instance),v}attach(v,N){this.activated=v,this._activatedRoute=N,this.location.insert(v.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(v.instance)}deactivate(){if(this.activated){const v=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(v)}}activateWith(v,N){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=v;const V=this.location,z1=v.snapshot.component,W1=this.parentContexts.getOrCreateContext(this.name).children,V1=new T3(v,W1,V.injector);this.activated=V.createComponent(z1,{index:V.length,injector:V1,environmentInjector:N??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275dir=g.FsC({type:x,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.OA$]})}}return x})();class T3{__ngOutletInjector(E){return new T3(this.route,this.childContexts,E)}constructor(E,v,N){this.route=E,this.childContexts=v,this.parent=N}get(E,v){return E===g6?this.route:E===g2?this.childContexts:this.parent.get(E,v)}}const U3=new g.nKC("");let I6=(()=>{class x{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(v){this.unsubscribeFromRouteData(v),this.subscribeToRouteData(v)}unsubscribeFromRouteData(v){this.outletDataSubscriptions.get(v)?.unsubscribe(),this.outletDataSubscriptions.delete(v)}subscribeToRouteData(v){const{activatedRoute:N}=v,V=(0,A.z)([N.queryParams,N.params,N.data]).pipe((0,O1.n)(([c1,z1,W1],V1)=>(W1={...c1,...z1,...W1},0===V1?(0,_.of)(W1):Promise.resolve(W1)))).subscribe(c1=>{if(!v.isActivated||!v.activatedComponentRef||v.activatedRoute!==N||null===N.component)return void this.unsubscribeFromRouteData(v);const z1=(0,g.HJs)(N.component);if(z1)for(const{templateName:W1}of z1.inputs)v.activatedComponentRef.setInput(W1,c1[W1]);else this.unsubscribeFromRouteData(v)});this.outletDataSubscriptions.set(v,V)}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function x3(x,E,v){if(v&&x.shouldReuseRoute(E.value,v.value.snapshot)){const N=v.value;N._futureSnapshot=E.value;const V=function d3(x,E,v){return E.children.map(N=>{for(const V of v.children)if(x.shouldReuseRoute(N.value,V.value.snapshot))return x3(x,N,V);return x3(x,N)})}(x,E,v);return new n4(N,V)}{if(x.shouldAttach(E.value)){const c1=x.retrieve(E.value);if(null!==c1){const z1=c1.route;return z1.value._futureSnapshot=E.value,z1.children=E.children.map(W1=>x3(x,W1)),z1}}const N=function G0(x){return new g6(new S.t(x.url),new S.t(x.params),new S.t(x.queryParams),new S.t(x.fragment),new S.t(x.data),x.outlet,x.component,x)}(E.value),V=E.children.map(c1=>x3(x,c1));return new n4(N,V)}}const l6="ngNavigationCancelingError";function G3(x,E){const{redirectTo:v,navigationBehaviorOptions:N}=p4(E)?{redirectTo:E,navigationBehaviorOptions:void 0}:E,V=he(!1,o4.Redirect);return V.url=v,V.navigationBehaviorOptions=N,V}function he(x,E){const v=new Error(`NavigationCancelingError: ${x||""}`);return v[l6]=!0,v.cancellationCode=E,v}function f3(x){return!!x&&x[l6]}let o3=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275cmp=g.VBU({type:x,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(N,V){1&N&&g.nrm(0,"router-outlet")},dependencies:[g3],encapsulation:2})}}return x})();function s6(x){const E=x.children&&x.children.map(s6),v=E?{...x,children:E}:{...x};return!v.component&&!v.loadComponent&&(E||v.loadChildren)&&v.outlet&&v.outlet!==Q&&(v.component=o3),v}function x4(x){return x.outlet||Q}function a6(x){if(!x)return null;if(x.routeConfig?._injector)return x.routeConfig._injector;for(let E=x.parent;E;E=E.parent){const v=E.routeConfig;if(v?._loadedInjector)return v._loadedInjector;if(v?._injector)return v._injector}return null}class m3{constructor(E,v,N,V,c1){this.routeReuseStrategy=E,this.futureState=v,this.currState=N,this.forwardEvent=V,this.inputBindingEnabled=c1}activate(E){const v=this.futureState._root,N=this.currState?this.currState._root:null;this.deactivateChildRoutes(v,N,E),k4(this.futureState.root),this.activateChildRoutes(v,N,E)}deactivateChildRoutes(E,v,N){const V=P4(v);E.children.forEach(c1=>{const z1=c1.value.outlet;this.deactivateRoutes(c1,V[z1],N),delete V[z1]}),Object.values(V).forEach(c1=>{this.deactivateRouteAndItsChildren(c1,N)})}deactivateRoutes(E,v,N){const V=E.value,c1=v?v.value:null;if(V===c1)if(V.component){const z1=N.getContext(V.outlet);z1&&this.deactivateChildRoutes(E,v,z1.children)}else this.deactivateChildRoutes(E,v,N);else c1&&this.deactivateRouteAndItsChildren(v,N)}deactivateRouteAndItsChildren(E,v){E.value.component&&this.routeReuseStrategy.shouldDetach(E.value.snapshot)?this.detachAndStoreRouteSubtree(E,v):this.deactivateRouteAndOutlet(E,v)}detachAndStoreRouteSubtree(E,v){const N=v.getContext(E.value.outlet),V=N&&E.value.component?N.children:v,c1=P4(E);for(const z1 of Object.values(c1))this.deactivateRouteAndItsChildren(z1,V);if(N&&N.outlet){const z1=N.outlet.detach(),W1=N.children.onOutletDeactivated();this.routeReuseStrategy.store(E.value.snapshot,{componentRef:z1,route:E,contexts:W1})}}deactivateRouteAndOutlet(E,v){const N=v.getContext(E.value.outlet),V=N&&E.value.component?N.children:v,c1=P4(E);for(const z1 of Object.values(c1))this.deactivateRouteAndItsChildren(z1,V);N&&(N.outlet&&(N.outlet.deactivate(),N.children.onOutletDeactivated()),N.attachRef=null,N.route=null)}activateChildRoutes(E,v,N){const V=P4(v);E.children.forEach(c1=>{this.activateRoutes(c1,V[c1.value.outlet],N),this.forwardEvent(new T6(c1.value.snapshot))}),E.children.length&&this.forwardEvent(new a3(E.value.snapshot))}activateRoutes(E,v,N){const V=E.value,c1=v?v.value:null;if(k4(V),V===c1)if(V.component){const z1=N.getOrCreateContext(V.outlet);this.activateChildRoutes(E,v,z1.children)}else this.activateChildRoutes(E,v,N);else if(V.component){const z1=N.getOrCreateContext(V.outlet);if(this.routeReuseStrategy.shouldAttach(V.snapshot)){const W1=this.routeReuseStrategy.retrieve(V.snapshot);this.routeReuseStrategy.store(V.snapshot,null),z1.children.onOutletReAttached(W1.contexts),z1.attachRef=W1.componentRef,z1.route=W1.route.value,z1.outlet&&z1.outlet.attach(W1.componentRef,W1.route.value),k4(W1.route.value),this.activateChildRoutes(E,null,z1.children)}else{const W1=a6(V.snapshot);z1.attachRef=null,z1.route=V,z1.injector=W1,z1.outlet&&z1.outlet.activateWith(V,z1.injector),this.activateChildRoutes(E,null,z1.children)}}else this.activateChildRoutes(E,null,N)}}class _6{constructor(E){this.path=E,this.route=this.path[this.path.length-1]}}class w3{constructor(E,v){this.component=E,this.route=v}}function j6(x,E,v){const N=x._root;return Z4(N,E?E._root:null,v,[N.value])}function _3(x,E){const v=Symbol(),N=E.get(x,v);return N===v?"function"!=typeof x||(0,g.LfX)(x)?E.get(x):x:N}function Z4(x,E,v,N,V={canDeactivateChecks:[],canActivateChecks:[]}){const c1=P4(E);return x.children.forEach(z1=>{(function O6(x,E,v,N,V={canDeactivateChecks:[],canActivateChecks:[]}){const c1=x.value,z1=E?E.value:null,W1=v?v.getContext(x.value.outlet):null;if(z1&&c1.routeConfig===z1.routeConfig){const V1=function o6(x,E,v){if("function"==typeof v)return v(x,E);switch(v){case"pathParamsChange":return!H4(x.url,E.url);case"pathParamsOrQueryParamsChange":return!H4(x.url,E.url)||!D0(x.queryParams,E.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!V3(x,E)||!D0(x.queryParams,E.queryParams);default:return!V3(x,E)}}(z1,c1,c1.routeConfig.runGuardsAndResolvers);V1?V.canActivateChecks.push(new _6(N)):(c1.data=z1.data,c1._resolvedData=z1._resolvedData),Z4(x,E,c1.component?W1?W1.children:null:v,N,V),V1&&W1&&W1.outlet&&W1.outlet.isActivated&&V.canDeactivateChecks.push(new w3(W1.outlet.component,z1))}else z1&&B(E,W1,V),V.canActivateChecks.push(new _6(N)),Z4(x,null,c1.component?W1?W1.children:null:v,N,V)})(z1,c1[z1.value.outlet],v,N.concat([z1.value]),V),delete c1[z1.value.outlet]}),Object.entries(c1).forEach(([z1,W1])=>B(W1,v.getContext(z1),V)),V}function B(x,E,v){const N=P4(x),V=x.value;Object.entries(N).forEach(([c1,z1])=>{B(z1,V.component?E?E.children.getContext(c1):null:E,v)}),v.canDeactivateChecks.push(new w3(V.component&&E&&E.outlet&&E.outlet.isActivated?E.outlet.component:null,V))}function G(x){return"function"==typeof x}function A3(x){return x instanceof $.G||"EmptyError"===x?.name}const O4=Symbol("INITIAL_VALUE");function F6(){return(0,O1.n)(x=>(0,A.z)(x.map(E=>E.pipe((0,d0.s)(1),(0,d2.Z)(O4)))).pipe((0,G1.T)(E=>{for(const v of E)if(!0!==v){if(v===O4)return O4;if(!1===v||v instanceof T4)return v}return!0}),(0,_2.p)(E=>E!==O4),(0,d0.s)(1)))}function W8(x){return(0,p1.F)((0,X0.M)(E=>{if(p4(E))throw G3(0,E)}),(0,G1.T)(E=>!0===E))}class t8{constructor(E){this.segmentGroup=E||null}}class B6 extends Error{constructor(E){super(),this.urlTree=E}}function L6(x){return(0,Y.$)(new t8(x))}class E4{constructor(E,v){this.urlSerializer=E,this.urlTree=v}lineralizeSegments(E,v){let N=[],V=v.root;for(;;){if(N=N.concat(V.segments),0===V.numberOfChildren)return(0,_.of)(N);if(V.numberOfChildren>1||!V.children[Q])return(0,Y.$)(new g.wOt(4e3,!1));V=V.children[Q]}}applyRedirectCommands(E,v,N){const V=this.applyRedirectCreateUrlTree(v,this.urlSerializer.parse(v),E,N);if(v.startsWith("/"))throw new B6(V);return V}applyRedirectCreateUrlTree(E,v,N,V){const c1=this.createSegmentGroup(E,v.root,N,V);return new T4(c1,this.createQueryParams(v.queryParams,this.urlTree.queryParams),v.fragment)}createQueryParams(E,v){const N={};return Object.entries(E).forEach(([V,c1])=>{if("string"==typeof c1&&c1.startsWith(":")){const W1=c1.substring(1);N[V]=v[W1]}else N[V]=c1}),N}createSegmentGroup(E,v,N,V){const c1=this.createSegments(E,v.segments,N,V);let z1={};return Object.entries(v.children).forEach(([W1,V1])=>{z1[W1]=this.createSegmentGroup(E,V1,N,V)}),new Y2(c1,z1)}createSegments(E,v,N,V){return v.map(c1=>c1.path.startsWith(":")?this.findPosParam(E,c1,V):this.findOrReturn(c1,N))}findPosParam(E,v,N){const V=N[v.path.substring(1)];if(!V)throw new g.wOt(4001,!1);return V}findOrReturn(E,v){let N=0;for(const V of v){if(V.path===E.path)return v.splice(N),V;N++}return E}}const w4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p3(x,E,v,N,V){const c1=K4(x,E,v);return c1.matched?(N=function Q4(x,E){return x.providers&&!x._injector&&(x._injector=(0,g.Ol2)(x.providers,E,`Route: ${x.path}`)),x._injector??E}(E,N),function Ce(x,E,v,N){const V=E.canMatch;if(!V||0===V.length)return(0,_.of)(!0);const c1=V.map(z1=>{const W1=_3(z1,x);return m2(function b3(x){return x&&G(x.canMatch)}(W1)?W1.canMatch(E,v):(0,g.N4e)(x,()=>W1(E,v)))});return(0,_.of)(c1).pipe(F6(),W8())}(N,E,v).pipe((0,G1.T)(z1=>!0===z1?c1:{...w4}))):(0,_.of)(c1)}function K4(x,E,v){if("**"===E.path)return function je(x){return{matched:!0,parameters:x.length>0?C4(x).parameters:{},consumedSegments:x,remainingSegments:[],positionalParamSegments:{}}}(v);if(""===E.path)return"full"===E.pathMatch&&(x.hasChildren()||v.length>0)?{...w4}:{matched:!0,consumedSegments:[],remainingSegments:v,parameters:{},positionalParamSegments:{}};const V=(E.matcher||l0)(v,x,E);if(!V)return{...w4};const c1={};Object.entries(V.posParams??{}).forEach(([W1,V1])=>{c1[W1]=V1.path});const z1=V.consumed.length>0?{...c1,...V.consumed[V.consumed.length-1].parameters}:c1;return{matched:!0,consumedSegments:V.consumed,remainingSegments:v.slice(V.consumed.length),parameters:z1,positionalParamSegments:V.posParams??{}}}function A8(x,E,v,N){return v.length>0&&function a5(x,E,v){return v.some(N=>z8(x,E,N)&&x4(N)!==Q)}(x,v,N)?{segmentGroup:new Y2(E,$e(N,new Y2(v,x.children))),slicedSegments:[]}:0===v.length&&function C8(x,E,v){return v.some(N=>z8(x,E,N))}(x,v,N)?{segmentGroup:new Y2(x.segments,n8(x,v,N,x.children)),slicedSegments:v}:{segmentGroup:new Y2(x.segments,x.children),slicedSegments:v}}function n8(x,E,v,N){const V={};for(const c1 of v)if(z8(x,E,c1)&&!N[x4(c1)]){const z1=new Y2([],{});V[x4(c1)]=z1}return{...N,...V}}function $e(x,E){const v={};v[Q]=E;for(const N of x)if(""===N.path&&x4(N)!==Q){const V=new Y2([],{});v[x4(N)]=V}return v}function z8(x,E,v){return(!(x.hasChildren()||E.length>0)||"full"!==v.pathMatch)&&""===v.path}class I8{}class i6{constructor(E,v,N,V,c1,z1,W1){this.injector=E,this.configLoader=v,this.rootComponentType=N,this.config=V,this.urlTree=c1,this.paramsInheritanceStrategy=z1,this.urlSerializer=W1,this.applyRedirects=new E4(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(E){return new g.wOt(4002,`'${E.segmentGroup}'`)}recognize(){const E=A8(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(E).pipe((0,G1.T)(v=>{const N=new M3([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Q,this.rootComponentType,null,{}),V=new n4(N,v),c1=new h8("",V),z1=function M4(x,E,v=null,N=null){return c6(u6(x),E,v,N)}(N,[],this.urlTree.queryParams,this.urlTree.fragment);return z1.queryParams=this.urlTree.queryParams,c1.url=this.urlSerializer.serialize(z1),this.inheritParamsAndData(c1._root,null),{state:c1,tree:z1}}))}match(E){return this.processSegmentGroup(this.injector,this.config,E,Q).pipe((0,Z0.W)(N=>{if(N instanceof B6)return this.urlTree=N.urlTree,this.match(N.urlTree.root);throw N instanceof t8?this.noMatchError(N):N}))}inheritParamsAndData(E,v){const N=E.value,V=A6(N,v,this.paramsInheritanceStrategy);N.params=Object.freeze(V.params),N.data=Object.freeze(V.data),E.children.forEach(c1=>this.inheritParamsAndData(c1,N))}processSegmentGroup(E,v,N,V){return 0===N.segments.length&&N.hasChildren()?this.processChildren(E,v,N):this.processSegment(E,v,N,N.segments,V,!0).pipe((0,G1.T)(c1=>c1 instanceof n4?[c1]:[]))}processChildren(E,v,N){const V=[];for(const c1 of Object.keys(N.children))"primary"===c1?V.unshift(c1):V.push(c1);return(0,p.H)(V).pipe((0,t0.H)(c1=>{const z1=N.children[c1],W1=function P6(x,E){const v=x.filter(N=>x4(N)===E);return v.push(...x.filter(N=>x4(N)!==E)),v}(v,c1);return this.processSegmentGroup(E,W1,z1,c1)}),function x2(x,E){return(0,M1.N)((0,B4.S)(x,E,arguments.length>=2,!0))}((c1,z1)=>(c1.push(...z1),c1)),(0,w0.U)(null),function E1(x,E){const v=arguments.length>=2;return N=>N.pipe(x?(0,_2.p)((V,c1)=>x(V,c1,N)):C2.D,v1(1),v?(0,w0.U)(E):(0,e2.v)(()=>new $.G))}(),(0,w2.Z)(c1=>{if(null===c1)return L6(N);const z1=E2(c1);return function v6(x){x.sort((E,v)=>E.value.outlet===Q?-1:v.value.outlet===Q?1:E.value.outlet.localeCompare(v.value.outlet))}(z1),(0,_.of)(z1)}))}processSegment(E,v,N,V,c1,z1){return(0,p.H)(v).pipe((0,t0.H)(W1=>this.processSegmentAgainstRoute(W1._injector??E,v,W1,N,V,c1,z1).pipe((0,Z0.W)(V1=>{if(V1 instanceof t8)return(0,_.of)(null);throw V1}))),(0,v2.$)(W1=>!!W1),(0,Z0.W)(W1=>{if(A3(W1))return function J8(x,E,v){return 0===E.length&&!x.children[v]}(N,V,c1)?(0,_.of)(new I8):L6(N);throw W1}))}processSegmentAgainstRoute(E,v,N,V,c1,z1,W1){return function M8(x,E,v,N){return!!(x4(x)===N||N!==Q&&z8(E,v,x))&&K4(E,x,v).matched}(N,V,c1,z1)?void 0===N.redirectTo?this.matchSegmentAgainstRoute(E,V,N,c1,z1):this.allowRedirects&&W1?this.expandSegmentAgainstRouteUsingRedirect(E,V,v,N,c1,z1):L6(V):L6(V)}expandSegmentAgainstRouteUsingRedirect(E,v,N,V,c1,z1){const{matched:W1,consumedSegments:V1,positionalParamSegments:O2,remainingSegments:J0}=K4(v,V,c1);if(!W1)return L6(v);V.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Q0=this.applyRedirects.applyRedirectCommands(V1,V.redirectTo,O2);return this.applyRedirects.lineralizeSegments(V,Q0).pipe((0,w2.Z)(D4=>this.processSegment(E,N,v,D4.concat(J0),z1,!1)))}matchSegmentAgainstRoute(E,v,N,V,c1){const z1=p3(v,N,V,E);return"**"===N.path&&(v.children={}),z1.pipe((0,O1.n)(W1=>W1.matched?this.getChildConfig(E=N._injector??E,N,V).pipe((0,O1.n)(({routes:V1})=>{const O2=N._loadedInjector??E,{consumedSegments:J0,remainingSegments:Q0,parameters:D4}=W1,He=new M3(J0,D4,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function ze(x){return x.data||{}}(N),x4(N),N.component??N._loadedComponent??null,N,function Q8(x){return x.resolve||{}}(N)),{segmentGroup:Fe,slicedSegments:ve}=A8(v,J0,Q0,V1);if(0===ve.length&&Fe.hasChildren())return this.processChildren(O2,V1,Fe).pipe((0,G1.T)(s8=>null===s8?null:new n4(He,s8)));if(0===V1.length&&0===ve.length)return(0,_.of)(new n4(He,[]));const ke=x4(N)===c1;return this.processSegment(O2,V1,Fe,ve,ke?Q:c1,!0).pipe((0,G1.T)(s8=>new n4(He,s8 instanceof n4?[s8]:[])))})):L6(v)))}getChildConfig(E,v,N){return v.children?(0,_.of)({routes:v.children,injector:E}):v.loadChildren?void 0!==v._loadedRoutes?(0,_.of)({routes:v._loadedRoutes,injector:v._loadedInjector}):function L8(x,E,v,N){const V=E.canLoad;if(void 0===V||0===V.length)return(0,_.of)(!0);const c1=V.map(z1=>{const W1=_3(z1,x);return m2(function t1(x){return x&&G(x.canLoad)}(W1)?W1.canLoad(E,v):(0,g.N4e)(x,()=>W1(E,v)))});return(0,_.of)(c1).pipe(F6(),W8())}(E,v,N).pipe((0,w2.Z)(V=>V?this.configLoader.loadChildren(E,v).pipe((0,X0.M)(c1=>{v._loadedRoutes=c1.routes,v._loadedInjector=c1.injector})):function j0(x){return(0,Y.$)(he(!1,o4.GuardRejected))}())):(0,_.of)({routes:[],injector:E})}}function Oe(x){const E=x.value.routeConfig;return E&&""===E.path}function E2(x){const E=[],v=new Set;for(const N of x){if(!Oe(N)){E.push(N);continue}const V=E.find(c1=>N.value.routeConfig===c1.value.routeConfig);void 0!==V?(V.children.push(...N.children),v.add(V)):E.push(N)}for(const N of v){const V=E2(N.children);E.push(new n4(N.value,V))}return E.filter(N=>!v.has(N))}function Z8(x){const E=x.children.map(v=>Z8(v)).flat();return[x,...E]}function y8(x){return(0,O1.n)(E=>{const v=x(E);return v?(0,p.H)(v).pipe((0,G1.T)(()=>E)):(0,_.of)(E)})}let Me=(()=>{class x{buildTitle(v){let N,V=v.root;for(;void 0!==V;)N=this.getResolvedTitleForRoute(V)??N,V=V.children.find(c1=>c1.outlet===Q);return N}getResolvedTitleForRoute(v){return v.data[t2]}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(Ve),providedIn:"root"})}}return x})(),Ve=(()=>{class x extends Me{constructor(v){super(),this.title=v}updateTitle(v){const N=this.buildTitle(v);void 0!==N&&this.title.setTitle(N)}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(K1.hE))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const z6=new g.nKC("",{providedIn:"root",factory:()=>({})}),I3=new g.nKC("");let j8=(()=>{class x{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(v){if(this.componentLoaders.get(v))return this.componentLoaders.get(v);if(v._loadedComponent)return(0,_.of)(v._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(v);const N=m2(v.loadComponent()).pipe((0,G1.T)(F8),(0,X0.M)(c1=>{this.onLoadEndListener&&this.onLoadEndListener(v),v._loadedComponent=c1}),(0,A1.j)(()=>{this.componentLoaders.delete(v)})),V=new o2(N,()=>new S2.B).pipe($1());return this.componentLoaders.set(v,V),V}loadChildren(v,N){if(this.childrenLoaders.get(N))return this.childrenLoaders.get(N);if(N._loadedRoutes)return(0,_.of)({routes:N._loadedRoutes,injector:N._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(N);const c1=function xe(x,E,v,N){return m2(x.loadChildren()).pipe((0,G1.T)(F8),(0,w2.Z)(V=>V instanceof g.Co$||Array.isArray(V)?(0,_.of)(V):(0,p.H)(E.compileModuleAsync(V))),(0,G1.T)(V=>{N&&N(x);let c1,z1,W1=!1;return Array.isArray(V)?(z1=V,!0):(c1=V.create(v).injector,z1=c1.get(I3,[],{optional:!0,self:!0}).flat()),{routes:z1.map(s6),injector:c1}}))}(N,this.compiler,v,this.onLoadEndListener).pipe((0,A1.j)(()=>{this.childrenLoaders.delete(N)})),z1=new o2(c1,()=>new S2.B).pipe($1());return this.childrenLoaders.set(N,z1),z1}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function F8(x){return function o5(x){return x&&"object"==typeof x&&"default"in x}(x)?x.default:x}let r6=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(l8),providedIn:"root"})}}return x})(),l8=(()=>{class x{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,N){return v}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const k6=new g.nKC(""),w=new g.nKC("");function q(x,E,v){const N=x.get(w),V=x.get(c2.qQ);return x.get(g.SKi).runOutsideAngular(()=>{if(!V.startViewTransition||N.skipNextTransition)return N.skipNextTransition=!1,new Promise(O2=>setTimeout(O2));let c1;const z1=new Promise(O2=>{c1=O2}),W1=V.startViewTransition(()=>(c1(),function R(x){return new Promise(E=>{(0,g.mal)(E,{injector:x})})}(x))),{onViewTransitionCreated:V1}=N;return V1&&(0,g.N4e)(x,()=>V1({transition:W1,from:E,to:v})),z1})}let U=(()=>{class x{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new S2.B,this.transitionAbortSubject=new S2.B,this.configLoader=(0,g.WQX)(j8),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)($4),this.rootContexts=(0,g.WQX)(g2),this.location=(0,g.WQX)(c2.aZ),this.inputBindingEnabled=null!==(0,g.WQX)(U3,{optional:!0}),this.titleStrategy=(0,g.WQX)(Me),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,g.WQX)(r6),this.createViewTransition=(0,g.WQX)(k6,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,_.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=V=>this.events.next(new H2(V)),this.configLoader.onLoadStartListener=V=>this.events.next(new a0(V))}complete(){this.transitions?.complete()}handleNavigationRequest(v){const N=++this.navigationId;this.transitions?.next({...this.transitions.value,...v,id:N})}setupNavigations(v,N,V){return this.transitions=new S.t({id:0,currentUrlTree:N,currentRawUrl:N,extractedUrl:this.urlHandlingStrategy.extract(N),urlAfterRedirects:this.urlHandlingStrategy.extract(N),rawUrl:N,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:X2,restoredState:null,currentSnapshot:V.snapshot,targetSnapshot:null,currentRouterState:V,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,_2.p)(c1=>0!==c1.id),(0,G1.T)(c1=>({...c1,extractedUrl:this.urlHandlingStrategy.extract(c1.rawUrl)})),(0,O1.n)(c1=>{let z1=!1,W1=!1;return(0,_.of)(c1).pipe((0,O1.n)(V1=>{if(this.navigationId>c1.id)return this.cancelNavigationTransition(c1,"",o4.SupersededByNewNavigation),h1.w;this.currentTransition=c1,this.currentNavigation={id:V1.id,initialUrl:V1.rawUrl,extractedUrl:V1.extractedUrl,trigger:V1.source,extras:V1.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const O2=!v.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!O2&&"reload"!==(V1.extras.onSameUrlNavigation??v.onSameUrlNavigation)){const Q0="";return this.events.next(new A0(V1.id,this.urlSerializer.serialize(V1.rawUrl),Q0,v4.IgnoredSameUrlNavigation)),V1.resolve(null),h1.w}if(this.urlHandlingStrategy.shouldProcessUrl(V1.rawUrl))return(0,_.of)(V1).pipe((0,O1.n)(Q0=>{const D4=this.transitions?.getValue();return this.events.next(new F0(Q0.id,this.urlSerializer.serialize(Q0.extractedUrl),Q0.source,Q0.restoredState)),D4!==this.transitions?.getValue()?h1.w:Promise.resolve(Q0)}),function x8(x,E,v,N,V,c1){return(0,w2.Z)(z1=>function A5(x,E,v,N,V,c1,z1="emptyOnly"){return new i6(x,E,v,N,V,z1,c1).recognize()}(x,E,v,N,z1.extractedUrl,V,c1).pipe((0,G1.T)(({state:W1,tree:V1})=>({...z1,targetSnapshot:W1,urlAfterRedirects:V1}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,v.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,X0.M)(Q0=>{c1.targetSnapshot=Q0.targetSnapshot,c1.urlAfterRedirects=Q0.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Q0.urlAfterRedirects};const D4=new W4(Q0.id,this.urlSerializer.serialize(Q0.extractedUrl),this.urlSerializer.serialize(Q0.urlAfterRedirects),Q0.targetSnapshot);this.events.next(D4)}));if(O2&&this.urlHandlingStrategy.shouldProcessUrl(V1.currentRawUrl)){const{id:Q0,extractedUrl:D4,source:He,restoredState:Fe,extras:ve}=V1,ke=new F0(Q0,this.urlSerializer.serialize(D4),He,Fe);this.events.next(ke);const s8=n6(this.rootComponentType).snapshot;return this.currentTransition=c1={...V1,targetSnapshot:s8,urlAfterRedirects:D4,extras:{...ve,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=D4,(0,_.of)(c1)}{const Q0="";return this.events.next(new A0(V1.id,this.urlSerializer.serialize(V1.extractedUrl),Q0,v4.IgnoredByUrlHandlingStrategy)),V1.resolve(null),h1.w}}),(0,X0.M)(V1=>{const O2=new d4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot);this.events.next(O2)}),(0,G1.T)(V1=>(this.currentTransition=c1={...V1,guards:j6(V1.targetSnapshot,V1.currentSnapshot,this.rootContexts)},c1)),function h4(x,E){return(0,w2.Z)(v=>{const{targetSnapshot:N,currentSnapshot:V,guards:{canActivateChecks:c1,canDeactivateChecks:z1}}=v;return 0===z1.length&&0===c1.length?(0,_.of)({...v,guardsResult:!0}):function ge(x,E,v,N){return(0,p.H)(x).pipe((0,w2.Z)(V=>function _8(x,E,v,N,V){const c1=E&&E.routeConfig?E.routeConfig.canDeactivate:null;if(!c1||0===c1.length)return(0,_.of)(!0);const z1=c1.map(W1=>{const V1=a6(E)??V,O2=_3(W1,V1);return m2(function v0(x){return x&&G(x.canDeactivate)}(O2)?O2.canDeactivate(x,E,v,N):(0,g.N4e)(V1,()=>O2(x,E,v,N))).pipe((0,v2.$)())});return(0,_.of)(z1).pipe(F6())}(V.component,V.route,v,E,N)),(0,v2.$)(V=>!0!==V,!0))}(z1,N,V,x).pipe((0,w2.Z)(W1=>W1&&function D(x){return"boolean"==typeof x}(W1)?function _e(x,E,v,N){return(0,p.H)(E).pipe((0,t0.H)(V=>(0,Z.x)(function Ie(x,E){return null!==x&&E&&E(new p8(x)),(0,_.of)(!0)}(V.route.parent,N),function i4(x,E){return null!==x&&E&&E(new h6(x)),(0,_.of)(!0)}(V.route,N),function Le(x,E,v){const N=E[E.length-1],c1=E.slice(0,E.length-1).reverse().map(z1=>function $6(x){const E=x.routeConfig?x.routeConfig.canActivateChild:null;return E&&0!==E.length?{node:x,guards:E}:null}(z1)).filter(z1=>null!==z1).map(z1=>(0,K.v)(()=>{const W1=z1.guards.map(V1=>{const O2=a6(z1.node)??v,J0=_3(V1,O2);return m2(function V2(x){return x&&G(x.canActivateChild)}(J0)?J0.canActivateChild(N,x):(0,g.N4e)(O2,()=>J0(N,x))).pipe((0,v2.$)())});return(0,_.of)(W1).pipe(F6())}));return(0,_.of)(c1).pipe(F6())}(x,V.path,v),function Pe(x,E,v){const N=E.routeConfig?E.routeConfig.canActivate:null;if(!N||0===N.length)return(0,_.of)(!0);const V=N.map(c1=>(0,K.v)(()=>{const z1=a6(E)??v,W1=_3(c1,z1);return m2(function w1(x){return x&&G(x.canActivate)}(W1)?W1.canActivate(E,x):(0,g.N4e)(z1,()=>W1(E,x))).pipe((0,v2.$)())}));return(0,_.of)(V).pipe(F6())}(x,V.route,v))),(0,v2.$)(V=>!0!==V,!0))}(N,c1,x,E):(0,_.of)(W1)),(0,G1.T)(W1=>({...v,guardsResult:W1})))})}(this.environmentInjector,V1=>this.events.next(V1)),(0,X0.M)(V1=>{if(c1.guardsResult=V1.guardsResult,p4(V1.guardsResult))throw G3(0,V1.guardsResult);const O2=new c4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot,!!V1.guardsResult);this.events.next(O2)}),(0,_2.p)(V1=>!!V1.guardsResult||(this.cancelNavigationTransition(V1,"",o4.GuardRejected),!1)),y8(V1=>{if(V1.guards.canActivateChecks.length)return(0,_.of)(V1).pipe((0,X0.M)(O2=>{const J0=new I4(O2.id,this.urlSerializer.serialize(O2.extractedUrl),this.urlSerializer.serialize(O2.urlAfterRedirects),O2.targetSnapshot);this.events.next(J0)}),(0,O1.n)(O2=>{let J0=!1;return(0,_.of)(O2).pipe(function Be(x,E){return(0,w2.Z)(v=>{const{targetSnapshot:N,guards:{canActivateChecks:V}}=v;if(!V.length)return(0,_.of)(v);const c1=new Set(V.map(V1=>V1.route)),z1=new Set;for(const V1 of c1)if(!z1.has(V1))for(const O2 of Z8(V1))z1.add(O2);let W1=0;return(0,p.H)(z1).pipe((0,t0.H)(V1=>c1.has(V1)?function b8(x,E,v,N){const V=x.routeConfig,c1=x._resolve;return void 0!==V?.title&&!p0(V)&&(c1[t2]=V.title),function Y3(x,E,v,N){const V=K2(x);if(0===V.length)return(0,_.of)({});const c1={};return(0,p.H)(V).pipe((0,w2.Z)(z1=>function U6(x,E,v,N){const V=a6(E)??N,c1=_3(x,V);return m2(c1.resolve?c1.resolve(E,v):(0,g.N4e)(V,()=>c1(E,v)))}(x[z1],E,v,N).pipe((0,v2.$)(),(0,X0.M)(W1=>{c1[z1]=W1}))),v1(1),(0,j1.u)(c1),(0,Z0.W)(z1=>A3(z1)?h1.w:(0,Y.$)(z1)))}(c1,x,E,N).pipe((0,G1.T)(z1=>(x._resolvedData=z1,x.data=A6(x,x.parent,v).resolve,null)))}(V1,N,x,E):(V1.data=A6(V1,V1.parent,x).resolve,(0,_.of)(void 0))),(0,X0.M)(()=>W1++),v1(1),(0,w2.Z)(V1=>W1===z1.size?(0,_.of)(v):h1.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,X0.M)({next:()=>J0=!0,complete:()=>{J0||this.cancelNavigationTransition(O2,"",o4.NoDataFromResolver)}}))}),(0,X0.M)(O2=>{const J0=new U4(O2.id,this.urlSerializer.serialize(O2.extractedUrl),this.urlSerializer.serialize(O2.urlAfterRedirects),O2.targetSnapshot);this.events.next(J0)}))}),y8(V1=>{const O2=J0=>{const Q0=[];J0.routeConfig?.loadComponent&&!J0.routeConfig._loadedComponent&&Q0.push(this.configLoader.loadComponent(J0.routeConfig).pipe((0,X0.M)(D4=>{J0.component=D4}),(0,G1.T)(()=>{})));for(const D4 of J0.children)Q0.push(...O2(D4));return Q0};return(0,A.z)(O2(V1.targetSnapshot.root)).pipe((0,w0.U)(null),(0,d0.s)(1))}),y8(()=>this.afterPreactivation()),(0,O1.n)(()=>{const{currentSnapshot:V1,targetSnapshot:O2}=c1,J0=this.createViewTransition?.(this.environmentInjector,V1.root,O2.root);return J0?(0,p.H)(J0).pipe((0,G1.T)(()=>c1)):(0,_.of)(c1)}),(0,G1.T)(V1=>{const O2=function Q6(x,E,v){const N=x3(x,E._root,v?v._root:void 0);return new D3(N,E)}(v.routeReuseStrategy,V1.targetSnapshot,V1.currentRouterState);return this.currentTransition=c1={...V1,targetRouterState:O2},this.currentNavigation.targetRouterState=O2,c1}),(0,X0.M)(()=>{this.events.next(new t6)}),((x,E,v,N)=>(0,G1.T)(V=>(new m3(E,V.targetRouterState,V.currentRouterState,v,N).activate(x),V)))(this.rootContexts,v.routeReuseStrategy,V1=>this.events.next(V1),this.inputBindingEnabled),(0,d0.s)(1),(0,X0.M)({next:V1=>{z1=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new P0(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects))),this.titleStrategy?.updateTitle(V1.targetRouterState.snapshot),V1.resolve(!0)},complete:()=>{z1=!0}}),(0,H1.Q)(this.transitionAbortSubject.pipe((0,X0.M)(V1=>{throw V1}))),(0,A1.j)(()=>{!z1&&!W1&&this.cancelNavigationTransition(c1,"",o4.SupersededByNewNavigation),this.currentTransition?.id===c1.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Z0.W)(V1=>{if(W1=!0,f3(V1))this.events.next(new R0(c1.id,this.urlSerializer.serialize(c1.extractedUrl),V1.message,V1.cancellationCode)),function H3(x){return f3(x)&&p4(x.url)}(V1)?this.events.next(new b0(V1.url)):c1.resolve(!1);else{this.events.next(new A4(c1.id,this.urlSerializer.serialize(c1.extractedUrl),V1,c1.targetSnapshot??void 0));try{c1.resolve(v.errorHandler(V1))}catch(O2){this.options.resolveNavigationPromiseOnError?c1.resolve(!1):c1.reject(O2)}}return h1.w}))}))}cancelNavigationTransition(v,N,V){const c1=new R0(v.id,this.urlSerializer.serialize(v.extractedUrl),N,V);this.events.next(c1),v.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function L1(x){return x!==X2}let X1=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(q2),providedIn:"root"})}}return x})();class a2{shouldDetach(E){return!1}store(E,v){}shouldAttach(E){return!1}retrieve(E){return null}shouldReuseRoute(E,v){return E.routeConfig===v.routeConfig}}let q2=(()=>{class x extends a2{static{this.\u0275fac=(()=>{let v;return function(V){return(v||(v=g.xGo(x)))(V||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),g4=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(l4),providedIn:"root"})}}return x})(),l4=(()=>{class x extends g4{constructor(){super(...arguments),this.location=(0,g.WQX)(c2.aZ),this.urlSerializer=(0,g.WQX)($4),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,g.WQX)(r6),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new T4,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=n6(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(v){return this.location.subscribe(N=>{"popstate"===N.type&&v(N.url,N.state)})}handleRouterEvent(v,N){if(v instanceof F0)this.stateMemento=this.createStateMemento();else if(v instanceof A0)this.rawUrlTree=N.initialUrl;else if(v instanceof W4){if("eager"===this.urlUpdateStrategy&&!N.extras.skipLocationChange){const V=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl);this.setBrowserUrl(V,N)}}else v instanceof t6?(this.currentUrlTree=N.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl),this.routerState=N.targetRouterState,"deferred"===this.urlUpdateStrategy&&(N.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,N))):v instanceof R0&&(v.code===o4.GuardRejected||v.code===o4.NoDataFromResolver)?this.restoreHistory(N):v instanceof A4?this.restoreHistory(N,!0):v instanceof P0&&(this.lastSuccessfulId=v.id,this.currentPageId=this.browserPageId)}setBrowserUrl(v,N){const V=this.urlSerializer.serialize(v);if(this.location.isCurrentPathEqualTo(V)||N.extras.replaceUrl){const z1={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId)};this.location.replaceState(V,"",z1)}else{const c1={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId+1)};this.location.go(V,"",c1)}}restoreHistory(v,N=!1){if("computed"===this.canceledNavigationResolution){const c1=this.currentPageId-this.browserPageId;0!==c1?this.location.historyGo(c1):this.currentUrlTree===v.finalUrl&&0===c1&&(this.resetState(v),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(N&&this.resetState(v),this.resetUrlToCurrentUrlTree())}resetState(v){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,v.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(v,N){return"computed"===this.canceledNavigationResolution?{navigationId:v,\u0275routerPageId:N}:{navigationId:v}}static{this.\u0275fac=(()=>{let v;return function(V){return(v||(v=g.xGo(x)))(V||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();var P=function(x){return x[x.COMPLETE=0]="COMPLETE",x[x.FAILED=1]="FAILED",x[x.REDIRECTING=2]="REDIRECTING",x}(P||{});function X(x,E){x.events.pipe((0,_2.p)(v=>v instanceof P0||v instanceof R0||v instanceof A4||v instanceof A0),(0,G1.T)(v=>v instanceof P0||v instanceof A0?P.COMPLETE:v instanceof R0&&(v.code===o4.Redirect||v.code===o4.SupersededByNewNavigation)?P.REDIRECTING:P.FAILED),(0,_2.p)(v=>v!==P.REDIRECTING),(0,d0.s)(1)).subscribe(()=>{E()})}function J(x){throw x}const n1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let S1=(()=>{class x{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,g.WQX)(g.H3F),this.stateManager=(0,g.WQX)(g4),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,g.WQX)(U),this.urlSerializer=(0,g.WQX)($4),this.location=(0,g.WQX)(c2.aZ),this.urlHandlingStrategy=(0,g.WQX)(r6),this._events=new S2.B,this.errorHandler=this.options.errorHandler||J,this.navigated=!1,this.routeReuseStrategy=(0,g.WQX)(X1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,g.WQX)(I3,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,g.WQX)(U3,{optional:!0}),this.eventsSubscription=new r1.yU,this.isNgZoneEnabled=(0,g.WQX)(g.SKi)instanceof g.SKi&&g.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:v=>{this.console.warn(v)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const v=this.navigationTransitions.events.subscribe(N=>{try{const V=this.navigationTransitions.currentTransition,c1=this.navigationTransitions.currentNavigation;if(null!==V&&null!==c1)if(this.stateManager.handleRouterEvent(N,c1),N instanceof R0&&N.code!==o4.Redirect&&N.code!==o4.SupersededByNewNavigation)this.navigated=!0;else if(N instanceof P0)this.navigated=!0;else if(N instanceof b0){const z1=this.urlHandlingStrategy.merge(N.url,V.currentRawUrl),W1={info:V.extras.info,skipLocationChange:V.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||L1(V.source)};this.scheduleNavigation(z1,X2,null,W1,{resolve:V.resolve,reject:V.reject,promise:V.promise})}(function U1(x){return!(x instanceof t6||x instanceof b0)})(N)&&this._events.next(N)}catch(V){this.navigationTransitions.transitionAbortSubject.next(V)}});this.eventsSubscription.add(v)}resetRootComponentType(v){this.routerState.root.component=v,this.navigationTransitions.rootComponentType=v}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),X2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((v,N)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(v,"popstate",N)},0)})}navigateToSyncWithBrowser(v,N,V){const c1={replaceUrl:!0},z1=V?.navigationId?V:null;if(V){const V1={...V};delete V1.navigationId,delete V1.\u0275routerPageId,0!==Object.keys(V1).length&&(c1.state=V1)}const W1=this.parseUrl(v);this.scheduleNavigation(W1,N,z1,c1)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(v){this.config=v.map(s6),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(v,N={}){const{relativeTo:V,queryParams:c1,fragment:z1,queryParamsHandling:W1,preserveFragment:V1}=N,O2=V1?this.currentUrlTree.fragment:z1;let Q0,J0=null;switch(W1){case"merge":J0={...this.currentUrlTree.queryParams,...c1};break;case"preserve":J0=this.currentUrlTree.queryParams;break;default:J0=c1||null}null!==J0&&(J0=this.removeEmptyProps(J0));try{Q0=u6(V?V.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof v[0]||!v[0].startsWith("/"))&&(v=[]),Q0=this.currentUrlTree.root}return c6(Q0,v,J0,O2??null)}navigateByUrl(v,N={skipLocationChange:!1}){const V=p4(v)?v:this.parseUrl(v),c1=this.urlHandlingStrategy.merge(V,this.rawUrlTree);return this.scheduleNavigation(c1,X2,null,N)}navigate(v,N={skipLocationChange:!1}){return function k1(x){for(let E=0;E(null!=c1&&(N[V]=c1),N),{})}scheduleNavigation(v,N,V,c1,z1){if(this.disposed)return Promise.resolve(!1);let W1,V1,O2;z1?(W1=z1.resolve,V1=z1.reject,O2=z1.promise):O2=new Promise((Q0,D4)=>{W1=Q0,V1=D4});const J0=this.pendingTasks.add();return X(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(J0))}),this.navigationTransitions.handleNavigationRequest({source:N,restoredState:V,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:v,extras:c1,resolve:W1,reject:V1,promise:O2,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),O2.catch(Q0=>Promise.reject(Q0))}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),y2=(()=>{class x{constructor(v,N,V,c1,z1,W1){this.router=v,this.route=N,this.tabIndexAttribute=V,this.renderer=c1,this.el=z1,this.locationStrategy=W1,this.href=null,this.commands=null,this.onChanges=new S2.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const V1=z1.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===V1||"area"===V1,this.isAnchorElement?this.subscription=v.events.subscribe(O2=>{O2 instanceof P0&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(v){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",v)}ngOnChanges(v){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(v){null!=v?(this.commands=Array.isArray(v)?v:[v],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(v,N,V,c1,z1){const W1=this.urlTree;return!!(null===W1||this.isAnchorElement&&(0!==v||N||V||c1||z1||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(W1,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const v=this.urlTree;this.href=null!==v&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(v)):null;const N=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",N)}applyAttributeValue(v,N){const V=this.renderer,c1=this.el.nativeElement;null!==N?V.setAttribute(c1,v,N):V.removeAttribute(c1,v)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(N){return new(N||x)(g.rXU(S1),g.rXU(g6),g.kS0("tabindex"),g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(c2.hb))}}static{this.\u0275dir=g.FsC({type:x,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(N,V){1&N&&g.bIt("click",function(z1){return V.onClick(z1.button,z1.ctrlKey,z1.shiftKey,z1.altKey,z1.metaKey)}),2&N&&g.BMQ("target",V.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[g.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",g.L39],skipLocationChange:[g.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",g.L39],replaceUrl:[g.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",g.L39],routerLink:"routerLink"},standalone:!0,features:[g.GFd,g.OA$]})}}return x})();class g0{}let b4=(()=>{class x{constructor(v,N,V,c1,z1){this.router=v,this.injector=V,this.preloadingStrategy=c1,this.loader=z1}setUpPreloading(){this.subscription=this.router.events.pipe((0,_2.p)(v=>v instanceof P0),(0,t0.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(v,N){const V=[];for(const c1 of N){c1.providers&&!c1._injector&&(c1._injector=(0,g.Ol2)(c1.providers,v,`Route: ${c1.path}`));const z1=c1._injector??v,W1=c1._loadedInjector??z1;(c1.loadChildren&&!c1._loadedRoutes&&void 0===c1.canLoad||c1.loadComponent&&!c1._loadedComponent)&&V.push(this.preloadConfig(z1,c1)),(c1.children||c1._loadedRoutes)&&V.push(this.processRoutes(W1,c1.children??c1._loadedRoutes))}return(0,p.H)(V).pipe((0,P1.U)())}preloadConfig(v,N){return this.preloadingStrategy.preload(N,()=>{let V;V=N.loadChildren&&void 0===N.canLoad?this.loader.loadChildren(v,N):(0,_.of)(null);const c1=V.pipe((0,w2.Z)(z1=>null===z1?(0,_.of)(void 0):(N._loadedRoutes=z1.routes,N._loadedInjector=z1.injector,this.processRoutes(z1.injector??v,z1.routes))));if(N.loadComponent&&!N._loadedComponent){const z1=this.loader.loadComponent(N);return(0,p.H)([c1,z1]).pipe((0,P1.U)())}return c1})}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(S1),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(g0),g.KVO(j8))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const E0=new g.nKC("");let n0=(()=>{class x{constructor(v,N,V,c1,z1={}){this.urlSerializer=v,this.transitions=N,this.viewportScroller=V,this.zone=c1,this.options=z1,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,g.WQX)(g.uvJ),z1.scrollPositionRestoration||="disabled",z1.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof F0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=v.navigationTrigger,this.restoredId=v.restoredState?v.restoredState.navigationId:0):v instanceof P0?(this.lastId=v.id,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.urlAfterRedirects).fragment)):v instanceof A0&&v.code===v4.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof R8&&(v.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(v.position):v.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(v.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(v,N){var V=this;this.zone.runOutsideAngular((0,m.A)(function*(){yield new Promise(c1=>{setTimeout(()=>{c1()}),(0,g.mal)(()=>{c1()},{injector:V.environmentInjector})}),V.zone.run(()=>{V.transitions.events.next(new R8(v,"popstate"===V.lastSource?V.store[V.restoredId]:null,N))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(N){g.QTQ()}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function _4(x,E){return{\u0275kind:x,\u0275providers:E}}function $8(){const x=(0,g.WQX)(g.zZn);return E=>{const v=x.get(g.o8S);if(E!==v.components[0])return;const N=x.get(S1),V=x.get(I5);1===x.get(h0)&&N.initialNavigation(),x.get(Ue,null,g.$GK.Optional)?.setUpPreloading(),x.get(E0,null,g.$GK.Optional)?.init(),N.resetRootComponentType(v.componentTypes[0]),V.closed||(V.next(),V.complete(),V.unsubscribe())}}const I5=new g.nKC("",{factory:()=>new S2.B}),h0=new g.nKC("",{providedIn:"root",factory:()=>1}),Ue=new g.nKC("");function be(x){return _4(0,[{provide:Ue,useExisting:b4},{provide:g0,useExisting:x}])}function i5(x){return _4(9,[{provide:k6,useValue:q},{provide:w,useValue:{skipNextTransition:!!x?.skipInitialTransition,...x}}])}const e3=new g.nKC("ROUTER_FORROOT_GUARD"),A2=[c2.aZ,{provide:$4,useClass:L0},S1,g2,{provide:g6,useFactory:function z2(x){return x.routerState.root},deps:[S1]},j8,[]];let O8=(()=>{class x{constructor(v){}static forRoot(v,N){return{ngModule:x,providers:[A2,[],{provide:I3,multi:!0,useValue:v},{provide:e3,useFactory:W3,deps:[[S1,new g.Xx1,new g.kdw]]},{provide:z6,useValue:N||{}},N?.useHash?{provide:c2.hb,useClass:c2.fw}:{provide:c2.hb,useClass:c2.Sm},{provide:E0,useFactory:()=>{const x=(0,g.WQX)(c2.Xr),E=(0,g.WQX)(g.SKi),v=(0,g.WQX)(z6),N=(0,g.WQX)(U),V=(0,g.WQX)($4);return v.scrollOffset&&x.setOffset(v.scrollOffset),new n0(V,N,x,E,v)}},N?.preloadingStrategy?be(N.preloadingStrategy).\u0275providers:[],N?.initialNavigation?k7(N):[],N?.bindToComponentInputs?_4(8,[I6,{provide:U3,useExisting:I6}]).\u0275providers:[],N?.enableViewTransitions?i5().\u0275providers:[],[{provide:r5,useFactory:$8},{provide:g.iLQ,multi:!0,useExisting:r5}]]}}static forChild(v){return{ngModule:x,providers:[{provide:I3,multi:!0,useValue:v}]}}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(e3,8))}}static{this.\u0275mod=g.$C({type:x})}static{this.\u0275inj=g.G2t({})}}return x})();function W3(x){return"guarded"}function k7(x){return["disabled"===x.initialNavigation?_4(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const E=(0,g.WQX)(S1);return()=>{E.setUpLocationChangeListener()}}},{provide:h0,useValue:2}]).\u0275providers:[],"enabledBlocking"===x.initialNavigation?_4(2,[{provide:h0,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:E=>{const v=E.get(c2.hj,Promise.resolve());return()=>v.then(()=>new Promise(N=>{const V=E.get(S1),c1=E.get(I5);X(V,()=>{N(!0)}),E.get(U).afterPreactivation=()=>(N(!0),c1.closed?(0,_.of)(void 0):c1),V.initialNavigation()}))}}]).\u0275providers:[]]}const r5=new g.nKC("")},60:(y1,d1,y)=>{"use strict";y.d(d1,{aY:()=>U,d0:()=>a2,VA:()=>q2,dX:()=>l4});var m=y(4438);function g(P,X,J){return(X=function $(P){var X=function A(P,X){if("object"!=typeof P||!P)return P;var J=P[Symbol.toPrimitive];if(void 0!==J){var n1=J.call(P,X||"default");if("object"!=typeof n1)return n1;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===X?String:Number)(P)}(P,"string");return"symbol"==typeof X?X:X+""}(X))in P?Object.defineProperty(P,X,{value:J,enumerable:!0,configurable:!0,writable:!0}):P[X]=J,P}function p(P,X){var J=Object.keys(P);if(Object.getOwnPropertySymbols){var n1=Object.getOwnPropertySymbols(P);X&&(n1=n1.filter(function(_1){return Object.getOwnPropertyDescriptor(P,_1).enumerable})),J.push.apply(J,n1)}return J}function _(P){for(var X=1;X{};let p1={},Y={},h1=null,e1={mark:K,measure:K};try{typeof window<"u"&&(p1=window),typeof document<"u"&&(Y=document),typeof MutationObserver<"u"&&(h1=MutationObserver),typeof performance<"u"&&(e1=performance)}catch{}const{userAgent:r1=""}=p1.navigator||{},M1=p1,f1=Y,$1=h1,o2=e1,c2=!!f1.documentElement&&!!f1.head&&"function"==typeof f1.addEventListener&&"function"==typeof f1.createElement,G1=~r1.indexOf("MSIE")||~r1.indexOf("Trident/");var d2={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},w2=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v2="classic",t0="duotone",B4=[v2,t0,"sharp","sharp-duotone"],v1=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),C2=["fak","fa-kit","fakd","fa-kit-duotone"],H1=["fak","fakd"],Q={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},s2=["fak","fa-kit","fakd","fa-kit-duotone"],D0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},y0=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],m2=[1,2,3,4,5,6,7,8,9,10],N4=m2.concat([11,12,13,14,15,16,17,18,19,20]),m4=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Q.GROUP,Q.SWAP_OPACITY,Q.PRIMARY,Q.SECONDARY].concat(m2.map(P=>"".concat(P,"x"))).concat(N4.map(P=>"w-".concat(P)));const t3="___FONT_AWESOME___",E6=16,q4="fa",c0="svg-inline--fa",f0="data-fa-i2svg",X4="data-fa-pseudo-element",T4="data-fa-pseudo-element-pending",Y2="data-prefix",n3="data-icon",y4="fontawesome-i2svg",H4="async",u0=["HTML","HEAD","STYLE","SCRIPT"],$4=(()=>{try{return!0}catch{return!1}})();function L0(P){return new Proxy(P,{get:(X,J)=>J in X?X[J]:X[v2]})}const S0=_({},d2);S0[v2]=_(_(_(_({},{"fa-duotone":"duotone"}),d2[v2]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const l3=L0(S0),T0=_({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});T0[v2]=_(_(_(_({},{duotone:"fad"}),T0[v2]),{kit:"fak"}),{"kit-duotone":"fakd"});const V4=L0(T0),s3=_({},D0);s3[v2]=_(_({},s3[v2]),{fak:"fa-kit"});const F3=L0(s3),J2=_({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});J2[v2]=_(_({},J2[v2]),{"fa-kit":"fak"}),L0(J2);const x1=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,m1="fa-layers-text",D1=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,b2=(L0(_({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),U0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},m0=["kit",...m4],t4=M1.FontAwesomeConfig||{};f1&&"function"==typeof f1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(X=>{let[J,n1]=X;const _1=function z4(P){return""===P||"false"!==P&&("true"===P||P)}(function N3(P){var X=f1.querySelector("script["+P+"]");if(X)return X.getAttribute(P)}(J));null!=_1&&(t4[n1]=_1)});const r4={styleDefault:"solid",familyDefault:v2,cssPrefix:q4,replacementClass:c0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};t4.familyPrefix&&(t4.cssPrefix=t4.familyPrefix);const F4=_(_({},r4),t4);F4.autoReplaceSvg||(F4.observeMutations=!1);const I2={};Object.keys(r4).forEach(P=>{Object.defineProperty(I2,P,{enumerable:!0,set:function(X){F4[P]=X,C0.forEach(J=>J(I2))},get:function(){return F4[P]}})}),Object.defineProperty(I2,"familyPrefix",{enumerable:!0,set:function(P){F4.cssPrefix=P,C0.forEach(X=>X(I2))},get:function(){return F4.cssPrefix}}),M1.FontAwesomeConfig=I2;const C0=[],p4=E6,M4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},c6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function R4(){let P=12,X="";for(;P-- >0;)X+=c6[62*Math.random()|0];return X}function z0(P){const X=[];for(let J=(P||[]).length>>>0;J--;)X[J]=P[J];return X}function m6(P){return P.classList?z0(P.classList):(P.getAttribute("class")||"").split(" ").filter(X=>X)}function Y4(P){return"".concat(P).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function E3(P){return Object.keys(P||{}).reduce((X,J)=>X+"".concat(J,": ").concat(P[J].trim(),";"),"")}function z3(P){return P.size!==M4.size||P.x!==M4.x||P.y!==M4.y||P.rotate!==M4.rotate||P.flipX||P.flipY}var o1=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';function b1(){const P=q4,X=c0,J=I2.cssPrefix,n1=I2.replacementClass;let _1=o1;if(J!==P||n1!==X){const S1=new RegExp("\\.".concat(P,"\\-"),"g"),k1=new RegExp("\\--".concat(P,"\\-"),"g"),U1=new RegExp("\\.".concat(X),"g");_1=_1.replace(S1,".".concat(J,"-")).replace(k1,"--".concat(J,"-")).replace(U1,".".concat(n1))}return _1}let F1=!1;function J1(){I2.autoAddCss&&!F1&&(function u6(P){if(!P||!c2)return;const X=f1.createElement("style");X.setAttribute("type","text/css"),X.innerHTML=P;const J=f1.head.childNodes;let n1=null;for(let _1=J.length-1;_1>-1;_1--){const S1=J[_1],k1=(S1.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(k1)>-1&&(n1=S1)}f1.head.insertBefore(X,n1)}(b1()),F1=!0)}var q1={mixout:()=>({dom:{css:b1,insertCss:J1}}),hooks:()=>({beforeDOMElementCreation(){J1()},beforeI2svg(){J1()}})};const u2=M1||{};u2[t3]||(u2[t3]={}),u2[t3].styles||(u2[t3].styles={}),u2[t3].hooks||(u2[t3].hooks={}),u2[t3].shims||(u2[t3].shims=[]);var h2=u2[t3];const M0=[],X2=function(){f1.removeEventListener("DOMContentLoaded",X2),P2=1,M0.map(P=>P())};let P2=!1;function F0(P){const{tag:X,attributes:J={},children:n1=[]}=P;return"string"==typeof P?Y4(P):"<".concat(X," ").concat(function C1(P){return Object.keys(P||{}).reduce((X,J)=>X+"".concat(J,'="').concat(Y4(P[J]),'" '),"").trim()}(J),">").concat(n1.map(F0).join(""),"")}function P0(P,X,J){if(P&&P[X]&&P[X][J])return{prefix:X,iconName:J,icon:P[X][J]}}c2&&(P2=(f1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(f1.readyState),P2||f1.addEventListener("DOMContentLoaded",X2));var v4=function(X,J,n1,_1){var y2,R2,j2,S1=Object.keys(X),k1=S1.length,U1=void 0!==_1?function(X,J){return function(n1,_1,S1,k1){return X.call(J,n1,_1,S1,k1)}}(J,_1):J;for(void 0===n1?(y2=1,j2=X[S1[0]]):(y2=0,j2=n1);y2=55296&&_1<=56319&&J{const n1=P[J];return n1.icon?X[n1.iconName]=n1.icon:X[J]=n1,X},{})}function d4(P,X){let J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:n1=!1}=J,_1=W4(X);"function"!=typeof h2.hooks.addPack||n1?h2.styles[P]=_(_({},h2.styles[P]||{}),_1):h2.hooks.addPack(P,W4(X)),"fas"===P&&d4("fa",X)}const{styles:I4,shims:U4}=h2,a0=Object.keys(F3),H2=a0.reduce((P,X)=>(P[X]=Object.keys(F3[X]),P),{});let p8=null,a3={},h6={},T6={},R8={},t6={};const Q2=()=>{const P=n1=>v4(I4,(_1,S1,k1)=>(_1[k1]=v4(S1,n1,{}),_1),{});a3=P((n1,_1,S1)=>(_1[3]&&(n1[_1[3]]=S1),_1[2]&&_1[2].filter(U1=>"number"==typeof U1).forEach(U1=>{n1[U1.toString(16)]=S1}),n1)),h6=P((n1,_1,S1)=>(n1[S1]=S1,_1[2]&&_1[2].filter(U1=>"string"==typeof U1).forEach(U1=>{n1[U1]=S1}),n1)),t6=P((n1,_1,S1)=>{const k1=_1[2];return n1[S1]=S1,k1.forEach(U1=>{n1[U1]=S1}),n1});const X="far"in I4||I2.autoFetchSvg,J=v4(U4,(n1,_1)=>{const S1=_1[0];let k1=_1[1];const U1=_1[2];return"far"===k1&&!X&&(k1="fas"),"string"==typeof S1&&(n1.names[S1]={prefix:k1,iconName:U1}),"number"==typeof S1&&(n1.unicodes[S1.toString(16)]={prefix:k1,iconName:U1}),n1},{names:{},unicodes:{}});T6=J.names,R8=J.unicodes,p8=V0(I2.styleDefault,{family:I2.familyDefault})};function g2(P,X){return(a3[P]||{})[X]}function J4(P,X){return(t6[P]||{})[X]}function R6(P){return T6[P]||{prefix:null,iconName:null}}function P4(){return p8}(function B2(P){C0.push(P)})(P=>{p8=V0(P.styleDefault,{family:I2.familyDefault})}),Q2();const D3=()=>({prefix:null,iconName:null,rest:[]});function V0(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:J=v2}=X;return J!==t0||P?V4[J][P]||V4[J][l3[J][P]]||(P in h2.styles?P:null)||null:"fad"}function A6(P){return P.sort().filter((X,J,n1)=>n1.indexOf(X)===J)}function M3(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:J=!1}=X;let n1=null;const _1=y0.concat(s2),S1=A6(P.filter(g0=>_1.includes(g0))),k1=A6(P.filter(g0=>!y0.includes(g0))),U1=S1.filter(g0=>(n1=g0,!w2.includes(g0))),[y2=null]=U1,R2=function n6(P){let X=v2;const J=a0.reduce((n1,_1)=>(n1[_1]="".concat(I2.cssPrefix,"-").concat(_1),n1),{});return B4.forEach(n1=>{(P.includes(J[n1])||P.some(_1=>H2[n1].includes(_1)))&&(X=n1)}),X}(S1),j2=_(_({},function g6(P){let X=[],J=null;return P.forEach(n1=>{const _1=function y6(P,X){const J=X.split("-"),n1=J[0],_1=J.slice(1).join("-");return n1!==P||""===_1||function b0(P){return~m0.indexOf(P)}(_1)?null:_1}(I2.cssPrefix,n1);_1?J=_1:n1&&X.push(n1)}),{iconName:J,rest:X}}(k1)),{},{prefix:V0(y2,{family:R2})});return _(_(_({},j2),function k4(P){const{values:X,family:J,canonical:n1,givenPrefix:_1="",styles:S1={},config:k1={}}=P,U1=J===t0,y2=X.includes("fa-duotone")||X.includes("fad");if(!U1&&(y2||"duotone"===k1.familyDefault||("fad"===n1.prefix||"fa-duotone"===n1.prefix))&&(n1.prefix="fad"),(X.includes("fa-brands")||X.includes("fab"))&&(n1.prefix="fab"),!n1.prefix&&v3.includes(J)&&(Object.keys(S1).find(q0=>g8.includes(q0))||k1.autoFetchSvg)){const q0=v1.get(J).defaultShortPrefixId;n1.prefix=q0,n1.iconName=J4(n1.prefix,n1.iconName)||n1.iconName}return("fa"===n1.prefix||"fa"===_1)&&(n1.prefix=P4()||"fas"),n1}({values:P,family:R2,styles:I4,config:I2,canonical:j2,givenPrefix:n1})),function h8(P,X,J){let{prefix:n1,iconName:_1}=J;if(P||!n1||!_1)return{prefix:n1,iconName:_1};const S1="fa"===X?R6(_1):{},k1=J4(n1,_1);return _1=S1.iconName||k1||_1,n1=S1.prefix||n1,"far"===n1&&!I4.far&&I4.fas&&!I2.autoFetchSvg&&(n1="fas"),{prefix:n1,iconName:_1}}(J,n1,j2))}const v3=B4.filter(P=>P!==v2||P!==t0),g8=Object.keys(D0).filter(P=>P!==v2).map(P=>Object.keys(D0[P])).flat();let p0=[],g3={};const T3={},U3=Object.keys(T3);function Q6(P,X){for(var J=arguments.length,n1=new Array(J>2?J-2:0),_1=2;_1{X=k1.apply(null,[X,...n1])}),X}function x3(P){for(var X=arguments.length,J=new Array(X>1?X-1:0),n1=1;n1{S1.apply(null,J)})}function d3(){const P=arguments[0],X=Array.prototype.slice.call(arguments,1);return T3[P]?T3[P].apply(null,X):void 0}function G0(P){"fa"===P.prefix&&(P.prefix="fas");let{iconName:X}=P;const J=P.prefix||P4();if(X)return X=J4(J,X)||X,P0(l6.definitions,J,X)||P0(h2.styles,J,X)}const l6=new class V3{constructor(){this.definitions={}}add(){for(var X=arguments.length,J=new Array(X),n1=0;n1{this.definitions[S1]=_(_({},this.definitions[S1]||{}),_1[S1]),d4(S1,_1[S1]);const k1=F3[v2][S1];k1&&d4(k1,_1[S1]),Q2()})}reset(){this.definitions={}}_pullDefinitions(X,J){const n1=J.prefix&&J.iconName&&J.icon?{0:J}:J;return Object.keys(n1).map(_1=>{const{prefix:S1,iconName:k1,icon:U1}=n1[_1],y2=U1[2];X[S1]||(X[S1]={}),y2.length>0&&y2.forEach(R2=>{"string"==typeof R2&&(X[S1][R2]=U1)}),X[S1][k1]=U1}),X}},f3={noAuto:()=>{I2.autoReplaceSvg=!1,I2.observeMutations=!1,x3("noAuto")},config:I2,dom:{i2svg:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c2?(x3("beforeI2svg",P),d3("pseudoElements2svg",P),d3("i2svg",P)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X}=P;!1===I2.autoReplaceSvg&&(I2.autoReplaceSvg=!0),I2.observeMutations=!0,function e4(P){c2&&(P2?setTimeout(P,0):M0.push(P))}(()=>{o3({autoReplaceSvgRoot:X}),x3("watch",P)})}},parse:{icon:P=>{if(null===P)return null;if("object"==typeof P&&P.prefix&&P.iconName)return{prefix:P.prefix,iconName:J4(P.prefix,P.iconName)||P.iconName};if(Array.isArray(P)&&2===P.length){const X=0===P[1].indexOf("fa-")?P[1].slice(3):P[1],J=V0(P[0]);return{prefix:J,iconName:J4(J,X)||X}}if("string"==typeof P&&(P.indexOf("".concat(I2.cssPrefix,"-"))>-1||P.match(x1))){const X=M3(P.split(" "),{skipLookups:!0});return{prefix:X.prefix||P4(),iconName:J4(X.prefix,X.iconName)||X.iconName}}if("string"==typeof P){const X=P4();return{prefix:X,iconName:J4(X,P)||P}}}},library:l6,findIconDefinition:G0,toHtml:F0},o3=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X=f1}=P;(Object.keys(h2.styles).length>0||I2.autoFetchSvg)&&c2&&I2.autoReplaceSvg&&f3.dom.i2svg({node:X})};function Q4(P,X){return Object.defineProperty(P,"abstract",{get:X}),Object.defineProperty(P,"html",{get:function(){return P.abstract.map(J=>F0(J))}}),Object.defineProperty(P,"node",{get:function(){if(!c2)return;const J=f1.createElement("div");return J.innerHTML=P.html,J.children}}),P}function k3(P){const{icons:{main:X,mask:J},prefix:n1,iconName:_1,transform:S1,symbol:k1,title:U1,maskId:y2,titleId:R2,extra:j2,watchable:g0=!1}=P,{width:q0,height:Y0}=J.found?J:X,b4=H1.includes(n1),E0=[I2.replacementClass,_1?"".concat(I2.cssPrefix,"-").concat(_1):""].filter(o0=>-1===j2.classes.indexOf(o0)).filter(o0=>""!==o0||!!o0).concat(j2.classes).join(" ");let n0={children:[],attributes:_(_({},j2.attributes),{},{"data-prefix":n1,"data-icon":_1,class:E0,role:j2.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(q0," ").concat(Y0)})};const L3=b4&&!~j2.classes.indexOf("fa-fw")?{width:"".concat(q0/Y0*16*.0625,"em")}:{};g0&&(n0.attributes[f0]=""),U1&&(n0.children.push({tag:"title",attributes:{id:n0.attributes["aria-labelledby"]||"title-".concat(R2||R4())},children:[U1]}),delete n0.attributes.title);const z2=_(_({},n0),{},{prefix:n1,iconName:_1,main:X,mask:J,maskId:y2,transform:S1,symbol:k1,styles:_(_({},L3),j2.styles)}),{children:_4,attributes:x0}=J.found&&X.found?d3("generateAbstractMask",z2)||{children:[],attributes:{}}:d3("generateAbstractIcon",z2)||{children:[],attributes:{}};return z2.children=_4,z2.attributes=x0,k1?function Z6(P){let{prefix:X,iconName:J,children:n1,attributes:_1,symbol:S1}=P;const k1=!0===S1?"".concat(X,"-").concat(I2.cssPrefix,"-").concat(J):S1;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_(_({},_1),{},{id:k1}),children:n1}]}]}(z2):function R3(P){let{children:X,main:J,mask:n1,attributes:_1,styles:S1,transform:k1}=P;if(z3(k1)&&J.found&&!n1.found){const{width:U1,height:y2}=J,R2={x:U1/y2/2,y:.5};_1.style=E3(_(_({},S1),{},{"transform-origin":"".concat(R2.x+k1.x/16,"em ").concat(R2.y+k1.y/16,"em")}))}return[{tag:"svg",attributes:_1,children:X}]}(z2)}function N0(P){const{content:X,width:J,height:n1,transform:_1,title:S1,extra:k1,watchable:U1=!1}=P,y2=_(_(_({},k1.attributes),S1?{title:S1}:{}),{},{class:k1.classes.join(" ")});U1&&(y2[f0]="");const R2=_({},k1.styles);z3(_1)&&(R2.transform=function D6(P){let{transform:X,width:J=E6,height:n1=E6,startCentered:_1=!1}=P,S1="";return S1+=_1&&G1?"translate(".concat(X.x/p4-J/2,"em, ").concat(X.y/p4-n1/2,"em) "):_1?"translate(calc(-50% + ".concat(X.x/p4,"em), calc(-50% + ").concat(X.y/p4,"em)) "):"translate(".concat(X.x/p4,"em, ").concat(X.y/p4,"em) "),S1+="scale(".concat(X.size/p4*(X.flipX?-1:1),", ").concat(X.size/p4*(X.flipY?-1:1),") "),S1+="rotate(".concat(X.rotate,"deg) "),S1}({transform:_1,startCentered:!0,width:J,height:n1}),R2["-webkit-transform"]=R2.transform);const j2=E3(R2);j2.length>0&&(y2.style=j2);const g0=[];return g0.push({tag:"span",attributes:y2,children:[X]}),S1&&g0.push({tag:"span",attributes:{class:"sr-only"},children:[S1]}),g0}const{styles:e8}=h2;function c8(P){const X=P[0],J=P[1],[n1]=P.slice(4);let _1=null;return _1=Array.isArray(n1)?{tag:"g",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.SECONDARY),fill:"currentColor",d:n1[0]}},{tag:"path",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.PRIMARY),fill:"currentColor",d:n1[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n1}},{found:!0,width:X,height:J,icon:_1}}const i3={found:!1,width:512,height:512};function x4(P,X){let J=X;return"fa"===X&&null!==I2.styleDefault&&(X=P4()),new Promise((n1,_1)=>{if("fa"===J){const S1=R6(P)||{};P=S1.iconName||P,X=S1.prefix||X}if(P&&X&&e8[X]&&e8[X][P])return n1(c8(e8[X][P]));(function s6(P,X){!$4&&!I2.showMissingIcons&&P&&console.error('Icon with name "'.concat(P,'" and prefix "').concat(X,'" is missing.'))})(P,X),n1(_(_({},i3),{},{icon:I2.showMissingIcons&&P&&d3("missingIconAbstract")||{}}))})}const P6=()=>{},a6=I2.measurePerformance&&o2&&o2.mark&&o2.measure?o2:{mark:P6,measure:P6},u3='FA "6.7.2"',m3=P=>{a6.mark("".concat(u3," ").concat(P," ends")),a6.measure("".concat(u3," ").concat(P),"".concat(u3," ").concat(P," begins"),"".concat(u3," ").concat(P," ends"))};var _6={begin:P=>(a6.mark("".concat(u3," ").concat(P," begins")),()=>m3(P)),end:m3};const w3=()=>{};function j6(P){return"string"==typeof(P.getAttribute?P.getAttribute(f0):null)}function O6(P){return f1.createElementNS("http://www.w3.org/2000/svg",P)}function o6(P){return f1.createElement(P)}function B(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:J=("svg"===P.tag?O6:o6)}=X;if("string"==typeof P)return f1.createTextNode(P);const n1=J(P.tag);return Object.keys(P.attributes||[]).forEach(function(S1){n1.setAttribute(S1,P.attributes[S1])}),(P.children||[]).forEach(function(S1){n1.appendChild(B(S1,{ceFn:J}))}),n1}const D={replace:function(P){const X=P[0];if(X.parentNode)if(P[1].forEach(J=>{X.parentNode.insertBefore(B(J),X)}),null===X.getAttribute(f0)&&I2.keepOriginalSource){let J=f1.createComment(function G(P){let X=" ".concat(P.outerHTML," ");return X="".concat(X,"Font Awesome fontawesome.com "),X}(X));X.parentNode.replaceChild(J,X)}else X.remove()},nest:function(P){const X=P[0],J=P[1];if(~m6(X).indexOf(I2.replacementClass))return D.replace(P);const n1=new RegExp("".concat(I2.cssPrefix,"-.*"));if(delete J[0].attributes.id,J[0].attributes.class){const S1=J[0].attributes.class.split(" ").reduce((k1,U1)=>(U1===I2.replacementClass||U1.match(n1)?k1.toSvg.push(U1):k1.toNode.push(U1),k1),{toNode:[],toSvg:[]});J[0].attributes.class=S1.toSvg.join(" "),0===S1.toNode.length?X.removeAttribute("class"):X.setAttribute("class",S1.toNode.join(" "))}const _1=J.map(S1=>F0(S1)).join("\n");X.setAttribute(f0,""),X.innerHTML=_1}};function t1(P){P()}function w1(P,X){const J="function"==typeof X?X:w3;if(0===P.length)J();else{let n1=t1;I2.mutateApproach===H4&&(n1=M1.requestAnimationFrame||t1),n1(()=>{const _1=function Z4(){return!0===I2.autoReplaceSvg?D.replace:D[I2.autoReplaceSvg]||D.replace}(),S1=_6.begin("mutate");P.map(_1),S1(),J()})}}let V2=!1;function v0(){V2=!0}function b3(){V2=!1}let A3=null;function O4(P){if(!$1||!I2.observeMutations)return;const{treeCallback:X=w3,nodeCallback:J=w3,pseudoElementsCallback:n1=w3,observeMutationsRoot:_1=f1}=P;A3=new $1(S1=>{if(V2)return;const k1=P4();z0(S1).forEach(U1=>{if("childList"===U1.type&&U1.addedNodes.length>0&&!j6(U1.addedNodes[0])&&(I2.searchPseudoElements&&n1(U1.target),X(U1.target)),"attributes"===U1.type&&U1.target.parentNode&&I2.searchPseudoElements&&n1(U1.target.parentNode),"attributes"===U1.type&&j6(U1.target)&&~b2.indexOf(U1.attributeName))if("class"===U1.attributeName&&function $6(P){const X=P.getAttribute?P.getAttribute(Y2):null,J=P.getAttribute?P.getAttribute(n3):null;return X&&J}(U1.target)){const{prefix:y2,iconName:R2}=M3(m6(U1.target));U1.target.setAttribute(Y2,y2||k1),R2&&U1.target.setAttribute(n3,R2)}else(function _3(P){return P&&P.classList&&P.classList.contains&&P.classList.contains(I2.replacementClass)})(U1.target)&&J(U1.target)})}),c2&&A3.observe(_1,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Ie(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:J,prefix:n1,rest:_1}=function ge(P){const X=P.getAttribute("data-prefix"),J=P.getAttribute("data-icon"),n1=void 0!==P.innerText?P.innerText.trim():"";let _1=M3(m6(P));return _1.prefix||(_1.prefix=P4()),X&&J&&(_1.prefix=X,_1.iconName=J),_1.iconName&&_1.prefix||(_1.prefix&&n1.length>0&&(_1.iconName=function h3(P,X){return(h6[P]||{})[X]}(_1.prefix,P.innerText)||g2(_1.prefix,A0(P.innerText))),!_1.iconName&&I2.autoFetchSvg&&P.firstChild&&P.firstChild.nodeType===Node.TEXT_NODE&&(_1.iconName=P.firstChild.data)),_1}(P),S1=function _e(P){const X=z0(P.attributes).reduce((_1,S1)=>("class"!==_1.name&&"style"!==_1.name&&(_1[S1.name]=S1.value),_1),{}),J=P.getAttribute("title"),n1=P.getAttribute("data-fa-title-id");return I2.autoA11y&&(J?X["aria-labelledby"]="".concat(I2.replacementClass,"-title-").concat(n1||R4()):(X["aria-hidden"]="true",X.focusable="false")),X}(P),k1=Q6("parseNodeAttributes",{},P);let U1=X.styleParser?function h4(P){const X=P.getAttribute("style");let J=[];return X&&(J=X.split(";").reduce((n1,_1)=>{const S1=_1.split(":"),k1=S1[0],U1=S1.slice(1);return k1&&U1.length>0&&(n1[k1]=U1.join(":").trim()),n1},{})),J}(P):[];return _({iconName:J,title:P.getAttribute("title"),titleId:P.getAttribute("data-fa-title-id"),prefix:n1,transform:M4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:_1,styles:U1,attributes:S1}},k1)}const{styles:Pe}=h2;function Le(P){const X="nest"===I2.autoReplaceSvg?Ie(P,{styleParser:!1}):Ie(P);return~X.extra.classes.indexOf(m1)?d3("generateLayersText",P,X):d3("generateSvgReplacementMutation",P,X)}function L8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!c2)return Promise.resolve();const J=f1.documentElement.classList,n1=j2=>J.add("".concat(y4,"-").concat(j2)),_1=j2=>J.remove("".concat(y4,"-").concat(j2)),S1=I2.autoFetchSvg?function _8(){return[...C2,...y0]}():w2.concat(Object.keys(Pe));S1.includes("fa")||S1.push("fa");const k1=[".".concat(m1,":not([").concat(f0,"])")].concat(S1.map(j2=>".".concat(j2,":not([").concat(f0,"])"))).join(", ");if(0===k1.length)return Promise.resolve();let U1=[];try{U1=z0(P.querySelectorAll(k1))}catch{}if(!(U1.length>0))return Promise.resolve();n1("pending"),_1("complete");const y2=_6.begin("onTree"),R2=U1.reduce((j2,g0)=>{try{const q0=Le(g0);q0&&j2.push(q0)}catch(q0){$4||"MissingIcon"===q0.name&&console.error(q0)}return j2},[]);return new Promise((j2,g0)=>{Promise.all(R2).then(q0=>{w1(q0,()=>{n1("active"),n1("complete"),_1("pending"),"function"==typeof X&&X(),y2(),j2()})}).catch(q0=>{y2(),g0(q0)})})}function W8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Le(P).then(J=>{J&&w1([J],X)})}const t8=function(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:J=M4,symbol:n1=!1,mask:_1=null,maskId:S1=null,title:k1=null,titleId:U1=null,classes:y2=[],attributes:R2={},styles:j2={}}=X;if(!P)return;const{prefix:g0,iconName:q0,icon:Y0}=P;return Q4(_({type:"icon"},P),()=>(x3("beforeDOMElementCreation",{iconDefinition:P,params:X}),I2.autoA11y&&(k1?R2["aria-labelledby"]="".concat(I2.replacementClass,"-title-").concat(U1||R4()):(R2["aria-hidden"]="true",R2.focusable="false")),k3({icons:{main:c8(Y0),mask:_1?c8(_1.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g0,iconName:q0,transform:_(_({},M4),J),symbol:n1,title:k1,maskId:S1,titleId:U1,extra:{attributes:R2,styles:j2,classes:y2}})))};var B6={mixout(){return{icon:(P=t8,function(X){let J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n1=(X||{}).icon?X:G0(X||{});let{mask:_1}=J;return _1&&(_1=(_1||{}).icon?_1:G0(_1||{})),P(n1,_(_({},J),{},{mask:_1}))})};var P},hooks:()=>({mutationObserverCallbacks:P=>(P.treeCallback=L8,P.nodeCallback=W8,P)}),provides(P){P.i2svg=function(X){const{node:J=f1,callback:n1=(()=>{})}=X;return L8(J,n1)},P.generateSvgReplacementMutation=function(X,J){const{iconName:n1,title:_1,titleId:S1,prefix:k1,transform:U1,symbol:y2,mask:R2,maskId:j2,extra:g0}=J;return new Promise((q0,Y0)=>{Promise.all([x4(n1,k1),R2.iconName?x4(R2.iconName,R2.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(b4=>{let[E0,n0]=b4;q0([X,k3({icons:{main:E0,mask:n0},prefix:k1,iconName:n1,transform:U1,symbol:y2,maskId:j2,title:_1,titleId:S1,extra:g0,watchable:!0})])}).catch(Y0)})},P.generateAbstractIcon=function(X){let{children:J,attributes:n1,main:_1,transform:S1,styles:k1}=X;const U1=E3(k1);let y2;return U1.length>0&&(n1.style=U1),z3(S1)&&(y2=d3("generateAbstractTransformGrouping",{main:_1,transform:S1,containerWidth:_1.width,iconWidth:_1.width})),J.push(y2||_1.icon),{children:J,attributes:n1}}}},L6={mixout:()=>({layer(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:J=[]}=X;return Q4({type:"layer"},()=>{x3("beforeDOMElementCreation",{assembler:P,params:X});let n1=[];return P(_1=>{Array.isArray(_1)?_1.map(S1=>{n1=n1.concat(S1.abstract)}):n1=n1.concat(_1.abstract)}),[{tag:"span",attributes:{class:["".concat(I2.cssPrefix,"-layers"),...J].join(" ")},children:n1}]})}})},s5={mixout:()=>({counter(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:J=null,classes:n1=[],attributes:_1={},styles:S1={}}=X;return Q4({type:"counter",content:P},()=>(x3("beforeDOMElementCreation",{content:P,params:X}),function K6(P){const{content:X,title:J,extra:n1}=P,_1=_(_(_({},n1.attributes),J?{title:J}:{}),{},{class:n1.classes.join(" ")}),S1=E3(n1.styles);S1.length>0&&(_1.style=S1);const k1=[];return k1.push({tag:"span",attributes:_1,children:[X]}),J&&k1.push({tag:"span",attributes:{class:"sr-only"},children:[J]}),k1}({content:P.toString(),title:J,extra:{attributes:_1,styles:S1,classes:["".concat(I2.cssPrefix,"-layers-counter"),...n1]}})))}})},V6={mixout:()=>({text(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:J=M4,title:n1=null,classes:_1=[],attributes:S1={},styles:k1={}}=X;return Q4({type:"text",content:P},()=>(x3("beforeDOMElementCreation",{content:P,params:X}),N0({content:P,transform:_(_({},M4),J),title:n1,extra:{attributes:S1,styles:k1,classes:["".concat(I2.cssPrefix,"-layers-text"),..._1]}})))}}),provides(P){P.generateLayersText=function(X,J){const{title:n1,transform:_1,extra:S1}=J;let k1=null,U1=null;if(G1){const y2=parseInt(getComputedStyle(X).fontSize,10),R2=X.getBoundingClientRect();k1=R2.width/y2,U1=R2.height/y2}return I2.autoA11y&&!n1&&(S1.attributes["aria-hidden"]="true"),Promise.resolve([X,N0({content:X.innerHTML,width:k1,height:U1,transform:_1,title:n1,extra:S1,watchable:!0})])}}};const j0=new RegExp('"',"ug"),E4=[1105920,1112319],w4=_(_(_(_({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),p3=Object.keys(w4).reduce((P,X)=>(P[X.toLowerCase()]=w4[X],P),{}),K4=Object.keys(p3).reduce((P,X)=>{const J=p3[X];return P[X]=J[900]||[...Object.entries(J)][0][1],P},{});function n8(P,X){const J="".concat(T4).concat(X.replace(":","-"));return new Promise((n1,_1)=>{if(null!==P.getAttribute(J))return n1();const k1=z0(P.children).filter(q0=>q0.getAttribute(X4)===X)[0],U1=M1.getComputedStyle(P,X),y2=U1.getPropertyValue("font-family"),R2=y2.match(D1),j2=U1.getPropertyValue("font-weight"),g0=U1.getPropertyValue("content");if(k1&&!R2)return P.removeChild(k1),n1();if(R2&&"none"!==g0&&""!==g0){const q0=U1.getPropertyValue("content");let Y0=function A8(P,X){const J=P.replace(/^['"]|['"]$/g,"").toLowerCase(),n1=parseInt(X),_1=isNaN(n1)?"normal":n1;return(p3[J]||{})[_1]||K4[J]}(y2,j2);const{value:b4,isSecondary:E0}=function je(P){const X=P.replace(j0,""),J=function A4(P,X){const J=P.length;let _1,n1=P.charCodeAt(X);return n1>=55296&&n1<=56319&&J>X+1&&(_1=P.charCodeAt(X+1),_1>=56320&&_1<=57343)?1024*(n1-55296)+_1-56320+65536:n1}(X,0),n1=J>=E4[0]&&J<=E4[1],_1=2===X.length&&X[0]===X[1];return{value:A0(_1?X[0]:X),isSecondary:n1||_1}}(q0),n0=R2[0].startsWith("FontAwesome");let L3=g2(Y0,b4),z2=L3;if(n0){const _4=function n4(P){const X=R8[P],J=g2("fas",P);return X||(J?{prefix:"fas",iconName:J}:null)||{prefix:null,iconName:null}}(b4);_4.iconName&&_4.prefix&&(L3=_4.iconName,Y0=_4.prefix)}if(!L3||E0||k1&&k1.getAttribute(Y2)===Y0&&k1.getAttribute(n3)===z2)n1();else{P.setAttribute(J,z2),k1&&P.removeChild(k1);const _4=function i4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:M4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:x0}=_4;x0.attributes[X4]=X,x4(L3,Y0).then(o0=>{const q3=k3(_(_({},_4),{},{icons:{main:o0,mask:D3()},prefix:Y0,iconName:z2,extra:x0,watchable:!0})),M6=f1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===X?P.insertBefore(M6,P.firstChild):P.appendChild(M6),M6.outerHTML=q3.map($8=>F0($8)).join("\n"),P.removeAttribute(J),n1()}).catch(_1)}}else n1()})}function $e(P){return Promise.all([n8(P,"::before"),n8(P,"::after")])}function a5(P){return!(P.parentNode===document.head||~u0.indexOf(P.tagName.toUpperCase())||P.getAttribute(X4)||P.parentNode&&"svg"===P.parentNode.tagName)}function C8(P){if(c2)return new Promise((X,J)=>{const n1=z0(P.querySelectorAll("*")).filter(a5).map($e),_1=_6.begin("searchPseudoElements");v0(),Promise.all(n1).then(()=>{_1(),b3(),X()}).catch(()=>{_1(),b3(),J()})})}let M8=!1;const I8=P=>P.toLowerCase().split(" ").reduce((J,n1)=>{const _1=n1.toLowerCase().split("-"),S1=_1[0];let k1=_1.slice(1).join("-");if(S1&&"h"===k1)return J.flipX=!0,J;if(S1&&"v"===k1)return J.flipY=!0,J;if(k1=parseFloat(k1),isNaN(k1))return J;switch(S1){case"grow":J.size=J.size+k1;break;case"shrink":J.size=J.size-k1;break;case"left":J.x=J.x-k1;break;case"right":J.x=J.x+k1;break;case"up":J.y=J.y-k1;break;case"down":J.y=J.y+k1;break;case"rotate":J.rotate=J.rotate+k1}return J},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),P8={x:0,y:0,width:"100%",height:"100%"};function i6(P){return P.attributes&&(P.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(P.attributes.fill="black"),P}function v6(P){return"g"===P.tag?P.children:[P]}!function I6(P,X){let{mixoutsTo:J}=X;p0=P,g3={},Object.keys(T3).forEach(n1=>{-1===U3.indexOf(n1)&&delete T3[n1]}),p0.forEach(n1=>{const _1=n1.mixout?n1.mixout():{};if(Object.keys(_1).forEach(S1=>{"function"==typeof _1[S1]&&(J[S1]=_1[S1]),"object"==typeof _1[S1]&&Object.keys(_1[S1]).forEach(k1=>{J[S1]||(J[S1]={}),J[S1][k1]=_1[S1][k1]})}),n1.hooks){const S1=n1.hooks();Object.keys(S1).forEach(k1=>{g3[k1]||(g3[k1]=[]),g3[k1].push(S1[k1])})}n1.provides&&n1.provides(T3)})}([q1,B6,L6,s5,V6,{hooks:()=>({mutationObserverCallbacks:P=>(P.pseudoElementsCallback=C8,P)}),provides(P){P.pseudoElements2svg=function(X){const{node:J=f1}=X;I2.searchPseudoElements&&C8(J)}}},{mixout:()=>({dom:{unwatch(){v0(),M8=!0}}}),hooks:()=>({bootstrap(){O4(Q6("mutationObserverCallbacks",{}))},noAuto(){!function F6(){A3&&A3.disconnect()}()},watch(P){const{observeMutationsRoot:X}=P;M8?b3():O4(Q6("mutationObserverCallbacks",{observeMutationsRoot:X}))}})},{mixout:()=>({parse:{transform:P=>I8(P)}}),hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-transform");return J&&(P.transform=I8(J)),P}}),provides(P){P.generateAbstractTransformGrouping=function(X){let{main:J,transform:n1,containerWidth:_1,iconWidth:S1}=X;const k1={transform:"translate(".concat(_1/2," 256)")},U1="translate(".concat(32*n1.x,", ").concat(32*n1.y,") "),y2="scale(".concat(n1.size/16*(n1.flipX?-1:1),", ").concat(n1.size/16*(n1.flipY?-1:1),") "),R2="rotate(".concat(n1.rotate," 0 0)"),q0={outer:k1,inner:{transform:"".concat(U1," ").concat(y2," ").concat(R2)},path:{transform:"translate(".concat(S1/2*-1," -256)")}};return{tag:"g",attributes:_({},q0.outer),children:[{tag:"g",attributes:_({},q0.inner),children:[{tag:J.icon.tag,children:J.icon.children,attributes:_(_({},J.icon.attributes),q0.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-mask"),n1=J?M3(J.split(" ").map(_1=>_1.trim())):D3();return n1.prefix||(n1.prefix=P4()),P.mask=n1,P.maskId=X.getAttribute("data-fa-mask-id"),P}}),provides(P){P.generateAbstractMask=function(X){let{children:J,attributes:n1,main:_1,mask:S1,maskId:k1,transform:U1}=X;const{width:y2,icon:R2}=_1,{width:j2,icon:g0}=S1,q0=function p6(P){let{transform:X,containerWidth:J,iconWidth:n1}=P;const _1={transform:"translate(".concat(J/2," 256)")},S1="translate(".concat(32*X.x,", ").concat(32*X.y,") "),k1="scale(".concat(X.size/16*(X.flipX?-1:1),", ").concat(X.size/16*(X.flipY?-1:1),") "),U1="rotate(".concat(X.rotate," 0 0)");return{outer:_1,inner:{transform:"".concat(S1," ").concat(k1," ").concat(U1)},path:{transform:"translate(".concat(n1/2*-1," -256)")}}}({transform:U1,containerWidth:j2,iconWidth:y2}),Y0={tag:"rect",attributes:_(_({},P8),{},{fill:"white"})},b4=R2.children?{children:R2.children.map(i6)}:{},E0={tag:"g",attributes:_({},q0.inner),children:[i6(_({tag:R2.tag,attributes:_(_({},R2.attributes),q0.path)},b4))]},n0={tag:"g",attributes:_({},q0.outer),children:[E0]},L3="mask-".concat(k1||R4()),z2="clip-".concat(k1||R4()),_4={tag:"mask",attributes:_(_({},P8),{},{id:L3,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Y0,n0]},x0={tag:"defs",children:[{tag:"clipPath",attributes:{id:z2},children:v6(g0)},_4]};return J.push(x0,{tag:"rect",attributes:_({fill:"currentColor","clip-path":"url(#".concat(z2,")"),mask:"url(#".concat(L3,")")},P8)}),{children:J,attributes:n1}}}},{provides(P){let X=!1;M1.matchMedia&&(X=M1.matchMedia("(prefers-reduced-motion: reduce)").matches),P.missingIconAbstract=function(){const J=[],n1={fill:"currentColor"},_1={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};J.push({tag:"path",attributes:_(_({},n1),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const S1=_(_({},_1),{},{attributeName:"opacity"}),k1={tag:"circle",attributes:_(_({},n1),{},{cx:"256",cy:"364",r:"28"}),children:[]};return X||k1.children.push({tag:"animate",attributes:_(_({},_1),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_(_({},S1),{},{values:"1;0;1;1;0;1;"})}),J.push(k1),J.push({tag:"path",attributes:_(_({},n1),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:X?[]:[{tag:"animate",attributes:_(_({},S1),{},{values:"1;0;0;0;0;1;"})}]}),X||J.push({tag:"path",attributes:_(_({},n1),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_(_({},S1),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:J}}}},{hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-symbol");return P.symbol=null!==J&&(""===J||J),P}})}],{mixoutsTo:f3});const b8=f3.parse,y8=f3.icon,z6=f3.counter;var I3=y(345);const j8=["*"],F8=P=>{const X={[`fa-${P.animation}`]:null!=P.animation&&!P.animation.startsWith("spin"),"fa-spin":"spin"===P.animation||"spin-reverse"===P.animation,"fa-spin-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-spin-reverse":"spin-reverse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-fw":P.fixedWidth,"fa-border":P.border,"fa-inverse":P.inverse,"fa-layers-counter":P.counter,"fa-flip-horizontal":"horizontal"===P.flip||"both"===P.flip,"fa-flip-vertical":"vertical"===P.flip||"both"===P.flip,[`fa-${P.size}`]:null!==P.size,[`fa-rotate-${P.rotate}`]:null!==P.rotate,[`fa-pull-${P.pull}`]:null!==P.pull,[`fa-stack-${P.stackItemSize}`]:null!=P.stackItemSize};return Object.keys(X).map(J=>X[J]?J:null).filter(J=>J)};let k6=(()=>{class P{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275prov=m.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),w=(()=>{class P{constructor(){this.definitions={}}addIcons(...J){for(const n1 of J){n1.prefix in this.definitions||(this.definitions[n1.prefix]={}),this.definitions[n1.prefix][n1.iconName]=n1;for(const _1 of n1.icon[2])"string"==typeof _1&&(this.definitions[n1.prefix][_1]=n1)}}addIconPacks(...J){for(const n1 of J){const _1=Object.keys(n1).map(S1=>n1[S1]);this.addIcons(..._1)}}getIconDefinition(J,n1){return J in this.definitions&&n1 in this.definitions[J]?this.definitions[J][n1]:null}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275prov=m.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),q=(()=>{class P{constructor(){this.stackItemSize="1x"}ngOnChanges(J){if("size"in J)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275dir=m.FsC({type:P,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[m.OA$]})}}return P})(),R=(()=>{class P{constructor(J,n1){this.renderer=J,this.elementRef=n1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(J){"size"in J&&(null!=J.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${J.size.currentValue}`),null!=J.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${J.size.previousValue}`))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(m.sFG),m.rXU(m.aKT))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:j8,decls:1,vars:0,template:function(n1,_1){1&n1&&(m.NAR(),m.SdG(0))},encapsulation:2})}}return P})(),U=(()=>{class P{set spin(J){this.animation=J?"spin":void 0}set pulse(J){this.animation=J?"spin-pulse":void 0}constructor(J,n1,_1,S1,k1){this.sanitizer=J,this.config=n1,this.iconLibrary=_1,this.stackItem=S1,this.classes=[],null!=k1&&null==S1&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(J){if(null!=this.icon||null!=this.config.fallbackIcon){if(J){const _1=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=_1){const S1=this.buildParams();this.renderIcon(_1,S1)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(J){const n1=((P,X)=>(P=>void 0!==P.prefix&&void 0!==P.iconName)(P)?P:"string"==typeof P?{prefix:X,iconName:P}:{prefix:P[0],iconName:P[1]})(J,this.config.defaultPrefix);return"icon"in n1?n1:this.iconLibrary.getIconDefinition(n1.prefix,n1.iconName)??((P=>{throw new Error(`Could not find icon with iconName=${P.iconName} and prefix=${P.prefix} in the icon library.`)})(n1),null)}buildParams(){const J={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},n1="string"==typeof this.transform?b8.transform(this.transform):this.transform;return{title:this.title,transform:n1,classes:[...F8(J),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(J,n1){const _1=y8(J,n1);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(_1.html.join("\n"))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(I3.up),m.rXU(k6),m.rXU(w),m.rXU(q,8),m.rXU(R,8))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n1,_1){2&n1&&(m.Mr5("innerHTML",_1.renderedIconHTML,m.npT),m.BMQ("title",_1.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},standalone:!0,features:[m.OA$,m.aNF],decls:0,vars:0,template:function(n1,_1){},encapsulation:2})}}return P})(),a2=(()=>{class P{constructor(J,n1,_1){this.renderer=J,this.elementRef=n1,this.config=_1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(J){"size"in J&&(null!=J.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${J.size.currentValue}`),null!=J.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${J.size.previousValue}`))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(k6))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(n1,_1){2&n1&&m.AVh("fa-fw",_1.fixedWidth)},inputs:{size:"size",fixedWidth:"fixedWidth"},standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:j8,decls:1,vars:0,template:function(n1,_1){1&n1&&(m.NAR(),m.SdG(0))},encapsulation:2})}}return P})(),q2=(()=>{class P{constructor(J,n1){this.parent=J,this.sanitizer=n1,this.classes=[],((P,X,J)=>{if(!this.parent)throw new Error(`${this.constructor.name} should be used as child of FaLayersComponent only.`)})()}ngOnChanges(J){if(J){const n1=this.buildParams();this.updateContent(n1)}}buildParams(){const J=[];return null!=this.classes&&J.push(...this.classes),null!=this.position&&J.push(`fa-layers-${this.position}`),{title:this.title,classes:J,styles:this.styles}}updateContent(J){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(z6(this.content||"",J).html.join(""))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(a2,8),m.rXU(I3.up))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(n1,_1){2&n1&&m.Mr5("innerHTML",_1.renderedHTML,m.npT)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",position:"position"},standalone:!0,features:[m.OA$,m.aNF],decls:0,vars:0,template:function(n1,_1){},encapsulation:2})}}return P})(),l4=(()=>{class P{static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275mod=m.$C({type:P})}static{this.\u0275inj=m.G2t({})}}return P})()},5383:(y1,d1,y)=>{"use strict";y.d(d1,{IPD:()=>c7,JX9:()=>Qe,URI:()=>R_,YSf:()=>LL,Z8x:()=>f9,b6I:()=>hm,f2_:()=>bo,fLc:()=>S8,iRu:()=>uc,qIE:()=>Ya,sOt:()=>ss});const f9={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8 512 128l-.7 0-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48 0 224 28.2 0 91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM16 128c-8.8 0-16 7.2-16 16L0 352c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-224-80 0zM48 320a16 16 0 1 1 0 32 16 16 0 1 1 0-32zM544 128l0 224c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-208c0-8.8-7.2-16-16-16l-80 0zm32 208a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"]},S8={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},Ya={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},hm={prefix:"fas",iconName:"bolt-lightning",icon:[384,512,[],"e0b7","M0 256L28.5 28c2-16 15.6-28 31.8-28H228.9c15 0 27.1 12.1 27.1 27.1c0 3.2-.6 6.5-1.7 9.5L208 160H347.3c20.2 0 36.7 16.4 36.7 36.7c0 7.4-2.2 14.6-6.4 20.7l-192.2 281c-5.9 8.6-15.6 13.7-25.9 13.7h-2.9c-15.7 0-28.5-12.8-28.5-28.5c0-2.3 .3-4.6 .9-6.9L176 288H32c-17.7 0-32-14.3-32-32z"]},bo={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4l54.1 0 109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109 0-54.1c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7L352 176c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Qe={prefix:"fas",iconName:"file-shield",icon:[576,512,[],"e4f0","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 47-92.8 37.1c-21.3 8.5-35.2 29.1-35.2 52c0 56.6 18.9 148 94.2 208.3c-9 4.8-19.3 7.6-30.2 7.6L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zm39.1 97.7c5.7-2.3 12.1-2.3 17.8 0l120 48C570 277.4 576 286.2 576 296c0 63.3-25.9 168.8-134.8 214.2c-5.9 2.5-12.6 2.5-18.5 0C313.9 464.8 288 359.3 288 296c0-9.8 6-18.6 15.1-22.3l120-48zM527.4 312L432 273.8l0 187.8c68.2-33 91.5-99 95.4-149.7z"]},c7={prefix:"fas",iconName:"landmark",icon:[512,512,[127963],"f66f","M240.1 4.2c9.8-5.6 21.9-5.6 31.8 0l171.8 98.1L448 104l0 .9 47.9 27.4c12.6 7.2 18.8 22 15.1 36s-16.4 23.8-30.9 23.8L32 192c-14.5 0-27.2-9.8-30.9-23.8s2.5-28.8 15.1-36L64 104.9l0-.9 4.4-1.6L240.1 4.2zM64 224l64 0 0 192 40 0 0-192 64 0 0 192 48 0 0-192 64 0 0 192 40 0 0-192 64 0 0 196.3c.6 .3 1.2 .7 1.8 1.1l48 32c11.7 7.8 17 22.4 12.9 35.9S494.1 512 480 512L32 512c-14.1 0-26.5-9.2-30.6-22.7s1.1-28.1 12.9-35.9l48-32c.6-.4 1.2-.7 1.8-1.1L64 224z"]},ss={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-192 0 0 16c0 1.7-.1 3.4-.3 5L272 288l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-1.7 .1-3.4 .3-5L144 224l-96 0c-26.5 0-48-21.5-48-48L0 80z"]},R_={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},uc={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3L352 448l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288l144.9 0L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320l144.9 0L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},LL={prefix:"fas",iconName:"earth-europe",icon:[512,512,["globe-europe"],"f7a2","M266.3 48.3L232.5 73.6c-5.4 4-8.5 10.4-8.5 17.1l0 9.1c0 6.8 5.5 12.3 12.3 12.3c2.4 0 4.8-.7 6.8-2.1l41.8-27.9c2-1.3 4.4-2.1 6.8-2.1l1 0c6.2 0 11.3 5.1 11.3 11.3c0 3-1.2 5.9-3.3 8l-19.9 19.9c-5.8 5.8-12.9 10.2-20.7 12.8l-26.5 8.8c-5.8 1.9-9.6 7.3-9.6 13.4c0 3.7-1.5 7.3-4.1 10l-17.9 17.9c-6.4 6.4-9.9 15-9.9 24l0 4.3c0 16.4 13.6 29.7 29.9 29.7c11 0 21.2-6.2 26.1-16l4-8.1c2.4-4.8 7.4-7.9 12.8-7.9c4.5 0 8.7 2.1 11.4 5.7l16.3 21.7c2.1 2.9 5.5 4.5 9.1 4.5c8.4 0 13.9-8.9 10.1-16.4l-1.1-2.3c-3.5-7 0-15.5 7.5-18l21.2-7.1c7.6-2.5 12.7-9.6 12.7-17.6c0-10.3 8.3-18.6 18.6-18.6l29.4 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-20.7 0c-7.2 0-14.2 2.9-19.3 8l-4.7 4.7c-2.1 2.1-3.3 5-3.3 8c0 6.2 5.1 11.3 11.3 11.3l11.3 0c6 0 11.8 2.4 16 6.6l6.5 6.5c1.8 1.8 2.8 4.3 2.8 6.8s-1 5-2.8 6.8l-7.5 7.5C386 262 384 266.9 384 272s2 10 5.7 13.7L408 304c10.2 10.2 24.1 16 38.6 16l7.3 0c6.5-20.2 10-41.7 10-64c0-111.4-87.6-202.4-197.7-207.7zm172 307.9c-3.7-2.6-8.2-4.1-13-4.1c-6 0-11.8-2.4-16-6.6L396 332c-7.7-7.7-18-12-28.9-12c-9.7 0-19.2-3.5-26.6-9.8L314 287.4c-11.6-9.9-26.4-15.4-41.7-15.4l-20.9 0c-12.6 0-25 3.7-35.5 10.7L188.5 301c-17.8 11.9-28.5 31.9-28.5 53.3l0 3.2c0 17 6.7 33.3 18.7 45.3l16 16c8.5 8.5 20 13.3 32 13.3l21.3 0c13.3 0 24 10.7 24 24c0 2.5 .4 5 1.1 7.3c71.3-5.8 132.5-47.6 165.2-107.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM187.3 100.7c-6.2-6.2-16.4-6.2-22.6 0l-32 32c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l32-32c6.2-6.2 6.2-16.4 0-22.6z"]}},604:(y1,d1,y)=>{"use strict";y.d(d1,{$O8:()=>pN,$UM:()=>FN,APe:()=>Aw,BH7:()=>kS,Bwz:()=>km,BzA:()=>Cg,D6w:()=>el,Dwc:()=>kk,EEq:()=>Qh,EZy:()=>zS,FJA:()=>NI,GQu:()=>KV,Jt$:()=>Zj,KMJ:()=>tO,LBj:()=>fV,LP:()=>vS,MT7:()=>W7,OM7:()=>M7,PKn:()=>AL,QLR:()=>$N,QRE:()=>$l,QtJ:()=>Rc,Qux:()=>q_,R1H:()=>w9,RSf:()=>I2,SZt:()=>ke,Wcv:()=>vE,WfV:()=>ou,Wzs:()=>fO,X46:()=>wo,XYS:()=>tN,XkK:()=>hO,Z8x:()=>Qt,Zsp:()=>gD,_2z:()=>FR,_Xl:()=>oL,a5l:()=>V1,bLf:()=>y0,cKG:()=>YS,cbP:()=>TI,dmS:()=>o,e4L:()=>$z,fLc:()=>hs,hSh:()=>oT,hem:()=>kV,hzq:()=>r2,iRu:()=>dE,jBL:()=>be,jTw:()=>uc,k1j:()=>aS,l8N:()=>On,p7g:()=>Bu,pS3:()=>JD,q9c:()=>DB,qIE:()=>gn,s6x:()=>qs,tNR:()=>WS,tP3:()=>Ns,w2A:()=>g9,yYc:()=>U$,zm_:()=>aN});const y0={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},I2={prefix:"fas",iconName:"atom",icon:[512,512,[9883],"f5d2","M256 398.8c-11.8 5.1-23.4 9.7-34.9 13.5c16.7 33.8 31 35.7 34.9 35.7s18.1-1.9 34.9-35.7c-11.4-3.9-23.1-8.4-34.9-13.5zM446 256c33 45.2 44.3 90.9 23.6 128c-20.2 36.3-62.5 49.3-115.2 43.2c-22 52.1-55.6 84.8-98.4 84.8s-76.4-32.7-98.4-84.8c-52.7 6.1-95-6.8-115.2-43.2C21.7 346.9 33 301.2 66 256c-33-45.2-44.3-90.9-23.6-128c20.2-36.3 62.5-49.3 115.2-43.2C179.6 32.7 213.2 0 256 0s76.4 32.7 98.4 84.8c52.7-6.1 95 6.8 115.2 43.2c20.7 37.1 9.4 82.8-23.6 128zm-65.8 67.4c-1.7 14.2-3.9 28-6.7 41.2c31.8 1.4 38.6-8.7 40.2-11.7c2.3-4.2 7-17.9-11.9-48.1c-6.8 6.3-14 12.5-21.6 18.6zm-6.7-175.9c2.8 13.1 5 26.9 6.7 41.2c7.6 6.1 14.8 12.3 21.6 18.6c18.9-30.2 14.2-44 11.9-48.1c-1.6-2.9-8.4-13-40.2-11.7zM290.9 99.7C274.1 65.9 259.9 64 256 64s-18.1 1.9-34.9 35.7c11.4 3.9 23.1 8.4 34.9 13.5c11.8-5.1 23.4-9.7 34.9-13.5zm-159 88.9c1.7-14.3 3.9-28 6.7-41.2c-31.8-1.4-38.6 8.7-40.2 11.7c-2.3 4.2-7 17.9 11.9 48.1c6.8-6.3 14-12.5 21.6-18.6zM110.2 304.8C91.4 335 96 348.7 98.3 352.9c1.6 2.9 8.4 13 40.2 11.7c-2.8-13.1-5-26.9-6.7-41.2c-7.6-6.1-14.8-12.3-21.6-18.6zM336 256a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zm-80-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},be={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]},V1={prefix:"fas",iconName:"message-pen",icon:[512,512,["comment-alt-edit","message-edit"],"f4a4","M0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-80-96 0c-35.3 0-64-28.7-64-64L0 64zm340.8 59c-14.7-14.7-38.6-14.7-53.3 0L272.6 138l53.3 53.3 14.9-14.9c14.7-14.7 14.7-38.6 0-53.3zM178.1 232.5c-4.1 4.1-7 9.2-8.4 14.9L160.5 284c-1.4 5.5 .2 11.2 4.2 15.2s9.7 5.6 15.2 4.2l36.6-9.2c5.6-1.4 10.8-4.3 14.9-8.4l71.9-71.9L250 160.6l-71.9 71.9z"]},ke={prefix:"fas",iconName:"arrow-progress",icon:[512,512,[],"e5df","M448 128A64 64 0 1 0 448 0a64 64 0 1 0 0 128zM128 32C57.3 32 0 89.3 0 160s57.3 128 128 128l256 0c35.3 0 64 28.7 64 64c0 27.9-17.9 51.7-42.8 60.4c-11.5-17.1-31-28.4-53.2-28.4c-35.3 0-64 28.7-64 64s28.7 64 64 64c24.7 0 46.1-14 56.8-34.4C467.6 466.1 512 414.2 512 352c0-70.7-57.3-128-128-128l-256 0c-35.3 0-64-28.7-64-64s28.7-64 64-64l128 0 0 14.1c0 9.9 8 17.9 17.9 17.9c4 0 7.8-1.3 11-3.8l60.8-47.3c4-3.1 6.3-7.9 6.3-12.9s-2.3-9.8-6.3-12.9L284.8 3.8c-3.1-2.4-7-3.8-11-3.8C264 0 256 8 256 17.9L256 32 128 32zm-8.6 384c-11.1-19.1-31.7-32-55.4-32c-35.3 0-64 28.7-64 64s28.7 64 64 64c23.7 0 44.4-12.9 55.4-32l40.6 0 0 14.1c0 9.9 8 17.9 17.9 17.9c4 0 7.8-1.3 11-3.8l60.8-47.3c4-3.1 6.3-7.9 6.3-12.9s-2.3-9.8-6.3-12.9l-60.8-47.3c-3.1-2.4-7-3.8-11-3.8c-9.9 0-17.9 8-17.9 17.9l0 14.1-40.6 0z"]},On={prefix:"fas",iconName:"swatchbook",icon:[512,512,[],"f5c3","M0 32C0 14.3 14.3 0 32 0L160 0c17.7 0 32 14.3 32 32l0 384c0 53-43 96-96 96s-96-43-96-96L0 32zM223.6 425.9c.3-3.3 .4-6.6 .4-9.9l0-262 75.4-75.4c12.5-12.5 32.8-12.5 45.3 0l90.5 90.5c12.5 12.5 12.5 32.8 0 45.3L223.6 425.9zM182.8 512l192-192L480 320c17.7 0 32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-297.2 0zM128 64L64 64l0 64 64 0 0-64zM64 192l0 64 64 0 0-64-64 0zM96 440a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},qs={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]},W7={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},ou={prefix:"fas",iconName:"bag-shopping",icon:[448,512,["shopping-bag"],"f290","M160 112c0-35.3 28.7-64 64-64s64 28.7 64 64l0 48-128 0 0-48zm-48 48l-64 0c-26.5 0-48 21.5-48 48L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-208c0-26.5-21.5-48-48-48l-64 0 0-48C336 50.1 285.9 0 224 0S112 50.1 112 112l0 48zm24 48a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm152 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Rc={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},g9={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Bu={prefix:"fas",iconName:"sparkles",icon:[512,512,[10024],"f890","M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"]},w9={prefix:"fas",iconName:"shield-check",icon:[512,512,[],"f2f7","M269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2c.5 99.2 41.3 280.7 213.6 363.2c16.7 8 36.1 8 52.8 0C454.7 420.7 495.5 239.2 496 140c.1-26.2-16.3-47.9-38.3-57.2L269.4 2.9zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},wo={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},$z={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75l-8.7 0-32 0-96 0c-35.3 0-64 28.7-64 64l0 96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-128 8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-147.6c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4L480 32zm-64 76.7L416 240l0 131.3C357.2 317.8 280.5 288 200.7 288l-8.7 0 0-96 8.7 0c79.8 0 156.5-29.8 215.3-83.3z"]},km={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},el={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Qt={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8 512 128l-.7 0-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48 0 224 28.2 0 91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM16 128c-8.8 0-16 7.2-16 16L0 352c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-224-80 0zM48 320a16 16 0 1 1 0 32 16 16 0 1 1 0-32zM544 128l0 224c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-208c0-8.8-7.2-16-16-16l-80 0zm32 208a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"]},$l={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Qh={prefix:"fas",iconName:"hand-holding-circle-dollar",icon:[576,512,[],"e621","M128 144a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm120.8-32.6c.6-.9 1.8-2.1 4.2-3.4c5.1-2.7 12.5-4.1 18.7-4c8.2 .1 17.1 1.8 26.4 4.1c8.6 2.1 17.3-3.1 19.4-11.7s-3.1-17.3-11.7-19.4c-5.6-1.4-11.6-2.7-17.9-3.7l0-9.4c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 9.5c-6.1 1.2-12.3 3.2-18 6.3c-11.8 6.3-23 18.4-21.8 37.2c1 16 11.7 25.3 21.6 30.7c8.8 4.7 19.7 7.8 28.6 10.3l1.8 .5c10.3 2.9 17.9 5.2 23.2 8.3c4.5 2.7 4.7 4.2 4.7 5.6c.1 2.4-.5 3.7-1 4.5c-.6 1-1.8 2.2-4 3.3c-4.7 2.5-11.8 3.8-18.5 3.6c-9.5-.3-18.5-3.1-29.9-6.8c-1.9-.6-3.8-1.2-5.8-1.8c-8.4-2.6-17.4 2.1-20 10.5s2.1 17.4 10.5 20c1.6 .5 3.3 1 5 1.6c0 0 0 0 0 0s0 0 0 0c7.1 2.3 15.1 4.9 23.7 6.6l0 11.4c0 8.8 7.2 16 16 16s16-7.2 16-16l0-10.8c6.2-1.1 12.5-3.1 18.3-6.2c12.1-6.5 22.3-18.7 21.7-36.9c-.5-16.2-10.3-26.3-20.5-32.3c-9.4-5.6-21.2-8.9-30.5-11.5l-.2 0c-10.4-2.9-18.3-5.2-23.9-8.2c-4.8-2.6-4.8-4-4.8-4.5c0 0 0 0 0-.1c-.1-1.9 .3-2.9 .8-3.6zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L192 512 32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l36.8 0 44.9-36c22.7-18.2 50.9-28 80-28l78.3 0 16 0 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l120.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384c0 0 0 0 0 0l-.9 0c.3 0 .6 0 .9 0z"]},Cg={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"]},hs={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},gn={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},M7={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8L32 224c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l256 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},q_={prefix:"fas",iconName:"chart-network",icon:[640,512,[],"f78a","M288 64c0 13.7-4.3 26.3-11.6 36.7l29.2 62.5c9.8-2.1 20-3.2 30.4-3.2c36.1 0 69 13.3 94.3 35.2L512.4 135c-.2-2.3-.4-4.6-.4-7c0-35.3 28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64c-9.2 0-17.9-1.9-25.8-5.4l-82 60.2c7.6 17.5 11.8 36.9 11.8 57.2c0 15.6-2.5 30.7-7.1 44.8l72 43.2c9.2-5.1 19.8-8 31.1-8c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64l0-1.1-72.1-43.3C413.7 431 376.8 448 336 448c-68.5 0-125.9-47.9-140.4-112l-76.1 0c-11.1 19.1-31.7 32-55.4 32c-35.3 0-64-28.7-64-64s28.7-64 64-64c23.7 0 44.4 12.9 55.4 32l76.1 0c7.5-33 26.3-61.6 52.1-81.7l-29.2-62.5C185.7 124.9 160 97.5 160 64c0-35.3 28.7-64 64-64s64 28.7 64 64zm48 288a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},oL={prefix:"fas",iconName:"puzzle-piece",icon:[512,512,[129513],"f12e","M192 104.8c0-9.2-5.8-17.3-13.2-22.8C167.2 73.3 160 61.3 160 48c0-26.5 28.7-48 64-48s64 21.5 64 48c0 13.3-7.2 25.3-18.8 34c-7.4 5.5-13.2 13.6-13.2 22.8c0 12.8 10.4 23.2 23.2 23.2l56.8 0c26.5 0 48 21.5 48 48l0 56.8c0 12.8 10.4 23.2 23.2 23.2c9.2 0 17.3-5.8 22.8-13.2c8.7-11.6 20.7-18.8 34-18.8c26.5 0 48 28.7 48 64s-21.5 64-48 64c-13.3 0-25.3-7.2-34-18.8c-5.5-7.4-13.6-13.2-22.8-13.2c-12.8 0-23.2 10.4-23.2 23.2L384 464c0 26.5-21.5 48-48 48l-56.8 0c-12.8 0-23.2-10.4-23.2-23.2c0-9.2 5.8-17.3 13.2-22.8c11.6-8.7 18.8-20.7 18.8-34c0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34c7.4 5.5 13.2 13.6 13.2 22.8c0 12.8-10.4 23.2-23.2 23.2L48 512c-26.5 0-48-21.5-48-48L0 343.2C0 330.4 10.4 320 23.2 320c9.2 0 17.3 5.8 22.8 13.2C54.7 344.8 66.7 352 80 352c26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8C40.5 250.2 32.4 256 23.2 256C10.4 256 0 245.6 0 232.8L0 176c0-26.5 21.5-48 48-48l120.8 0c12.8 0 23.2-10.4 23.2-23.2z"]},uc={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Ns={prefix:"fas",iconName:"object-exclude",icon:[512,512,[],"e49c","M0 64C0 28.7 28.7 0 64 0L288 0c35.3 0 64 28.7 64 64l0 96 96 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64l0-96-96 0c-35.3 0-64-28.7-64-64L0 64zM320 192l-128 0 0 128 128 0 0-128z"]},o={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},r2={prefix:"fas",iconName:"hands-holding-heart",icon:[640,512,["hands-heart"],"f4c3","M195.9 136.9c-29.4-29.8-29.4-78.2 0-108s77-29.8 106.4 0l17.7 18 17.7-18c29.4-29.8 77-29.8 106.4 0s29.4 78.2 0 108L342.5 240.1c-6.2 6.3-14.3 9.4-22.5 9.4s-16.3-3.1-22.5-9.4L195.9 136.9zM40 64c22.1 0 40 17.9 40 40l0 40 0 80 0 40.2c0 17 6.7 33.3 18.7 45.3l51.1 51.1c8.3 8.3 21.3 9.6 31 3.1c12.9-8.6 14.7-26.9 3.7-37.8l-15.2-15.2-32-32c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l32 32 15.2 15.2c0 0 0 0 0 0l25.3 25.3c21 21 32.8 49.5 32.8 79.2l0 78.9c0 26.5-21.5 48-48 48l-66.7 0c-17 0-33.3-6.7-45.3-18.7L28.1 393.4C10.1 375.4 0 351 0 325.5L0 224l0-64 0-56C0 81.9 17.9 64 40 64zm560 0c22.1 0 40 17.9 40 40l0 56 0 64 0 101.5c0 25.5-10.1 49.9-28.1 67.9L512 493.3c-12 12-28.3 18.7-45.3 18.7L400 512c-26.5 0-48-21.5-48-48l0-78.9c0-29.7 11.8-58.2 32.8-79.2l25.3-25.3c0 0 0 0 0 0l15.2-15.2 32-32c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-32 32-15.2 15.2c-11 11-9.2 29.2 3.7 37.8c9.7 6.5 22.7 5.2 31-3.1l51.1-51.1c12-12 18.7-28.3 18.7-45.3l0-40.2 0-80 0-40c0-22.1 17.9-40 40-40z"]},gD={prefix:"fas",iconName:"badge-check",icon:[512,512,[],"f336","M256 0c36.8 0 68.8 20.7 84.9 51.1C373.8 41 411 49 437 75s34 63.3 23.9 96.1C491.3 187.2 512 219.2 512 256s-20.7 68.8-51.1 84.9C471 373.8 463 411 437 437s-63.3 34-96.1 23.9C324.8 491.3 292.8 512 256 512s-68.8-20.7-84.9-51.1C138.2 471 101 463 75 437s-34-63.3-23.9-96.1C20.7 324.8 0 292.8 0 256s20.7-68.8 51.1-84.9C41 138.2 49 101 75 75s63.3-34 96.1-23.9C187.2 20.7 219.2 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},Aw={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},JD={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},oT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},aS={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 96l0 128-160 0 0-128 160 0zm0 192l0 128-160 0 0-128 160 0zM224 224L64 224 64 96l160 0 0 128zM64 288l160 0 0 128L64 416l0-128zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},FR={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},zS={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},vS={prefix:"fas",iconName:"file-certificate",icon:[512,512,["file-award"],"f5f3","M128 64c0-35.3 28.7-64 64-64L352 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64l-226.7 0c1.8-5.1 2.7-10.5 2.7-16l0-80c1.3-.5 2.5-1 3.8-1.5c6.8-3 14.3-7.8 20.6-15.5c6.4-7.9 10.1-17.2 11.4-27.1c.5-3.6 .8-5.7 1.1-7.1c1.1-.9 2.8-2.3 5.6-4.5c19.9-15.4 27.1-42.2 17.5-65.5c-1.4-3.3-2.1-5.4-2.6-6.7c.5-1.4 1.2-3.4 2.6-6.7c9.5-23.3 2.4-50.1-17.5-65.5c-2.8-2.2-4.5-3.6-5.6-4.5c-.3-1.4-.6-3.6-1.1-7.1c-3.4-24.9-23-44.6-47.9-47.9c-3.6-.5-5.7-.8-7.1-1.1c-.9-1.1-2.3-2.8-4.5-5.6c-15.4-19.9-42.2-27.1-65.5-17.5c-2.6 1.1-5.1 2.3-6.6 3l-.1 .1L128 64zm384 64l-128 0L384 0 512 128zM109.2 161.6L125 168c1.9 .8 4.1 .8 6.1 0l15.8-6.5c10-4.1 21.5-1 28.1 7.5l10.5 13.5c1.3 1.7 3.2 2.7 5.2 3l16.9 2.3c10.7 1.5 19.1 9.9 20.5 20.5l2.3 16.9c.3 2.1 1.4 4 3 5.2l13.5 10.5c8.5 6.6 11.6 18.1 7.5 28.1L248 285c-.8 1.9-.8 4.1 0 6.1l6.5 15.8c4.1 10 1 21.5-7.5 28.1l-13.5 10.5c-1.7 1.3-2.7 3.2-3 5.2l-2.3 16.9c-1.5 10.7-9.9 19.1-20.5 20.6L192 390.2 192 496c0 5.9-3.2 11.3-8.5 14.1s-11.5 2.5-16.4-.8L128 483.2 88.9 509.3c-4.9 3.3-11.2 3.6-16.4 .8s-8.5-8.2-8.5-14.1l0-105.8-15.5-2.1c-10.7-1.5-19.1-9.9-20.5-20.6l-2.3-16.9c-.3-2.1-1.4-4-3-5.2L9.1 334.9c-8.5-6.6-11.6-18.1-7.5-28.1L8 291c.8-1.9 .8-4.1 0-6.1L1.6 269.2c-4.1-10-1-21.5 7.5-28.1l13.5-10.5c1.7-1.3 2.7-3.2 3-5.2l2.3-16.9c1.5-10.7 9.9-19.1 20.5-20.5l16.9-2.3c2.1-.3 4-1.4 5.2-3l10.5-13.5c6.6-8.5 18.1-11.6 28.1-7.5zM192 288A64 64 0 1 0 64 288a64 64 0 1 0 128 0z"]},kS={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},NI={prefix:"fas",iconName:"swap",icon:[640,512,[],"e609","M237 141.6c-5.3 11.2-16.6 18.4-29 18.4l-48 0 0 192c0 35.3 28.7 64 64 64s64-28.7 64-64l0-192c0-70.7 57.3-128 128-128s128 57.3 128 128l0 192 48 0c12.4 0 23.7 7.2 29 18.4s3.6 24.5-4.4 34.1l-80 96c-6.1 7.3-15.1 11.5-24.6 11.5s-18.5-4.2-24.6-11.5l-80-96c-7.9-9.5-9.7-22.8-4.4-34.1s16.6-18.4 29-18.4l48 0 0-192c0-35.3-28.7-64-64-64s-64 28.7-64 64l0 192c0 70.7-57.3 128-128 128s-128-57.3-128-128l0-192-48 0c-12.4 0-23.7-7.2-29-18.4s-3.6-24.5 4.4-34.1l80-96C109.5 4.2 118.5 0 128 0s18.5 4.2 24.6 11.5l80 96c7.9 9.5 9.7 22.8 4.4 34.1z"]},TI={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},YS={prefix:"fas",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M0 96l576 0c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zm0 32L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-288L0 128zM64 405.3c0-29.5 23.9-53.3 53.3-53.3l117.3 0c29.5 0 53.3 23.9 53.3 53.3c0 5.9-4.8 10.7-10.7 10.7L74.7 416c-5.9 0-10.7-4.8-10.7-10.7zM176 192a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm176 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},WS={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},tN={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},aN={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},kk={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},pN={prefix:"fas",iconName:"credit-card",icon:[576,512,[128179,62083,"credit-card-alt"],"f09d","M64 32C28.7 32 0 60.7 0 96l0 32 576 0 0-32c0-35.3-28.7-64-64-64L64 32zM576 224L0 224 0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-192zM112 352l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm112 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},FN={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Zj={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},$N={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},U$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},tO={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2l0 82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9l0-107.2c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},fO={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},hO={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},DB={prefix:"fas",iconName:"chart-column",icon:[512,512,[],"e0e3","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zM160 224c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32zm128-64l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32s32 14.3 32 32zm64 32c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96c0-17.7 14.3-32 32-32zM480 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-224c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},dE={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3L352 448l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288l144.9 0L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320l144.9 0L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},fV={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},kV={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"]},KV={prefix:"fas",iconName:"brain",icon:[512,512,[129504],"f5dc","M184 0c30.9 0 56 25.1 56 56l0 400c0 30.9-25.1 56-56 56c-28.9 0-52.7-21.9-55.7-50.1c-5.2 1.4-10.7 2.1-16.3 2.1c-35.3 0-64-28.7-64-64c0-7.4 1.3-14.6 3.6-21.2C21.4 367.4 0 338.2 0 304c0-31.9 18.7-59.5 45.8-72.3C37.1 220.8 32 207 32 192c0-30.7 21.6-56.3 50.4-62.6C80.8 123.9 80 118 80 112c0-29.9 20.6-55.1 48.3-62.1C131.3 21.9 155.1 0 184 0zM328 0c28.9 0 52.6 21.9 55.7 49.9c27.8 7 48.3 32.1 48.3 62.1c0 6-.8 11.9-2.4 17.4c28.8 6.2 50.4 31.9 50.4 62.6c0 15-5.1 28.8-13.8 39.7C493.3 244.5 512 272.1 512 304c0 34.2-21.4 63.4-51.6 74.8c2.3 6.6 3.6 13.8 3.6 21.2c0 35.3-28.7 64-64 64c-5.6 0-11.1-.7-16.3-2.1c-3 28.2-26.8 50.1-55.7 50.1c-30.9 0-56-25.1-56-56l0-400c0-30.9 25.1-56 56-56z"]},vE={prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"]},AL={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160l0 8c0 13.3 10.7 24 24 24l400 0c13.3 0 24-10.7 24-24l0-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224l-64 0 0 196.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512l448 0c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1L448 224l-64 0 0 192-40 0 0-192-64 0 0 192-48 0 0-192-64 0 0 192-40 0 0-192zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]}},3955:(y1,d1,y)=>{"use strict";y.d(d1,{D9:()=>Z0,Wr:()=>Y,c$:()=>t0,h:()=>B4});var m=y(4438),g=y(7673),e=y(4402),p=y(7468),_=y(8793),S=y(9030),A=y(6697),$=y(253),Z=y(6354),K=y(274),p1=y(5558);class Y{}let h1=(()=>{class x2 extends Y{getTranslation(v1){return(0,g.of)({})}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class e1{}let r1=(()=>{class x2{handle(v1){return v1.key}static \u0275fac=function(e2){return new(e2||x2)};static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();function M1(x2,w0){if(x2===w0)return!0;if(null===x2||null===w0)return!1;if(x2!=x2&&w0!=w0)return!0;let C2,E1,j1,v1=typeof x2;if(v1==typeof w0&&"object"==v1){if(!Array.isArray(x2)){if(Array.isArray(w0))return!1;for(E1 in j1=Object.create(null),x2){if(!M1(x2[E1],w0[E1]))return!1;j1[E1]=!0}for(E1 in w0)if(!(E1 in j1)&&typeof w0[E1]<"u")return!1;return!0}if(!Array.isArray(w0))return!1;if((C2=x2.length)==w0.length){for(E1=0;E1{$1(w0[e2])?e2 in x2?v1[e2]=o2(x2[e2],w0[e2]):Object.assign(v1,{[e2]:w0[e2]}):Object.assign(v1,{[e2]:w0[e2]})}),v1}class S2{}let c2=(()=>{class x2 extends S2{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(v1,e2){let C2;return C2="string"==typeof v1?this.interpolateString(v1,e2):"function"==typeof v1?this.interpolateFunction(v1,e2):v1,C2}getValue(v1,e2){let C2="string"==typeof e2?e2.split("."):[e2];e2="";do{e2+=C2.shift(),!f1(v1)||!f1(v1[e2])||"object"!=typeof v1[e2]&&C2.length?C2.length?e2+=".":v1=void 0:(v1=v1[e2],e2="")}while(C2.length);return v1}interpolateFunction(v1,e2){return v1(e2)}interpolateString(v1,e2){return e2?v1.replace(this.templateMatcher,(C2,E1)=>{let j1=this.getValue(e2,E1);return f1(j1)?j1:C2}):v1}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class G1{}let O1=(()=>{class x2 extends G1{compile(v1,e2){return v1}compileTranslations(v1,e2){return v1}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class d0{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new m.bkB;onLangChange=new m.bkB;onDefaultLangChange=new m.bkB}const d2=new m.nKC("USE_STORE"),_2=new m.nKC("USE_DEFAULT_LANG"),w2=new m.nKC("DEFAULT_LANGUAGE"),v2=new m.nKC("USE_EXTEND");let t0=(()=>{class x2{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new m.bkB;_onLangChange=new m.bkB;_onDefaultLangChange=new m.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(v1){this.isolate?this._defaultLang=v1:this.store.defaultLang=v1}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(v1){this.isolate?this._currentLang=v1:this.store.currentLang=v1}get langs(){return this.isolate?this._langs:this.store.langs}set langs(v1){this.isolate?this._langs=v1:this.store.langs=v1}get translations(){return this.isolate?this._translations:this.store.translations}set translations(v1){this.isolate?this._translations=v1:this.store.translations=v1}constructor(v1,e2,C2,E1,j1,A1=!0,H1=!1,P1=!1,K1){this.store=v1,this.currentLoader=e2,this.compiler=C2,this.parser=E1,this.missingTranslationHandler=j1,this.useDefaultLang=A1,this.isolate=H1,this.extend=P1,K1&&this.setDefaultLang(K1)}setDefaultLang(v1){if(v1===this.defaultLang)return;let e2=this.retrieveTranslations(v1);typeof e2<"u"?(null==this.defaultLang&&(this.defaultLang=v1),e2.pipe((0,A.s)(1)).subscribe(C2=>{this.changeDefaultLang(v1)})):this.changeDefaultLang(v1)}getDefaultLang(){return this.defaultLang}use(v1){if(v1===this.currentLang)return(0,g.of)(this.translations[v1]);let e2=this.retrieveTranslations(v1);return typeof e2<"u"?(this.currentLang||(this.currentLang=v1),e2.pipe((0,A.s)(1)).subscribe(C2=>{this.changeLang(v1)}),e2):(this.changeLang(v1),(0,g.of)(this.translations[v1]))}retrieveTranslations(v1){let e2;return(typeof this.translations[v1]>"u"||this.extend)&&(this._translationRequests[v1]=this._translationRequests[v1]||this.getTranslation(v1),e2=this._translationRequests[v1]),e2}getTranslation(v1){this.pending=!0;const e2=this.currentLoader.getTranslation(v1).pipe((0,$.t)(1),(0,A.s)(1));return this.loadingTranslations=e2.pipe((0,Z.T)(C2=>this.compiler.compileTranslations(C2,v1)),(0,$.t)(1),(0,A.s)(1)),this.loadingTranslations.subscribe({next:C2=>{this.translations[v1]=this.extend&&this.translations[v1]?{...C2,...this.translations[v1]}:C2,this.updateLangs(),this.pending=!1},error:C2=>{this.pending=!1}}),e2}setTranslation(v1,e2,C2=!1){e2=this.compiler.compileTranslations(e2,v1),this.translations[v1]=(C2||this.extend)&&this.translations[v1]?o2(this.translations[v1],e2):e2,this.updateLangs(),this.onTranslationChange.emit({lang:v1,translations:this.translations[v1]})}getLangs(){return this.langs}addLangs(v1){v1.forEach(e2=>{-1===this.langs.indexOf(e2)&&this.langs.push(e2)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(v1,e2,C2){let E1;if(e2 instanceof Array){let j1={},A1=!1;for(let H1 of e2)j1[H1]=this.getParsedResult(v1,H1,C2),(0,e.A)(j1[H1])&&(A1=!0);if(A1){const H1=e2.map(P1=>(0,e.A)(j1[P1])?j1[P1]:(0,g.of)(j1[P1]));return(0,p.p)(H1).pipe((0,Z.T)(P1=>{let K1={};return P1.forEach((Q,t2)=>{K1[e2[t2]]=Q}),K1}))}return j1}if(v1&&(E1=this.parser.interpolate(this.parser.getValue(v1,e2),C2)),typeof E1>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(E1=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e2),C2)),typeof E1>"u"){let j1={key:e2,translateService:this};typeof C2<"u"&&(j1.interpolateParams=C2),E1=this.missingTranslationHandler.handle(j1)}return typeof E1<"u"?E1:e2}get(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,K.H)(C2=>(C2=this.getParsedResult(C2,v1,e2),(0,e.A)(C2)?C2:(0,g.of)(C2))));{let C2=this.getParsedResult(this.translations[this.currentLang],v1,e2);return(0,e.A)(C2)?C2:(0,g.of)(C2)}}getStreamOnTranslationChange(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');return(0,_.x)((0,S.v)(()=>this.get(v1,e2)),this.onTranslationChange.pipe((0,p1.n)(C2=>{const E1=this.getParsedResult(C2.translations,v1,e2);return"function"==typeof E1.subscribe?E1:(0,g.of)(E1)})))}stream(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');return(0,_.x)((0,S.v)(()=>this.get(v1,e2)),this.onLangChange.pipe((0,p1.n)(C2=>{const E1=this.getParsedResult(C2.translations,v1,e2);return(0,e.A)(E1)?E1:(0,g.of)(E1)})))}instant(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');let C2=this.getParsedResult(this.translations[this.currentLang],v1,e2);if((0,e.A)(C2)){if(v1 instanceof Array){let E1={};return v1.forEach((j1,A1)=>{E1[v1[A1]]=v1[A1]}),E1}return v1}return C2}set(v1,e2,C2=this.currentLang){this.translations[C2][v1]=this.compiler.compile(e2,C2),this.updateLangs(),this.onTranslationChange.emit({lang:C2,translations:this.translations[C2]})}changeLang(v1){this.currentLang=v1,this.onLangChange.emit({lang:v1,translations:this.translations[v1]}),null==this.defaultLang&&this.changeDefaultLang(v1)}changeDefaultLang(v1){this.defaultLang=v1,this.onDefaultLangChange.emit({lang:v1,translations:this.translations[v1]})}reloadLang(v1){return this.resetLang(v1),this.getTranslation(v1)}resetLang(v1){this._translationRequests[v1]=void 0,this.translations[v1]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let v1=window.navigator.languages?window.navigator.languages[0]:null;return v1=v1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof v1>"u"?void 0:(-1!==v1.indexOf("-")&&(v1=v1.split("-")[0]),-1!==v1.indexOf("_")&&(v1=v1.split("_")[0]),v1)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let v1=window.navigator.languages?window.navigator.languages[0]:null;return v1=v1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,v1}static \u0275fac=function(e2){return new(e2||x2)(m.KVO(d0),m.KVO(Y),m.KVO(G1),m.KVO(S2),m.KVO(e1),m.KVO(_2),m.KVO(d2),m.KVO(v2),m.KVO(w2))};static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})(),Z0=(()=>{class x2{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(v1,e2){this.translate=v1,this._ref=e2}updateValue(v1,e2,C2){let E1=j1=>{this.value=void 0!==j1?j1:v1,this.lastKey=v1,this._ref.markForCheck()};if(C2){let j1=this.translate.getParsedResult(C2,v1,e2);(0,e.A)(j1.subscribe)?j1.subscribe(E1):E1(j1)}this.translate.get(v1,e2).subscribe(E1)}transform(v1,...e2){if(!v1||!v1.length)return v1;if(M1(v1,this.lastKey)&&M1(e2,this.lastParams))return this.value;let C2;if(f1(e2[0])&&e2.length)if("string"==typeof e2[0]&&e2[0].length){let E1=e2[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{C2=JSON.parse(E1)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e2[0]}`)}}else"object"==typeof e2[0]&&!Array.isArray(e2[0])&&(C2=e2[0]);return this.lastKey=v1,this.lastParams=e2,this.updateValue(v1,C2),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(E1=>{this.lastKey&&E1.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(v1,C2,E1.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(E1=>{this.lastKey&&(this.lastKey=null,this.updateValue(v1,C2,E1.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(v1,C2))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(e2){return new(e2||x2)(m.rXU(t0,16),m.rXU(m.gRc,16))};static \u0275pipe=m.EJ8({name:"translate",type:x2,pure:!1});static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})(),B4=(()=>{class x2{static forRoot(v1={}){return{ngModule:x2,providers:[v1.loader||{provide:Y,useClass:h1},v1.compiler||{provide:G1,useClass:O1},v1.parser||{provide:S2,useClass:c2},v1.missingTranslationHandler||{provide:e1,useClass:r1},d0,{provide:d2,useValue:v1.isolate},{provide:_2,useValue:v1.useDefaultLang},{provide:v2,useValue:v1.extend},{provide:w2,useValue:v1.defaultLanguage},t0]}}static forChild(v1={}){return{ngModule:x2,providers:[v1.loader||{provide:Y,useClass:h1},v1.compiler||{provide:G1,useClass:O1},v1.parser||{provide:S2,useClass:c2},v1.missingTranslationHandler||{provide:e1,useClass:r1},{provide:d2,useValue:v1.isolate},{provide:_2,useValue:v1.useDefaultLang},{provide:v2,useValue:v1.extend},{provide:w2,useValue:v1.defaultLanguage},t0]}}static \u0275fac=function(e2){return new(e2||x2)};static \u0275mod=m.$C({type:x2});static \u0275inj=m.G2t({})}return x2})()},8866:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>p});class m extends Error{}function p(_,S){if("string"!=typeof _)throw new m("Invalid token specified: must be a string");S||(S={});const A=!0===S.header?0:1,$=_.split(".")[A];if("string"!=typeof $)throw new m(`Invalid token specified: missing part #${A+1}`);let Z;try{Z=function e(_){let S=_.replace(/-/g,"+").replace(/_/g,"/");switch(S.length%4){case 0:break;case 2:S+="==";break;case 3:S+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function g(_){return decodeURIComponent(atob(_).replace(/(.)/g,(S,A)=>{let $=A.charCodeAt(0).toString(16).toUpperCase();return $.length<2&&($="0"+$),"%"+$}))}(S)}catch{return atob(S)}}($)}catch(K){throw new m(`Invalid token specified: invalid base64 for part #${A+1} (${K.message})`)}try{return JSON.parse(Z)}catch(K){throw new m(`Invalid token specified: invalid json for part #${A+1} (${K.message})`)}}m.prototype.name="InvalidTokenError"},467:(y1,d1,y)=>{"use strict";function m(e,p,_,S,A,$,Z){try{var K=e[$](Z),p1=K.value}catch(Y){return void _(Y)}K.done?p(p1):Promise.resolve(p1).then(S,A)}function g(e){return function(){var p=this,_=arguments;return new Promise(function(S,A){var $=e.apply(p,_);function Z(p1){m($,S,A,Z,K,"next",p1)}function K(p1){m($,S,A,Z,K,"throw",p1)}Z(void 0)})}}y.d(d1,{A:()=>g})},1635:(y1,d1,y)=>{"use strict";function Y(E1,j1,A1,H1){return new(A1||(A1=Promise))(function(K1,Q){function t2(l0){try{p2(H1.next(l0))}catch(s0){Q(s0)}}function s2(l0){try{p2(H1.throw(l0))}catch(s0){Q(s0)}}function p2(l0){l0.done?K1(l0.value):function P1(K1){return K1 instanceof A1?K1:new A1(function(Q){Q(K1)})}(l0.value).then(t2,s2)}p2((H1=H1.apply(E1,j1||[])).next())})}function c2(E1){return this instanceof c2?(this.v=E1,this):new c2(E1)}function G1(E1,j1,A1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var P1,H1=A1.apply(E1,j1||[]),K1=[];return P1=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),t2("next"),t2("throw"),t2("return",function Q(K2){return function(y0){return Promise.resolve(y0).then(K2,s0)}}),P1[Symbol.asyncIterator]=function(){return this},P1;function t2(K2,y0){H1[K2]&&(P1[K2]=function(C4){return new Promise(function(m2,N4){K1.push([K2,C4,m2,N4])>1||s2(K2,C4)})},y0&&(P1[K2]=y0(P1[K2])))}function s2(K2,y0){try{!function p2(K2){K2.value instanceof c2?Promise.resolve(K2.value.v).then(l0,s0):D0(K1[0][2],K2)}(H1[K2](y0))}catch(C4){D0(K1[0][3],C4)}}function l0(K2){s2("next",K2)}function s0(K2){s2("throw",K2)}function D0(K2,y0){K2(y0),K1.shift(),K1.length&&s2(K1[0][0],K1[0][1])}}function d0(E1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A1,j1=E1[Symbol.asyncIterator];return j1?j1.call(E1):(E1=function M1(E1){var j1="function"==typeof Symbol&&Symbol.iterator,A1=j1&&E1[j1],H1=0;if(A1)return A1.call(E1);if(E1&&"number"==typeof E1.length)return{next:function(){return E1&&H1>=E1.length&&(E1=void 0),{value:E1&&E1[H1++],done:!E1}}};throw new TypeError(j1?"Object is not iterable.":"Symbol.iterator is not defined.")}(E1),A1={},H1("next"),H1("throw"),H1("return"),A1[Symbol.asyncIterator]=function(){return this},A1);function H1(K1){A1[K1]=E1[K1]&&function(Q){return new Promise(function(t2,s2){!function P1(K1,Q,t2,s2){Promise.resolve(s2).then(function(p2){K1({value:p2,done:t2})},Q)}(t2,s2,(Q=E1[K1](Q)).done,Q.value)})}}}y.d(d1,{AQ:()=>G1,N3:()=>c2,sH:()=>Y,xN:()=>d0}),"function"==typeof SuppressedError&&SuppressedError},8184:y1=>{"use strict";y1.exports=JSON.parse('[{"name":"US Dollar","symbol":"$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"USD","namePlural":"US dollars"},{"name":"Canadian Dollar","symbol":"CA$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"CAD","namePlural":"Canadian dollars"},{"name":"Euro","symbol":"\u20ac","symbolNative":"\u20ac","decimalDigits":2,"rounding":0,"code":"EUR","namePlural":"euros"},{"name":"United Arab Emirates Dirham","symbol":"AED","symbolNative":"\u062f.\u0625.\u200f","decimalDigits":2,"rounding":0,"code":"AED","namePlural":"UAE dirhams"},{"name":"Afghan Afghani","symbol":"Af","symbolNative":"\u060b","decimalDigits":0,"rounding":0,"code":"AFN","namePlural":"Afghan Afghanis"},{"name":"Albanian Lek","symbol":"ALL","symbolNative":"Lek","decimalDigits":0,"rounding":0,"code":"ALL","namePlural":"Albanian lek\xeb"},{"name":"Armenian Dram","symbol":"AMD","symbolNative":"\u0564\u0580.","decimalDigits":0,"rounding":0,"code":"AMD","namePlural":"Armenian drams"},{"name":"Argentine Peso","symbol":"AR$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"ARS","namePlural":"Argentine pesos"},{"name":"Australian Dollar","symbol":"AU$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"AUD","namePlural":"Australian dollars"},{"name":"Azerbaijani Manat","symbol":"man.","symbolNative":"\u043c\u0430\u043d.","decimalDigits":2,"rounding":0,"code":"AZN","namePlural":"Azerbaijani manats"},{"name":"Bosnia-Herzegovina Convertible Mark","symbol":"KM","symbolNative":"KM","decimalDigits":2,"rounding":0,"code":"BAM","namePlural":"Bosnia-Herzegovina convertible marks"},{"name":"Bangladeshi Taka","symbol":"Tk","symbolNative":"\u09f3","decimalDigits":2,"rounding":0,"code":"BDT","namePlural":"Bangladeshi takas"},{"name":"Bulgarian Lev","symbol":"BGN","symbolNative":"\u043b\u0432.","decimalDigits":2,"rounding":0,"code":"BGN","namePlural":"Bulgarian leva"},{"name":"Bahraini Dinar","symbol":"BD","symbolNative":"\u062f.\u0628.\u200f","decimalDigits":3,"rounding":0,"code":"BHD","namePlural":"Bahraini dinars"},{"name":"Burundian Franc","symbol":"FBu","symbolNative":"FBu","decimalDigits":0,"rounding":0,"code":"BIF","namePlural":"Burundian francs"},{"name":"Brunei Dollar","symbol":"BN$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"BND","namePlural":"Brunei dollars"},{"name":"Bolivian Boliviano","symbol":"Bs","symbolNative":"Bs","decimalDigits":2,"rounding":0,"code":"BOB","namePlural":"Bolivian bolivianos"},{"name":"Brazilian Real","symbol":"R$","symbolNative":"R$","decimalDigits":2,"rounding":0,"code":"BRL","namePlural":"Brazilian reals"},{"name":"Botswanan Pula","symbol":"BWP","symbolNative":"P","decimalDigits":2,"rounding":0,"code":"BWP","namePlural":"Botswanan pulas"},{"name":"Belarusian Ruble","symbol":"Br","symbolNative":"\u0440\u0443\u0431.","decimalDigits":2,"rounding":0,"code":"BYN","namePlural":"Belarusian rubles"},{"name":"Belize Dollar","symbol":"BZ$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"BZD","namePlural":"Belize dollars"},{"name":"Congolese Franc","symbol":"CDF","symbolNative":"FrCD","decimalDigits":2,"rounding":0,"code":"CDF","namePlural":"Congolese francs"},{"name":"Swiss Franc","symbol":"CHF","symbolNative":"CHF","decimalDigits":2,"rounding":0.05,"code":"CHF","namePlural":"Swiss francs"},{"name":"Chilean Peso","symbol":"CL$","symbolNative":"$","decimalDigits":0,"rounding":0,"code":"CLP","namePlural":"Chilean pesos"},{"name":"Chinese Yuan","symbol":"CN\xa5","symbolNative":"CN\xa5","decimalDigits":2,"rounding":0,"code":"CNY","namePlural":"Chinese yuan"},{"name":"Colombian Peso","symbol":"CO$","symbolNative":"$","decimalDigits":0,"rounding":0,"code":"COP","namePlural":"Colombian pesos"},{"name":"Costa Rican Col\xf3n","symbol":"\u20a1","symbolNative":"\u20a1","decimalDigits":0,"rounding":0,"code":"CRC","namePlural":"Costa Rican col\xf3ns"},{"name":"Cape Verdean Escudo","symbol":"CV$","symbolNative":"CV$","decimalDigits":2,"rounding":0,"code":"CVE","namePlural":"Cape Verdean escudos"},{"name":"Czech Republic Koruna","symbol":"K\u010d","symbolNative":"K\u010d","decimalDigits":2,"rounding":0,"code":"CZK","namePlural":"Czech Republic korunas"},{"name":"Djiboutian Franc","symbol":"Fdj","symbolNative":"Fdj","decimalDigits":0,"rounding":0,"code":"DJF","namePlural":"Djiboutian francs"},{"name":"Danish Krone","symbol":"Dkr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"DKK","namePlural":"Danish kroner"},{"name":"Dominican Peso","symbol":"RD$","symbolNative":"RD$","decimalDigits":2,"rounding":0,"code":"DOP","namePlural":"Dominican pesos"},{"name":"Algerian Dinar","symbol":"DA","symbolNative":"\u062f.\u062c.\u200f","decimalDigits":2,"rounding":0,"code":"DZD","namePlural":"Algerian dinars"},{"name":"Estonian Kroon","symbol":"Ekr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"EEK","namePlural":"Estonian kroons"},{"name":"Egyptian Pound","symbol":"EGP","symbolNative":"\u062c.\u0645.\u200f","decimalDigits":2,"rounding":0,"code":"EGP","namePlural":"Egyptian pounds"},{"name":"Eritrean Nakfa","symbol":"Nfk","symbolNative":"Nfk","decimalDigits":2,"rounding":0,"code":"ERN","namePlural":"Eritrean nakfas"},{"name":"Ethiopian Birr","symbol":"Br","symbolNative":"Br","decimalDigits":2,"rounding":0,"code":"ETB","namePlural":"Ethiopian birrs"},{"name":"British Pound Sterling","symbol":"\xa3","symbolNative":"\xa3","decimalDigits":2,"rounding":0,"code":"GBP","namePlural":"British pounds sterling"},{"name":"Georgian Lari","symbol":"GEL","symbolNative":"GEL","decimalDigits":2,"rounding":0,"code":"GEL","namePlural":"Georgian laris"},{"name":"Ghanaian Cedi","symbol":"GH\u20b5","symbolNative":"GH\u20b5","decimalDigits":2,"rounding":0,"code":"GHS","namePlural":"Ghanaian cedis"},{"name":"Guinean Franc","symbol":"FG","symbolNative":"FG","decimalDigits":0,"rounding":0,"code":"GNF","namePlural":"Guinean francs"},{"name":"Guatemalan Quetzal","symbol":"GTQ","symbolNative":"Q","decimalDigits":2,"rounding":0,"code":"GTQ","namePlural":"Guatemalan quetzals"},{"name":"Hong Kong Dollar","symbol":"HK$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"HKD","namePlural":"Hong Kong dollars"},{"name":"Honduran Lempira","symbol":"HNL","symbolNative":"L","decimalDigits":2,"rounding":0,"code":"HNL","namePlural":"Honduran lempiras"},{"name":"Croatian Kuna","symbol":"kn","symbolNative":"kn","decimalDigits":2,"rounding":0,"code":"HRK","namePlural":"Croatian kunas"},{"name":"Hungarian Forint","symbol":"Ft","symbolNative":"Ft","decimalDigits":0,"rounding":0,"code":"HUF","namePlural":"Hungarian forints"},{"name":"Indonesian Rupiah","symbol":"Rp","symbolNative":"Rp","decimalDigits":0,"rounding":0,"code":"IDR","namePlural":"Indonesian rupiahs"},{"name":"Israeli New Sheqel","symbol":"\u20aa","symbolNative":"\u20aa","decimalDigits":2,"rounding":0,"code":"ILS","namePlural":"Israeli new sheqels"},{"name":"Indian Rupee","symbol":"\u20b9","symbolNative":"\u099f\u0995\u09be","decimalDigits":2,"rounding":0,"code":"INR","namePlural":"Indian rupees"},{"name":"Iraqi Dinar","symbol":"IQD","symbolNative":"\u062f.\u0639.\u200f","decimalDigits":0,"rounding":0,"code":"IQD","namePlural":"Iraqi dinars"},{"name":"Iranian Rial","symbol":"IRR","symbolNative":"\ufdfc","decimalDigits":0,"rounding":0,"code":"IRR","namePlural":"Iranian rials"},{"name":"Icelandic Kr\xf3na","symbol":"Ikr","symbolNative":"kr","decimalDigits":0,"rounding":0,"code":"ISK","namePlural":"Icelandic kr\xf3nur"},{"name":"Jamaican Dollar","symbol":"J$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"JMD","namePlural":"Jamaican dollars"},{"name":"Jordanian Dinar","symbol":"JD","symbolNative":"\u062f.\u0623.\u200f","decimalDigits":3,"rounding":0,"code":"JOD","namePlural":"Jordanian dinars"},{"name":"Japanese Yen","symbol":"\xa5","symbolNative":"\uffe5","decimalDigits":0,"rounding":0,"code":"JPY","namePlural":"Japanese yen"},{"name":"Kenyan Shilling","symbol":"Ksh","symbolNative":"Ksh","decimalDigits":2,"rounding":0,"code":"KES","namePlural":"Kenyan shillings"},{"name":"Cambodian Riel","symbol":"KHR","symbolNative":"\u17db","decimalDigits":2,"rounding":0,"code":"KHR","namePlural":"Cambodian riels"},{"name":"Comorian Franc","symbol":"CF","symbolNative":"FC","decimalDigits":0,"rounding":0,"code":"KMF","namePlural":"Comorian francs"},{"name":"South Korean Won","symbol":"\u20a9","symbolNative":"\u20a9","decimalDigits":0,"rounding":0,"code":"KRW","namePlural":"South Korean won"},{"name":"Kuwaiti Dinar","symbol":"KD","symbolNative":"\u062f.\u0643.\u200f","decimalDigits":3,"rounding":0,"code":"KWD","namePlural":"Kuwaiti dinars"},{"name":"Kazakhstani Tenge","symbol":"KZT","symbolNative":"\u0442\u04a3\u0433.","decimalDigits":2,"rounding":0,"code":"KZT","namePlural":"Kazakhstani tenges"},{"name":"Lebanese Pound","symbol":"LB\xa3","symbolNative":"\u0644.\u0644.\u200f","decimalDigits":0,"rounding":0,"code":"LBP","namePlural":"Lebanese pounds"},{"name":"Sri Lankan Rupee","symbol":"SLRs","symbolNative":"SL Re","decimalDigits":2,"rounding":0,"code":"LKR","namePlural":"Sri Lankan rupees"},{"name":"Lithuanian Litas","symbol":"Lt","symbolNative":"Lt","decimalDigits":2,"rounding":0,"code":"LTL","namePlural":"Lithuanian litai"},{"name":"Latvian Lats","symbol":"Ls","symbolNative":"Ls","decimalDigits":2,"rounding":0,"code":"LVL","namePlural":"Latvian lati"},{"name":"Libyan Dinar","symbol":"LD","symbolNative":"\u062f.\u0644.\u200f","decimalDigits":3,"rounding":0,"code":"LYD","namePlural":"Libyan dinars"},{"name":"Moroccan Dirham","symbol":"MAD","symbolNative":"\u062f.\u0645.\u200f","decimalDigits":2,"rounding":0,"code":"MAD","namePlural":"Moroccan dirhams"},{"name":"Moldovan Leu","symbol":"MDL","symbolNative":"MDL","decimalDigits":2,"rounding":0,"code":"MDL","namePlural":"Moldovan lei"},{"name":"Malagasy Ariary","symbol":"MGA","symbolNative":"MGA","decimalDigits":0,"rounding":0,"code":"MGA","namePlural":"Malagasy Ariaries"},{"name":"Macedonian Denar","symbol":"MKD","symbolNative":"MKD","decimalDigits":2,"rounding":0,"code":"MKD","namePlural":"Macedonian denari"},{"name":"Myanma Kyat","symbol":"MMK","symbolNative":"K","decimalDigits":0,"rounding":0,"code":"MMK","namePlural":"Myanma kyats"},{"name":"Macanese Pataca","symbol":"MOP$","symbolNative":"MOP$","decimalDigits":2,"rounding":0,"code":"MOP","namePlural":"Macanese patacas"},{"name":"Mauritian Rupee","symbol":"MURs","symbolNative":"MURs","decimalDigits":0,"rounding":0,"code":"MUR","namePlural":"Mauritian rupees"},{"name":"Mexican Peso","symbol":"MX$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"MXN","namePlural":"Mexican pesos"},{"name":"Malaysian Ringgit","symbol":"RM","symbolNative":"RM","decimalDigits":2,"rounding":0,"code":"MYR","namePlural":"Malaysian ringgits"},{"name":"Mozambican Metical","symbol":"MTn","symbolNative":"MTn","decimalDigits":2,"rounding":0,"code":"MZN","namePlural":"Mozambican meticals"},{"name":"Namibian Dollar","symbol":"N$","symbolNative":"N$","decimalDigits":2,"rounding":0,"code":"NAD","namePlural":"Namibian dollars"},{"name":"Nigerian Naira","symbol":"\u20a6","symbolNative":"\u20a6","decimalDigits":2,"rounding":0,"code":"NGN","namePlural":"Nigerian nairas"},{"name":"Nicaraguan C\xf3rdoba","symbol":"C$","symbolNative":"C$","decimalDigits":2,"rounding":0,"code":"NIO","namePlural":"Nicaraguan c\xf3rdobas"},{"name":"Norwegian Krone","symbol":"Nkr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"NOK","namePlural":"Norwegian kroner"},{"name":"Nepalese Rupee","symbol":"NPRs","symbolNative":"\u0928\u0947\u0930\u0942","decimalDigits":2,"rounding":0,"code":"NPR","namePlural":"Nepalese rupees"},{"name":"New Zealand Dollar","symbol":"NZ$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"NZD","namePlural":"New Zealand dollars"},{"name":"Omani Rial","symbol":"OMR","symbolNative":"\u0631.\u0639.\u200f","decimalDigits":3,"rounding":0,"code":"OMR","namePlural":"Omani rials"},{"name":"Panamanian Balboa","symbol":"B/.","symbolNative":"B/.","decimalDigits":2,"rounding":0,"code":"PAB","namePlural":"Panamanian balboas"},{"name":"Peruvian Nuevo Sol","symbol":"S/.","symbolNative":"S/.","decimalDigits":2,"rounding":0,"code":"PEN","namePlural":"Peruvian nuevos soles"},{"name":"Philippine Peso","symbol":"\u20b1","symbolNative":"\u20b1","decimalDigits":2,"rounding":0,"code":"PHP","namePlural":"Philippine pesos"},{"name":"Pakistani Rupee","symbol":"PKRs","symbolNative":"\u20a8","decimalDigits":0,"rounding":0,"code":"PKR","namePlural":"Pakistani rupees"},{"name":"Polish Zloty","symbol":"z\u0142","symbolNative":"z\u0142","decimalDigits":2,"rounding":0,"code":"PLN","namePlural":"Polish zlotys"},{"name":"Paraguayan Guarani","symbol":"\u20b2","symbolNative":"\u20b2","decimalDigits":0,"rounding":0,"code":"PYG","namePlural":"Paraguayan guaranis"},{"name":"Qatari Rial","symbol":"QR","symbolNative":"\u0631.\u0642.\u200f","decimalDigits":2,"rounding":0,"code":"QAR","namePlural":"Qatari rials"},{"name":"Romanian Leu","symbol":"RON","symbolNative":"RON","decimalDigits":2,"rounding":0,"code":"RON","namePlural":"Romanian lei"},{"name":"Serbian Dinar","symbol":"din.","symbolNative":"\u0434\u0438\u043d.","decimalDigits":0,"rounding":0,"code":"RSD","namePlural":"Serbian dinars"},{"name":"Russian Ruble","symbol":"RUB","symbolNative":"\u20bd.","decimalDigits":2,"rounding":0,"code":"RUB","namePlural":"Russian rubles"},{"name":"Rwandan Franc","symbol":"RWF","symbolNative":"FR","decimalDigits":0,"rounding":0,"code":"RWF","namePlural":"Rwandan francs"},{"name":"Saudi Riyal","symbol":"SR","symbolNative":"\u0631.\u0633.\u200f","decimalDigits":2,"rounding":0,"code":"SAR","namePlural":"Saudi riyals"},{"name":"Sudanese Pound","symbol":"SDG","symbolNative":"SDG","decimalDigits":2,"rounding":0,"code":"SDG","namePlural":"Sudanese pounds"},{"name":"Swedish Krona","symbol":"Skr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"SEK","namePlural":"Swedish kronor"},{"name":"Singapore Dollar","symbol":"S$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"SGD","namePlural":"Singapore dollars"},{"name":"Somali Shilling","symbol":"Ssh","symbolNative":"Ssh","decimalDigits":0,"rounding":0,"code":"SOS","namePlural":"Somali shillings"},{"name":"Syrian Pound","symbol":"SY\xa3","symbolNative":"\u0644.\u0633.\u200f","decimalDigits":0,"rounding":0,"code":"SYP","namePlural":"Syrian pounds"},{"name":"Thai Baht","symbol":"\u0e3f","symbolNative":"\u0e3f","decimalDigits":2,"rounding":0,"code":"THB","namePlural":"Thai baht"},{"name":"Tunisian Dinar","symbol":"DT","symbolNative":"\u062f.\u062a.\u200f","decimalDigits":3,"rounding":0,"code":"TND","namePlural":"Tunisian dinars"},{"name":"Tongan Pa\u02bbanga","symbol":"T$","symbolNative":"T$","decimalDigits":2,"rounding":0,"code":"TOP","namePlural":"Tongan pa\u02bbanga"},{"name":"Turkish Lira","symbol":"TL","symbolNative":"TL","decimalDigits":2,"rounding":0,"code":"TRY","namePlural":"Turkish Lira"},{"name":"Trinidad and Tobago Dollar","symbol":"TT$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"TTD","namePlural":"Trinidad and Tobago dollars"},{"name":"New Taiwan Dollar","symbol":"NT$","symbolNative":"NT$","decimalDigits":2,"rounding":0,"code":"TWD","namePlural":"New Taiwan dollars"},{"name":"Tanzanian Shilling","symbol":"TSh","symbolNative":"TSh","decimalDigits":0,"rounding":0,"code":"TZS","namePlural":"Tanzanian shillings"},{"name":"Ukrainian Hryvnia","symbol":"\u20b4","symbolNative":"\u20b4","decimalDigits":2,"rounding":0,"code":"UAH","namePlural":"Ukrainian hryvnias"},{"name":"Ugandan Shilling","symbol":"USh","symbolNative":"USh","decimalDigits":0,"rounding":0,"code":"UGX","namePlural":"Ugandan shillings"},{"name":"Uruguayan Peso","symbol":"$U","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"UYU","namePlural":"Uruguayan pesos"},{"name":"Uzbekistan Som","symbol":"UZS","symbolNative":"UZS","decimalDigits":0,"rounding":0,"code":"UZS","namePlural":"Uzbekistan som"},{"name":"Venezuelan Bol\xedvar","symbol":"Bs.F.","symbolNative":"Bs.F.","decimalDigits":2,"rounding":0,"code":"VEF","namePlural":"Venezuelan bol\xedvars"},{"name":"Vietnamese Dong","symbol":"\u20ab","symbolNative":"\u20ab","decimalDigits":0,"rounding":0,"code":"VND","namePlural":"Vietnamese dong"},{"name":"CFA Franc BEAC","symbol":"FCFA","symbolNative":"FCFA","decimalDigits":0,"rounding":0,"code":"XAF","namePlural":"CFA francs BEAC"},{"name":"CFA Franc BCEAO","symbol":"CFA","symbolNative":"CFA","decimalDigits":0,"rounding":0,"code":"XOF","namePlural":"CFA francs BCEAO"},{"name":"Yemeni Rial","symbol":"YR","symbolNative":"\u0631.\u064a.\u200f","decimalDigits":0,"rounding":0,"code":"YER","namePlural":"Yemeni rials"},{"name":"South African Rand","symbol":"R","symbolNative":"R","decimalDigits":2,"rounding":0,"code":"ZAR","namePlural":"South African rand"},{"name":"Zambian Kwacha","symbol":"ZK","symbolNative":"ZK","decimalDigits":0,"rounding":0,"code":"ZMK","namePlural":"Zambian kwachas"},{"name":"Zimbabwean Dollar","symbol":"ZWL$","symbolNative":"ZWL$","decimalDigits":0,"rounding":0,"code":"ZWL","namePlural":"Zimbabwean Dollar"}]')}},y1=>{y1(y1.s=3449)}]); \ No newline at end of file diff --git a/portal/bae-frontend/main.a173bf4e6d368bba.js b/portal/bae-frontend/main.a173bf4e6d368bba.js deleted file mode 100644 index fe7f100d..00000000 --- a/portal/bae-frontend/main.a173bf4e6d368bba.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkbae_frontend=self.webpackChunkbae_frontend||[]).push([[792],{7005:(y1,d1,y)=>{"use strict";y.d(d1,{Ay:()=>K,Tw:()=>p,Wh:()=>Z,dD:()=>m});const m={primaryCategoriesMode:"catalogFirstLevel",primaryRootName:""},g={primaryCategoriesMode:"catalogFirstLevel",primaryRootName:""},e=[],p=_(e);function _(p1){return(p1||[]).map(Y=>({...Y,children:Y.children?Y.children.map(h1=>({name:h1.name,label:h1.label})):void 0}))}function S(p1){return p1&&"object"==typeof p1&&"string"==typeof p1.name&&""!==p1.name.trim()?{name:p1.name.trim(),label:"string"==typeof p1.label?p1.label:void 0}:null}function A(p1){if(!p1||"object"!=typeof p1||"string"!=typeof p1.name||""===p1.name.trim())return null;const Y="categoryRoot"===p1.source?"categoryRoot":"configured";return{name:p1.name.trim(),label:"string"==typeof p1.label?p1.label:void 0,source:Y,rootName:"categoryRoot"===Y&&"string"==typeof p1.rootName?p1.rootName:void 0,children:"configured"===Y&&Array.isArray(p1.children)?p1.children.map(S).filter(e1=>!!e1):void 0}}function Z(p1){const Y=function $(p1){if(p1&&"object"==typeof p1)return p1.searchFilters}(p1);if("catalogFirstLevel"==("rooted"===Y?.primaryCategoriesMode?"rooted":"catalogFirstLevel"))return m.primaryCategoriesMode="catalogFirstLevel",m.primaryRootName="",void p.splice(0,p.length,..._(e));const e1="string"==typeof Y?.primaryRootName?Y.primaryRootName.trim():g.primaryRootName;m.primaryCategoriesMode="rooted",m.primaryRootName=e1;const r1=Y?.filters,M1=Array.isArray(r1)?r1.map(A).filter($1=>!!$1):[];p.splice(0,p.length,..._(M1.length>0?M1:e))}const K=p},7745:(y1,d1,y)=>{"use strict";y.d(d1,{nc:()=>p});var m=y(604);const g=m.qIE,e={Security:m.fLc,Infrastructure:m.D6w,Productivity:m.zm_,DevOps:m.jTw,Professional:m.BzA,Specific:m.qIE,"Data and AI":m.GQu,Integration:m.QtJ};function p(_){return _?e[_]??g:g}},8508:(y1,d1,y)=>{"use strict";y.d(d1,{K:()=>p1});var m=y(1626),g=y(1985),e=y(8810),p=y(7673),_=y(6354),S=y(7468),A=y(2087),$=y(8058),Z=y(5312),K=y(4438);let p1=(()=>{class Y{get apiUrl(){const e1=Z.c.quoteApi;return e1.startsWith("http://")||e1.startsWith("https://")?e1:`${Z.c.BASE_URL}${e1}`}get documentApiUrl(){const e1=Z.c.documentApi;return(e1.startsWith("http://")||e1.startsWith("https://")?e1:`${Z.c.BASE_URL}${e1}`).replace(/\/$/,"")}get httpOptions(){return{headers:new m.Lr({"Content-Type":"application/json"})}}constructor(e1){this.http=e1}createQuote(e1){return this.http.post(`${this.apiUrl}/quote`,e1,this.httpOptions)}createQuoteFromRequest(e1){return this.http.post(`${this.apiUrl}${Z.c.quoteEndpoints.createQuote}`,e1,this.httpOptions)}listQuotes(e1,r1,M1){let f1=new m.Nl;return e1&&(f1=f1.set("fields",e1)),void 0!==r1&&(f1=f1.set("offset",r1.toString())),void 0!==M1&&(f1=f1.set("limit",M1.toString())),this.http.get(`${this.apiUrl}/quote`,{params:f1,...this.httpOptions})}retrieveQuote(e1,r1){let M1=new m.Nl;r1&&(M1=M1.set("fields",r1));const f1=encodeURIComponent(e1);return console.log("Retrieving quote with URL:",`${this.apiUrl}/quoteById/${f1}`),this.http.get(`${this.apiUrl}/quoteById/${f1}`,{params:M1,...this.httpOptions})}patchQuote(e1,r1){const M1=encodeURIComponent(e1);return console.log("Updating quote with URL:",`${this.apiUrl}/updateQuoteStatus/${M1}`),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${M1}`,r1,this.httpOptions)}deleteQuote(e1){const r1=encodeURIComponent(e1);return console.log("Deleting quote with URL:",`${this.apiUrl}/quote/${r1}`),this.http.delete(`${this.apiUrl}/quote/${r1}`,this.httpOptions)}getAllQuotes(){return this.listQuotes()}getQuoteById(e1){return this.retrieveQuote(e1)}updateQuoteState(e1,r1){return this.patchQuote(e1,{state:r1})}updateQuoteDescription(e1,r1){return this.patchQuote(e1,{description:r1})}addNoteToQuote(e1,r1,M1){let f1=new m.Nl;f1=f1.set("userId",M1||""),f1=f1.set("messageContent",r1);const $1=encodeURIComponent(e1);return console.log("Adding note to quote with URL:",`${this.apiUrl}/addNoteToQuote/${$1}`),this.http.patch(`${this.apiUrl}/addNoteToQuote/${$1}`,null,{params:f1,...this.httpOptions})}updateQuoteCompletionDates(e1,r1,M1){const f1={};return r1&&(f1.expectedQuoteCompletionDate=r1),M1&&(f1.requestedQuoteCompletionDate=M1),this.patchQuote(e1,f1)}getQuotesByUserAndRole(e1,r1){let M1=new m.Nl;M1=M1.set("role","customer"===r1?Z.c.BUYER_ROLE:Z.c.SELLER_ROLE);const $1=encodeURIComponent(e1);return console.log("Getting quotes by user with URL:",`${this.apiUrl}/quoteByUser/${$1}`),this.http.get(`${this.apiUrl}/quoteByUser/${$1}`,{params:M1,...this.httpOptions})}searchQuotes(e1){return new g.c(r1=>{this.listQuotes().subscribe({next:M1=>{let f1=M1;e1.state&&(f1=f1.filter($1=>$1.state===e1.state)),e1.category&&(f1=f1.filter($1=>$1.category===e1.category)),e1.externalId&&(f1=f1.filter($1=>$1.externalId===e1.externalId)),e1.description&&(f1=f1.filter($1=>$1.description?.toLowerCase().includes(e1.description.toLowerCase()))),r1.next(f1)},error:M1=>r1.error(M1)})})}updateQuoteStatus(e1,r1){let M1=new m.Nl;M1=M1.set("statusValue",r1);const f1=encodeURIComponent(e1);return console.log("Updating quote status with URL:",`${this.apiUrl}/updateQuoteStatus/${f1}`),console.log("Status value:",r1),this.http.patch(`${this.apiUrl}/updateQuoteStatus/${f1}`,null,{params:M1,...this.httpOptions})}updateQuoteDate(e1,r1,M1){let f1=new m.Nl;f1=f1.set("date",r1),f1=f1.set("dateType",M1);const $1=encodeURIComponent(e1);return console.log("Updating quote date with URL:",`${this.apiUrl}/updateQuoteDate/${$1}`),console.log("Date:",r1,"DateType:",M1),this.http.patch(`${this.apiUrl}/updateQuoteDate/${$1}`,null,{params:f1,...this.httpOptions})}addNoteToQuoteOld(e1,r1){return this.addNoteToQuote(e1,r1)}addAttachmentToQuote(e1,r1,M1){const f1=new FormData;f1.append("file",r1),M1&&f1.append("description",M1);const $1=encodeURIComponent(e1);return this.http.patch(`${this.apiUrl}/addAttachmentToQuote/${$1}`,f1)}downloadAttachment(e1){const r1=this.getFirstQuoteAttachment(e1);if(!r1)return(0,e.$)(()=>new Error("No attachment found for this quote."));const M1=this.getQuoteAttachmentFilename(e1,r1),f1=this.getAttachmentDownloadUrl(r1);if(f1)return this.startAttachmentDownload(f1,M1),console.log(`Started attachment download: ${M1}`),(0,p.of)(void 0);const $1=this.getDocumentSpecificationId(r1);return $1?this.http.get(this.getDocumentSpecificationUrl($1),this.httpOptions).pipe((0,_.T)(o2=>{const S2=o2.attachment?.[0];if(!S2?.content)throw new Error("Document attachment content not found.");const c2=S2.name||o2.name||M1;this.downloadBase64Attachment(S2.content,S2.mimeType||r1.mimeType||"application/octet-stream",c2),console.log(`Downloaded document attachment: ${c2}`)})):(0,e.$)(()=>new Error("Attachment link not available for this attachment."))}getAttachmentDownloadUrl(e1){return[e1.url,e1.href,e1.path,e1.content].find(M1=>this.isDownloadableAttachmentLink(M1))||null}getDocumentSpecificationUrl(e1){return`${this.documentApiUrl}/documentSpecification/${encodeURIComponent(e1.trim())}`}getFirstQuoteAttachment(e1){if(!Array.isArray(e1.quoteItem))return null;for(const r1 of e1.quoteItem)if(r1.attachment&&r1.attachment.length>0)return r1.attachment[0];return null}getQuoteAttachmentFilename(e1,r1){const M1=e1.id?.length&&e1.id.length>8?e1.id.slice(-8):e1.id||"unknown";return r1.name||`quote-${M1}-attachment.pdf`}startAttachmentDownload(e1,r1){const M1=document.createElement("a");M1.href=e1,M1.download=r1,M1.target="_blank",M1.rel="noopener noreferrer",document.body.appendChild(M1),M1.click(),document.body.removeChild(M1)}downloadBase64Attachment(e1,r1,M1){const f1=e1.includes(",")?e1.substring(e1.indexOf(",")+1):e1,$1=atob(f1),o2=new Uint8Array($1.length);for(let G1=0;G1<$1.length;G1++)o2[G1]=$1.charCodeAt(G1);const S2=new Blob([o2],{type:r1}),c2=URL.createObjectURL(S2);this.startAttachmentDownload(c2,M1),URL.revokeObjectURL(c2)}getDocumentSpecificationId(e1){return[e1.content,e1.id,e1.href].find(M1=>this.isDocumentSpecificationReference(M1))||null}isDownloadableAttachmentLink(e1){const r1=e1?.trim();return!(!r1||!(/^https?:\/\//i.test(r1)||r1.startsWith("/")||r1.startsWith("blob:")))}isDocumentSpecificationReference(e1){return/^urn:ngsi-ld:(document-specification|documentspecification):/i.test(e1?.trim()||"")}getQuotesByUser(e1){return new g.c(r1=>{this.listQuotes().subscribe({next:M1=>{const f1=M1.filter($1=>$1.relatedParty?.some(o2=>o2.id===e1));r1.next(f1)},error:M1=>r1.error(M1)})})}isQuoteCancelled(e1){return e1.quoteItem?.some(r1=>r1.state===$.yz.CANCELLED)||!1}isQuoteAccepted(e1){return e1.quoteItem?.some(r1=>r1.state===$.yz.ACCEPTED)||!1}isQuoteFinalized(e1){return this.isQuoteCancelled(e1)||this.isQuoteAccepted(e1)}updateQuote(e1,r1){return this.patchQuote(e1,r1)}createCoordinatorQuote(e1,r1){return this.http.post(`${this.apiUrl}/tendering/createCoordinatorQuote`,{customerMessage:r1,customerIdRef:e1},this.httpOptions).pipe((0,_.T)(f1=>this.mapQuoteToTender(f1)))}createTenderingQuote(e1,r1,M1,f1){return this.http.post(`${this.apiUrl}/tendering/createQuote`,{customerMessage:f1||"",customerIdRef:e1,providerIdRef:r1,externalId:M1},this.httpOptions).pipe((0,_.T)(o2=>this.mapQuoteToTender(o2)))}createMultipleTenderingQuotes(e1,r1,M1,f1){const $1=r1.map(o2=>this.createTenderingQuote(e1,o2,M1,f1));return(0,S.p)($1)}getCoordinatorQuotesByUser(e1){const r1=encodeURIComponent(e1);return console.log("Getting coordinator quotes for user:",r1),this.http.get(`${this.apiUrl}/tendering/coordinatorQuotes/${r1}`,this.httpOptions).pipe((0,_.T)(M1=>M1.map(f1=>this.mapQuoteToTender(f1))))}getTenderingQuotesByUser(e1,r1=A.XZ.SELLER,M1){const f1=encodeURIComponent(e1);let $1=(new m.Nl).set("role",r1);return M1&&($1=$1.set("externalId",M1)),console.log("Getting tendering quotes for user:",f1,"role:",r1,"externalId:",M1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions}).pipe((0,_.T)(o2=>o2.map(S2=>this.mapQuoteToTender(S2))))}getTenderingQuotesByExternalId(e1,r1,M1){const f1=encodeURIComponent(e1);let $1=(new m.Nl).set("role",M1).set("externalId",r1);return console.log("Getting tendering quotes by external ID:",r1),this.http.get(`${this.apiUrl}/tendering/quotes/${f1}`,{params:$1,...this.httpOptions})}broadcastMessage(e1,r1,M1){const f1={externalId:e1,userId:r1,messageContent:M1};return console.log("Broadcasting message to external ID:",e1),this.http.post(`${this.apiUrl}/tendering/broadcastMessage`,f1,this.httpOptions)}updateTenderStatus(e1,r1){return this.updateQuoteStatus(e1,r1).pipe((0,_.T)(M1=>this.mapQuoteToTender(M1)))}mapQuoteToTender(e1){const r1=e1.expectedFulfillmentStartDate||e1.effectiveQuoteCompletionDate||(new Date).toISOString(),M1=e1.description||void 0;let f1;if(e1.quoteItem&&e1.quoteItem.length>0){const d2=e1.quoteItem[0];if(d2.attachment&&d2.attachment.length>0){const _2=d2.attachment[0];f1={name:_2.name||"attachment.pdf",mimeType:_2.mimeType||"application/pdf",content:_2.content,url:_2.url,href:_2.href,path:_2.path,size:_2.size?.amount}}}const $1=e1.relatedParty?.filter(d2=>d2.role?.toLowerCase()===A.XZ.SELLER.toLowerCase()).map(d2=>d2.id)||[];let o2="coordinator";e1.category===$.K0.TENDER?o2="tendering":e1.category===$.K0.COORDINATOR&&(o2="coordinator");let S2="pending";e1.quoteItem&&e1.quoteItem.length>0?S2=e1.quoteItem[0].state||e1.state||"pending":e1.state&&(S2=e1.state);let c2="draft";S2===$.yz.PENDING?c2="draft":S2===$.yz.IN_PROGRESS?c2="pre-launched":S2===$.yz.APPROVED?c2="sent":S2===$.yz.ACCEPTED?c2="closed":S2===$.yz.CANCELLED?c2="cancelled":S2===$.yz.REJECTED&&(c2="rejected");const G1=e1.externalId,O1=e1.relatedParty?.find(d2=>d2.role?.toLowerCase()===A.XZ.SELLER.toLowerCase())?.name,d0=e1.relatedParty?.find(d2=>d2.role?.toLowerCase()===A.XZ.BUYER.toLowerCase())?.id;return{id:e1.id,category:o2,state:c2,responseDeadline:r1,tenderNote:M1,attachment:f1,selectedProviders:$1,external_id:G1,provider:O1,buyerPartyId:d0,createdAt:e1.quoteDate,updatedAt:e1.quoteDate,effectiveQuoteCompletionDate:e1.effectiveQuoteCompletionDate,expectedFulfillmentStartDate:e1.expectedFulfillmentStartDate,expectedQuoteCompletionDate:e1.expectedQuoteCompletionDate,requestedQuoteCompletionDate:e1.requestedQuoteCompletionDate}}static{this.\u0275fac=function(r1){return new(r1||Y)(K.KVO(m.Qq))}}static{this.\u0275prov=K.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})}}return Y})()},8058:(y1,d1,y)=>{"use strict";y.d(d1,{D5:()=>S,Ft:()=>p1,K0:()=>m,L9:()=>Z,NT:()=>_,R4:()=>e,Wc:()=>A,ZR:()=>$,ak:()=>h1,bJ:()=>K,kU:()=>p,te:()=>Y,yz:()=>g});const m={TAILORED:"tailored",TENDER:"tender",COORDINATOR:"coordinator"},g={PENDING:"pending",IN_PROGRESS:"inProgress",APPROVED:"approved",ACCEPTED:"accepted",CANCELLED:"cancelled",REJECTED:"rejected"},e={PENDING:"Not Yet Submitted",IN_PROGRESS:"Invites Sent, Waiting Acceptance",APPROVED:"Tender Started",ACCEPTED:"Tender Closed",CANCELLED:"Cancelled",REJECTED:"Rejected"},p={PENDING:"Invite Sent",IN_PROGRESS:"Invite Accepted by Provider",APPROVED:"Offer Submitted by Provider",ACCEPTED:"Offering Accepted",CANCELLED:"Request Cancelled",REJECTED:"Offering Rejected"},_={PENDING:"Invite Received",IN_PROGRESS:"Invitation Accepted",APPROVED:"Offering Submitted",ACCEPTED:"Offering Accepted by Customer",CANCELLED:"Request Cancelled",REJECTED:"Offering Rejected"},S={PENDING:"request-sent-awaiting-feedback",IN_PROGRESS:"request-accepted-and-being-worked-on",APPROVED:"offering-submitted-by-provider",ACCEPTED:"offering-accepted",CANCELLED:"request-canceled",REJECTED:"rejected"},A={PENDING:"request-received-pending-feedback",IN_PROGRESS:"request-accepted",APPROVED:"offering-submitted",ACCEPTED:"offering-accepted-by-customer",CANCELLED:"request-canceled",REJECTED:"rejected"},$={pending:{provider:{explanation:"At this stage you can decide whether to accept or reject the quote request.",availableActions:"Send messages to customer (chat), accept or decline the quote."},buyer:{explanation:"The quote is created and sent to the provider. At this stage the provider must either accept or decline the request.",availableActions:"Send messages to provider (chat), view quote request details or cancel the request."}},inProgress:{provider:{explanation:"At this point you need to provide a proposal in the form of a PDF attachment.",availableActions:"Send messages to customer (chat), upload attachment or decline the quote."},buyer:{explanation:"Your quote request is being processed. The provider is currently building the proposal based on your specifications. You will be notified once the quote is ready for review and a PDF is uploaded.",availableActions:"Send messages to provider (chat), view quote details or cancel the request."}},approved:{provider:{explanation:"The quote details are now locked and cannot be modified. The quote has been sent to the customer. You should wait for the customer to review the proposal and use the chat to get in touch with them.",availableActions:"Send messages to customer (chat) or cancel the quote."},buyer:{explanation:"The provider has approved and sent you a quote proposal. Please review the details and attached documents. You can accept, reject, or request updates through the chat.",availableActions:"Send messages to provider (chat), accept the proposal or reject the proposal or cancel the quote."}},accepted:{provider:{explanation:"The customer has accepted your quote proposal. You should now create a customized version of the offering that will be visible only to the customer. The chat remains open for further communication.",availableActions:"Send messages to customer (chat), create customized offering."},buyer:{explanation:"You have accepted the quote proposal. The provider will now create a customized offering based on this agreement. Once available, you can proceed with the normal order process to subscribe to the service.",availableActions:"Send messages to provider (chat)."}},rejected:{provider:{explanation:"The customer has rejected this quote proposal. The negotiation process has ended. You can reach out to the customer through the chat and consider submitting a new proposal.",availableActions:"View quote details and chat history."},buyer:{explanation:"You have rejected this quote proposal. The negotiation process has been closed. If you wish, you can submit a new quote request with updated requirements.",availableActions:"View quote details and chat history."}},cancelled:{provider:{explanation:"This quote has been cancelled.",availableActions:"View quote details and chat history. No further actions available."},buyer:{explanation:"This quote has been cancelled.",availableActions:"View quote details and chat history. No further actions available."}}},Z={pending:{provider:{explanation:"The tender request has been sent to you. At this stage you can decide whether to participate or not in this tender.",availableActions:"Send messages to buyer (chat), accept or decline the tender request or withdraw from the tender."},buyer:{explanation:"The tender is created and sent to the provider. Waiting for the provider to accept or decline participation.",availableActions:"Send messages to provider (chat), view tender request details or cancel the request."}},inProgress:{provider:{explanation:"You are participating in this tender. Provide your offer as a PDF document to attach with all required details.",availableActions:"Send messages to buyer (chat), upload tender response documents or withdraw from tender."},buyer:{explanation:"The provider is preparing their tender response. You will be notified once they submit their proposal.",availableActions:"Send messages to provider (chat), view tender details or cancel the tender."}},approved:{provider:{explanation:"Your offer has been submitted and is under review by the buyer.",availableActions:"Send messages to buyer (chat) or withdraw your tender response."},buyer:{explanation:"The provider has submitted their tender response. Please review the submission and all attached documents.",availableActions:"Send messages to provider (chat), accept the tender response, reject it, or request clarifications."}},accepted:{provider:{explanation:"Congratulations! Your tender response has been accepted. You must now proceed with creating the customized offering.",availableActions:"Send messages to buyer (chat)."},buyer:{explanation:"You have accepted this offer. The provider must now proceed with creating the customized offering.",availableActions:"Send messages to provider (chat)."}},rejected:{provider:{explanation:"Your offer was not selected for this tender.",availableActions:"View tender details and chat history."},buyer:{explanation:"You have rejected this offer.",availableActions:"View tender details and chat history."}},cancelled:{provider:{explanation:"This offering has been cancelled.",availableActions:"View tender details and chat history. No further actions available."},buyer:{explanation:"This offering has been cancelled.",availableActions:"View tender details and chat history. No further actions available."}}},K={pending:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"Tender is still in draft",availableActions:"Finish draft details"}},inProgress:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The invited providers now have time to accept or decline the invite to the tender",availableActions:"View provider responses, send messages, monitor progress, or start the tender"}},approved:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The tendering is launched, the providers that have accepted the invitation must now provide an offer by attaching a PDF document. You must review and compare the offerings provided and will be able to accept the winning one once the End tender date has been reached and the tendering process is closed",availableActions:"Review responses, compare proposals, or request additional information."}},accepted:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"The tender is now closed. You can select the winning proposal and accept it",availableActions:"View tender details, communicate with winning provider"}},rejected:{provider:{explanation:"...",availableActions:"..."},buyer:{explanation:"...",availableActions:"..."}},cancelled:{provider:{explanation:"This tender has been cancelled.",availableActions:"View tender details. No further actions available."},buyer:{explanation:"This tender has been cancelled.",availableActions:"View tender details. No further actions available."}}},p1={STATUS_CHANGE:e1=>`Status changed to: ${e1}`,ATTACHMENT_UPLOADED:e1=>`Attachment uploaded: ${e1}`},Y="You must decide and select a date for the start and the end of the tender, also you must provide a PDF document with the description of your request. Fill all of this information before going to the next step.",h1={ACCEPT_QUOTE_PROVIDER:"Accept the request of the customer. Set an expected delivery Date first to proceed.",ACCEPT_PROPOSAL_CUSTOMER:"Accept the proposal that has been sent to you by the provider.",CANCEL_QUOTE_PROVIDER:"Cancel the quote request.",REJECT_PROPOSAL_CUSTOMER:"Reject the proposal.",CREATE_OFFER:"Create a customized offering based on this accepted quote.",EXPECTED_DATE_REQUIRED:"Set an expected date for the delivery of the proposal first",ACCEPT_TENDER_INVITE:"Accept the invitation to the tender.",DECLINE_TENDER_INVITE:"Decline the invitation to the tender."}},2087:(y1,d1,y)=>{"use strict";y.d(d1,{E9:()=>e,XZ:()=>m,Zk:()=>g});const m={BUYER:"Buyer",SELLER:"Seller"},g={BUYER:"buyer",SELLER:"seller"};function e(_){return _===g.BUYER?m.BUYER:m.SELLER}},452:(y1,d1,y)=>{"use strict";y.d(d1,{O:()=>S});var m=y(3207),g=y(5312),e=y(4438),p=y(1626),_=y(3077);class S{static{this.BASE_URL=g.c.BASE_URL}static{this.API_ACCOUNT=g.c.ACCOUNT}constructor($,Z){this.http=$,this.localStorage=Z}getBillingAccount(){return(0,m.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`))}getBillingAccountById($){return(0,m.s)(this.http.get(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`))}postBillingAccount($){return this.http.post(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/`,$)}updateBillingAccount($,Z){return this.http.patch(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`,Z)}deleteBillingAccount($){return this.http.delete(`${S.BASE_URL}${S.API_ACCOUNT}/billingAccount/${$}`)}getUserInfo($){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/individual/${$}`))}getOrgInfo($){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/organization/${$}`))}getOrgList(){return(0,m.s)(this.http.get(`${S.BASE_URL}/party/organization`))}updateUserInfo($,Z){return this.http.patch(`${S.BASE_URL}/party/individual/${$}`,Z)}updateOrgInfo($,Z){return this.http.patch(`${S.BASE_URL}/party/organization/${$}`,Z)}static{this.\u0275fac=function(Z){return new(Z||S)(e.KVO(p.Qq),e.KVO(_.s))}}static{this.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}},3077:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>g});var m=y(4438);let g=(()=>{class e{constructor(){}setItem(_,S){localStorage.setItem(_,S)}getItem(_){return localStorage.getItem(_)}setObject(_,S){localStorage.setItem(_,JSON.stringify(S))}getObject(_){return JSON.parse(localStorage.getItem(_)||"{}")}removeItem(_){localStorage.removeItem(_)}clear(){localStorage.clear()}addCategoryFilter(_){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]");-1===S.findIndex($=>$.id===_.id)&&(S.push(_),localStorage.setItem("selected_categories",JSON.stringify(S)))}removeCategoryFilter(_){const S=JSON.parse(localStorage.getItem("selected_categories")||"[]"),A=S.findIndex($=>$.id===_.id);A>-1&&(S.splice(A,1),localStorage.setItem("selected_categories",JSON.stringify(S)))}addCartItem(_){const S=JSON.parse(localStorage.getItem("cart_items")||"[]");-1===S.findIndex($=>$.id===_.id)&&(S.push(_),localStorage.setItem("cart_items",JSON.stringify(S)))}removeCartItem(_){const S=JSON.parse(localStorage.getItem("cart_items")||"[]"),A=S.findIndex($=>$.id===_.id);A>-1&&(S.splice(A,1),localStorage.setItem("cart_items",JSON.stringify(S)))}addLoginInfo(_){localStorage.setItem("login_items",JSON.stringify(_))}removeLoginInfo(){localStorage.setItem("login_items",JSON.stringify({}))}static{this.\u0275fac=function(S){return new(S||e)}}static{this.\u0275prov=m.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})()},7473:(y1,d1,y)=>{"use strict";y.d(d1,{J:()=>e});var m=y(4412),g=y(4438);let e=(()=>{class p{constructor(){this.notificationSubject=new m.t(null),this.notification$=this.notificationSubject.asObservable()}showSuccess(S){this.show({type:"success",message:S})}showError(S){this.show({type:"error",message:S})}showInfo(S){this.show({type:"info",message:S})}show(S){this.notificationSubject.next(S),setTimeout(()=>this.clear(),3e3)}clear(){this.notificationSubject.next(null)}static{this.\u0275fac=function(A){return new(A||p)}}static{this.\u0275prov=g.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})()},7387:(y1,d1,y)=>{"use strict";y.d(d1,{F:()=>K});var m=y(467),g=y(8866),e=y(3207),p=y(9437),_=y(7673),S=y(5312),A=y(4438),$=y(1626),Z=y(3077);class K{static{this.BASE_URL=S.c.BASE_URL}static{this.API_PRODUCT=S.c.PRODUCT_CATALOG}static{this.PRODUCT_LIMIT=S.c.PRODUCT_LIMIT}static{this.CATALOG_LIMIT=S.c.CATALOG_LIMIT}static{this.CATEGORY_LIMIT=S.c.CATEGORY_LIMIT}constructor(Y,h1){this.http=Y,this.localStorage=h1}getAllProducts(){return this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/productOffering?lifecycleStatus=Launched&limit=100`)}getProducts(Y,h1,e1){let r1=`${K.BASE_URL}${K.API_PRODUCT}/productOffering?limit=${K.PRODUCT_LIMIT}&offset=${Y}&lifecycleStatus=Launched`;return null!=h1&&(r1=r1+"&keyword="+h1),null!=e1&&(r1=r1+"&sort="+e1),(0,e.s)(this.http.get(r1))}getProductsDetails(Y){var h1=this;return(0,m.A)(function*(){let e1=[];return Array.isArray(Y)?e1=Y:Y&&"object"==typeof Y&&(e1=[Y]),yield Promise.all(e1.map(function(){var r1=(0,m.A)(function*(M1){try{const[f1,$1]=yield Promise.all([M1.productSpecification?.id?h1.getProductSpecification(M1.productSpecification.id):Promise.resolve(void 0),M1.productOfferingPrice?.length?h1.getProductPrices(M1.productOfferingPrice.map(o2=>o2.id)):Promise.resolve([])]);return{id:M1.id,href:M1.href,name:M1.name,description:M1.description,isBundle:M1.isBundle,isSellable:M1.isSellable,lastUpdate:M1.lastUpdate,lifecycleStatus:M1.lifecycleStatus,statusReason:M1.statusReason,version:M1.version,agreement:M1.agreement??[],attachment:f1?.attachment??[],bundledProductOffering:M1.bundledProductOffering??[],category:M1.category??[],channel:M1.channel??[],marketSegment:M1.marketSegment??[],place:M1.place??[],prodSpecCharValueUse:M1.prodSpecCharValueUse??[],productOfferingPrice:$1??[],productOfferingRelationship:M1.productOfferingRelationship??[],productOfferingTerm:M1.productOfferingTerm??[],productSpecification:f1??M1.productSpecification,resourceCandidate:M1.resourceCandidate,serviceCandidate:M1.serviceCandidate,serviceLevelAgreement:M1.serviceLevelAgreement,validFor:M1.validFor,"@baseType":M1["@baseType"],"@schemaLocation":M1["@schemaLocation"],"@type":M1["@type"]}}catch(f1){return console.error(`Error processing product ${M1.id}:`,f1),M1}});return function(M1){return r1.apply(this,arguments)}}()))})()}getProductsByCategory(Y,h1,e1,r1){let M1="";for(let S2=0;S20){for(let o2=0;o2{const r1=new Map((e1??[]).map(M1=>[M1.id,M1]));return Y.map(M1=>r1.get(M1)).filter(M1=>null!=M1)})}getLaunchedCategories(){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}&lifecycleStatus=Launched`).pipe((0,p.W)(h1=>(console.error("Error getting categories:",h1),(0,_.of)([])))))}getCategories(Y){let h1=`${K.BASE_URL}${K.API_PRODUCT}/category?limit=${K.CATEGORY_LIMIT}`,e1="";if(Y.length>0){for(let r1=0;r1(console.error("Error getting categories:",r1),(0,_.of)([])))))}getDefaultCategories(){var Y=this;return(0,m.A)(function*(){let h1=[];if(S.c.DFT_CATALOG_ID&&""!==S.c.DFT_CATALOG_ID){const e1=yield Y.getCatalog(S.c.DFT_CATALOG_ID);e1.category&&(h1=yield Promise.all(e1.category.map(function(){var r1=(0,m.A)(function*(M1){return Y.getCategoryById(M1.id)});return function(M1){return r1.apply(this,arguments)}}())))}else h1=yield Y.getLaunchedCategories();return h1})()}getCategoryById(Y){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category/${Y}`))}getCategoriesByParentId(Y){return(0,e.s)(this.http.get(`${K.BASE_URL}${K.API_PRODUCT}/category?parentId=${Y}`))}postCategory(Y){return this.http.post(`${K.BASE_URL}${K.API_PRODUCT}/category`,Y)}updateCategory(Y,h1){return this.http.patch(`${K.BASE_URL}${K.API_PRODUCT}/category/${h1}`,Y)}getCatalogs(Y,h1){let e1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&lifecycleStatus=Launched`;return null!=h1&&(e1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&lifecycleStatus=Launched&body=${h1}`),console.log("getcatalogs"),console.log(this),(0,e.s)(this.http.get(e1))}getCatalogsByUser(Y,h1,e1,r1){let M1=`${K.BASE_URL}${K.API_PRODUCT}/catalog?limit=${K.CATALOG_LIMIT}&offset=${Y}&relatedParty.id=${r1}`,f1="";if(e1&&e1.length>0){for(let $1=0;$1"Compliance:VC"===r1.name);if(e1){const r1=e1.productSpecCharacteristicValue?.at(0)?.value,M1=(0,g.s)(r1);let f1=null;if("verifiableCredential"in M1?f1=M1.verifiableCredential:"vc"in M1&&(f1=M1.vc),null!=f1){const $1=f1.credentialSubject;"gx:labelLevel"in $1&&(h1=$1["gx:labelLevel"])}}}return h1}static{this.\u0275fac=function(h1){return new(h1||K)(A.KVO($.Qq),A.KVO(Z.s))}}static{this.\u0275prov=A.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}}},3636:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>Z});var m=y(467),g=y(4438),e=y(177),p=y(9417),_=y(8508),S=y(7473);function A(K,p1){1&K&&(g.j41(0,"div",14)(1,"div",15)(2,"div",16),g.qSk(),g.j41(3,"svg",17),g.nrm(4,"path",18),g.k0s()(),g.joV(),g.j41(5,"div",19)(6,"h3",20),g.EFF(7,"Warning: Existing Attachment"),g.k0s(),g.j41(8,"div",21)(9,"p"),g.EFF(10,"This quote already has an attachment. Uploading a new file will overwrite the existing PDF."),g.k0s()()()()())}function $(K,p1){if(1&K){const Y=g.RV6();g.j41(0,"div",2),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.j41(1,"div",3),g.bIt("click",function(e1){return g.eBV(Y),g.Njj(e1.stopPropagation())}),g.j41(2,"button",4),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.EFF(3," \xd7 "),g.k0s(),g.j41(4,"h3",5),g.EFF(5),g.k0s(),g.DNE(6,A,11,0,"div",6),g.j41(7,"div",7)(8,"label",8),g.EFF(9," Select PDF File "),g.k0s(),g.j41(10,"input",9,0),g.bIt("change",function(e1){g.eBV(Y);const r1=g.XpG();return g.Njj(r1.onFileSelected(e1))}),g.k0s(),g.j41(12,"p",10),g.EFF(13,"Only PDF files are allowed"),g.k0s()(),g.j41(14,"div",11)(15,"button",12),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.uploadAttachment())}),g.EFF(16),g.k0s(),g.j41(17,"button",13),g.bIt("click",function(){g.eBV(Y);const e1=g.XpG();return g.Njj(e1.closeModal())}),g.EFF(18," Cancel "),g.k0s()()()()}if(2&K){const Y=g.XpG();g.R7$(5),g.SpI(" Add Attachment to Quote ",Y.getShortQuoteId()," "),g.R7$(),g.Y8G("ngIf",Y.hasExistingAttachment),g.R7$(9),g.Y8G("disabled",!Y.selectedFile||Y.isUploading),g.R7$(),g.SpI(" ",Y.isUploading?"Uploading...":"Upload"," ")}}let Z=(()=>{class K{constructor(Y,h1){this.quoteService=Y,this.notificationService=h1,this.isOpen=!1,this.quote=null,this.close=new g.bkB,this.uploadSuccess=new g.bkB,this.selectedFile=null,this.isUploading=!1,this.hasExistingAttachment=!1}ngOnInit(){this.quote&&this.checkForExistingAttachment()}ngOnChanges(){this.isOpen&&this.quote&&(this.checkForExistingAttachment(),this.resetForm())}checkForExistingAttachment(){this.quote&&(this.hasExistingAttachment=Array.isArray(this.quote.quoteItem)&&this.quote.quoteItem.some(Y=>Y.attachment&&Y.attachment.length>0))}onFileSelected(Y){const h1=Y.target.files[0];if(h1){if("application/pdf"!==h1.type)return this.notificationService.showError("Please select a valid PDF file."),this.selectedFile=null,void(Y.target.value="");this.selectedFile=h1}else this.selectedFile=null}uploadAttachment(){var Y=this;return(0,m.A)(function*(){if(Y.selectedFile&&Y.quote?.id&&!Y.isUploading){Y.isUploading=!0;try{const h1=yield Y.quoteService.addAttachmentToQuote(Y.quote.id,Y.selectedFile,"").toPromise();Y.notificationService.showSuccess("Attachment uploaded successfully!"),Y.uploadSuccess.emit(h1),Y.closeModal()}catch(h1){console.error("Error uploading attachment:",h1),Y.notificationService.showError("Error uploading attachment. Please try again.")}finally{Y.isUploading=!1}}})()}getShortQuoteId(){return this.quote?.id?this.quote.id.length>8?this.quote.id.slice(-8):this.quote.id:""}closeModal(){this.resetForm(),this.close.emit()}resetForm(){this.selectedFile=null,this.isUploading=!1}static{this.\u0275fac=function(h1){return new(h1||K)(g.rXU(_.K),g.rXU(S.J))}}static{this.\u0275cmp=g.VBU({type:K,selectors:[["app-attachment-modal"]],inputs:{isOpen:"isOpen",quote:"quote"},outputs:{close:"close",uploadSuccess:"uploadSuccess"},standalone:!0,features:[g.OA$,g.aNF],decls:1,vars:1,consts:[["fileInput",""],["class","fixed inset-0 bg-black bg-opacity-30 flex items-center justify-center z-50",3,"click",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","flex","items-center","justify-center","z-50",3,"click"],[1,"bg-white","rounded-lg","shadow-lg","w-full","max-w-lg","p-8","relative",3,"click"],["aria-label","Close",1,"absolute","top-2","right-2","text-gray-400","hover:text-gray-700","text-xl","font-bold","w-8","h-8","flex","items-center","justify-center",3,"click"],[1,"text-lg","font-semibold","mb-4"],["class","mb-4 p-4 bg-yellow-50 border border-yellow-200 rounded-md",4,"ngIf"],[1,"mb-4"],["for","file-input",1,"block","text-sm","font-medium","text-gray-700","mb-2"],["type","file","accept",".pdf",1,"w-full","border","border-gray-300","rounded-md","px-3","py-2","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"change"],[1,"text-xs","text-gray-500","mt-1"],[1,"flex","justify-between","pt-6","mt-6","border-t","border-gray-200"],["type","button",1,"px-6","py-2","bg-green-600","text-white","rounded","hover:bg-green-700","focus:outline-none","focus:ring-2","focus:ring-green-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],[1,"mb-4","p-4","bg-yellow-50","border","border-yellow-200","rounded-md"],[1,"flex"],[1,"flex-shrink-0"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor",1,"h-5","w-5","text-yellow-400"],["fill-rule","evenodd","d","M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"ml-3"],[1,"text-sm","font-medium","text-yellow-800"],[1,"mt-2","text-sm","text-yellow-700"]],template:function(h1,e1){1&h1&&g.DNE(0,$,19,4,"div",1),2&h1&&g.Y8G("ngIf",e1.isOpen)},dependencies:[e.MD,e.bT,p.YN],encapsulation:2})}}return K})()},8338:(y1,d1,y)=>{"use strict";y.d(d1,{g:()=>$});var m=y(60),g=y(604),e=y(4438);const p=["*"],_=()=>[];function S(Z,K){if(1&Z){const p1=e.RV6();e.j41(0,"button",6),e.bIt("click",function(){const h1=e.eBV(p1).$index,e1=e.XpG(2);return e.Njj(e1.goTo(h1))}),e.k0s()}if(2&Z){const p1=K.$index,Y=e.XpG(2);e.HbH(Y.dotClass(Y.index===p1))}}function A(Z,K){if(1&Z&&(e.j41(0,"div",4),e.Z7z(1,S,1,2,"button",5,e.Vm6),e.k0s()),2&Z){const p1=e.XpG();e.R7$(),e.Dyx(e.lJ4(0,_).constructor(p1.pages))}}let $=(()=>{class Z{constructor(){this.visible=3,this.arrowTheme="light",this.dotsTheme="light",this.sidePadding=!0,this.loop=!1,this.index=0,this.faChevronRight=g.XkK,this.faChevronLeft=g.Wzs}get maxIndex(){return Math.max(0,this.items.length-this.visible)}get pages(){return this.maxIndex+1}get trackTransform(){return`translateX(-${this.index*(100/this.visible)}%)`}get wrapperClass(){return this.sidePadding?"relative px-0 sm:px-4 md:px-12 lg:px-16 xl:px-20":"relative"}get leftButtonClass(){return"dark"===this.arrowTheme?"absolute left-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-white/90 bg-transparent text-white transition hover:bg-white/10 disabled:opacity-40":"absolute left-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-900 shadow-md transition disabled:opacity-40"}get rightButtonClass(){return"dark"===this.arrowTheme?"absolute right-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-white/90 bg-transparent text-white transition hover:bg-white/10 disabled:opacity-40":"absolute right-2 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full border border-slate-200 bg-white text-slate-900 shadow-md transition disabled:opacity-40"}dotClass(p1){return"accent"===this.dotsTheme?p1?"bg-[#00ADD3]":"bg-[#D1F7FF]":p1?"bg-blue-700":"bg-slate-300"}next(){this.index=this.loop&&this.index>=this.maxIndex?0:Math.min(this.index+1,this.maxIndex)}prev(){this.index=this.loop&&this.index<=0?this.maxIndex:Math.max(this.index-1,0)}goTo(p1){this.index=Math.max(0,Math.min(p1,this.maxIndex))}ngOnChanges(p1){this.index=Math.min(this.index,this.maxIndex)}onResize(){this.index=Math.min(this.index,this.maxIndex)}static{this.\u0275fac=function(Y){return new(Y||Z)}}static{this.\u0275cmp=e.VBU({type:Z,selectors:[["app-carousel"]],hostBindings:function(Y,h1){1&Y&&e.bIt("resize",function(){return h1.onResize()},!1,e.tSv)},inputs:{items:"items",visible:"visible",arrowTheme:"arrowTheme",dotsTheme:"dotsTheme",sidePadding:"sidePadding",loop:"loop"},standalone:!0,features:[e.OA$,e.aNF],ngContentSelectors:p,decls:9,vars:13,consts:[[3,"click","disabled"],[3,"icon"],[1,"overflow-hidden"],[1,"flex","transition-transform","duration-500","ease-out"],[1,"mt-6","flex","justify-center","gap-2","sm:mt-8","md:mt-10","lg:mt-12"],[1,"h-3","w-3","rounded-full","transition",3,"class"],[1,"h-3","w-3","rounded-full","transition",3,"click"]],template:function(Y,h1){1&Y&&(e.NAR(),e.j41(0,"div")(1,"button",0),e.bIt("click",function(){return h1.prev()}),e.nrm(2,"fa-icon",1),e.k0s(),e.j41(3,"div",2)(4,"div",3),e.SdG(5),e.k0s()(),e.j41(6,"button",0),e.bIt("click",function(){return h1.next()}),e.nrm(7,"fa-icon",1),e.k0s()(),e.DNE(8,A,3,1,"div",4)),2&Y&&(e.HbH(h1.wrapperClass),e.R7$(),e.HbH(h1.leftButtonClass),e.Y8G("disabled",!h1.loop&&0===h1.index),e.R7$(),e.Y8G("icon",h1.faChevronLeft),e.R7$(2),e.xc7("transform",h1.trackTransform),e.R7$(2),e.HbH(h1.rightButtonClass),e.Y8G("disabled",!h1.loop&&h1.index===h1.maxIndex),e.R7$(),e.Y8G("icon",h1.faChevronRight),e.R7$(),e.vxM(8,h1.pages>1?8:-1))},dependencies:[m.dX,m.aY],encapsulation:2})}}return Z})()},5586:(y1,d1,y)=>{"use strict";y.d(d1,{d:()=>e1});var m=y(467),g=y(4438),e=y(177),p=y(9417),_=y(8508),S=y(3077),A=y(7473);function $(r1,M1){1&r1&&(g.j41(0,"div",19),g.EFF(1," Loading messages... "),g.k0s())}function Z(r1,M1){1&r1&&(g.j41(0,"div",20),g.EFF(1," Error loading messages "),g.k0s())}function K(r1,M1){1&r1&&(g.j41(0,"div",19),g.EFF(1," No messages yet. "),g.k0s())}function p1(r1,M1){if(1&r1&&(g.j41(0,"div",22)(1,"div",23)(2,"div",24),g.EFF(3),g.k0s(),g.j41(4,"div",25),g.EFF(5),g.k0s()()()),2&r1){const f1=M1.$implicit,$1=g.XpG(3);g.Y8G("ngClass",$1.isMyMessage(f1)?"justify-end":"justify-start"),g.R7$(),g.Y8G("ngClass",$1.isMyMessage(f1)?"bg-blue-100 text-blue-900":"bg-gray-200 text-gray-800"),g.R7$(2),g.JRh(f1.text),g.R7$(),g.Y8G("ngClass",$1.isMyMessage(f1)?"text-right":"text-left"),g.R7$(),g.SpI(" ",$1.formatMessageDate(f1.date)," ")}}function Y(r1,M1){if(1&r1&&(g.j41(0,"div"),g.DNE(1,p1,6,5,"div",21),g.k0s()),2&r1){const f1=g.XpG(2);g.R7$(),g.Y8G("ngForOf",f1.messages)}}function h1(r1,M1){if(1&r1){const f1=g.RV6();g.j41(0,"div",3),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.j41(1,"div",4),g.bIt("click",function(o2){return g.eBV(f1),g.Njj(o2.stopPropagation())}),g.j41(2,"div",5)(3,"h2",6),g.EFF(4),g.k0s(),g.j41(5,"button",7),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.qSk(),g.j41(6,"svg",8),g.nrm(7,"path",9),g.k0s()()(),g.joV(),g.j41(8,"div",10,0),g.DNE(10,$,2,0,"div",11)(11,Z,2,0,"div",12)(12,K,2,0,"div",11)(13,Y,2,1,"div",13),g.k0s(),g.j41(14,"form",14,1),g.bIt("ngSubmit",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.sendMessage())}),g.j41(16,"input",15),g.mxI("ngModelChange",function(o2){g.eBV(f1);const S2=g.XpG();return g.DH7(S2.newMessage,o2)||(S2.newMessage=o2),g.Njj(o2)}),g.bIt("keydown.enter",function(o2){g.eBV(f1);const S2=g.XpG();return g.Njj(S2.onEnterKey(o2))}),g.k0s(),g.j41(17,"div",16)(18,"button",17),g.EFF(19),g.k0s(),g.j41(20,"button",18),g.bIt("click",function(){g.eBV(f1);const o2=g.XpG();return g.Njj(o2.closeModal())}),g.EFF(21," Close "),g.k0s()()()()()}if(2&r1){const f1=g.XpG();g.R7$(4),g.SpI(" Chat for Quote ",f1.getShortQuoteId()," "),g.R7$(6),g.Y8G("ngIf",f1.isLoading),g.R7$(),g.Y8G("ngIf",f1.error),g.R7$(),g.Y8G("ngIf",!f1.isLoading&&!f1.error&&0===f1.messages.length),g.R7$(),g.Y8G("ngIf",!f1.isLoading&&!f1.error&&f1.messages.length>0),g.R7$(3),g.R50("ngModel",f1.newMessage),g.Y8G("disabled",f1.isSending),g.R7$(2),g.Y8G("disabled",f1.isSending||!f1.newMessage.trim()),g.R7$(),g.SpI(" ",f1.isSending?"Sending...":"Send"," ")}}let e1=(()=>{class r1{constructor(f1,$1,o2){this.quoteService=f1,this.localStorage=$1,this.notificationService=o2,this.isOpen=!1,this.quoteId=null,this.close=new g.bkB,this.messages=[],this.newMessage="",this.isLoading=!1,this.error=!1,this.isSending=!1,this.currentUserId=null}ngOnInit(){let f1=this.localStorage.getObject("login_items");if(f1.logged_as==f1.id)this.currentUserId=f1.partyId;else{let $1=f1.organizations.find(o2=>o2.id==f1.logged_as);this.currentUserId=$1.partyId}this.isOpen&&this.quoteId&&(this.loadMessages(),this.startPolling())}ngOnChanges(){if(this.isOpen&&this.quoteId){let f1=this.localStorage.getObject("login_items");if(f1.logged_as==f1.id)this.currentUserId=f1.partyId;else{let $1=f1.organizations.find(o2=>o2.id==f1.logged_as);this.currentUserId=$1.partyId}this.loadMessages(),this.startPolling()}else this.isOpen||(this.stopPolling(),this.resetState())}ngOnDestroy(){this.stopPolling()}loadMessages(){var f1=this;return(0,m.A)(function*(){if(f1.quoteId){f1.isLoading=!0,f1.error=!1;try{const $1=yield f1.quoteService.getQuoteById(f1.quoteId).toPromise();$1&&(f1.messages=Array.isArray($1?.note)?$1.note:[]),f1.scrollToBottom()}catch($1){console.error("Error loading messages:",$1),f1.error=!0}finally{f1.isLoading=!1}}})()}sendMessage(){var f1=this;return(0,m.A)(function*(){if(console.log("sendMessage called"),console.log("newMessage:",f1.newMessage),console.log("quoteId:",f1.quoteId),console.log("currentUserId:",f1.currentUserId),console.log("isSending:",f1.isSending),f1.newMessage.trim()&&f1.quoteId&&f1.currentUserId&&!f1.isSending){console.log("Starting to send message..."),f1.isSending=!0;try{console.log("Calling addNoteToQuote API..."),yield f1.quoteService.addNoteToQuote(f1.quoteId,f1.newMessage.trim(),f1.currentUserId).toPromise(),console.log("Message sent successfully"),f1.newMessage="",yield f1.loadMessages()}catch($1){console.error("Error sending message:",$1),f1.notificationService.showError("Error sending message. Please try again.")}finally{f1.isSending=!1}}else console.log("Validation failed, returning early")})()}onEnterKey(f1){f1.preventDefault(),this.sendMessage()}isMyMessage(f1){return f1.author===this.currentUserId}formatMessageDate(f1){if(!f1)return"";try{const $1=new Date(f1),o2=$1.getDate().toString().padStart(2,"0"),S2=($1.getMonth()+1).toString().padStart(2,"0"),c2=$1.getFullYear();return`${o2}/${S2}/${c2} ${$1.getHours().toString().padStart(2,"0")}:${$1.getMinutes().toString().padStart(2,"0")}`}catch{return f1}}getShortQuoteId(){return this.quoteId?this.quoteId.length>8?this.quoteId.slice(-8):this.quoteId:""}closeModal(){this.close.emit()}startPolling(){this.stopPolling(),this.pollingInterval=setInterval(()=>{this.isOpen&&this.quoteId&&this.loadMessages()},3e5)}stopPolling(){this.pollingInterval&&(clearInterval(this.pollingInterval),this.pollingInterval=null)}resetState(){this.messages=[],this.newMessage="",this.isLoading=!1,this.error=!1,this.isSending=!1}scrollToBottom(){setTimeout(()=>{const f1=document.querySelector(".overflow-y-auto");f1&&(f1.scrollTop=f1.scrollHeight)},100)}static{this.\u0275fac=function($1){return new($1||r1)(g.rXU(_.K),g.rXU(S.s),g.rXU(A.J))}}static{this.\u0275cmp=g.VBU({type:r1,selectors:[["app-chat-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId"},outputs:{close:"close"},standalone:!0,features:[g.OA$,g.aNF],decls:1,vars:1,consts:[["messagesContainer",""],["chatForm","ngForm"],["class","fixed inset-0 bg-black bg-opacity-30 flex items-center justify-center z-50",3,"click",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","flex","items-center","justify-center","z-50",3,"click"],[1,"bg-white","rounded-lg","shadow-lg","w-full","max-w-4xl","p-8","relative",3,"click"],[1,"flex","justify-between","items-center","mb-4"],[1,"text-lg","font-semibold","text-gray-900"],[1,"text-gray-400","hover:text-gray-600","focus:outline-none",3,"click"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"border","rounded","p-4","h-96","overflow-y-auto","mb-6","bg-gray-50"],["class","text-gray-400 text-center",4,"ngIf"],["class","text-red-500 text-center",4,"ngIf"],[4,"ngIf"],[3,"ngSubmit"],["name","message","type","text","placeholder","Type a message...","required","",1,"w-full","border","rounded","px-3","py-2","mb-4","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"ngModelChange","keydown.enter","ngModel","disabled"],[1,"flex","justify-between","pt-4","border-t","border-gray-200"],["type","submit",1,"px-4","py-2","bg-blue-600","text-white","rounded","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"disabled"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],[1,"text-gray-400","text-center"],[1,"text-red-500","text-center"],["class","mb-3 flex",3,"ngClass",4,"ngFor","ngForOf"],[1,"mb-3","flex",3,"ngClass"],[1,"max-w-xs","px-3","py-2","rounded-lg","text-sm",3,"ngClass"],[1,"whitespace-pre-wrap"],[1,"text-xs","mt-1","opacity-60",3,"ngClass"]],template:function($1,o2){1&$1&&g.DNE(0,h1,22,9,"div",2),2&$1&&g.Y8G("ngIf",o2.isOpen)},dependencies:[e.MD,e.YU,e.Sq,e.bT,p.YN,p.qT,p.me,p.BC,p.cb,p.YS,p.vS,p.cV],encapsulation:2})}}return r1})()},3836:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>p});var m=y(4438),g=y(177);function e(_,S){if(1&_){const A=m.RV6();m.j41(0,"div",1)(1,"div",2)(2,"h3",3),m.EFF(3),m.k0s(),m.j41(4,"p",4),m.EFF(5),m.k0s(),m.j41(6,"div",5)(7,"button",6),m.bIt("click",function(){m.eBV(A);const Z=m.XpG();return m.Njj(Z.onCancel())}),m.EFF(8," Cancel "),m.k0s(),m.j41(9,"button",7),m.bIt("click",function(){m.eBV(A);const Z=m.XpG();return m.Njj(Z.onConfirm())}),m.EFF(10),m.k0s()()()()}if(2&_){const A=m.XpG();m.R7$(3),m.JRh(A.title),m.R7$(2),m.JRh(A.message),m.R7$(4),m.HbH(A.confirmButtonClass),m.R7$(),m.SpI(" ",A.confirmText," ")}}let p=(()=>{class _{constructor(){this.isOpen=!1,this.title="Confirm Action",this.message="Are you sure you want to proceed?",this.confirmText="Confirm",this.confirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",this.confirm=new m.bkB,this.cancel=new m.bkB}onConfirm(){this.confirm.emit()}onCancel(){this.cancel.emit()}static{this.\u0275fac=function($){return new($||_)}}static{this.\u0275cmp=m.VBU({type:_,selectors:[["app-confirm-dialog"]],inputs:{isOpen:"isOpen",title:"title",message:"message",confirmText:"confirmText",confirmButtonClass:"confirmButtonClass"},outputs:{confirm:"confirm",cancel:"cancel"},standalone:!0,features:[m.aNF],decls:1,vars:1,consts:[["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[70]",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center","z-[70]"],[1,"bg-white","rounded-lg","p-6","max-w-md","w-full","mx-4"],[1,"text-lg","font-semibold","mb-4"],[1,"text-gray-600","mb-6"],[1,"flex","justify-end","space-x-3"],[1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500",3,"click"],[3,"click"]],template:function($,Z){1&$&&m.DNE(0,e,11,5,"div",0),2&$&&m.Y8G("ngIf",Z.isOpen)},dependencies:[g.MD,g.bT],encapsulation:2})}}return _})()},8944:(y1,d1,y)=>{"use strict";y.d(d1,{z:()=>S});var m=y(177),g=y(4438),e=y(7473);const p=(A,$,Z)=>({"fixed top-4 right-4 z-[200] p-4 rounded-lg shadow-lg":!0,"bg-green-100 text-green-800":A,"bg-red-100 text-red-800":$,"bg-blue-100 text-blue-800":Z});function _(A,$){if(1&A&&(g.j41(0,"div",1),g.EFF(1),g.k0s()),2&A){const Z=$.ngIf;g.Y8G("ngClass",g.sMw(2,p,"success"===Z.type,"error"===Z.type,"info"===Z.type)),g.R7$(),g.SpI(" ",Z.message," ")}}let S=(()=>{class A{constructor(Z){this.notificationService=Z}ngOnInit(){}static{this.\u0275fac=function(K){return new(K||A)(g.rXU(e.J))}}static{this.\u0275cmp=g.VBU({type:A,selectors:[["app-notification"]],standalone:!0,features:[g.aNF],decls:2,vars:3,consts:[["class","transition-all duration-300 ease-in-out",3,"ngClass",4,"ngIf"],[1,"transition-all","duration-300","ease-in-out",3,"ngClass"]],template:function(K,p1){1&K&&(g.DNE(0,_,2,6,"div",0),g.nI1(1,"async")),2&K&&g.Y8G("ngIf",g.bMT(1,1,p1.notificationService.notification$))},dependencies:[m.MD,m.YU,m.bT,m.Jj],encapsulation:2})}}return A})()},6964:(y1,d1,y)=>{"use strict";y.d(d1,{h:()=>H1});var m=y(4438),g=y(177),e=y(9417),p=y(1583),_=y(5558),S=y(7468),A=y(7673),$=y(8508),Z=y(7473),K=y(452),p1=y(7387),Y=y(8058),h1=y(2087),e1=y(5586),r1=y(3836);function M1(P1,K1){1&P1&&(m.j41(0,"div",17),m.nrm(1,"div",18),m.k0s())}function f1(P1,K1){if(1&P1&&(m.j41(0,"div",19),m.EFF(1),m.k0s()),2&P1){const Q=m.XpG(2);m.R7$(),m.SpI(" ",Q.error," ")}}function $1(P1,K1){if(1&P1&&(m.j41(0,"div",34)(1,"p",35),m.EFF(2,"Buyer Information"),m.k0s(),m.j41(3,"div",36)(4,"div")(5,"p",37),m.EFF(6,"Buyer:"),m.k0s(),m.j41(7,"p",38),m.EFF(8),m.k0s(),m.j41(9,"p",39),m.EFF(10),m.k0s()(),m.j41(11,"div")(12,"p",37),m.EFF(13,"Buyer Operator:"),m.k0s(),m.j41(14,"p",38),m.EFF(15),m.k0s(),m.j41(16,"p",39),m.EFF(17),m.k0s()()()()),2&P1){const Q=m.XpG(3);m.R7$(8),m.JRh(Q.buyerName),m.R7$(2),m.SpI("VAT ID: ",Q.buyerVatId,""),m.R7$(5),m.JRh(Q.buyerOperatorName),m.R7$(2),m.SpI("VAT ID: ",Q.buyerOperatorVatId,"")}}function o2(P1,K1){if(1&P1&&(m.j41(0,"div",34)(1,"p",35),m.EFF(2,"Seller Information"),m.k0s(),m.j41(3,"div",36)(4,"div")(5,"p",37),m.EFF(6,"Seller:"),m.k0s(),m.j41(7,"p",38),m.EFF(8),m.k0s(),m.j41(9,"p",39),m.EFF(10),m.k0s()(),m.j41(11,"div")(12,"p",37),m.EFF(13,"Seller Operator:"),m.k0s(),m.j41(14,"p",38),m.EFF(15),m.k0s(),m.j41(16,"p",39),m.EFF(17),m.k0s()()()()),2&P1){const Q=m.XpG(3);m.R7$(8),m.JRh(Q.sellerName),m.R7$(2),m.SpI("VAT ID: ",Q.sellerVatId,""),m.R7$(5),m.JRh(Q.sellerOperatorName),m.R7$(2),m.SpI("VAT ID: ",Q.sellerOperatorVatId,"")}}function S2(P1,K1){if(1&P1&&(m.j41(0,"div")(1,"p",40),m.EFF(2,"Product:"),m.k0s(),m.j41(3,"p",41),m.EFF(4),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(4),m.JRh(Q.productName)}}function c2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"button",44),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.showExpectedDatePicker=!0)}),m.qSk(),m.j41(1,"svg",45),m.nrm(2,"path",46),m.k0s()()}}function G1(P1,K1){if(1&P1&&(m.j41(0,"div",36)(1,"div")(2,"p",40),m.EFF(3,"Requested Date:"),m.k0s(),m.j41(4,"p",41),m.EFF(5),m.nI1(6,"date"),m.k0s()(),m.j41(7,"div")(8,"p",40),m.EFF(9,"Expected Date:"),m.k0s(),m.j41(10,"div",42)(11,"p",41),m.EFF(12),m.nI1(13,"date"),m.k0s(),m.DNE(14,c2,3,0,"button",43),m.k0s()()()),2&P1){const Q=m.XpG(3);m.R7$(5),m.SpI(" ",Q.quote.requestedQuoteCompletionDate?m.i5U(6,3,Q.quote.requestedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),m.R7$(7),m.SpI(" ",Q.quote.expectedQuoteCompletionDate?m.i5U(13,6,Q.quote.expectedQuoteCompletionDate,"dd-MM-yyyy"):"--"," "),m.R7$(2),m.Y8G("ngIf",Q.canEditExpectedDate())}}function O1(P1,K1){if(1&P1&&(m.j41(0,"div",36)(1,"div")(2,"p",40),m.EFF(3,"Tender Start Date:"),m.k0s(),m.j41(4,"p",41),m.EFF(5),m.k0s()(),m.j41(6,"div")(7,"p",40),m.EFF(8,"Tender End Date:"),m.k0s(),m.j41(9,"p",41),m.EFF(10),m.k0s()()()),2&P1){const Q=m.XpG(3);m.R7$(5),m.SpI(" ",Q.getTenderStartDate()," "),m.R7$(5),m.SpI(" ",Q.getTenderEndDate()," ")}}function d0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",49),m.qSk(),m.j41(1,"svg",50),m.nrm(2,"path",51),m.k0s(),m.joV(),m.j41(3,"span",29),m.EFF(4),m.k0s(),m.j41(5,"button",52),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.downloadCoordinatorAttachment())}),m.EFF(6," Download "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(4),m.SpI("Customer Request: ",Q.getCoordinatorAttachmentName(),"")}}function d2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",49),m.qSk(),m.j41(1,"svg",53),m.nrm(2,"path",51),m.k0s(),m.joV(),m.j41(3,"span",29),m.EFF(4),m.k0s(),m.j41(5,"button",52),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.downloadAttachment())}),m.EFF(6," Download "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(4),m.JRh(Q.getAttachmentName())}}function _2(P1,K1){1&P1&&(m.j41(0,"p",61),m.EFF(1,"Uploading..."),m.k0s())}function w2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",54)(1,"label",55),m.qSk(),m.j41(2,"svg",56),m.nrm(3,"path",57),m.k0s(),m.joV(),m.j41(4,"span"),m.EFF(5,"Upload PDF attachment"),m.k0s(),m.j41(6,"input",58),m.bIt("change",function(s2){m.eBV(Q);const p2=m.XpG(4);return m.Njj(p2.onFileSelected(s2))}),m.k0s()(),m.j41(7,"p",59),m.EFF(8,"Maximum file size: 10MB"),m.k0s(),m.DNE(9,_2,2,0,"p",60),m.k0s()}if(2&P1){const Q=m.XpG(4);m.R7$(9),m.Y8G("ngIf",Q.isUploading)}}function v2(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"p",35),m.EFF(2,"Attachments"),m.k0s(),m.DNE(3,d0,7,1,"div",47)(4,d2,7,1,"div",47)(5,w2,10,1,"div",48),m.k0s()),2&P1){const Q=m.XpG(3);m.R7$(3),m.Y8G("ngIf",Q.hasCoordinatorAttachment()),m.R7$(),m.Y8G("ngIf",Q.hasAttachment()),m.R7$(),m.Y8G("ngIf",Q.canUploadAttachment())}}function t0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2),m.k0s(),m.j41(3,"button",65),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.acceptQuote())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",66),m.k0s(),m.EFF(6),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(2),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER?Q.ACTION_TEXTS.ACCEPT_TENDER_INVITE:Q.ACTION_TEXTS.ACCEPT_QUOTE_PROVIDER," "),m.R7$(),m.Y8G("disabled",Q.isProcessing||!Q.canAcceptQuote())("title",Q.getAcceptButtonTooltip()),m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER?"Accept Invite":"Accept Quote"," ")}}function X0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2),m.k0s(),m.j41(3,"button",67),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.acceptProposal())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",66),m.k0s(),m.EFF(6," Accept Quote "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(2),m.JRh(Q.ACTION_TEXTS.ACCEPT_PROPOSAL_CUSTOMER),m.R7$(),m.Y8G("disabled",Q.isProcessing)}}function Z0(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"div",62),m.DNE(2,t0,7,4,"div",63)(3,X0,7,2,"div",63),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(2),m.Y8G("ngIf","seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.PENDING&&(Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.TENDER||Q.getCoordinatorState()===Q.QUOTE_STATUSES.IN_PROGRESS)),m.R7$(),m.Y8G("ngIf","customer"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.APPROVED&&(Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.TENDER||Q.getCoordinatorState()===Q.QUOTE_STATUSES.ACCEPTED))}}function B4(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",64)(1,"p",40),m.EFF(2,"Send a message to all invited providers in this tender"),m.k0s(),m.j41(3,"button",68),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(4);return m.Njj(s2.openBroadcastMessage())}),m.qSk(),m.j41(4,"svg",56),m.nrm(5,"path",69),m.k0s(),m.EFF(6," Broadcast Message "),m.k0s()()}if(2&P1){const Q=m.XpG(4);m.R7$(3),m.Y8G("disabled",Q.isProcessing)}}function x2(P1,K1){if(1&P1&&(m.j41(0,"div",27)(1,"div",62),m.DNE(2,B4,7,1,"div",63),m.k0s()()),2&P1){const Q=m.XpG(3);m.R7$(2),m.Y8G("ngIf","customer"===Q.currentUserRole&&Q.getPrimaryState()!==Q.QUOTE_STATUSES.PENDING)}}function w0(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",27)(1,"div",64)(2,"p",40),m.EFF(3),m.k0s(),m.j41(4,"button",70),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(3);return m.Njj(s2.cancelQuote())}),m.qSk(),m.j41(5,"svg",56),m.nrm(6,"path",10),m.k0s(),m.EFF(7),m.k0s()()()}if(2&P1){const Q=m.XpG(3);m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR?"Cancel this tender and all the related quotes / invites":Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER&&"seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.PENDING?Q.ACTION_TEXTS.DECLINE_TENDER_INVITE:Q.ACTION_TEXTS.CANCEL_QUOTE_PROVIDER," "),m.R7$(),m.Y8G("disabled",Q.isProcessing),m.R7$(3),m.SpI(" ",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR?"Cancel Tender":"Cancel Quote"," ")}}function v1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",27)(1,"div",64)(2,"p",40),m.EFF(3),m.k0s(),m.j41(4,"button",71),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(3);return m.Njj(s2.createOffer())}),m.qSk(),m.j41(5,"svg",56),m.nrm(6,"path",57),m.k0s(),m.EFF(7," Create Offer "),m.k0s()()()}if(2&P1){const Q=m.XpG(3);m.R7$(3),m.JRh(Q.ACTION_TEXTS.CREATE_OFFER)}}function e2(P1,K1){if(1&P1&&(m.j41(0,"div",20),m.DNE(1,$1,18,4,"div",21)(2,o2,18,4,"div",21)(3,S2,5,1,"div",22),m.j41(4,"div")(5,"p",23),m.EFF(6,"Request:"),m.k0s(),m.j41(7,"div",24)(8,"p",25),m.EFF(9),m.k0s()()(),m.DNE(10,G1,15,9,"div",26)(11,O1,11,2,"div",26),m.j41(12,"div",27)(13,"div",28)(14,"p",29),m.EFF(15,"The quote is in status:"),m.k0s(),m.j41(16,"span",30),m.EFF(17),m.k0s()(),m.j41(18,"p",31),m.EFF(19),m.k0s(),m.j41(20,"p",32),m.EFF(21),m.k0s()(),m.DNE(22,v2,6,3,"div",33)(23,Z0,4,2,"div",33)(24,x2,3,1,"div",33)(25,w0,8,3,"div",33)(26,v1,8,1,"div",33),m.k0s()),2&P1){const Q=m.XpG(2);m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TAILORED),m.R7$(6),m.JRh(Q.quote.description||"No message provided"),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TAILORED),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.TENDER||Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(5),m.Y8G("ngClass",Q.getStatusBadgeClass()),m.R7$(),m.SpI(" ",Q.getStatusLabel()," "),m.R7$(2),m.JRh(Q.getStatusExplanation()),m.R7$(2),m.JRh(Q.getAvailableActionsText()),m.R7$(),m.Y8G("ngIf",Q.hasAttachment()||Q.canUploadAttachment()||Q.hasCoordinatorAttachment()),m.R7$(),m.Y8G("ngIf",Q.hasActionButtons()&&Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getQuoteCategory()===Q.QUOTE_CATEGORIES.COORDINATOR),m.R7$(),m.Y8G("ngIf",Q.getPrimaryState()!==Q.QUOTE_STATUSES.ACCEPTED&&Q.getPrimaryState()!==Q.QUOTE_STATUSES.CANCELLED),m.R7$(),m.Y8G("ngIf","seller"===Q.currentUserRole&&Q.getPrimaryState()===Q.QUOTE_STATUSES.ACCEPTED)}}function C2(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"button",71),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG(2);return m.Njj(s2.openChat())}),m.qSk(),m.j41(1,"svg",56),m.nrm(2,"path",72),m.k0s(),m.EFF(3," Chat "),m.k0s()}}function E1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",4),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.j41(1,"div",5),m.bIt("click",function(s2){return m.eBV(Q),m.Njj(s2.stopPropagation())}),m.j41(2,"div",6)(3,"h2",7),m.EFF(4),m.k0s(),m.j41(5,"button",8),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.qSk(),m.j41(6,"svg",9),m.nrm(7,"path",10),m.k0s()()(),m.DNE(8,M1,2,0,"div",11)(9,f1,2,1,"div",12)(10,e2,27,15,"div",13),m.joV(),m.j41(11,"div",14),m.DNE(12,C2,4,0,"button",15),m.j41(13,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeModal())}),m.EFF(14," Close "),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(4),m.JRh(Q.getModalTitle()),m.R7$(4),m.Y8G("ngIf",Q.isLoading),m.R7$(),m.Y8G("ngIf",Q.error),m.R7$(),m.Y8G("ngIf",!Q.isLoading&&!Q.error&&Q.quote),m.R7$(2),m.Y8G("ngIf",Q.getQuoteCategory()!==Q.QUOTE_CATEGORIES.COORDINATOR)}}function j1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",73)(1,"div",74)(2,"h3",75),m.EFF(3,"Set Expected Completion Date"),m.k0s(),m.j41(4,"p",76),m.EFF(5,"Select when you expect to complete this quote:"),m.k0s(),m.j41(6,"input",77),m.mxI("ngModelChange",function(s2){m.eBV(Q);const p2=m.XpG();return m.DH7(p2.selectedExpectedDate,s2)||(p2.selectedExpectedDate=s2),m.Njj(s2)}),m.k0s(),m.j41(7,"div",78)(8,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.showExpectedDatePicker=!1)}),m.EFF(9," Cancel "),m.k0s(),m.j41(10,"button",79),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.saveExpectedDate())}),m.EFF(11," Save "),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(6),m.R50("ngModel",Q.selectedExpectedDate),m.Y8G("min",Q.minDate),m.R7$(4),m.Y8G("disabled",!Q.selectedExpectedDate)}}function A1(P1,K1){if(1&P1){const Q=m.RV6();m.j41(0,"div",73)(1,"div",80)(2,"h3",75),m.EFF(3,"Broadcast Message"),m.k0s(),m.j41(4,"p",76),m.EFF(5,"This message will be sent to all invited providers in this tender:"),m.k0s(),m.j41(6,"textarea",81),m.mxI("ngModelChange",function(s2){m.eBV(Q);const p2=m.XpG();return m.DH7(p2.broadcastMessage,s2)||(p2.broadcastMessage=s2),m.Njj(s2)}),m.k0s(),m.j41(7,"div",78)(8,"button",16),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.closeBroadcastModal())}),m.EFF(9," Cancel "),m.k0s(),m.j41(10,"button",79),m.bIt("click",function(){m.eBV(Q);const s2=m.XpG();return m.Njj(s2.sendBroadcastMessage())}),m.EFF(11),m.k0s()()()()}if(2&P1){const Q=m.XpG();m.R7$(6),m.R50("ngModel",Q.broadcastMessage),m.R7$(4),m.Y8G("disabled",!Q.broadcastMessage||Q.isBroadcastSending),m.R7$(),m.SpI(" ",Q.isBroadcastSending?"Sending...":"Send"," ")}}let H1=(()=>{class P1{constructor(){this.isOpen=!1,this.quoteId=null,this.currentUserRole="customer",this.currentUserId="",this.close=new m.bkB,this.quoteUpdated=new m.bkB,this.quote=null,this.coordinatorQuote=null,this.isLoading=!1,this.error=null,this.isProcessing=!1,this.isUploading=!1,this.showConfirmDialog=!1,this.confirmDialogTitle="",this.confirmDialogMessage="",this.confirmDialogCallback=null,this.confirmDialogButtonText="Confirm",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:cursor-not-allowed disabled:opacity-50",this.buyerName="Loading...",this.buyerVatId="N/A",this.buyerOperatorName="Loading...",this.buyerOperatorVatId="N/A",this.sellerName="Loading...",this.sellerVatId="N/A",this.sellerOperatorName="Loading...",this.sellerOperatorVatId="N/A",this.productName="Loading...",this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.showChatModal=!1,this.showBroadcastModal=!1,this.broadcastMessage="",this.isBroadcastSending=!1,this.ACTION_TEXTS=Y.ak,this.QUOTE_CATEGORIES=Y.K0,this.QUOTE_STATUSES=Y.yz,this.quoteService=(0,m.WQX)($.K),this.notificationService=(0,m.WQX)(Z.J),this.accountService=(0,m.WQX)(K.O),this.productService=(0,m.WQX)(p1.F),this.router=(0,m.WQX)(p.Ix)}get minDate(){return(new Date).toISOString().split("T")[0]}ngOnInit(){this.isOpen&&this.quoteId&&this.loadQuote(this.quoteId)}ngOnChanges(Q){this.isOpen&&this.quoteId?this.loadQuote(this.quoteId):this.isOpen||this.resetState()}resetState(){this.quote=null,this.coordinatorQuote=null,this.error=null,this.buyerName="Loading...",this.buyerVatId="N/A",this.buyerOperatorName="Loading...",this.buyerOperatorVatId="N/A",this.sellerName="Loading...",this.sellerVatId="N/A",this.sellerOperatorName="Loading...",this.sellerOperatorVatId="N/A",this.productName="Loading...",this.showExpectedDatePicker=!1,this.selectedExpectedDate=""}loadQuote(Q){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(Q).subscribe({next:t2=>{this.quote=t2,t2.category===Y.K0.TENDER&&t2.externalId?this.quoteService.getQuoteById(t2.externalId).subscribe({next:s2=>{this.coordinatorQuote=s2,console.log("Loaded coordinator quote:",s2),this.isLoading=!1,this.enrichQuoteData()},error:s2=>{console.error("Failed to load coordinator quote:",s2),this.isLoading=!1,this.enrichQuoteData()}}):(this.isLoading=!1,this.enrichQuoteData())},error:t2=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}isOrganizationId(Q){return!!Q&&Q.startsWith("urn:ngsi-ld:organization:")}fetchPartyName(Q,t2,s2="N/A"){Q?this.isOrganizationId(Q)?this.accountService.getOrgInfo(Q).then(p2=>{t2(p2?.tradingName||p2?.name||Q)},()=>{t2(Q)}):t2(Q):t2(s2)}enrichQuoteData(){if(!this.quote)return;const Q=this.quote.relatedParty?.find(K2=>"buyer"===K2.role?.toLowerCase()),t2=this.quote.relatedParty?.find(K2=>"buyeroperator"===K2.role?.toLowerCase()),s2=this.quote.relatedParty?.find(K2=>"seller"===K2.role?.toLowerCase()),p2=this.quote.relatedParty?.find(K2=>"selleroperator"===K2.role?.toLowerCase()),s0=K2=>K2?K2.replace(/^did:elsi:/,""):"N/A";this.buyerVatId=s0(Q?.name),this.buyerOperatorVatId=s0(t2?.name),this.sellerVatId=s0(s2?.name),this.sellerOperatorVatId=s0(p2?.name),this.fetchPartyName(Q?.id,K2=>this.buyerName=K2,"N/A"),this.isOrganizationId(t2?.id)&&this.fetchPartyName(t2?.id,K2=>this.buyerOperatorName=K2,"N/A"),this.fetchPartyName(s2?.id,K2=>this.sellerName=K2,"N/A"),this.isOrganizationId(p2?.id)&&this.fetchPartyName(p2?.id,K2=>this.sellerOperatorName=K2,"N/A");const D0=this.quote.quoteItem?.[0]?.productOffering?.id;if(D0){const K2=this.quote.quoteItem?.[0]?.productOffering?.name;K2?this.productName=K2:this.productService.getProductById(D0).then(y0=>{this.productName=y0?.name||D0},()=>{this.productName=D0})}}getPrimaryState(){return this.quote?Array.isArray(this.quote.quoteItem)&&this.quote.quoteItem.length>0?this.quote.quoteItem[0].state||"unknown":this.quote.state||"unknown":"unknown"}getStatusLabel(){const Q=this.getPrimaryState();if(!this.quote)return Q;let t2;switch(t2=this.getQuoteCategory()===Y.K0.COORDINATOR?Y.R4:this.getQuoteCategory()===Y.K0.TENDER?"customer"===this.currentUserRole?Y.kU:Y.NT:"customer"===this.currentUserRole?Y.D5:Y.Wc,Q){case Y.yz.PENDING:return t2.PENDING;case Y.yz.IN_PROGRESS:return t2.IN_PROGRESS;case Y.yz.APPROVED:return t2.APPROVED;case Y.yz.ACCEPTED:return t2.ACCEPTED;case Y.yz.CANCELLED:return t2.CANCELLED;case Y.yz.REJECTED:return t2.REJECTED;default:return Q}}getCoordinatorState(){return this.coordinatorQuote?Array.isArray(this.coordinatorQuote.quoteItem)&&this.coordinatorQuote.quoteItem.length>0?this.coordinatorQuote.quoteItem[0].state||null:this.coordinatorQuote.state||null:null}getStatusBadgeClass(){const Q=this.getPrimaryState();return this.getQuoteCategory()===Y.K0.COORDINATOR&&Q===Y.yz.ACCEPTED?"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]":{[Y.yz.PENDING]:"border border-[#F2D28A] bg-[#FFF8E6] text-[#7A4D00]",[Y.yz.IN_PROGRESS]:"border border-[#B6CAEC] bg-[#EBF0F7] text-[#1f4fbf]",[Y.yz.APPROVED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[Y.yz.ACCEPTED]:"border border-[#A8DDC8] bg-[#EAF8F1] text-[#006B4A]",[Y.yz.REJECTED]:"border border-[#F4C7C7] bg-[#FFF1F1] text-[#B42318]",[Y.yz.CANCELLED]:"border border-[#CBD3DF] bg-[#F2F4F8] text-[#324153]"}[Q]||"border border-[#CBD3DF] bg-[#F2F4F8] text-[#526179]"}getQuoteCategory(){return this.quote?.category||"tailored"}getModalTitle(){return this.getQuoteCategory()===Y.K0.COORDINATOR?"Tender Details":"Quote Details"}getStatusExplanation(){const Q=this.getPrimaryState(),t2="customer"===this.currentUserRole?"buyer":"provider",s2=this.getQuoteCategory();let p2;return p2=s2===Y.K0.COORDINATOR?Y.bJ:s2===Y.K0.TENDER?Y.L9:Y.ZR,p2[Q]?.[t2]?.explanation||"Status information unavailable."}getAvailableActionsText(){const Q=this.getPrimaryState(),t2="customer"===this.currentUserRole?"buyer":"provider",s2=this.getQuoteCategory();let p2;return p2=s2===Y.K0.COORDINATOR?Y.bJ:s2===Y.K0.TENDER?Y.L9:Y.ZR,p2[Q]?.[t2]?.availableActions||""}isQuoteFinalized(){const Q=this.getPrimaryState();return Q===Y.yz.CANCELLED||Q===Y.yz.ACCEPTED||Q===Y.yz.REJECTED}hasAttachment(){return this.quote?.quoteItem?.some(Q=>Q.attachment&&Q.attachment.length>0)||!1}getAttachmentName(){return this.quote?.quoteItem?.[0]?.attachment?.[0]?.name||"attachment.pdf"}hasCoordinatorAttachment(){return this.getQuoteCategory()===Y.K0.TENDER&&(this.coordinatorQuote?.quoteItem?.some(Q=>Q.attachment&&Q.attachment.length>0)||!1)}getCoordinatorAttachmentName(){return this.coordinatorQuote?.quoteItem?.[0]?.attachment?.[0]?.name||"tender-request.pdf"}getTenderStartDate(){if(this.getQuoteCategory()===Y.K0.TENDER&&this.coordinatorQuote){const t2=this.coordinatorQuote.expectedFulfillmentStartDate;return t2?new Date(t2).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Q=this.quote?.expectedFulfillmentStartDate;return Q?new Date(Q).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}getTenderEndDate(){if(this.getQuoteCategory()===Y.K0.TENDER&&this.coordinatorQuote){const t2=this.coordinatorQuote.effectiveQuoteCompletionDate;return t2?new Date(t2).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}const Q=this.quote?.effectiveQuoteCompletionDate;return Q?new Date(Q).toLocaleDateString("en-GB").replace(/\//g,"-"):"--"}canUploadAttachment(){if("seller"!==this.currentUserRole)return!1;if(this.getQuoteCategory()===Y.K0.TENDER)return this.getCoordinatorState()===Y.yz.APPROVED;const Q=this.getPrimaryState();return Q===Y.yz.IN_PROGRESS||Q===Y.yz.APPROVED}canEditExpectedDate(){if("seller"!==this.currentUserRole)return!1;const Q=this.getPrimaryState();return!this.isQuoteFinalized()&&(Q===Y.yz.PENDING||Q===Y.yz.IN_PROGRESS||Q===Y.yz.APPROVED)}canRejectOrCancel(){const Q=this.getPrimaryState();return"seller"===this.currentUserRole&&(Q===Y.yz.PENDING||Q===Y.yz.IN_PROGRESS)||Q===Y.yz.APPROVED}canAcceptQuote(){return"seller"!==this.currentUserRole||!!this.quote?.expectedQuoteCompletionDate}getAcceptButtonTooltip(){return"seller"!==this.currentUserRole||this.quote?.expectedQuoteCompletionDate?"":this.ACTION_TEXTS.EXPECTED_DATE_REQUIRED}hasActionButtons(){const Q=this.getPrimaryState();return"seller"===this.currentUserRole&&Q===Y.yz.PENDING||"customer"===this.currentUserRole&&Q===Y.yz.APPROVED}downloadAttachment(){this.quote&&this.quoteService.downloadAttachment(this.quote).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:Q=>this.notificationService.showError(Q.message||"Error downloading attachment")})}downloadCoordinatorAttachment(){this.coordinatorQuote&&this.quoteService.downloadAttachment(this.coordinatorQuote).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:Q=>this.notificationService.showError(Q.message||"Error downloading customer request")})}onFileSelected(Q){const t2=Q.target;if(!t2.files?.length||!this.quote?.id)return;const s2=t2.files[0];if("application/pdf"!==s2.type)return void this.notificationService.showError("Only PDF files are allowed");if(s2.size>10485760)return void this.notificationService.showError("File size exceeds the maximum limit of 10MB");this.isUploading=!0;const l0=s2.name,s0=this.quote.id;this.quoteService.addAttachmentToQuote(s0,s2).pipe((0,_.n)(D0=>(this.quote=D0,this.quoteService.addNoteToQuote(s0,Y.Ft.ATTACHMENT_UPLOADED(l0),this.currentUserId).pipe((0,_.n)(()=>this.getPrimaryState()===Y.yz.IN_PROGRESS?this.quoteService.updateQuoteStatus(s0,Y.yz.APPROVED).pipe((0,_.n)(K2=>(this.quote=K2,this.quoteService.addNoteToQuote(s0,Y.Ft.STATUS_CHANGE(Y.yz.APPROVED),this.currentUserId)))):[D0]))))).subscribe({next:()=>{this.isUploading=!1,this.notificationService.showSuccess("Attachment uploaded successfully"),this.getPrimaryState()===Y.yz.APPROVED&&this.notificationService.showSuccess("Quote has been approved and sent to customer"),this.quoteUpdated.emit(this.quote)},error:D0=>{this.isUploading=!1,this.notificationService.showError("Failed to upload attachment")}})}acceptQuote(){!this.quote?.id||this.isProcessing||(this.confirmDialogTitle="Accept Quote Request",this.confirmDialogMessage="Are you sure you want to accept this quote request?",this.confirmDialogButtonText="Accept",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00533A] focus:outline-none focus:ring-2 focus:ring-[#A8DDC8] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0;const Q=this.quote.id;this.quoteService.updateQuoteStatus(Q,Y.yz.IN_PROGRESS).pipe((0,_.n)(t2=>(this.quote=t2,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(Y.yz.IN_PROGRESS),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote request accepted"),this.quoteUpdated.emit(this.quote)},error:t2=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept quote")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}acceptProposal(){if(!this.quote?.id||this.isProcessing)return;const Q=this.getQuoteCategory()===Y.K0.TENDER;this.confirmDialogTitle=Q?"Accept Tender Offer":"Accept Quote Proposal",this.confirmDialogMessage=Q?"Are you sure you want to accept this offer? All other provider offers in this tender will be rejected.":"Are you sure you want to accept this quote proposal?",this.confirmDialogButtonText="Accept",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#006B4A] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#00533A] focus:outline-none focus:ring-2 focus:ring-[#A8DDC8] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0;const t2=this.quote.id,s2=this.quote.externalId;this.quoteService.updateQuoteStatus(t2,Y.yz.ACCEPTED).pipe((0,_.n)(p2=>(this.quote=p2,this.quoteService.addNoteToQuote(t2,Y.Ft.STATUS_CHANGE(Y.yz.ACCEPTED),this.currentUserId)))).subscribe({next:()=>{Q&&s2?this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,s2,h1.XZ.BUYER).subscribe({next:p2=>{const l0=p2.filter(s0=>{if(s0.id===t2)return!1;const D0=s0.quoteItem?.[0]?.state??s0.state;return D0!==Y.yz.ACCEPTED&&D0!==Y.yz.CANCELLED&&D0!==Y.yz.REJECTED});l0.length>0?(0,S.p)(l0.map(s0=>this.quoteService.updateQuoteStatus(s0.id,Y.yz.REJECTED))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Offer accepted. ${l0.length} other offer(s) have been rejected.`),this.quoteUpdated.emit(this.quote)},error:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted, but failed to reject other offers."),this.quoteUpdated.emit(this.quote)}}):(this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted."),this.quoteUpdated.emit(this.quote))},error:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Offer accepted, but failed to fetch other offers to reject."),this.quoteUpdated.emit(this.quote)}}):(this.isProcessing=!1,this.notificationService.showSuccess("Quote proposal accepted"),this.quoteUpdated.emit(this.quote))},error:p2=>{this.isProcessing=!1,this.notificationService.showError("Failed to accept proposal")}}),this.showConfirmDialog=!1},this.showConfirmDialog=!0}cancelQuote(){if(!this.quote?.id||this.isProcessing)return;const Q=this.getQuoteCategory()===Y.K0.COORDINATOR;this.confirmDialogTitle=Q?"Cancel Tender":"Cancel Quote",this.confirmDialogMessage=Q?"Are you sure you want to cancel this tender? This will also cancel all related provider invites.":"Are you sure you want to cancel this quote?",this.confirmDialogButtonText=Q?"Cancel Tender":"Cancel Quote",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg border border-[#F4C7C7] bg-white px-4 text-sm font-semibold text-[#B42318] transition-colors hover:bg-[#FFF1F1] focus:outline-none focus:ring-2 focus:ring-[#F4C7C7] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.isProcessing=!0,this.showConfirmDialog=!1,Q?this.cancelCoordinatorWithCascade():this.cancelSingleQuote(this.quote.id)},this.showConfirmDialog=!0}cancelSingleQuote(Q){const t2=Y.yz.CANCELLED;this.quoteService.updateQuoteStatus(Q,t2).pipe((0,_.n)(s2=>(this.quote=s2,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(t2),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess("Quote cancelled"),this.quoteUpdated.emit(this.quote),this.closeModal()},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to cancel quote")}})}cancelCoordinatorWithCascade(){const Q=this.quote.id,t2=Y.yz.CANCELLED;this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,Q,h1.XZ.BUYER).subscribe({next:s2=>{console.log(`Found ${s2.length} related tendering quotes to cancel`);const p2=s2.map(s0=>this.quoteService.updateQuoteStatus(s0.id,t2));(p2.length>0?(0,S.p)(p2):(0,A.of)([])).pipe((0,_.n)(()=>this.quoteService.updateQuoteStatus(Q,t2)),(0,_.n)(s0=>(this.quote=s0,this.quoteService.addNoteToQuote(Q,Y.Ft.STATUS_CHANGE(t2),this.currentUserId)))).subscribe({next:()=>{this.isProcessing=!1,this.notificationService.showSuccess(`Tender and ${s2.length} related quote(s) cancelled`),this.quoteUpdated.emit(this.quote),this.closeModal()},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to cancel tender. Some quotes may not have been cancelled.")}})},error:()=>{this.isProcessing=!1,this.notificationService.showError("Failed to fetch related quotes for cancellation")}})}saveExpectedDate(){if(!this.quote?.id||!this.selectedExpectedDate)return;const Q=new Date(this.selectedExpectedDate),t2=`${Q.getDate().toString().padStart(2,"0")}-${(Q.getMonth()+1).toString().padStart(2,"0")}-${Q.getFullYear()}`;this.quoteService.updateQuoteDate(this.quote.id,t2,"expected").subscribe({next:s2=>{this.quote=s2,this.showExpectedDatePicker=!1,this.selectedExpectedDate="",this.notificationService.showSuccess("Expected date updated"),this.quoteUpdated.emit(s2)},error:s2=>{this.notificationService.showError("Failed to update expected date")}})}createOffer(){this.quote?.id&&(this.closeModal(),this.router.navigate(["/my-offerings"],{state:{quoteId:this.quote.id}}))}openBroadcastMessage(){this.quote?.id&&(this.broadcastMessage="",this.showBroadcastModal=!0)}closeBroadcastModal(){this.showBroadcastModal=!1,this.broadcastMessage="",this.isBroadcastSending=!1}sendBroadcastMessage(){!this.quote?.id||!this.currentUserId||!this.broadcastMessage||(this.confirmDialogTitle="Broadcast Message",this.confirmDialogMessage="Are you sure you want to broadcast this message to all the invited providers?",this.confirmDialogButtonText="Send",this.confirmDialogButtonClass="inline-flex h-10 items-center rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99] focus:outline-none focus:ring-2 focus:ring-[#B6CAEC] disabled:cursor-not-allowed disabled:opacity-50",this.confirmDialogCallback=()=>{this.executeBroadcastMessage(),this.showConfirmDialog=!1},this.showConfirmDialog=!0)}executeBroadcastMessage(){!this.quote?.id||!this.currentUserId||!this.broadcastMessage||(this.isBroadcastSending=!0,this.quoteService.getTenderingQuotesByExternalId(this.currentUserId,this.quote.id,h1.XZ.BUYER).pipe((0,_.n)(Q=>{const t2=Q.filter(p2=>p2.category===Y.K0.TENDER&&p2.id);if(0===t2.length)return this.notificationService.showError("No related provider quotes found to broadcast to."),this.isBroadcastSending=!1,(0,A.of)(null);const s2=t2.map(p2=>this.quoteService.addNoteToQuote(p2.id,this.broadcastMessage,this.currentUserId));return(0,S.p)(s2)})).subscribe({next:Q=>{Q&&(this.notificationService.showSuccess("Message broadcast sent to all invited providers."),this.closeBroadcastModal())},error:Q=>{console.error("Failed to broadcast message:",Q),this.notificationService.showError("Failed to broadcast message."),this.isBroadcastSending=!1}}))}closeModal(){this.close.emit()}openChat(){this.showChatModal=!0}closeChatModal(){this.showChatModal=!1}static{this.\u0275fac=function(t2){return new(t2||P1)}}static{this.\u0275cmp=m.VBU({type:P1,selectors:[["app-quote-details-modal"]],inputs:{isOpen:"isOpen",quoteId:"quoteId",currentUserRole:"currentUserRole",currentUserId:"currentUserId"},outputs:{close:"close",quoteUpdated:"quoteUpdated"},standalone:!0,features:[m.OA$,m.aNF],decls:5,vars:10,consts:[["class","fixed inset-0 z-50 h-full w-full overflow-y-auto bg-[#0b1220]/45 px-4 py-8",3,"click",4,"ngIf"],[3,"close","isOpen","quoteId"],["class","fixed inset-0 z-[60] flex h-full w-full items-center justify-center overflow-y-auto bg-[#0b1220]/45 px-4 py-8",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"fixed","inset-0","z-50","h-full","w-full","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8",3,"click"],[1,"relative","mx-auto","mt-6","w-full","max-w-5xl","overflow-hidden","rounded-2xl","border","border-[#EBECEE]","bg-white","shadow-[0_20px_50px_rgba(11,18,32,0.24)]",3,"click"],[1,"flex","items-center","justify-between","border-b","border-[#EBECEE]","px-8","py-6"],[1,"text-2xl","font-bold","text-[#0b1220]"],[1,"inline-flex","h-10","w-10","items-center","justify-center","rounded-lg","text-[#526179]","transition-colors","hover:bg-[#F2F4F8]","hover:text-[#0b1220]","focus:outline-none","focus:ring-2","focus:ring-[#B6CAEC]",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["class","flex items-center justify-center px-8 py-12",4,"ngIf"],["class","relative mx-8 mt-6 rounded-lg border border-[#F4C7C7] bg-[#FFF1F1] px-4 py-3 text-[#B42318]",4,"ngIf"],["class","max-h-[70vh] space-y-5 overflow-y-auto px-8 py-6",4,"ngIf"],[1,"flex","justify-between","border-t","border-[#EBECEE]","px-8","py-6"],["class","inline-flex h-10 items-center gap-2 rounded-lg bg-[#1f4fbf] px-4 text-sm font-semibold text-white transition-colors hover:bg-[#183f99]",3,"click",4,"ngIf"],[1,"inline-flex","h-10","items-center","rounded-lg","border","border-[#EBECEE]","bg-white","px-4","text-sm","font-semibold","text-[#324153]","transition-colors","hover:border-[#1f4fbf]","hover:text-[#1f4fbf]",3,"click"],[1,"flex","items-center","justify-center","px-8","py-12"],[1,"h-10","w-10","animate-spin","rounded-full","border-b-2","border-[#1f4fbf]"],[1,"relative","mx-8","mt-6","rounded-lg","border","border-[#F4C7C7]","bg-[#FFF1F1]","px-4","py-3","text-[#B42318]"],[1,"max-h-[70vh]","space-y-5","overflow-y-auto","px-8","py-6"],["class","rounded-xl border border-[#EBECEE] bg-[#F8FAFD] p-4",4,"ngIf"],[4,"ngIf"],[1,"mb-2","text-sm","font-medium","text-[#526179]"],[1,"overflow-hidden","rounded-lg","border","border-[#EBECEE]","border-l-4","border-l-[#F2C94C]","bg-[#F8FAFD]","p-4"],[1,"whitespace-pre-wrap","break-words","text-[#0b1220]","overflow-wrap-anywhere"],["class","grid grid-cols-2 gap-4",4,"ngIf"],[1,"border-t","border-[#EBECEE]","pt-5"],[1,"flex","items-center","gap-2","mb-3"],[1,"text-sm","text-[#324153]"],[1,"rounded-full","px-3","py-1","text-sm","font-semibold",3,"ngClass"],[1,"mb-2","text-sm","text-[#526179]"],[1,"text-sm","italic","text-[#6B7890]"],["class","border-t border-[#EBECEE] pt-5",4,"ngIf"],[1,"rounded-xl","border","border-[#EBECEE]","bg-[#F8FAFD]","p-4"],[1,"mb-3","text-sm","font-semibold","text-[#324153]"],[1,"grid","grid-cols-2","gap-4"],[1,"text-xs","text-[#526179]"],[1,"text-sm","font-semibold","text-[#0b1220]"],[1,"text-xs","text-[#6B7890]"],[1,"text-sm","text-[#526179]"],[1,"text-base","font-semibold","text-[#0b1220]"],[1,"flex","items-center","gap-2"],["class","rounded-md p-1 text-[#1f4fbf] transition-colors hover:bg-[#EBF0F7]","title","Set expected date",3,"click",4,"ngIf"],["title","Set expected date",1,"rounded-md","p-1","text-[#1f4fbf]","transition-colors","hover:bg-[#EBF0F7]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"],["class","flex items-center gap-3 mb-3",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"flex","items-center","gap-3","mb-3"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"],[1,"text-sm","font-semibold","text-[#1f4fbf]","hover:text-[#183f99]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5","text-red-500"],[1,"mt-3"],[1,"flex","cursor-pointer","items-center","gap-2","text-sm","font-semibold","text-[#006B4A]","hover:text-[#00533A]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 4v16m8-8H4"],["type","file","accept",".pdf",1,"hidden",3,"change"],[1,"mt-1","text-xs","text-[#6B7890]"],["class","mt-2 text-sm text-[#526179]",4,"ngIf"],[1,"mt-2","text-sm","text-[#526179]"],[1,"space-y-3"],["class","flex items-center justify-between",4,"ngIf"],[1,"flex","items-center","justify-between"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00533A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled","title"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#006B4A]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#00533A]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","border","border-[#F4C7C7]","bg-white","px-4","text-sm","font-semibold","text-[#B42318]","transition-colors","hover:bg-[#FFF1F1]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"inline-flex","h-10","items-center","gap-2","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]",3,"click"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.77 9.77 0 01-4-.8L3 21l1.8-4A7.96 7.96 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"fixed","inset-0","z-[60]","flex","h-full","w-full","items-center","justify-center","overflow-y-auto","bg-[#0b1220]/45","px-4","py-8"],[1,"mx-4","w-full","max-w-sm","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],[1,"mb-4","text-lg","font-bold","text-[#0b1220]"],[1,"mb-4","text-sm","text-[#526179]"],["type","date",1,"mb-4","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-3","py-2","text-[#0b1220]","outline-none","transition-colors","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel","min"],[1,"flex","justify-end","gap-3"],[1,"inline-flex","h-10","items-center","rounded-lg","bg-[#1f4fbf]","px-4","text-sm","font-semibold","text-white","transition-colors","hover:bg-[#183f99]","disabled:cursor-not-allowed","disabled:opacity-50",3,"click","disabled"],[1,"mx-4","w-full","max-w-md","rounded-2xl","border","border-[#EBECEE]","bg-white","p-6","shadow-[0_20px_50px_rgba(11,18,32,0.24)]"],["rows","4","placeholder","Type your message to all invited providers...",1,"mb-4","w-full","rounded-lg","border","border-[#EBECEE]","bg-white","px-3","py-2","text-sm","text-[#0b1220]","outline-none","transition-colors","placeholder:text-[#9AA6B8]","hover:border-[#1f4fbf]","focus:border-[#1f4fbf]","focus:ring-2","focus:ring-[#B6CAEC]",3,"ngModelChange","ngModel"]],template:function(t2,s2){1&t2&&(m.DNE(0,E1,15,5,"div",0),m.j41(1,"app-chat-modal",1),m.bIt("close",function(){return s2.closeChatModal()}),m.k0s(),m.DNE(2,j1,12,3,"div",2)(3,A1,12,3,"div",2),m.j41(4,"app-confirm-dialog",3),m.bIt("confirm",function(){return s2.confirmDialogCallback&&s2.confirmDialogCallback()})("cancel",function(){return s2.showConfirmDialog=!1}),m.k0s()),2&t2&&(m.Y8G("ngIf",s2.isOpen),m.R7$(),m.Y8G("isOpen",s2.showChatModal)("quoteId",s2.quoteId),m.R7$(),m.Y8G("ngIf",s2.showExpectedDatePicker),m.R7$(),m.Y8G("ngIf",s2.showBroadcastModal),m.R7$(),m.Y8G("isOpen",s2.showConfirmDialog)("title",s2.confirmDialogTitle)("message",s2.confirmDialogMessage)("confirmText",s2.confirmDialogButtonText)("confirmButtonClass",s2.confirmDialogButtonClass))},dependencies:[g.MD,g.YU,g.bT,g.vh,e.YN,e.me,e.BC,e.vS,e1.d,r1.w],encapsulation:2})}}return P1})()},5312:(y1,d1,y)=>{"use strict";y.d(d1,{c:()=>m});const m={BASE_URL:"",isProduction:!0,PAYMENT_URL:"/revenue",LEGACY_PREFIX:"/ux",PRODUCT_CATALOG:"/catalog",SERVICE:"/service",RESOURCE:"/resource",PRODUCT_SPEC:"/productSpecification",SERVICE_SPEC:"/serviceSpecification",RESOURCE_SPEC:"/resourceSpecification",CUSTOMER_BILLING:"/customerBill",ACCOUNT:"/account",SHOPPING_CART:"/shoppingCart",INVENTORY:"/inventory",PRODUCT_ORDER:"/ordering",BILLING:"/billing",CHARGING:"/charging",searchOrganizationsEndpoint:"/search-bck/api/searchOrganizations",providerCountriesUrl:"https://raw.githubusercontent.com/DOME-Marketplace/eu-eea-countries/refs/heads/main/countries.json",CONSUMER_BILLING_URL:"http://localhost:8640",INVOICE_LIMIT:100,PRODUCT_LIMIT:6,CATALOG_LIMIT:8,INVENTORY_LIMIT:6,INVENTORY_RES_LIMIT:8,INVENTORY_SERV_LIMIT:8,PROD_SPEC_LIMIT:6,SERV_SPEC_LIMIT:6,RES_SPEC_LIMIT:6,USAGE_SPEC_LIMIT:6,ORDER_LIMIT:1e3,CATEGORY_LIMIT:100,SIOP:!0,TAX_RATE:20,CHAT_API:"https://eng-gpt.dome-marketplace-dev.org/predict",SIOP_INFO:{enabled:!1,isRedirection:!1,pollPath:"",pollCertPath:"",clientID:"",callbackURL:"",verifierHost:"",verifierQRCodePath:"",requestUri:""},MATOMO_TRACKER_URL:"",MATOMO_SITE_ID:"",TICKETING_SYSTEM_URL:"",KNOWLEDGE_BASE_URL:"",KB_ONBOARDING_GUIDELINES_URL:"https://knowledgebase.dome-marketplace-prd.org/books/company-onboarding-process-guide-for-cloud-service-providers-csp",KB_GUIDELNES_URL:"https://knowledgebase.dome-marketplace-prd.org/books/managing-orders-products-and-subscriptions",REGISTRATION_FORM_URL:"https://onboarding.dome-marketplace.eu/",SEARCH_ENABLED:!0,PURCHASE_ENABLED:!1,DOME_TRUST_LINK:"https://dome-certification.dome-marketplace.org",DOME_ABOUT_LINK:"",DOME_REGISTER_LINK:"",DOME_CUSTOMER_REGISTER_LINK:"",DOME_PUBLISH_LINK:"",DOME_LINKEDIN:"https://www.linkedin.com/company/dome-marketplace/",DOME_YOUTUBE:"https://www.youtube.com/channel/UC8UiL59S0JiaYYr14w5eOzA",DOME_X:"https://x.com/DomeMarketplace",BUNDLE_ENABLED:!1,DATA_SPACE_ENABLED:!1,DFT_CATALOG_ID:"",MAX_FILE_SIZE:3145728,providerThemeName:"default",quoteApi:"http://localhost:8080/quoteManagement",documentApi:"/document",quoteEndpoints:{createQuote:"/createQuote",listAllQuotes:"/listAllQuotes",getQuoteById:"/quoteById",getQuotesByUser:"/quoteByUser",updateQuoteStatus:"/updateQuoteStatus",updateQuoteDate:"/updateQuoteDate",addNoteToQuote:"/addNoteToQuote",addAttachmentToQuote:"/addAttachmentToQuote",deleteQuote:"/quote"},QUOTES_ENABLED:!0,TENDER_ENABLED:!0,analyticsEnabled:!1,googleTagManagerId:"",analytics:"",analyticsGuestTokenEndpoint:"/analytics/guest-token",feedbackCampaign:!1,feedbackCampaignExpiration:0,SELLER_ROLE:"Seller",BUYER_ROLE:"Buyer",ADMIN_ROLE:"Admin",ORG_ADMIN_ROLE:"orgAdmin",CERTIFIER_ROLE:"certifier",AI_SEARCH_ENABLED:!0,AI_SEARCH_API_KEY:"28791420a51be86495cab108f32221fa458469e29a04b33567b057c95878bd72",AI_SEARCH_API_URL:"https://dome.expertcustomers.ai/rag/",AI_SEARCH_SCORE_THRESHOLD:.3,AI_SEARCH_ANSWER_MAX_ITEMS:5,AI_SEARCH_PROFILE:"dome_dev2",LEAR_URL:"",LAUNCH_VALIDATION_ENABLED:!1,TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED:!1,DSP_ENABLED:!1,DSP_CONTRACT_DEFINITION_SCHEMA:"https://raw.githubusercontent.com/wistefan/edc-dsc/refs/heads/init/schemas/contract-definition.json",DSP_SCHEMA:"https://raw.githubusercontent.com/wistefan/edc-dsc/refs/heads/init/schemas/external-id.json"}},3449:(y1,d1,y)=>{"use strict";var m=y(345),g=y(1626),e=y(4438),p=y(9417),_=y(177),S=y(1413),A=y(5558),$=y(8750),Z=y(1985),K=y(3028),p1=y(7441),Y=y(8071),h1=y(6450);const e1=["addListener","removeListener"],r1=["addEventListener","removeEventListener"],M1=["on","off"];function f1(n,a,c,t){if((0,Y.T)(c)&&(t=c,c=void 0),t)return f1(n,a,c).pipe((0,h1.I)(t));const[l,i]=function c2(n){return(0,Y.T)(n.addEventListener)&&(0,Y.T)(n.removeEventListener)}(n)?r1.map(u=>C=>n[u](a,C,c)):function o2(n){return(0,Y.T)(n.addListener)&&(0,Y.T)(n.removeListener)}(n)?e1.map($1(n,a)):function S2(n){return(0,Y.T)(n.on)&&(0,Y.T)(n.off)}(n)?M1.map($1(n,a)):[];if(!l&&(0,p1.X)(n))return(0,K.Z)(u=>f1(u,a,c))((0,$.Tg)(n));if(!l)throw new TypeError("Invalid event target");return new Z.c(u=>{const C=(...b)=>u.next(1i(C)})}function $1(n,a){return c=>t=>n[c](a,t)}var G1=y(983),O1=y(6977);const d0=["button"],d2=["*","*"];function _2(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3);e.JRh(c.unified)}}function w2(n,a){if(1&n&&(e.j41(0,"button",4,1)(2,"span",5),e.DNE(3,_2,1,1,"ng-template",2),e.SdG(4),e.k0s()()),2&n){const c=e.XpG(2);e.AVh("emoji-mart-emoji-native",c.isNative)("emoji-mart-emoji-custom",c.custom),e.BMQ("title",c.title)("aria-label",c.label),e.R7$(2),e.Y8G("ngStyle",c.style),e.R7$(),e.Y8G("ngIf",c.isNative)}}function v2(n,a){if(1&n&&e.DNE(0,w2,5,8,"button",3),2&n){const c=e.XpG(),t=e.sdS(2);e.Y8G("ngIf",c.useButton)("ngIfElse",t)}}function t0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2);e.JRh(c.unified)}}function X0(n,a){if(1&n&&(e.j41(0,"span",6,1)(2,"span",5),e.DNE(3,t0,1,1,"ng-template",2),e.SdG(4,1),e.k0s()()),2&n){const c=e.XpG();e.AVh("emoji-mart-emoji-native",c.isNative)("emoji-mart-emoji-custom",c.custom),e.BMQ("title",c.title)("aria-label",c.label),e.R7$(2),e.Y8G("ngStyle",c.style),e.R7$(),e.Y8G("ngIf",c.isNative)}}const Z0=[{id:"people",name:"Smileys & People",emojis:["1F600","1F603","1F604","1F601","1F606","1F605","1F923","1F602","1F642","1F643","1FAE0","1F609","1F60A","1F607","1F970","1F60D","1F929","1F618","1F617","263A-FE0F","1F61A","1F619","1F972","1F60B","1F61B","1F61C","1F92A","1F61D","1F911","1F917","1F92D","1FAE2","1FAE3","1F92B","1F914","1FAE1","1F910","1F928","1F610","1F611","1F636","1FAE5","1F636-200D-1F32B-FE0F","1F60F","1F612","1F644","1F62C","1F62E-200D-1F4A8","1F925","1F60C","1F614","1F62A","1F924","1F634","1F637","1F912","1F915","1F922","1F92E","1F927","1F975","1F976","1F974","1F635","1F635-200D-1F4AB","1F92F","1F920","1F973","1F978","1F60E","1F913","1F9D0","1F615","1FAE4","1F61F","1F641","2639-FE0F","1F62E","1F62F","1F632","1F633","1F97A","1F979","1F626","1F627","1F628","1F630","1F625","1F622","1F62D","1F631","1F616","1F623","1F61E","1F613","1F629","1F62B","1F971","1F624","1F621","1F620","1F92C","1F608","1F47F","1F480","2620-FE0F","1F4A9","1F921","1F479","1F47A","1F47B","1F47D","1F47E","1F916","1F44B","1F91A","1F590-FE0F","270B","1F596","1FAF1","1FAF2","1FAF3","1FAF4","1F44C","1F90C","1F90F","270C-FE0F","1F91E","1FAF0","1F91F","1F918","1F919","1F448","1F449","1F446","1F595","1F447","261D-FE0F","1FAF5","1F44D","1F44E","270A","1F44A","1F91B","1F91C","1F44F","1F64C","1FAF6","1F450","1F932","1F91D","1F64F","270D-FE0F","1F485","1F933","1F4AA","1F9BE","1F9BF","1F9B5","1F9B6","1F442","1F9BB","1F443","1F9E0","1FAC0","1FAC1","1F9B7","1F9B4","1F440","1F441-FE0F","1F445","1F444","1FAE6","1F476","1F9D2","1F466","1F467","1F9D1","1F471","1F468","1F9D4","1F9D4-200D-2642-FE0F","1F9D4-200D-2640-FE0F","1F468-200D-1F9B0","1F468-200D-1F9B1","1F468-200D-1F9B3","1F468-200D-1F9B2","1F469","1F469-200D-1F9B0","1F9D1-200D-1F9B0","1F469-200D-1F9B1","1F9D1-200D-1F9B1","1F469-200D-1F9B3","1F9D1-200D-1F9B3","1F469-200D-1F9B2","1F9D1-200D-1F9B2","1F471-200D-2640-FE0F","1F471-200D-2642-FE0F","1F9D3","1F474","1F475","1F64D","1F64D-200D-2642-FE0F","1F64D-200D-2640-FE0F","1F64E","1F64E-200D-2642-FE0F","1F64E-200D-2640-FE0F","1F645","1F645-200D-2642-FE0F","1F645-200D-2640-FE0F","1F646","1F646-200D-2642-FE0F","1F646-200D-2640-FE0F","1F481","1F481-200D-2642-FE0F","1F481-200D-2640-FE0F","1F64B","1F64B-200D-2642-FE0F","1F64B-200D-2640-FE0F","1F9CF","1F9CF-200D-2642-FE0F","1F9CF-200D-2640-FE0F","1F647","1F647-200D-2642-FE0F","1F647-200D-2640-FE0F","1F926","1F926-200D-2642-FE0F","1F926-200D-2640-FE0F","1F937","1F937-200D-2642-FE0F","1F937-200D-2640-FE0F","1F9D1-200D-2695-FE0F","1F468-200D-2695-FE0F","1F469-200D-2695-FE0F","1F9D1-200D-1F393","1F468-200D-1F393","1F469-200D-1F393","1F9D1-200D-1F3EB","1F468-200D-1F3EB","1F469-200D-1F3EB","1F9D1-200D-2696-FE0F","1F468-200D-2696-FE0F","1F469-200D-2696-FE0F","1F9D1-200D-1F33E","1F468-200D-1F33E","1F469-200D-1F33E","1F9D1-200D-1F373","1F468-200D-1F373","1F469-200D-1F373","1F9D1-200D-1F527","1F468-200D-1F527","1F469-200D-1F527","1F9D1-200D-1F3ED","1F468-200D-1F3ED","1F469-200D-1F3ED","1F9D1-200D-1F4BC","1F468-200D-1F4BC","1F469-200D-1F4BC","1F9D1-200D-1F52C","1F468-200D-1F52C","1F469-200D-1F52C","1F9D1-200D-1F4BB","1F468-200D-1F4BB","1F469-200D-1F4BB","1F9D1-200D-1F3A4","1F468-200D-1F3A4","1F469-200D-1F3A4","1F9D1-200D-1F3A8","1F468-200D-1F3A8","1F469-200D-1F3A8","1F9D1-200D-2708-FE0F","1F468-200D-2708-FE0F","1F469-200D-2708-FE0F","1F9D1-200D-1F680","1F468-200D-1F680","1F469-200D-1F680","1F9D1-200D-1F692","1F468-200D-1F692","1F469-200D-1F692","1F46E","1F46E-200D-2642-FE0F","1F46E-200D-2640-FE0F","1F575-FE0F","1F575-FE0F-200D-2642-FE0F","1F575-FE0F-200D-2640-FE0F","1F482","1F482-200D-2642-FE0F","1F482-200D-2640-FE0F","1F977","1F477","1F477-200D-2642-FE0F","1F477-200D-2640-FE0F","1FAC5","1F934","1F478","1F473","1F473-200D-2642-FE0F","1F473-200D-2640-FE0F","1F472","1F9D5","1F935","1F935-200D-2642-FE0F","1F935-200D-2640-FE0F","1F470","1F470-200D-2642-FE0F","1F470-200D-2640-FE0F","1F930","1FAC3","1FAC4","1F931","1F469-200D-1F37C","1F468-200D-1F37C","1F9D1-200D-1F37C","1F47C","1F385","1F936","1F9D1-200D-1F384","1F9B8","1F9B8-200D-2642-FE0F","1F9B8-200D-2640-FE0F","1F9B9","1F9B9-200D-2642-FE0F","1F9B9-200D-2640-FE0F","1F9D9","1F9D9-200D-2642-FE0F","1F9D9-200D-2640-FE0F","1F9DA","1F9DA-200D-2642-FE0F","1F9DA-200D-2640-FE0F","1F9DB","1F9DB-200D-2642-FE0F","1F9DB-200D-2640-FE0F","1F9DC","1F9DC-200D-2642-FE0F","1F9DC-200D-2640-FE0F","1F9DD","1F9DD-200D-2642-FE0F","1F9DD-200D-2640-FE0F","1F9DE","1F9DE-200D-2642-FE0F","1F9DE-200D-2640-FE0F","1F9DF","1F9DF-200D-2642-FE0F","1F9DF-200D-2640-FE0F","1F9CC","1F486","1F486-200D-2642-FE0F","1F486-200D-2640-FE0F","1F487","1F487-200D-2642-FE0F","1F487-200D-2640-FE0F","1F6B6","1F6B6-200D-2642-FE0F","1F6B6-200D-2640-FE0F","1F9CD","1F9CD-200D-2642-FE0F","1F9CD-200D-2640-FE0F","1F9CE","1F9CE-200D-2642-FE0F","1F9CE-200D-2640-FE0F","1F9D1-200D-1F9AF","1F468-200D-1F9AF","1F469-200D-1F9AF","1F9D1-200D-1F9BC","1F468-200D-1F9BC","1F469-200D-1F9BC","1F9D1-200D-1F9BD","1F468-200D-1F9BD","1F469-200D-1F9BD","1F3C3","1F3C3-200D-2642-FE0F","1F3C3-200D-2640-FE0F","1F483","1F57A","1F574-FE0F","1F46F","1F46F-200D-2642-FE0F","1F46F-200D-2640-FE0F","1F9D6","1F9D6-200D-2642-FE0F","1F9D6-200D-2640-FE0F","1F9D7","1F9D7-200D-2642-FE0F","1F9D7-200D-2640-FE0F","1F93A","1F3C7","26F7-FE0F","1F3C2","1F3CC-FE0F","1F3CC-FE0F-200D-2642-FE0F","1F3CC-FE0F-200D-2640-FE0F","1F3C4","1F3C4-200D-2642-FE0F","1F3C4-200D-2640-FE0F","1F6A3","1F6A3-200D-2642-FE0F","1F6A3-200D-2640-FE0F","1F3CA","1F3CA-200D-2642-FE0F","1F3CA-200D-2640-FE0F","26F9-FE0F","26F9-FE0F-200D-2642-FE0F","26F9-FE0F-200D-2640-FE0F","1F3CB-FE0F","1F3CB-FE0F-200D-2642-FE0F","1F3CB-FE0F-200D-2640-FE0F","1F6B4","1F6B4-200D-2642-FE0F","1F6B4-200D-2640-FE0F","1F6B5","1F6B5-200D-2642-FE0F","1F6B5-200D-2640-FE0F","1F938","1F938-200D-2642-FE0F","1F938-200D-2640-FE0F","1F93C","1F93C-200D-2642-FE0F","1F93C-200D-2640-FE0F","1F93D","1F93D-200D-2642-FE0F","1F93D-200D-2640-FE0F","1F93E","1F93E-200D-2642-FE0F","1F93E-200D-2640-FE0F","1F939","1F939-200D-2642-FE0F","1F939-200D-2640-FE0F","1F9D8","1F9D8-200D-2642-FE0F","1F9D8-200D-2640-FE0F","1F6C0","1F6CC","1F9D1-200D-1F91D-200D-1F9D1","1F46D","1F46B","1F46C","1F48F","1F469-200D-2764-FE0F-200D-1F48B-200D-1F468","1F468-200D-2764-FE0F-200D-1F48B-200D-1F468","1F469-200D-2764-FE0F-200D-1F48B-200D-1F469","1F491","1F469-200D-2764-FE0F-200D-1F468","1F468-200D-2764-FE0F-200D-1F468","1F469-200D-2764-FE0F-200D-1F469","1F46A","1F468-200D-1F469-200D-1F466","1F468-200D-1F469-200D-1F467","1F468-200D-1F469-200D-1F467-200D-1F466","1F468-200D-1F469-200D-1F466-200D-1F466","1F468-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F468-200D-1F466","1F468-200D-1F468-200D-1F467","1F468-200D-1F468-200D-1F467-200D-1F466","1F468-200D-1F468-200D-1F466-200D-1F466","1F468-200D-1F468-200D-1F467-200D-1F467","1F469-200D-1F469-200D-1F466","1F469-200D-1F469-200D-1F467","1F469-200D-1F469-200D-1F467-200D-1F466","1F469-200D-1F469-200D-1F466-200D-1F466","1F469-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F466","1F468-200D-1F466-200D-1F466","1F468-200D-1F467","1F468-200D-1F467-200D-1F466","1F468-200D-1F467-200D-1F467","1F469-200D-1F466","1F469-200D-1F466-200D-1F466","1F469-200D-1F467","1F469-200D-1F467-200D-1F466","1F469-200D-1F467-200D-1F467","1F5E3-FE0F","1F464","1F465","1FAC2","1F463","1F63A","1F638","1F639","1F63B","1F63C","1F63D","1F640","1F63F","1F63E","1F648","1F649","1F64A","1F48B","1F48C","1F498","1F49D","1F496","1F497","1F493","1F49E","1F495","1F49F","2763-FE0F","1F494","2764-FE0F-200D-1F525","2764-FE0F-200D-1FA79","2764-FE0F","1F9E1","1F49B","1F49A","1F499","1F49C","1F90E","1F5A4","1F90D","1F4AF","1F4A2","1F4A5","1F4AB","1F4A6","1F4A8","1F573-FE0F","1F4A3","1F4AC","1F441-FE0F-200D-1F5E8-FE0F","1F5E8-FE0F","1F5EF-FE0F","1F4AD","1F4A4"]},{id:"nature",name:"Animals & Nature",emojis:["1F435","1F412","1F98D","1F9A7","1F436","1F415","1F9AE","1F415-200D-1F9BA","1F429","1F43A","1F98A","1F99D","1F431","1F408","1F408-200D-2B1B","1F981","1F42F","1F405","1F406","1F434","1F40E","1F984","1F993","1F98C","1F9AC","1F42E","1F402","1F403","1F404","1F437","1F416","1F417","1F43D","1F40F","1F411","1F410","1F42A","1F42B","1F999","1F992","1F418","1F9A3","1F98F","1F99B","1F42D","1F401","1F400","1F439","1F430","1F407","1F43F-FE0F","1F9AB","1F994","1F987","1F43B","1F43B-200D-2744-FE0F","1F428","1F43C","1F9A5","1F9A6","1F9A8","1F998","1F9A1","1F43E","1F983","1F414","1F413","1F423","1F424","1F425","1F426","1F427","1F54A-FE0F","1F985","1F986","1F9A2","1F989","1F9A4","1FAB6","1F9A9","1F99A","1F99C","1F438","1F40A","1F422","1F98E","1F40D","1F432","1F409","1F995","1F996","1F433","1F40B","1F42C","1F9AD","1F41F","1F420","1F421","1F988","1F419","1F41A","1FAB8","1F40C","1F98B","1F41B","1F41C","1F41D","1FAB2","1F41E","1F997","1FAB3","1F577-FE0F","1F578-FE0F","1F982","1F99F","1FAB0","1FAB1","1F9A0","1F490","1F338","1F4AE","1FAB7","1F3F5-FE0F","1F339","1F940","1F33A","1F33B","1F33C","1F337","1F331","1FAB4","1F332","1F333","1F334","1F335","1F33E","1F33F","2618-FE0F","1F340","1F341","1F342","1F343","1FAB9","1FABA"]},{id:"foods",name:"Food & Drink",emojis:["1F347","1F348","1F349","1F34A","1F34B","1F34C","1F34D","1F96D","1F34E","1F34F","1F350","1F351","1F352","1F353","1FAD0","1F95D","1F345","1FAD2","1F965","1F951","1F346","1F954","1F955","1F33D","1F336-FE0F","1FAD1","1F952","1F96C","1F966","1F9C4","1F9C5","1F344","1F95C","1FAD8","1F330","1F35E","1F950","1F956","1FAD3","1F968","1F96F","1F95E","1F9C7","1F9C0","1F356","1F357","1F969","1F953","1F354","1F35F","1F355","1F32D","1F96A","1F32E","1F32F","1FAD4","1F959","1F9C6","1F95A","1F373","1F958","1F372","1FAD5","1F963","1F957","1F37F","1F9C8","1F9C2","1F96B","1F371","1F358","1F359","1F35A","1F35B","1F35C","1F35D","1F360","1F362","1F363","1F364","1F365","1F96E","1F361","1F95F","1F960","1F961","1F980","1F99E","1F990","1F991","1F9AA","1F366","1F367","1F368","1F369","1F36A","1F382","1F370","1F9C1","1F967","1F36B","1F36C","1F36D","1F36E","1F36F","1F37C","1F95B","2615","1FAD6","1F375","1F376","1F37E","1F377","1F378","1F379","1F37A","1F37B","1F942","1F943","1FAD7","1F964","1F9CB","1F9C3","1F9C9","1F9CA","1F962","1F37D-FE0F","1F374","1F944","1F52A","1FAD9","1F3FA"]},{id:"activity",name:"Activities",emojis:["1F383","1F384","1F386","1F387","1F9E8","2728","1F388","1F389","1F38A","1F38B","1F38D","1F38E","1F38F","1F390","1F391","1F9E7","1F380","1F381","1F397-FE0F","1F39F-FE0F","1F3AB","1F396-FE0F","1F3C6","1F3C5","1F947","1F948","1F949","26BD","26BE","1F94E","1F3C0","1F3D0","1F3C8","1F3C9","1F3BE","1F94F","1F3B3","1F3CF","1F3D1","1F3D2","1F94D","1F3D3","1F3F8","1F94A","1F94B","1F945","26F3","26F8-FE0F","1F3A3","1F93F","1F3BD","1F3BF","1F6F7","1F94C","1F3AF","1FA80","1FA81","1F3B1","1F52E","1FA84","1F9FF","1FAAC","1F3AE","1F579-FE0F","1F3B0","1F3B2","1F9E9","1F9F8","1FA85","1FAA9","1FA86","2660-FE0F","2665-FE0F","2666-FE0F","2663-FE0F","265F-FE0F","1F0CF","1F004","1F3B4","1F3AD","1F5BC-FE0F","1F3A8","1F9F5","1FAA1","1F9F6","1FAA2"]},{id:"places",name:"Travel & Places",emojis:["1F30D","1F30E","1F30F","1F310","1F5FA-FE0F","1F5FE","1F9ED","1F3D4-FE0F","26F0-FE0F","1F30B","1F5FB","1F3D5-FE0F","1F3D6-FE0F","1F3DC-FE0F","1F3DD-FE0F","1F3DE-FE0F","1F3DF-FE0F","1F3DB-FE0F","1F3D7-FE0F","1F9F1","1FAA8","1FAB5","1F6D6","1F3D8-FE0F","1F3DA-FE0F","1F3E0","1F3E1","1F3E2","1F3E3","1F3E4","1F3E5","1F3E6","1F3E8","1F3E9","1F3EA","1F3EB","1F3EC","1F3ED","1F3EF","1F3F0","1F492","1F5FC","1F5FD","26EA","1F54C","1F6D5","1F54D","26E9-FE0F","1F54B","26F2","26FA","1F301","1F303","1F3D9-FE0F","1F304","1F305","1F306","1F307","1F309","2668-FE0F","1F3A0","1F6DD","1F3A1","1F3A2","1F488","1F3AA","1F682","1F683","1F684","1F685","1F686","1F687","1F688","1F689","1F68A","1F69D","1F69E","1F68B","1F68C","1F68D","1F68E","1F690","1F691","1F692","1F693","1F694","1F695","1F696","1F697","1F698","1F699","1F6FB","1F69A","1F69B","1F69C","1F3CE-FE0F","1F3CD-FE0F","1F6F5","1F9BD","1F9BC","1F6FA","1F6B2","1F6F4","1F6F9","1F6FC","1F68F","1F6E3-FE0F","1F6E4-FE0F","1F6E2-FE0F","26FD","1F6DE","1F6A8","1F6A5","1F6A6","1F6D1","1F6A7","2693","1F6DF","26F5","1F6F6","1F6A4","1F6F3-FE0F","26F4-FE0F","1F6E5-FE0F","1F6A2","2708-FE0F","1F6E9-FE0F","1F6EB","1F6EC","1FA82","1F4BA","1F681","1F69F","1F6A0","1F6A1","1F6F0-FE0F","1F680","1F6F8","1F6CE-FE0F","1F9F3","231B","23F3","231A","23F0","23F1-FE0F","23F2-FE0F","1F570-FE0F","1F55B","1F567","1F550","1F55C","1F551","1F55D","1F552","1F55E","1F553","1F55F","1F554","1F560","1F555","1F561","1F556","1F562","1F557","1F563","1F558","1F564","1F559","1F565","1F55A","1F566","1F311","1F312","1F313","1F314","1F315","1F316","1F317","1F318","1F319","1F31A","1F31B","1F31C","1F321-FE0F","2600-FE0F","1F31D","1F31E","1FA90","2B50","1F31F","1F320","1F30C","2601-FE0F","26C5","26C8-FE0F","1F324-FE0F","1F325-FE0F","1F326-FE0F","1F327-FE0F","1F328-FE0F","1F329-FE0F","1F32A-FE0F","1F32B-FE0F","1F32C-FE0F","1F300","1F308","1F302","2602-FE0F","2614","26F1-FE0F","26A1","2744-FE0F","2603-FE0F","26C4","2604-FE0F","1F525","1F4A7","1F30A"]},{id:"objects",name:"Objects",emojis:["1F453","1F576-FE0F","1F97D","1F97C","1F9BA","1F454","1F455","1F456","1F9E3","1F9E4","1F9E5","1F9E6","1F457","1F458","1F97B","1FA71","1FA72","1FA73","1F459","1F45A","1F45B","1F45C","1F45D","1F6CD-FE0F","1F392","1FA74","1F45E","1F45F","1F97E","1F97F","1F460","1F461","1FA70","1F462","1F451","1F452","1F3A9","1F393","1F9E2","1FA96","26D1-FE0F","1F4FF","1F484","1F48D","1F48E","1F507","1F508","1F509","1F50A","1F4E2","1F4E3","1F4EF","1F514","1F515","1F3BC","1F3B5","1F3B6","1F399-FE0F","1F39A-FE0F","1F39B-FE0F","1F3A4","1F3A7","1F4FB","1F3B7","1FA97","1F3B8","1F3B9","1F3BA","1F3BB","1FA95","1F941","1FA98","1F4F1","1F4F2","260E-FE0F","1F4DE","1F4DF","1F4E0","1F50B","1FAAB","1F50C","1F4BB","1F5A5-FE0F","1F5A8-FE0F","2328-FE0F","1F5B1-FE0F","1F5B2-FE0F","1F4BD","1F4BE","1F4BF","1F4C0","1F9EE","1F3A5","1F39E-FE0F","1F4FD-FE0F","1F3AC","1F4FA","1F4F7","1F4F8","1F4F9","1F4FC","1F50D","1F50E","1F56F-FE0F","1F4A1","1F526","1F3EE","1FA94","1F4D4","1F4D5","1F4D6","1F4D7","1F4D8","1F4D9","1F4DA","1F4D3","1F4D2","1F4C3","1F4DC","1F4C4","1F4F0","1F5DE-FE0F","1F4D1","1F516","1F3F7-FE0F","1F4B0","1FA99","1F4B4","1F4B5","1F4B6","1F4B7","1F4B8","1F4B3","1F9FE","1F4B9","2709-FE0F","1F4E7","1F4E8","1F4E9","1F4E4","1F4E5","1F4E6","1F4EB","1F4EA","1F4EC","1F4ED","1F4EE","1F5F3-FE0F","270F-FE0F","2712-FE0F","1F58B-FE0F","1F58A-FE0F","1F58C-FE0F","1F58D-FE0F","1F4DD","1F4BC","1F4C1","1F4C2","1F5C2-FE0F","1F4C5","1F4C6","1F5D2-FE0F","1F5D3-FE0F","1F4C7","1F4C8","1F4C9","1F4CA","1F4CB","1F4CC","1F4CD","1F4CE","1F587-FE0F","1F4CF","1F4D0","2702-FE0F","1F5C3-FE0F","1F5C4-FE0F","1F5D1-FE0F","1F512","1F513","1F50F","1F510","1F511","1F5DD-FE0F","1F528","1FA93","26CF-FE0F","2692-FE0F","1F6E0-FE0F","1F5E1-FE0F","2694-FE0F","1F52B","1FA83","1F3F9","1F6E1-FE0F","1FA9A","1F527","1FA9B","1F529","2699-FE0F","1F5DC-FE0F","2696-FE0F","1F9AF","1F517","26D3-FE0F","1FA9D","1F9F0","1F9F2","1FA9C","2697-FE0F","1F9EA","1F9EB","1F9EC","1F52C","1F52D","1F4E1","1F489","1FA78","1F48A","1FA79","1FA7C","1FA7A","1FA7B","1F6AA","1F6D7","1FA9E","1FA9F","1F6CF-FE0F","1F6CB-FE0F","1FA91","1F6BD","1FAA0","1F6BF","1F6C1","1FAA4","1FA92","1F9F4","1F9F7","1F9F9","1F9FA","1F9FB","1FAA3","1F9FC","1FAE7","1FAA5","1F9FD","1F9EF","1F6D2","1F6AC","26B0-FE0F","1FAA6","26B1-FE0F","1F5FF","1FAA7","1FAAA"]},{id:"symbols",name:"Symbols",emojis:["1F3E7","1F6AE","1F6B0","267F","1F6B9","1F6BA","1F6BB","1F6BC","1F6BE","1F6C2","1F6C3","1F6C4","1F6C5","26A0-FE0F","1F6B8","26D4","1F6AB","1F6B3","1F6AD","1F6AF","1F6B1","1F6B7","1F4F5","1F51E","2622-FE0F","2623-FE0F","2B06-FE0F","2197-FE0F","27A1-FE0F","2198-FE0F","2B07-FE0F","2199-FE0F","2B05-FE0F","2196-FE0F","2195-FE0F","2194-FE0F","21A9-FE0F","21AA-FE0F","2934-FE0F","2935-FE0F","1F503","1F504","1F519","1F51A","1F51B","1F51C","1F51D","1F6D0","269B-FE0F","1F549-FE0F","2721-FE0F","2638-FE0F","262F-FE0F","271D-FE0F","2626-FE0F","262A-FE0F","262E-FE0F","1F54E","1F52F","2648","2649","264A","264B","264C","264D","264E","264F","2650","2651","2652","2653","26CE","1F500","1F501","1F502","25B6-FE0F","23E9","23ED-FE0F","23EF-FE0F","25C0-FE0F","23EA","23EE-FE0F","1F53C","23EB","1F53D","23EC","23F8-FE0F","23F9-FE0F","23FA-FE0F","23CF-FE0F","1F3A6","1F505","1F506","1F4F6","1F4F3","1F4F4","2640-FE0F","2642-FE0F","26A7-FE0F","2716-FE0F","2795","2796","2797","1F7F0","267E-FE0F","203C-FE0F","2049-FE0F","2753","2754","2755","2757","3030-FE0F","1F4B1","1F4B2","2695-FE0F","267B-FE0F","269C-FE0F","1F531","1F4DB","1F530","2B55","2705","2611-FE0F","2714-FE0F","274C","274E","27B0","27BF","303D-FE0F","2733-FE0F","2734-FE0F","2747-FE0F","00A9-FE0F","00AE-FE0F","2122-FE0F","0023-FE0F-20E3","002A-FE0F-20E3","0030-FE0F-20E3","0031-FE0F-20E3","0032-FE0F-20E3","0033-FE0F-20E3","0034-FE0F-20E3","0035-FE0F-20E3","0036-FE0F-20E3","0037-FE0F-20E3","0038-FE0F-20E3","0039-FE0F-20E3","1F51F","1F520","1F521","1F522","1F523","1F524","1F170-FE0F","1F18E","1F171-FE0F","1F191","1F192","1F193","2139-FE0F","1F194","24C2-FE0F","1F195","1F196","1F17E-FE0F","1F197","1F17F-FE0F","1F198","1F199","1F19A","1F201","1F202-FE0F","1F237-FE0F","1F236","1F22F","1F250","1F239","1F21A","1F232","1F251","1F238","1F234","1F233","3297-FE0F","3299-FE0F","1F23A","1F235","1F534","1F7E0","1F7E1","1F7E2","1F535","1F7E3","1F7E4","26AB","26AA","1F7E5","1F7E7","1F7E8","1F7E9","1F7E6","1F7EA","1F7EB","2B1B","2B1C","25FC-FE0F","25FB-FE0F","25FE","25FD","25AA-FE0F","25AB-FE0F","1F536","1F537","1F538","1F539","1F53A","1F53B","1F4A0","1F518","1F533","1F532"]},{id:"flags",name:"Flags",emojis:["1F1E6-1F1E8","1F1E6-1F1E9","1F1E6-1F1EA","1F1E6-1F1EB","1F1E6-1F1EC","1F1E6-1F1EE","1F1E6-1F1F1","1F1E6-1F1F2","1F1E6-1F1F4","1F1E6-1F1F6","1F1E6-1F1F7","1F1E6-1F1F8","1F1E6-1F1F9","1F1E6-1F1FA","1F1E6-1F1FC","1F1E6-1F1FD","1F1E6-1F1FF","1F1E7-1F1E6","1F1E7-1F1E7","1F1E7-1F1E9","1F1E7-1F1EA","1F1E7-1F1EB","1F1E7-1F1EC","1F1E7-1F1ED","1F1E7-1F1EE","1F1E7-1F1EF","1F1E7-1F1F1","1F1E7-1F1F2","1F1E7-1F1F3","1F1E7-1F1F4","1F1E7-1F1F6","1F1E7-1F1F7","1F1E7-1F1F8","1F1E7-1F1F9","1F1E7-1F1FB","1F1E7-1F1FC","1F1E7-1F1FE","1F1E7-1F1FF","1F1E8-1F1E6","1F1E8-1F1E8","1F1E8-1F1E9","1F1E8-1F1EB","1F1E8-1F1EC","1F1E8-1F1ED","1F1E8-1F1EE","1F1E8-1F1F0","1F1E8-1F1F1","1F1E8-1F1F2","1F1E8-1F1F3","1F1E8-1F1F4","1F1E8-1F1F5","1F1E8-1F1F7","1F1E8-1F1FA","1F1E8-1F1FB","1F1E8-1F1FC","1F1E8-1F1FD","1F1E8-1F1FE","1F1E8-1F1FF","1F1E9-1F1EA","1F1E9-1F1EC","1F1E9-1F1EF","1F1E9-1F1F0","1F1E9-1F1F2","1F1E9-1F1F4","1F1E9-1F1FF","1F1EA-1F1E6","1F1EA-1F1E8","1F1EA-1F1EA","1F1EA-1F1EC","1F1EA-1F1ED","1F1EA-1F1F7","1F1EA-1F1F8","1F1EA-1F1F9","1F1EA-1F1FA","1F1EB-1F1EE","1F1EB-1F1EF","1F1EB-1F1F0","1F1EB-1F1F2","1F1EB-1F1F4","1F1EB-1F1F7","1F1EC-1F1E6","1F1EC-1F1E7","1F1EC-1F1E9","1F1EC-1F1EA","1F1EC-1F1EB","1F1EC-1F1EC","1F1EC-1F1ED","1F1EC-1F1EE","1F1EC-1F1F1","1F1EC-1F1F2","1F1EC-1F1F3","1F1EC-1F1F5","1F1EC-1F1F6","1F1EC-1F1F7","1F1EC-1F1F8","1F1EC-1F1F9","1F1EC-1F1FA","1F1EC-1F1FC","1F1EC-1F1FE","1F1ED-1F1F0","1F1ED-1F1F2","1F1ED-1F1F3","1F1ED-1F1F7","1F1ED-1F1F9","1F1ED-1F1FA","1F1EE-1F1E8","1F1EE-1F1E9","1F1EE-1F1EA","1F1EE-1F1F1","1F1EE-1F1F2","1F1EE-1F1F3","1F1EE-1F1F4","1F1EE-1F1F6","1F1EE-1F1F7","1F1EE-1F1F8","1F1EE-1F1F9","1F1EF-1F1EA","1F1EF-1F1F2","1F1EF-1F1F4","1F1EF-1F1F5","1F1F0-1F1EA","1F1F0-1F1EC","1F1F0-1F1ED","1F1F0-1F1EE","1F1F0-1F1F2","1F1F0-1F1F3","1F1F0-1F1F5","1F1F0-1F1F7","1F1F0-1F1FC","1F1F0-1F1FE","1F1F0-1F1FF","1F1F1-1F1E6","1F1F1-1F1E7","1F1F1-1F1E8","1F1F1-1F1EE","1F1F1-1F1F0","1F1F1-1F1F7","1F1F1-1F1F8","1F1F1-1F1F9","1F1F1-1F1FA","1F1F1-1F1FB","1F1F1-1F1FE","1F1F2-1F1E6","1F1F2-1F1E8","1F1F2-1F1E9","1F1F2-1F1EA","1F1F2-1F1EB","1F1F2-1F1EC","1F1F2-1F1ED","1F1F2-1F1F0","1F1F2-1F1F1","1F1F2-1F1F2","1F1F2-1F1F3","1F1F2-1F1F4","1F1F2-1F1F5","1F1F2-1F1F6","1F1F2-1F1F7","1F1F2-1F1F8","1F1F2-1F1F9","1F1F2-1F1FA","1F1F2-1F1FB","1F1F2-1F1FC","1F1F2-1F1FD","1F1F2-1F1FE","1F1F2-1F1FF","1F1F3-1F1E6","1F1F3-1F1E8","1F1F3-1F1EA","1F1F3-1F1EB","1F1F3-1F1EC","1F1F3-1F1EE","1F1F3-1F1F1","1F1F3-1F1F4","1F1F3-1F1F5","1F1F3-1F1F7","1F1F3-1F1FA","1F1F3-1F1FF","1F1F4-1F1F2","1F1F5-1F1E6","1F1F5-1F1EA","1F1F5-1F1EB","1F1F5-1F1EC","1F1F5-1F1ED","1F1F5-1F1F0","1F1F5-1F1F1","1F1F5-1F1F2","1F1F5-1F1F3","1F1F5-1F1F7","1F1F5-1F1F8","1F1F5-1F1F9","1F1F5-1F1FC","1F1F5-1F1FE","1F1F6-1F1E6","1F1F7-1F1EA","1F1F7-1F1F4","1F1F7-1F1F8","1F1F7-1F1FA","1F1F7-1F1FC","1F1F8-1F1E6","1F1F8-1F1E7","1F1F8-1F1E8","1F1F8-1F1E9","1F1F8-1F1EA","1F1F8-1F1EC","1F1F8-1F1ED","1F1F8-1F1EE","1F1F8-1F1EF","1F1F8-1F1F0","1F1F8-1F1F1","1F1F8-1F1F2","1F1F8-1F1F3","1F1F8-1F1F4","1F1F8-1F1F7","1F1F8-1F1F8","1F1F8-1F1F9","1F1F8-1F1FB","1F1F8-1F1FD","1F1F8-1F1FE","1F1F8-1F1FF","1F1F9-1F1E6","1F1F9-1F1E8","1F1F9-1F1E9","1F1F9-1F1EB","1F1F9-1F1EC","1F1F9-1F1ED","1F1F9-1F1EF","1F1F9-1F1F0","1F1F9-1F1F1","1F1F9-1F1F2","1F1F9-1F1F3","1F1F9-1F1F4","1F1F9-1F1F7","1F1F9-1F1F9","1F1F9-1F1FB","1F1F9-1F1FC","1F1F9-1F1FF","1F1FA-1F1E6","1F1FA-1F1EC","1F1FA-1F1F2","1F1FA-1F1F3","1F1FA-1F1F8","1F1FA-1F1FE","1F1FA-1F1FF","1F1FB-1F1E6","1F1FB-1F1E8","1F1FB-1F1EA","1F1FB-1F1EC","1F1FB-1F1EE","1F1FB-1F1F3","1F1FB-1F1FA","1F1FC-1F1EB","1F1FC-1F1F8","1F1FD-1F1F0","1F1FE-1F1EA","1F1FE-1F1F9","1F1FF-1F1E6","1F1FF-1F1F2","1F1FF-1F1FC","1F38C","1F3C1","1F3F3-FE0F","1F3F3-FE0F-200D-1F308","1F3F3-FE0F-200D-26A7-FE0F","1F3F4","1F3F4-200D-2620-FE0F","1F3F4-E0067-E0062-E0065-E006E-E0067-E007F","1F3F4-E0067-E0062-E0073-E0063-E0074-E007F","1F3F4-E0067-E0062-E0077-E006C-E0073-E007F","1F6A9"]}],B4=[{name:"Grinning Face",unified:"1F600",text:":D",keywords:["grinning_face","face","smile","happy","joy",":D","grin"],sheet:[32,20],shortName:"grinning"},{name:"Smiling Face with Open Mouth",unified:"1F603",text:":)",emoticons:["=)","=-)"],keywords:["grinning_face_with_big_eyes","face","happy","joy","haha",":D",":)","smile","funny"],sheet:[32,23],shortName:"smiley"},{name:"Smiling Face with Open Mouth and Smiling Eyes",unified:"1F604",text:":)",emoticons:["C:","c:",":D",":-D"],keywords:["grinning_face_with_smiling_eyes","face","happy","joy","funny","haha","laugh","like",":D",":)","smile"],sheet:[32,24],shortName:"smile"},{name:"Grinning Face with Smiling Eyes",unified:"1F601",keywords:["beaming_face_with_smiling_eyes","face","happy","smile","joy","kawaii"],sheet:[32,21],shortName:"grin"},{name:"Smiling Face with Open Mouth and Tightly-Closed Eyes",unified:"1F606",emoticons:[":>",":->"],keywords:["grinning_squinting_face","happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],sheet:[32,26],shortNames:["satisfied"],shortName:"laughing"},{name:"Smiling Face with Open Mouth and Cold Sweat",unified:"1F605",keywords:["grinning_face_with_sweat","face","hot","happy","laugh","sweat","smile","relief"],sheet:[32,25],shortName:"sweat_smile"},{name:"Rolling on the Floor Laughing",unified:"1F923",keywords:["rolling_on_the_floor_laughing","face","rolling","floor","laughing","lol","haha","rofl"],sheet:[40,15],shortName:"rolling_on_the_floor_laughing"},{name:"Face with Tears of Joy",unified:"1F602",keywords:["face_with_tears_of_joy","face","cry","tears","weep","happy","happytears","haha"],sheet:[32,22],shortName:"joy"},{name:"Slightly Smiling Face",unified:"1F642",emoticons:[":)","(:",":-)"],keywords:["slightly_smiling_face","face","smile"],sheet:[33,28],shortName:"slightly_smiling_face"},{name:"Upside-Down Face",unified:"1F643",keywords:["upside_down_face","face","flipped","silly","smile"],sheet:[33,29],shortName:"upside_down_face"},{name:"Melting Face",unified:"1FAE0",keywords:["melting face","hot","heat"],sheet:[55,12],hidden:["facebook"],shortName:"melting_face"},{name:"Winking Face",unified:"1F609",text:";)",emoticons:[";)",";-)"],keywords:["winking_face","face","happy","mischievous","secret",";)","smile","eye"],sheet:[32,29],shortName:"wink"},{name:"Smiling Face with Smiling Eyes",unified:"1F60A",text:":)",keywords:["smiling_face_with_smiling_eyes","face","smile","happy","flushed","crush","embarrassed","shy","joy"],sheet:[32,30],shortName:"blush"},{name:"Smiling Face with Halo",unified:"1F607",keywords:["smiling_face_with_halo","face","angel","heaven","halo","innocent"],sheet:[32,27],shortName:"innocent"},{name:"Smiling Face with Smiling Eyes and Three Hearts",unified:"1F970",keywords:["smiling_face_with_hearts","face","love","like","affection","valentines","infatuation","crush","hearts","adore"],sheet:[43,58],shortName:"smiling_face_with_3_hearts"},{name:"Smiling Face with Heart-Shaped Eyes",unified:"1F60D",keywords:["smiling_face_with_heart_eyes","face","love","like","affection","valentines","infatuation","crush","heart"],sheet:[32,33],shortName:"heart_eyes"},{name:"Grinning Face with Star Eyes",unified:"1F929",keywords:["star_struck","face","smile","starry","eyes","grinning"],sheet:[40,38],shortNames:["grinning_face_with_star_eyes"],shortName:"star-struck"},{name:"Face Throwing a Kiss",unified:"1F618",emoticons:[":*",":-*"],keywords:["face_blowing_a_kiss","face","love","like","affection","valentines","infatuation","kiss"],sheet:[32,44],shortName:"kissing_heart"},{name:"Kissing Face",unified:"1F617",keywords:["kissing_face","love","like","face","3","valentines","infatuation","kiss"],sheet:[32,43],shortName:"kissing"},{name:"White Smiling Face",unified:"263A-FE0F",keywords:["smiling_face","face","blush","massage","happiness"],sheet:[57,4],shortName:"relaxed"},{name:"Kissing Face with Closed Eyes",unified:"1F61A",keywords:["kissing_face_with_closed_eyes","face","love","like","affection","valentines","infatuation","kiss"],sheet:[32,46],shortName:"kissing_closed_eyes"},{name:"Kissing Face with Smiling Eyes",unified:"1F619",keywords:["kissing_face_with_smiling_eyes","face","affection","valentines","infatuation","kiss"],sheet:[32,45],shortName:"kissing_smiling_eyes"},{name:"Smiling Face with Tear",unified:"1F972",keywords:["smiling face with tear","sad","cry","pretend"],sheet:[43,60],shortName:"smiling_face_with_tear"},{name:"Face Savouring Delicious Food",unified:"1F60B",keywords:["face_savoring_food","happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],sheet:[32,31],shortName:"yum"},{name:"Face with Stuck-out Tongue",unified:"1F61B",text:":p",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["face_with_tongue","face","prank","childish","playful","mischievous","smile","tongue"],sheet:[32,47],shortName:"stuck_out_tongue"},{name:"Face with Stuck-out Tongue and Winking Eye",unified:"1F61C",text:";p",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["winking_face_with_tongue","face","prank","childish","playful","mischievous","smile","wink","tongue"],sheet:[32,48],shortName:"stuck_out_tongue_winking_eye"},{name:"Grinning Face with One Large and One Small Eye",unified:"1F92A",keywords:["zany_face","face","goofy","crazy"],sheet:[40,39],shortNames:["grinning_face_with_one_large_and_one_small_eye"],shortName:"zany_face"},{name:"Face with Stuck-out Tongue and Tightly-Closed Eyes",unified:"1F61D",keywords:["squinting_face_with_tongue","face","prank","playful","mischievous","smile","tongue"],sheet:[32,49],shortName:"stuck_out_tongue_closed_eyes"},{name:"Money-Mouth Face",unified:"1F911",keywords:["money_mouth_face","face","rich","dollar","money"],sheet:[38,59],shortName:"money_mouth_face"},{name:"Hugging Face",unified:"1F917",keywords:["hugging_face","face","smile","hug"],sheet:[39,4],shortName:"hugging_face"},{name:"Smiling Face with Smiling Eyes and Hand Covering Mouth",unified:"1F92D",keywords:["face_with_hand_over_mouth","face","whoops","shock","surprise"],sheet:[40,42],shortNames:["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],shortName:"face_with_hand_over_mouth"},{name:"Face with Open Eyes and Hand over Mouth",unified:"1FAE2",keywords:["face with open eyes and hand over mouth","silence","secret","shock","surprise"],sheet:[55,14],hidden:["facebook"],shortName:"face_with_open_eyes_and_hand_over_mouth"},{name:"Face with Peeking Eye",unified:"1FAE3",keywords:["face with peeking eye","scared","frightening","embarrassing","shy"],sheet:[55,15],hidden:["facebook"],shortName:"face_with_peeking_eye"},{name:"Face with Finger Covering Closed Lips",unified:"1F92B",keywords:["shushing_face","face","quiet","shhh"],sheet:[40,40],shortNames:["face_with_finger_covering_closed_lips"],shortName:"shushing_face"},{name:"Thinking Face",unified:"1F914",keywords:["thinking_face","face","hmmm","think","consider"],sheet:[39,1],shortName:"thinking_face"},{name:"Saluting Face",unified:"1FAE1",keywords:["saluting face","respect","salute"],sheet:[55,13],hidden:["facebook"],shortName:"saluting_face"},{name:"Zipper-Mouth Face",unified:"1F910",keywords:["zipper_mouth_face","face","sealed","zipper","secret"],sheet:[38,58],shortName:"zipper_mouth_face"},{name:"Face with One Eyebrow Raised",unified:"1F928",keywords:["face_with_raised_eyebrow","face","distrust","scepticism","disapproval","disbelief","surprise"],sheet:[40,37],shortNames:["face_with_one_eyebrow_raised"],shortName:"face_with_raised_eyebrow"},{name:"Neutral Face",unified:"1F610",emoticons:[":|",":-|"],keywords:["neutral_face","indifference","meh",":|","neutral"],sheet:[32,36],shortName:"neutral_face"},{name:"Expressionless Face",unified:"1F611",keywords:["expressionless_face","face","indifferent","-_-","meh","deadpan"],sheet:[32,37],shortName:"expressionless"},{name:"Face Without Mouth",unified:"1F636",keywords:["face_without_mouth","face","hellokitty"],sheet:[33,16],shortName:"no_mouth"},{name:"Dotted Line Face",unified:"1FAE5",keywords:["dotted line face","invisible","lonely","isolation","depression"],sheet:[55,17],hidden:["facebook"],shortName:"dotted_line_face"},{name:"Face in Clouds",unified:"1F636-200D-1F32B-FE0F",keywords:["face in clouds","shower","steam","dream"],sheet:[33,15],hidden:["facebook"],shortName:"face_in_clouds"},{name:"Smirking Face",unified:"1F60F",keywords:["smirking_face","face","smile","mean","prank","smug","sarcasm"],sheet:[32,35],shortName:"smirk"},{name:"Unamused Face",unified:"1F612",text:":(",keywords:["unamused_face","indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],sheet:[32,38],shortName:"unamused"},{name:"Face with Rolling Eyes",unified:"1F644",keywords:["face_with_rolling_eyes","face","eyeroll","frustrated"],sheet:[33,30],shortName:"face_with_rolling_eyes"},{name:"Grimacing Face",unified:"1F62C",keywords:["grimacing_face","face","grimace","teeth"],sheet:[33,3],shortName:"grimacing"},{name:"Face Exhaling",unified:"1F62E-200D-1F4A8",keywords:["face exhaling","relieve","relief","tired","sigh"],sheet:[33,5],hidden:["facebook"],shortName:"face_exhaling"},{name:"Lying Face",unified:"1F925",keywords:["lying_face","face","lie","pinocchio"],sheet:[40,17],shortName:"lying_face"},{name:"Relieved Face",unified:"1F60C",keywords:["relieved_face","face","relaxed","phew","massage","happiness"],sheet:[32,32],shortName:"relieved"},{name:"Pensive Face",unified:"1F614",keywords:["pensive_face","face","sad","depressed","upset"],sheet:[32,40],shortName:"pensive"},{name:"Sleepy Face",unified:"1F62A",keywords:["sleepy_face","face","tired","rest","nap"],sheet:[33,1],shortName:"sleepy"},{name:"Drooling Face",unified:"1F924",keywords:["drooling_face","face"],sheet:[40,16],shortName:"drooling_face"},{name:"Sleeping Face",unified:"1F634",keywords:["sleeping_face","face","tired","sleepy","night","zzz"],sheet:[33,12],shortName:"sleeping"},{name:"Face with Medical Mask",unified:"1F637",keywords:["face_with_medical_mask","face","sick","ill","disease","covid"],sheet:[33,17],shortName:"mask"},{name:"Face with Thermometer",unified:"1F912",keywords:["face_with_thermometer","sick","temperature","thermometer","cold","fever","covid"],sheet:[38,60],shortName:"face_with_thermometer"},{name:"Face with Head-Bandage",unified:"1F915",keywords:["face_with_head_bandage","injured","clumsy","bandage","hurt"],sheet:[39,2],shortName:"face_with_head_bandage"},{name:"Nauseated Face",unified:"1F922",keywords:["nauseated_face","face","vomit","gross","green","sick","throw up","ill"],sheet:[40,14],shortName:"nauseated_face"},{name:"Face with Open Mouth Vomiting",unified:"1F92E",keywords:["face_vomiting","face","sick"],sheet:[40,43],shortNames:["face_with_open_mouth_vomiting"],shortName:"face_vomiting"},{name:"Sneezing Face",unified:"1F927",keywords:["sneezing_face","face","gesundheit","sneeze","sick","allergy"],sheet:[40,36],shortName:"sneezing_face"},{name:"Overheated Face",unified:"1F975",keywords:["hot_face","face","feverish","heat","red","sweating"],sheet:[44,2],shortName:"hot_face"},{name:"Freezing Face",unified:"1F976",keywords:["cold_face","face","blue","freezing","frozen","frostbite","icicles"],sheet:[44,3],shortName:"cold_face"},{name:"Face with Uneven Eyes and Wavy Mouth",unified:"1F974",keywords:["woozy_face","face","dizzy","intoxicated","tipsy","wavy"],sheet:[44,1],shortName:"woozy_face"},{name:"Dizzy Face",unified:"1F635",keywords:["dizzy_face","spent","unconscious","xox","dizzy"],sheet:[33,14],shortName:"dizzy_face"},{name:"Face with Spiral Eyes",unified:"1F635-200D-1F4AB",keywords:["face with spiral eyes","sick","ill","confused","nauseous","nausea"],sheet:[33,13],hidden:["facebook"],shortName:"face_with_spiral_eyes"},{name:"Shocked Face with Exploding Head",unified:"1F92F",keywords:["exploding_head","face","shocked","mind","blown"],sheet:[40,44],shortNames:["shocked_face_with_exploding_head"],shortName:"exploding_head"},{name:"Face with Cowboy Hat",unified:"1F920",keywords:["cowboy_hat_face","face","cowgirl","hat"],sheet:[40,12],shortName:"face_with_cowboy_hat"},{name:"Face with Party Horn and Party Hat",unified:"1F973",keywords:["partying_face","face","celebration","woohoo"],sheet:[44,0],shortName:"partying_face"},{name:"Disguised Face",unified:"1F978",keywords:["disguised face","pretent","brows","glasses","moustache"],sheet:[44,10],shortName:"disguised_face"},{name:"Smiling Face with Sunglasses",unified:"1F60E",emoticons:["8)"],keywords:["smiling_face_with_sunglasses","face","cool","smile","summer","beach","sunglass"],sheet:[32,34],shortName:"sunglasses"},{name:"Nerd Face",unified:"1F913",keywords:["nerd_face","face","nerdy","geek","dork"],sheet:[39,0],shortName:"nerd_face"},{name:"Face with Monocle",unified:"1F9D0",keywords:["face_with_monocle","face","stuffy","wealthy"],sheet:[47,11],shortName:"face_with_monocle"},{name:"Confused Face",unified:"1F615",emoticons:[":\\\\",":-\\\\",":/",":-/"],keywords:["confused_face","face","indifference","huh","weird","hmmm",":/"],sheet:[32,41],shortName:"confused"},{name:"Face with Diagonal Mouth",unified:"1FAE4",keywords:["face with diagonal mouth","skeptic","confuse","frustrated","indifferent"],sheet:[55,16],hidden:["facebook"],shortName:"face_with_diagonal_mouth"},{name:"Worried Face",unified:"1F61F",keywords:["worried_face","face","concern","nervous",":("],sheet:[32,51],shortName:"worried"},{name:"Slightly Frowning Face",unified:"1F641",keywords:["slightly_frowning_face","face","frowning","disappointed","sad","upset"],sheet:[33,27],shortName:"slightly_frowning_face"},{name:"Frowning Face",unified:"2639-FE0F",keywords:["frowning_face","face","sad","upset","frown"],sheet:[57,3],shortName:"white_frowning_face"},{name:"Face with Open Mouth",unified:"1F62E",emoticons:[":o",":-o",":O",":-O"],keywords:["face_with_open_mouth","face","surprise","impressed","wow","whoa",":O"],sheet:[33,6],shortName:"open_mouth"},{name:"Hushed Face",unified:"1F62F",keywords:["hushed_face","face","woo","shh"],sheet:[33,7],shortName:"hushed"},{name:"Astonished Face",unified:"1F632",keywords:["astonished_face","face","xox","surprised","poisoned"],sheet:[33,10],shortName:"astonished"},{name:"Flushed Face",unified:"1F633",keywords:["flushed_face","face","blush","shy","flattered"],sheet:[33,11],shortName:"flushed"},{name:"Face with Pleading Eyes",unified:"1F97A",keywords:["pleading_face","face","begging","mercy","cry","tears","sad","grievance"],sheet:[44,12],shortName:"pleading_face"},{name:"Face Holding Back Tears",unified:"1F979",keywords:["face holding back tears","touched","gratitude","cry"],sheet:[44,11],hidden:["facebook"],shortName:"face_holding_back_tears"},{name:"Frowning Face with Open Mouth",unified:"1F626",keywords:["frowning_face_with_open_mouth","face","aw","what"],sheet:[32,58],shortName:"frowning"},{name:"Anguished Face",unified:"1F627",emoticons:["D:"],keywords:["anguished_face","face","stunned","nervous"],sheet:[32,59],shortName:"anguished"},{name:"Fearful Face",unified:"1F628",keywords:["fearful_face","face","scared","terrified","nervous"],sheet:[32,60],shortName:"fearful"},{name:"Face with Open Mouth and Cold Sweat",unified:"1F630",keywords:["anxious_face_with_sweat","face","nervous","sweat"],sheet:[33,8],shortName:"cold_sweat"},{name:"Disappointed but Relieved Face",unified:"1F625",keywords:["sad_but_relieved_face","face","phew","sweat","nervous"],sheet:[32,57],shortName:"disappointed_relieved"},{name:"Crying Face",unified:"1F622",text:":'(",emoticons:[":'("],keywords:["crying_face","face","tears","sad","depressed","upset",":'("],sheet:[32,54],shortName:"cry"},{name:"Loudly Crying Face",unified:"1F62D",text:":'(",keywords:["loudly_crying_face","face","cry","tears","sad","upset","depressed"],sheet:[33,4],shortName:"sob"},{name:"Face Screaming in Fear",unified:"1F631",keywords:["face_screaming_in_fear","face","munch","scared","omg"],sheet:[33,9],shortName:"scream"},{name:"Confounded Face",unified:"1F616",keywords:["confounded_face","face","confused","sick","unwell","oops",":S"],sheet:[32,42],shortName:"confounded"},{name:"Persevering Face",unified:"1F623",keywords:["persevering_face","face","sick","no","upset","oops"],sheet:[32,55],shortName:"persevere"},{name:"Disappointed Face",unified:"1F61E",text:":(",emoticons:["):",":(",":-("],keywords:["disappointed_face","face","sad","upset","depressed",":("],sheet:[32,50],shortName:"disappointed"},{name:"Face with Cold Sweat",unified:"1F613",keywords:["downcast_face_with_sweat","face","hot","sad","tired","exercise"],sheet:[32,39],shortName:"sweat"},{name:"Weary Face",unified:"1F629",keywords:["weary_face","face","tired","sleepy","sad","frustrated","upset"],sheet:[33,0],shortName:"weary"},{name:"Tired Face",unified:"1F62B",keywords:["tired_face","sick","whine","upset","frustrated"],sheet:[33,2],shortName:"tired_face"},{name:"Yawning Face",unified:"1F971",keywords:["yawning_face","tired","sleepy"],sheet:[43,59],shortName:"yawning_face"},{name:"Face with Look of Triumph",unified:"1F624",keywords:["face_with_steam_from_nose","face","gas","phew","proud","pride"],sheet:[32,56],shortName:"triumph"},{name:"Pouting Face",unified:"1F621",keywords:["pouting_face","angry","mad","hate","despise"],sheet:[32,53],shortName:"rage"},{name:"Angry Face",unified:"1F620",emoticons:[">:(",">:-("],keywords:["angry_face","mad","face","annoyed","frustrated"],sheet:[32,52],shortName:"angry"},{name:"Serious Face with Symbols Covering Mouth",unified:"1F92C",keywords:["face_with_symbols_on_mouth","face","swearing","cursing","cussing","profanity","expletive"],sheet:[40,41],shortNames:["serious_face_with_symbols_covering_mouth"],shortName:"face_with_symbols_on_mouth"},{name:"Smiling Face with Horns",unified:"1F608",keywords:["smiling_face_with_horns","devil","horns"],sheet:[32,28],shortName:"smiling_imp"},{name:"Imp",unified:"1F47F",keywords:["angry_face_with_horns","devil","angry","horns"],sheet:[25,8],shortName:"imp"},{name:"Skull",unified:"1F480",keywords:["skull","dead","skeleton","creepy","death"],sheet:[25,9],shortName:"skull"},{name:"Skull and Crossbones",unified:"2620-FE0F",keywords:["skull_and_crossbones","poison","danger","deadly","scary","death","pirate","evil"],sheet:[56,56],shortName:"skull_and_crossbones"},{name:"Pile of Poo",unified:"1F4A9",keywords:["pile_of_poo","hankey","shitface","fail","turd","shit"],sheet:[27,56],shortNames:["poop","shit"],shortName:"hankey"},{name:"Clown Face",unified:"1F921",keywords:["clown_face","face"],sheet:[40,13],shortName:"clown_face"},{name:"Japanese Ogre",unified:"1F479",keywords:["ogre","monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],sheet:[24,58],shortName:"japanese_ogre"},{name:"Japanese Goblin",unified:"1F47A",keywords:["goblin","red","evil","mask","monster","scary","creepy","japanese","goblin"],sheet:[24,59],shortName:"japanese_goblin"},{name:"Ghost",unified:"1F47B",keywords:["ghost","halloween","spooky","scary"],sheet:[24,60],shortName:"ghost"},{name:"Extraterrestrial Alien",unified:"1F47D",keywords:["alien","UFO","paul","weird","outer_space"],sheet:[25,6],shortName:"alien"},{name:"Alien Monster",unified:"1F47E",keywords:["alien_monster","game","arcade","play"],sheet:[25,7],shortName:"space_invader"},{name:"Robot Face",unified:"1F916",keywords:["robot","computer","machine","bot"],sheet:[39,3],shortName:"robot_face"},{name:"Smiling Cat Face with Open Mouth",unified:"1F63A",keywords:["grinning_cat","animal","cats","happy","smile"],sheet:[33,20],shortName:"smiley_cat"},{name:"Grinning Cat Face with Smiling Eyes",unified:"1F638",keywords:["grinning_cat_with_smiling_eyes","animal","cats","smile"],sheet:[33,18],shortName:"smile_cat"},{name:"Cat Face with Tears of Joy",unified:"1F639",keywords:["cat_with_tears_of_joy","animal","cats","haha","happy","tears"],sheet:[33,19],shortName:"joy_cat"},{name:"Smiling Cat Face with Heart-Shaped Eyes",unified:"1F63B",keywords:["smiling_cat_with_heart_eyes","animal","love","like","affection","cats","valentines","heart"],sheet:[33,21],shortName:"heart_eyes_cat"},{name:"Cat Face with Wry Smile",unified:"1F63C",keywords:["cat_with_wry_smile","animal","cats","smirk"],sheet:[33,22],shortName:"smirk_cat"},{name:"Kissing Cat Face with Closed Eyes",unified:"1F63D",keywords:["kissing_cat","animal","cats","kiss"],sheet:[33,23],shortName:"kissing_cat"},{name:"Weary Cat Face",unified:"1F640",keywords:["weary_cat","animal","cats","munch","scared","scream"],sheet:[33,26],shortName:"scream_cat"},{name:"Crying Cat Face",unified:"1F63F",keywords:["crying_cat","animal","tears","weep","sad","cats","upset","cry"],sheet:[33,25],shortName:"crying_cat_face"},{name:"Pouting Cat Face",unified:"1F63E",keywords:["pouting_cat","animal","cats"],sheet:[33,24],shortName:"pouting_cat"},{name:"See-No-Evil Monkey",unified:"1F648",keywords:["see_no_evil_monkey","monkey","animal","nature","haha"],sheet:[34,24],shortName:"see_no_evil"},{name:"Hear-No-Evil Monkey",unified:"1F649",keywords:["hear_no_evil_monkey","animal","monkey","nature"],sheet:[34,25],shortName:"hear_no_evil"},{name:"Speak-No-Evil Monkey",unified:"1F64A",keywords:["speak_no_evil_monkey","monkey","animal","nature","omg"],sheet:[34,26],shortName:"speak_no_evil"},{name:"Kiss Mark",unified:"1F48B",keywords:["kiss_mark","face","lips","love","like","affection","valentines"],sheet:[26,37],shortName:"kiss"},{name:"Love Letter",unified:"1F48C",keywords:["love_letter","email","like","affection","envelope","valentines"],sheet:[26,38],shortName:"love_letter"},{name:"Heart with Arrow",unified:"1F498",keywords:["heart_with_arrow","love","like","heart","affection","valentines"],sheet:[27,39],shortName:"cupid"},{name:"Heart with Ribbon",unified:"1F49D",keywords:["heart_with_ribbon","love","valentines"],sheet:[27,44],shortName:"gift_heart"},{name:"Sparkling Heart",unified:"1F496",keywords:["sparkling_heart","love","like","affection","valentines"],sheet:[27,37],shortName:"sparkling_heart"},{name:"Growing Heart",unified:"1F497",keywords:["growing_heart","like","love","affection","valentines","pink"],sheet:[27,38],shortName:"heartpulse"},{name:"Beating Heart",unified:"1F493",keywords:["beating_heart","love","like","affection","valentines","pink","heart"],sheet:[27,34],shortName:"heartbeat"},{name:"Revolving Hearts",unified:"1F49E",keywords:["revolving_hearts","love","like","affection","valentines"],sheet:[27,45],shortName:"revolving_hearts"},{name:"Two Hearts",unified:"1F495",keywords:["two_hearts","love","like","affection","valentines","heart"],sheet:[27,36],shortName:"two_hearts"},{name:"Heart Decoration",unified:"1F49F",keywords:["heart_decoration","purple-square","love","like"],sheet:[27,46],shortName:"heart_decoration"},{name:"Heart Exclamation",unified:"2763-FE0F",keywords:["heart_exclamation","decoration","love"],sheet:[59,7],shortName:"heavy_heart_exclamation_mark_ornament"},{name:"Broken Heart",unified:"1F494",text:"`https://cdn.jsdelivr.net/npm/emoji-datasource-${n}@14.0.0/img/${n}/sheets-256/${a}.png`;let C2=(()=>{class n{uncompressed=!1;names={};emojis=[];constructor(){this.uncompressed||(this.uncompress(B4),this.uncompressed=!0)}uncompress(c){this.emojis=c.map(t=>{const l={...t};if(l.shortNames||(l.shortNames=[]),l.shortNames.unshift(l.shortName),l.id=l.shortName,l.native=this.unifiedToNative(l.unified),l.skinVariations||(l.skinVariations=[]),l.keywords||(l.keywords=[]),l.emoticons||(l.emoticons=[]),l.hidden||(l.hidden=[]),l.text||(l.text=""),l.obsoletes){const i=c.find(u=>u.unified===l.obsoletes);i&&(l.keywords=i.keywords?[...l.keywords,...i.keywords,i.shortName]:[...l.keywords,i.shortName])}this.names[l.unified]=l;for(const i of l.shortNames)this.names[i]=l;return l})}getData(c,t,l){let i;if("string"==typeof c){const C=c.match(w0);if(C&&(c=C[1],C[2]&&(t=parseInt(C[2],10))),!this.names.hasOwnProperty(c))return null;i=this.names[c]}else c.id?i=this.names[c.id]:c.unified&&(i=this.names[c.unified.toUpperCase()]);if(i||(i=c,i.custom=!0),i.skinVariations&&i.skinVariations.length&&t&&t>1&&l){i={...i};const C=v1[t-1],b=i.skinVariations.find(T=>T.unified.includes(C));(!b.hidden||!b.hidden.includes(l))&&(i.skinTone=t,i={...i,...b}),i.native=this.unifiedToNative(i.unified)}return i.set=l||"",i}unifiedToNative(c){const t=c.split("-").map(l=>parseInt(`0x${l}`,16));return String.fromCodePoint(...t)}emojiSpriteStyles(c,t="apple",l=24,i=64,u=60,C=e2,b=61,T){const W=!!T;return{width:`${l}px`,height:`${l}px`,display:"inline-block","background-image":`url(${T=T||C(t,i)})`,"background-size":W?"100% 100%":`${100*b}% ${100*u}%`,"background-position":W?void 0:this.getSpritePosition(c,b)}}getSpritePosition(c,t){const[l,i]=c,u=100/(t-1);return`${u*l}% ${u*i}%`}sanitize(c){if(null===c)return null;let l=`:${c.id||c.shortNames[0]}:`;return c.skinTone&&(l+=`:skin-tone-${c.skinTone}:`),c.colons=l,{...c}}getSanitizedData(c,t,l){return this.sanitize(this.getData(c,t,l))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),E1=(()=>{class n{skin=1;set="apple";sheetSize=64;isNative=!1;forceSize=!1;tooltip=!1;size=24;emoji="";fallback;hideObsolete=!1;sheetRows;sheetColumns;useButton;emojiOver=new e.bkB;emojiOverOutsideAngular=new e.bkB;emojiLeave=new e.bkB;emojiLeaveOutsideAngular=new e.bkB;emojiClick=new e.bkB;emojiClickOutsideAngular=new e.bkB;style;title=void 0;label="";unified;custom=!1;isVisible=!0;backgroundImageFn=e2;imageUrlFn;set button(c){this.ngZone.runOutsideAngular(()=>this.button$.next(c?.nativeElement))}button$=new S.B;destroy$=new S.B;ngZone=(0,e.WQX)(e.SKi);emojiService=(0,e.WQX)(C2);constructor(){this.setupMouseListeners()}ngOnChanges(){if(!this.emoji)return this.isVisible=!1;const c=this.getData();if(!c)return this.isVisible=!1;if(this.unified=c.native||null,c.custom&&(this.custom=c.custom),!c.unified&&!c.custom)return this.isVisible=!1;if(this.tooltip&&(this.title=c.shortNames[0]),c.obsoletedBy&&this.hideObsolete)return this.isVisible=!1;if(this.label=[c.native].concat(c.shortNames).filter(Boolean).join(", "),this.isNative&&c.unified&&c.native)this.style={fontSize:`${this.size}px`},this.forceSize&&(this.style.display="inline-block",this.style.width=`${this.size}px`,this.style.height=`${this.size}px`,this.style["word-break"]="keep-all");else if(c.custom)this.style={width:`${this.size}px`,height:`${this.size}px`,display:"inline-block"},this.style=c.spriteUrl&&this.sheetRows&&this.sheetColumns?{...this.style,backgroundImage:`url(${c.spriteUrl})`,backgroundSize:`${100*this.sheetColumns}% ${100*this.sheetRows}%`,backgroundPosition:this.emojiService.getSpritePosition(c.sheet,this.sheetColumns)}:{...this.style,backgroundImage:`url(${c.imageUrl})`,backgroundSize:"contain"};else if(c.hidden.length&&c.hidden.includes(this.set)){if(!this.fallback)return this.isVisible=!1;this.style={fontSize:`${this.size}px`},this.unified=this.fallback(c,this)}else this.style=this.emojiService.emojiSpriteStyles(c.sheet,this.set,this.size,this.sheetSize,this.sheetRows,this.backgroundImageFn,this.sheetColumns,this.imageUrlFn?.(this.getData()));return this.isVisible=!0}ngOnDestroy(){this.destroy$.next()}getData(){return this.emojiService.getData(this.emoji,this.skin,this.set)}getSanitizedData(){return this.emojiService.getSanitizedData(this.emoji,this.skin,this.set)}setupMouseListeners(){const c=t=>this.button$.pipe((0,A.n)(l=>l?f1(l,t):G1.w),(0,O1.Q)(this.destroy$));c("click").subscribe(t=>{const l=this.getSanitizedData();this.emojiClickOutsideAngular.emit({emoji:l,$event:t}),this.emojiClick.observed&&this.ngZone.run(()=>this.emojiClick.emit({emoji:l,$event:t}))}),c("mouseenter").subscribe(t=>{const l=this.getSanitizedData();this.emojiOverOutsideAngular.emit({emoji:l,$event:t}),this.emojiOver.observed&&this.ngZone.run(()=>this.emojiOver.emit({emoji:l,$event:t}))}),c("mouseleave").subscribe(t=>{const l=this.getSanitizedData();this.emojiLeaveOutsideAngular.emit({emoji:l,$event:t}),this.emojiLeave.observed&&this.ngZone.run(()=>this.emojiLeave.emit({emoji:l,$event:t}))})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["ngx-emoji"]],viewQuery:function(t,l){if(1&t&&e.GBs(d0,5),2&t){let i;e.mGM(i=e.lsd())&&(l.button=i.first)}},inputs:{skin:"skin",set:"set",sheetSize:"sheetSize",isNative:"isNative",forceSize:"forceSize",tooltip:"tooltip",size:"size",emoji:"emoji",fallback:"fallback",hideObsolete:"hideObsolete",sheetRows:"sheetRows",sheetColumns:"sheetColumns",useButton:"useButton",backgroundImageFn:"backgroundImageFn",imageUrlFn:"imageUrlFn"},outputs:{emojiOver:"emojiOver",emojiOverOutsideAngular:"emojiOverOutsideAngular",emojiLeave:"emojiLeave",emojiLeaveOutsideAngular:"emojiLeaveOutsideAngular",emojiClick:"emojiClick",emojiClickOutsideAngular:"emojiClickOutsideAngular"},standalone:!0,features:[e.OA$,e.aNF],ngContentSelectors:d2,decls:3,vars:1,consts:[["spanTpl",""],["button",""],[3,"ngIf"],["type","button","class","emoji-mart-emoji",3,"emoji-mart-emoji-native","emoji-mart-emoji-custom",4,"ngIf","ngIfElse"],["type","button",1,"emoji-mart-emoji"],[3,"ngStyle"],[1,"emoji-mart-emoji"]],template:function(t,l){1&t&&(e.NAR(d2),e.DNE(0,v2,1,2,"ng-template",2)(1,X0,5,8,"ng-template",null,0,e.C5r)),2&t&&e.Y8G("ngIf",l.isVisible)},dependencies:[_.MD,_.bT,_.B3],encapsulation:2,changeDetection:0})}return n})();function A1(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",3),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().index,u=e.XpG();return e.Njj(u.handleClick(l,i))}),e.j41(1,"div"),e.qSk(),e.j41(2,"svg",4),e.nrm(3,"path"),e.k0s()(),e.joV(),e.nrm(4,"span",5),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.xc7("color",c.name===t.selected?t.color:null),e.AVh("emoji-mart-anchor-selected",c.name===t.selected),e.BMQ("title",t.i18n.categories[c.id]),e.R7$(3),e.BMQ("d",t.icons[c.id]),e.R7$(),e.xc7("background-color",t.color)}}function H1(n,a){1&n&&e.DNE(0,A1,5,8,"span",2),2&n&&e.Y8G("ngIf",!1!==a.$implicit.anchor)}const P1=["container"],K1=["label"];function Q(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("emoji",c)("size",t.emojiSize)("skin",t.emojiSkin)("isNative",t.emojiIsNative)("set",t.emojiSet)("sheetSize",t.emojiSheetSize)("forceSize",t.emojiForceSize)("tooltip",t.emojiTooltip)("backgroundImageFn",t.emojiBackgroundImageFn)("imageUrlFn",t.emojiImageUrlFn)("hideObsolete",t.hideObsolete)("useButton",t.emojiUseButton)}}function t2(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,Q,1,12,"ngx-emoji",8),e.k0s()),2&n){const c=a.ngIf,t=e.XpG(2);e.R7$(),e.Y8G("ngForOf",c)("ngForTrackBy",t.trackById)}}function s2(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,t2,2,2,"div",7),e.nI1(2,"async"),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,c.filteredEmojis$))}}function p2(n,a){if(1&n&&(e.j41(0,"div")(1,"div"),e.nrm(2,"ngx-emoji",10),e.k0s(),e.j41(3,"div",11),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.Y8G("emoji",c.notFoundEmoji)("size",38)("skin",c.emojiSkin)("isNative",c.emojiIsNative)("set",c.emojiSet)("sheetSize",c.emojiSheetSize)("forceSize",c.emojiForceSize)("tooltip",c.emojiTooltip)("backgroundImageFn",c.emojiBackgroundImageFn)("useButton",c.emojiUseButton),e.R7$(2),e.SpI(" ",c.i18n.notfound," ")}}function l0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-emoji",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiOverOutsideAngular.emit(l))})("emojiLeaveOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiLeaveOutsideAngular.emit(l))})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.emojiClickOutsideAngular.emit(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("emoji",c)("size",t.emojiSize)("skin",t.emojiSkin)("isNative",t.emojiIsNative)("set",t.emojiSet)("sheetSize",t.emojiSheetSize)("forceSize",t.emojiForceSize)("tooltip",t.emojiTooltip)("backgroundImageFn",t.emojiBackgroundImageFn)("imageUrlFn",t.emojiImageUrlFn)("hideObsolete",t.hideObsolete)("useButton",t.emojiUseButton)}}function s0(n,a){if(1&n&&e.DNE(0,l0,1,12,"ngx-emoji",8),2&n){const c=e.XpG();e.Y8G("ngForOf",c.emojisToDisplay)("ngForTrackBy",c.trackById)}}function D0(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",2)(1,"span",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))})("keyup.enter",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))})("keyup.space",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.handleClick(l))}),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG();e.AVh("selected",c===t.skin),e.R7$(),e.ZvI("emoji-mart-skin emoji-mart-skin-tone-",c,""),e.Y8G("tabIndex",t.tabIndex(c)),e.BMQ("aria-hidden",!t.isVisible(c))("aria-pressed",t.pressed(c))("aria-haspopup",!!t.isSelected(c))("aria-expanded",t.expanded(c))("aria-label",t.i18n.skintones[c])("title",t.i18n.skintones[c])}}function K2(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" :",c,": ")}}function y0(n,a){if(1&n&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function C4(n,a){if(1&n&&(e.j41(0,"div",8)(1,"div",2),e.nrm(2,"ngx-emoji",9),e.k0s(),e.j41(3,"div",4)(4,"div",10),e.EFF(5),e.k0s(),e.j41(6,"div",11),e.DNE(7,K2,2,1,"span",12),e.k0s(),e.j41(8,"div",13),e.DNE(9,y0,2,1,"span",14),e.k0s()()()),2&n){const c=e.XpG();e.R7$(2),e.Y8G("emoji",c.emoji)("size",38)("isNative",c.emojiIsNative)("skin",c.emojiSkin)("size",c.emojiSize)("set",c.emojiSet)("sheetSize",c.emojiSheetSize)("backgroundImageFn",c.emojiBackgroundImageFn)("imageUrlFn",c.emojiImageUrlFn),e.R7$(3),e.JRh(c.emojiData.name),e.R7$(2),e.Y8G("ngForOf",c.emojiData.shortNames),e.R7$(2),e.Y8G("ngForOf",c.listedEmoticons)}}function m2(n,a){if(1&n&&e.nrm(0,"ngx-emoji",16),2&n){const c=e.XpG();e.Y8G("isNative",c.emojiIsNative)("skin",c.emojiSkin)("set",c.emojiSet)("emoji",c.idleEmoji)("backgroundImageFn",c.emojiBackgroundImageFn)("size",38)("imageUrlFn",c.emojiImageUrlFn)}}const N4=["inputRef"],m4=["scrollRef"];function B3(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-search",8),e.bIt("searchResults",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleSearch(l))})("enterKeyOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEnterKey(l))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("i18n",c.i18n)("include",c.include)("exclude",c.exclude)("custom",c.custom)("autoFocus",c.autoFocus)("icons",c.searchIcons)("emojisToShowFilter",c.emojisToShowFilter)}}function t3(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-category",9),e.bIt("emojiOverOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEmojiOver(l))})("emojiLeaveOutsideAngular",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.handleEmojiLeave())})("emojiClickOutsideAngular",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleEmojiClick(l))}),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG();e.Y8G("id",c.id)("name",c.name)("emojis",c.emojis)("perLine",t.perLine)("totalFrequentLines",t.totalFrequentLines)("hasStickyPosition",t.isNative)("i18n",t.i18n)("hideObsolete",t.hideObsolete)("notFoundEmoji",t.notFoundEmoji)("custom",c.id===t.RECENT_CATEGORY.id?t.CUSTOM_CATEGORY.emojis:void 0)("recent",c.id===t.RECENT_CATEGORY.id?t.recent:void 0)("virtualize",t.virtualize)("virtualizeOffset",t.virtualizeOffset)("emojiIsNative",t.isNative)("emojiSkin",t.skin)("emojiSize",t.emojiSize)("emojiSet",t.set)("emojiSheetSize",t.sheetSize)("emojiForceSize",t.isNative)("emojiTooltip",t.emojiTooltip)("emojiBackgroundImageFn",t.backgroundImageFn)("emojiImageUrlFn",t.imageUrlFn)("emojiUseButton",t.useButton)}}function E6(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"emoji-preview",10),e.bIt("skinChange",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.handleSkinChange(l))}),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("emoji",c.previewEmoji)("idleEmoji",c.emoji)("emojiIsNative",c.isNative)("emojiSize",38)("emojiSkin",c.skin)("emojiSet",c.set)("i18n",c.i18n)("emojiSheetSize",c.sheetSize)("emojiBackgroundImageFn",c.backgroundImageFn)("emojiImageUrlFn",c.imageUrlFn),e.BMQ("title",c.title)}}let q4=(()=>{class n{categories=[];color;selected;i18n;icons={};anchorClick=new e.bkB;trackByFn(c,t){return t.id}handleClick(c,t){this.anchorClick.emit({category:this.categories[t],index:t})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-mart-anchors"]],inputs:{categories:"categories",color:"color",selected:"selected",i18n:"i18n",icons:"icons"},outputs:{anchorClick:"anchorClick"},standalone:!0,features:[e.aNF],decls:2,vars:2,consts:[[1,"emoji-mart-anchors"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","emoji-mart-anchor",3,"emoji-mart-anchor-selected","color","click",4,"ngIf"],[1,"emoji-mart-anchor",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","24","height","24"],[1,"emoji-mart-anchor-bar"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,H1,1,1,"ng-template",1),e.k0s()),2&t&&(e.R7$(),e.Y8G("ngForOf",l.categories)("ngForTrackBy",l.trackByFn))},dependencies:[_.MD,_.Sq,_.bT],encapsulation:2,changeDetection:0})}return n})(),c0=(()=>{class n{platformId;NAMESPACE="emoji-mart";frequently=null;defaults={};initialized=!1;DEFAULTS=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","poop"];constructor(c){this.platformId=c}init(){this.frequently=JSON.parse((0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.frequently`)||"null"),this.initialized=!0}add(c){this.initialized||this.init(),this.frequently||(this.frequently=this.defaults),this.frequently[c.id]||(this.frequently[c.id]=0),this.frequently[c.id]+=1,(0,_.UE)(this.platformId)&&(localStorage.setItem(`${this.NAMESPACE}.last`,c.id),localStorage.setItem(`${this.NAMESPACE}.frequently`,JSON.stringify(this.frequently)))}get(c,t){if(this.initialized||this.init(),null===this.frequently){this.defaults={};const T=[];for(let W=0;Wthis.frequently[T]-this.frequently[W]).reverse().slice(0,l),b=(0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.last`);return b&&!C.includes(b)&&(C.pop(),C.push(b)),C}static \u0275fac=function(t){return new(t||n)(e.KVO(e.Agw))};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),f0=(()=>{class n{ref;emojiService;frequently;emojis=null;hasStickyPosition=!0;name="";perLine=9;totalFrequentLines=4;recent=[];custom=[];i18n;id;hideObsolete=!0;notFoundEmoji;virtualize=!1;virtualizeOffset=0;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiForceSize;emojiTooltip;emojiBackgroundImageFn;emojiImageUrlFn;emojiUseButton;emojiOverOutsideAngular=new e.bkB;emojiLeaveOutsideAngular=new e.bkB;emojiClickOutsideAngular=new e.bkB;container;label;containerStyles={};emojisToDisplay=[];filteredEmojisSubject=new S.B;filteredEmojis$=this.filteredEmojisSubject.asObservable();labelStyles={};labelSpanStyles={};margin=0;minMargin=0;maxMargin=0;top=0;rows=0;constructor(c,t,l){this.ref=c,this.emojiService=t,this.frequently=l}ngOnInit(){this.updateRecentEmojis(),this.emojisToDisplay=this.filterEmojis(),this.noEmojiToDisplay&&(this.containerStyles={display:"none"}),this.hasStickyPosition||(this.labelStyles={height:28})}ngOnChanges(c){c.emojis?.currentValue?.length!==c.emojis?.previousValue?.length&&(this.emojisToDisplay=this.filterEmojis(),this.ngAfterViewInit())}ngAfterViewInit(){if(!this.virtualize)return;const{width:c}=this.container.nativeElement.getBoundingClientRect(),t=Math.floor(c/(this.emojiSize+12));this.rows=Math.ceil(this.emojisToDisplay.length/t),this.containerStyles={...this.containerStyles,minHeight:this.rows*(this.emojiSize+12)+28+"px"},this.ref.detectChanges(),this.handleScroll(this.container.nativeElement.parentNode.parentNode.scrollTop)}get noEmojiToDisplay(){return 0===this.emojisToDisplay.length}memoizeSize(){const c=this.container.nativeElement.parentNode.parentNode,{top:t,height:l}=this.container.nativeElement.getBoundingClientRect(),i=c.getBoundingClientRect().top,u=this.label.nativeElement.getBoundingClientRect().height;this.top=t-i+c.scrollTop,this.maxMargin=0===l?0:l-u}handleScroll(c){let t=c-this.top;if(t=tthis.maxMargin?this.maxMargin:t,this.virtualize){const{top:l,height:i}=this.container.nativeElement.getBoundingClientRect(),u=this.container.nativeElement.parentNode.parentNode.clientHeight;this.filteredEmojisSubject.next(u+(u+this.virtualizeOffset)>=l&&-i-(u+this.virtualizeOffset)<=l?this.emojisToDisplay:[])}return t===this.margin?(this.ref.detectChanges(),!1):(this.hasStickyPosition||(this.label.nativeElement.style.top=`${t}px`),this.margin=t,this.ref.detectChanges(),!0)}updateRecentEmojis(){if("Recent"!==this.name)return;let c=this.recent||this.frequently.get(this.perLine,this.totalFrequentLines);(!c||!c.length)&&(c=this.frequently.get(this.perLine,this.totalFrequentLines)),c.length&&(this.emojis=c.map(t=>this.custom.filter(i=>i.id===t)[0]||t).filter(t=>!!this.emojiService.getData(t)))}updateDisplay(c){this.containerStyles.display=c,this.updateRecentEmojis(),this.ref.detectChanges()}trackById(c,t){return t}filterEmojis(){const c=[];for(const t of this.emojis||[]){if(!t)continue;const l=this.emojiService.getData(t);!l||l.obsoletedBy&&this.hideObsolete||!l.unified&&!l.custom||c.push(t)}return c}static \u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(C2),e.rXU(c0))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-category"]],viewQuery:function(t,l){if(1&t&&(e.GBs(P1,7),e.GBs(K1,7)),2&t){let i;e.mGM(i=e.lsd())&&(l.container=i.first),e.mGM(i=e.lsd())&&(l.label=i.first)}},inputs:{emojis:"emojis",hasStickyPosition:"hasStickyPosition",name:"name",perLine:"perLine",totalFrequentLines:"totalFrequentLines",recent:"recent",custom:"custom",i18n:"i18n",id:"id",hideObsolete:"hideObsolete",notFoundEmoji:"notFoundEmoji",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiForceSize:"emojiForceSize",emojiTooltip:"emojiTooltip",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn",emojiUseButton:"emojiUseButton"},outputs:{emojiOverOutsideAngular:"emojiOverOutsideAngular",emojiLeaveOutsideAngular:"emojiLeaveOutsideAngular",emojiClickOutsideAngular:"emojiClickOutsideAngular"},standalone:!0,features:[e.OA$,e.aNF],decls:10,vars:11,consts:[["container",""],["label",""],["normalRenderTemplate",""],[1,"emoji-mart-category",3,"ngStyle"],[1,"emoji-mart-category-label",3,"ngStyle"],["aria-hidden","true",3,"ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton","emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular",4,"ngFor","ngForOf","ngForTrackBy"],[3,"emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular","emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","useButton"],[1,"emoji-mart-no-results-label"]],template:function(t,l){if(1&t&&(e.j41(0,"section",3,0)(2,"div",4)(3,"span",5,1),e.EFF(5),e.k0s()(),e.DNE(6,s2,3,3,"div",6)(7,p2,5,11,"div",7),e.k0s(),e.DNE(8,s0,1,2,"ng-template",null,2,e.C5r)),2&t){const i=e.sdS(9);e.AVh("emoji-mart-no-results",l.noEmojiToDisplay),e.Y8G("ngStyle",l.containerStyles),e.BMQ("aria-label",l.i18n.categories[l.id]),e.R7$(2),e.Y8G("ngStyle",l.labelStyles),e.BMQ("data-name",l.name),e.R7$(),e.Y8G("ngStyle",l.labelSpanStyles),e.R7$(2),e.SpI(" ",l.i18n.categories[l.id]," "),e.R7$(),e.Y8G("ngIf",l.virtualize)("ngIfElse",i),e.R7$(),e.Y8G("ngIf",l.noEmojiToDisplay)}},dependencies:[_.MD,_.Sq,_.bT,_.B3,_.Jj,E1],encapsulation:2,changeDetection:0})}return n})();function X4(n){return n.reduce((a,c)=>(a.includes(c)||a.push(c),a),[])}function T4(n,a){const c=X4(n),t=X4(a);return c.filter(l=>t.indexOf(l)>=0)}let n3=(()=>{class n{emojiService;originalPool={};index={};emojisList={};emoticonsList={};emojiSearch={};constructor(c){this.emojiService=c;for(const t of this.emojiService.emojis){const{shortNames:l,emoticons:i}=t,u=l[0];for(const C of i)this.emoticonsList[C]||(this.emoticonsList[C]=u);this.emojisList[u]=this.emojiService.getSanitizedData(u),this.originalPool[u]=t}}addCustomToPool(c,t){for(const l of c){const i=l.id||l.shortNames[0];i&&!t[i]&&(t[i]=this.emojiService.getData(l),this.emojisList[i]=this.emojiService.getSanitizedData(l))}}search(c,t,l=75,i=[],u=[],C=[]){this.addCustomToPool(C,this.originalPool);let b,T=this.originalPool;if(c.length){if("-"===c||"-1"===c)return[this.emojisList[-1]];if("+"===c||"+1"===c)return[this.emojisList["+1"]];let W=c.toLowerCase().split(/[\s|,|\-|_]+/),u1=[];if(W.length>2&&(W=[W[0],W[1]]),i.length||u.length){T={};for(const a1 of Z0||[]){const T1=!i||!i.length||i.indexOf(a1.id)>-1,Y1=!(!u||!u.length)&&u.indexOf(a1.id)>-1;if(T1&&!Y1)for(const f2 of a1.emojis||[]){const M2=this.emojiService.getData(f2);T[M2?.id??""]=M2}}if(C.length){const a1=!i||!i.length||i.indexOf("custom")>-1,T1=!(!u||!u.length)&&u.indexOf("custom")>-1;a1&&!T1&&this.addCustomToPool(C,T)}}u1=W.map(a1=>{let T1=T,Y1=this.index,f2=0;for(let M2=0;M2N2[a4.id]-N2[B0.id])}T1=Y1.pool}return Y1.results}).filter(a1=>a1),b=u1.length>1?T4.apply(null,u1):u1.length?u1[0]:[]}return b&&(t&&(b=b.filter(W=>!(!W||!W.id)&&t(this.emojiService.names[W.id]))),b&&b.length>l&&(b=b.slice(0,l))),b||null}buildSearch(c,t,l,i,u){const C=[],b=(T,W)=>{if(!T)return;const u1=Array.isArray(T)?T:[T];for(const a1 of u1){const T1=W?a1.split(/[-|_|\s]+/):[a1];for(let Y1 of T1)Y1=Y1.toLowerCase(),C.includes(Y1)||C.push(Y1)}};return b(c,!0),b(t,!0),b(l,!0),b(i,!0),b(u,!1),C.join(",")}static \u0275fac=function(t){return new(t||n)(e.KVO(C2))};static \u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),y4=(()=>{class n{skin;i18n;changeSkin=new e.bkB;opened=!1;skinTones=[1,2,3,4,5,6];toggleOpen(){this.opened=!this.opened}isSelected(c){return c===this.skin}isVisible(c){return this.opened||this.isSelected(c)}pressed(c){return this.opened?!!this.isSelected(c):""}tabIndex(c){return this.isVisible(c)?"0":""}expanded(c){return this.isSelected(c)?this.opened:""}handleClick(c){this.opened?(this.opened=!1,c!==this.skin&&this.changeSkin.emit(c)):this.opened=!0}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-skins"]],inputs:{skin:"skin",i18n:"i18n"},outputs:{changeSkin:"changeSkin"},standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[[1,"emoji-mart-skin-swatches"],["class","emoji-mart-skin-swatch",3,"selected",4,"ngFor","ngForOf"],[1,"emoji-mart-skin-swatch"],["role","button",3,"click","keyup.enter","keyup.space","tabIndex"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.DNE(1,D0,2,12,"span",1),e.k0s()),2&t&&(e.AVh("opened",l.opened),e.R7$(),e.Y8G("ngForOf",l.skinTones))},dependencies:[_.MD,_.Sq],encapsulation:2,changeDetection:0})}return n})(),H4=(()=>{class n{ref;emojiService;title;emoji;idleEmoji;i18n;emojiIsNative;emojiSkin;emojiSize;emojiSet;emojiSheetSize;emojiBackgroundImageFn;emojiImageUrlFn;skinChange=new e.bkB;emojiData={};listedEmoticons;constructor(c,t){this.ref=c,this.emojiService=t}ngOnChanges(){if(!this.emoji)return;this.emojiData=this.emojiService.getData(this.emoji,this.emojiSkin,this.emojiSet);const c=[],t=[];(this.emojiData.emoticons||[]).forEach(i=>{c.indexOf(i.toLowerCase())>=0||(c.push(i.toLowerCase()),t.push(i))}),this.listedEmoticons=t,this.ref?.detectChanges()}static \u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(C2))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-preview"]],inputs:{title:"title",emoji:"emoji",idleEmoji:"idleEmoji",i18n:"i18n",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn"},outputs:{skinChange:"skinChange"},standalone:!0,features:[e.OA$,e.aNF],decls:9,vars:6,consts:[["class","emoji-mart-preview",4,"ngIf"],[1,"emoji-mart-preview",3,"hidden"],[1,"emoji-mart-preview-emoji"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn",4,"ngIf"],[1,"emoji-mart-preview-data"],[1,"emoji-mart-title-label"],[1,"emoji-mart-preview-skins"],[3,"changeSkin","skin","i18n"],[1,"emoji-mart-preview"],[3,"emoji","size","isNative","skin","set","sheetSize","backgroundImageFn","imageUrlFn"],[1,"emoji-mart-preview-name"],[1,"emoji-mart-preview-shortname"],["class","emoji-mart-preview-shortname",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticons"],["class","emoji-mart-preview-emoticon",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticon"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn"]],template:function(t,l){1&t&&(e.DNE(0,C4,10,12,"div",0),e.j41(1,"div",1)(2,"div",2),e.DNE(3,m2,1,7,"ngx-emoji",3),e.k0s(),e.j41(4,"div",4)(5,"span",5),e.EFF(6),e.k0s()(),e.j41(7,"div",6)(8,"emoji-skins",7),e.bIt("changeSkin",function(u){return l.skinChange.emit(u)}),e.k0s()()()),2&t&&(e.Y8G("ngIf",l.emoji&&l.emojiData),e.R7$(),e.Y8G("hidden",l.emoji),e.R7$(2),e.Y8G("ngIf",l.idleEmoji&&l.idleEmoji.length),e.R7$(3),e.JRh(l.title),e.R7$(2),e.Y8G("skin",l.emojiSkin)("i18n",l.i18n))},dependencies:[_.MD,_.Sq,_.bT,E1,y4],encapsulation:2,changeDetection:0})}return n})(),u0=0,$4=(()=>{class n{ngZone;emojiSearch;maxResults=75;autoFocus=!1;i18n;include=[];exclude=[];custom=[];icons;emojisToShowFilter;searchResults=new e.bkB;enterKeyOutsideAngular=new e.bkB;inputRef;isSearching=!1;icon;query="";inputId="emoji-mart-search-"+ ++u0;destroy$=new S.B;constructor(c,t){this.ngZone=c,this.emojiSearch=t}ngOnInit(){this.icon=this.icons.search,this.setupKeyupListener()}ngAfterViewInit(){this.autoFocus&&this.inputRef.nativeElement.focus()}ngOnDestroy(){this.destroy$.next()}clear(){this.query="",this.handleSearch(""),this.inputRef.nativeElement.focus()}handleSearch(c){""===c?(this.icon=this.icons.search,this.isSearching=!1):(this.icon=this.icons.delete,this.isSearching=!0);const t=this.emojiSearch.search(this.query,this.emojisToShowFilter,this.maxResults,this.include,this.exclude,this.custom);this.searchResults.emit(t)}handleChange(){this.handleSearch(this.query)}setupKeyupListener(){this.ngZone.runOutsideAngular(()=>f1(this.inputRef.nativeElement,"keyup").pipe((0,O1.Q)(this.destroy$)).subscribe(c=>{!this.query||"Enter"!==c.key||(this.enterKeyOutsideAngular.emit(c),c.preventDefault())}))}static \u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(n3))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-search"]],viewQuery:function(t,l){if(1&t&&e.GBs(N4,7),2&t){let i;e.mGM(i=e.lsd())&&(l.inputRef=i.first)}},inputs:{maxResults:"maxResults",autoFocus:"autoFocus",i18n:"i18n",include:"include",exclude:"exclude",custom:"custom",icons:"icons",emojisToShowFilter:"emojisToShowFilter"},outputs:{searchResults:"searchResults",enterKeyOutsideAngular:"enterKeyOutsideAngular"},standalone:!0,features:[e.aNF],decls:8,vars:9,consts:[["inputRef",""],[1,"emoji-mart-search"],["type","search",3,"ngModelChange","id","placeholder","autofocus","ngModel"],[1,"emoji-mart-sr-only",3,"htmlFor"],["type","button",1,"emoji-mart-search-icon",3,"click","keyup.enter","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","width","13","height","13","opacity","0.5"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",1)(1,"input",2,0),e.mxI("ngModelChange",function(C){return e.eBV(i),e.DH7(l.query,C)||(l.query=C),e.Njj(C)}),e.bIt("ngModelChange",function(){return e.eBV(i),e.Njj(l.handleChange())}),e.k0s(),e.j41(3,"label",3),e.EFF(4),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return e.eBV(i),e.Njj(l.clear())})("keyup.enter",function(){return e.eBV(i),e.Njj(l.clear())}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path"),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("id",l.inputId)("placeholder",l.i18n.search)("autofocus",l.autoFocus),e.R50("ngModel",l.query),e.R7$(2),e.Y8G("htmlFor",l.inputId),e.R7$(),e.SpI(" ",l.i18n.search," "),e.R7$(),e.Y8G("disabled",!l.isSearching),e.BMQ("aria-label",l.i18n.clear),e.R7$(2),e.BMQ("d",l.icon))},dependencies:[p.YN,p.me,p.BC,p.vS],encapsulation:2})}return n})();const L0={activity:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m10 11h-5c.3-2.5 1.3-4.8 2-6.1a10 10 0 0 1 3 6.1m-9 0V2a10 10 0 0 1 4.4 1.6A18 18 0 0 0 15 11h-2zm-2 0H9a18 18 0 0 0-2.4-7.4A10 10 0 0 1 11 2.1V11zm0 2v9a10 10 0 0 1-4.4-1.6A18 18 0 0 0 9 13h2zm4 0a18 18 0 0 0 2.4 7.4 10 10 0 0 1-4.4 1.5V13h2zM5 4.9c.7 1.3 1.7 3.6 2 6.1H2a10 10 0 0 1 3-6.1M2 13h5c-.3 2.5-1.3 4.8-2 6.1A10 10 0 0 1 2 13m17 6.1c-.7-1.3-1.7-3.6-2-6.1h5a10 10 0 0 1-3 6.1",custom:"M10 1h3v21h-3zm10.186 4l1.5 2.598L3.5 18.098 2 15.5zM2 7.598L3.5 5l18.186 10.5-1.5 2.598z",flags:"M0 0l6 24h2L2 0zm21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.6 3h7.8l2 8H8.6l-2-8zm8.8 10l-2.9 1.9-.4-1.9h3.3zm3.6 0l-1.5-6h2l2 8H16l3-2z",foods:"M17 5c-1.8 0-2.9.4-3.7 1 .5-1.3 1.8-3 4.7-3a1 1 0 0 0 0-2c-3 0-4.6 1.3-5.5 2.5l-.2.2c-.6-1.9-1.5-3.7-3-3.7C8.5 0 7.7.3 7 1c-2 1.5-1.7 2.9-.5 4C3.6 5.2 0 7.4 0 13c0 4.6 5 11 9 11 2 0 2.4-.5 3-1 .6.5 1 1 3 1 4 0 9-6.4 9-11 0-6-4-8-7-8M8.2 2.5c.7-.5 1-.5 1-.5.4.2 1 1.4 1.4 3-1.6-.6-2.8-1.3-3-1.8l.6-.7M15 22c-1 0-1.2-.1-1.6-.4l-.1-.2a2 2 0 0 0-2.6 0l-.1.2c-.4.3-.5.4-1.6.4-2.8 0-7-5.4-7-9 0-6 4.5-6 5-6 2 0 2.5.4 3.4 1.2l.3.3a2 2 0 0 0 2.6 0l.3-.3c1-.8 1.5-1.2 3.4-1.2.5 0 5 .1 5 6 0 3.6-4.2 9-7 9",nature:"M15.5 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-7 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m10.43-8h-.02c-.97 0-2.14.79-3.02 1.5A13.88 13.88 0 0 0 12 .99c-1.28 0-2.62.13-3.87.51C7.24.8 6.07 0 5.09 0h-.02C3.35 0 .07 2.67 0 7.03c-.04 2.47.28 4.23 1.04 5 .26.27.88.69 1.3.9.19 3.17.92 5.23 2.53 6.37.9.64 2.19.95 3.2 1.1-.03.2-.07.4-.07.6 0 1.77 2.35 3 4 3s4-1.23 4-3c0-.2-.04-.4-.07-.59 2.57-.38 5.43-1.87 5.92-7.58.4-.22.89-.57 1.1-.8.77-.76 1.09-2.52 1.05-5C23.93 2.67 20.65 0 18.93 0M3.23 9.13c-.24.29-.84 1.16-.9 1.24A9.67 9.67 0 0 1 2 7.08c.05-3.28 2.48-4.97 3.1-5.03.25.02.72.27 1.26.65A7.95 7.95 0 0 0 4 7.82c-.14.55-.4.86-.79 1.31M12 22c-.9 0-1.95-.7-2-1 0-.65.47-1.24 1-1.6v.6a1 1 0 1 0 2 0v-.6c.52.36 1 .95 1 1.6-.05.3-1.1 1-2 1m3-3.48v.02a4.75 4.75 0 0 0-1.26-1.02c1.09-.52 2.24-1.33 2.24-2.22 0-1.84-1.78-2.2-3.98-2.2s-3.98.36-3.98 2.2c0 .89 1.15 1.7 2.24 2.22A4.8 4.8 0 0 0 9 18.54v-.03a6.1 6.1 0 0 1-2.97-.84c-1.3-.92-1.84-3.04-1.86-6.48l.03-.04c.5-.82 1.49-1.45 1.8-3.1C6 6 7.36 4.42 8.36 3.53c1.01-.35 2.2-.53 3.59-.53 1.45 0 2.68.2 3.73.57 1 .9 2.32 2.46 2.32 4.48.31 1.65 1.3 2.27 1.8 3.1l.1.18c-.06 5.97-1.95 7.01-4.9 7.19m6.63-8.2l-.11-.2a7.59 7.59 0 0 0-.74-.98 3.02 3.02 0 0 1-.79-1.32 7.93 7.93 0 0 0-2.35-5.12c.53-.38 1-.63 1.26-.65.64.07 3.05 1.77 3.1 5.03.02 1.81-.35 3.22-.37 3.24",objects:"M12 0a9 9 0 0 0-5 16.5V21s2 3 5 3 5-3 5-3v-4.5A9 9 0 0 0 12 0zm0 2a7 7 0 1 1 0 14 7 7 0 0 1 0-14zM9 17.5a9 9 0 0 0 6 0v.8a7 7 0 0 1-3 .7 7 7 0 0 1-3-.7v-.8zm.2 3a8.9 8.9 0 0 0 2.8.5c1 0 1.9-.2 2.8-.5-.6.7-1.6 1.5-2.8 1.5-1.1 0-2.1-.8-2.8-1.5zm5.5-8.1c-.8 0-1.1-.8-1.5-1.8-.5-1-.7-1.5-1.2-1.5s-.8.5-1.3 1.5c-.4 1-.8 1.8-1.6 1.8h-.3c-.5-.2-.8-.7-1.3-1.8l-.2-1A3 3 0 0 0 7 9a1 1 0 0 1 0-2c1.7 0 2 1.4 2.2 2.1.5-1 1.3-2 2.8-2 1.5 0 2.3 1.1 2.7 2.1.2-.8.6-2.2 2.3-2.2a1 1 0 1 1 0 2c-.2 0-.3.5-.3.7a6.5 6.5 0 0 1-.3 1c-.5 1-.8 1.7-1.7 1.7",people:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20M8 7a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-.8 8c-.7 1.2-1.8 2-3.3 2-1.5 0-2.7-.8-3.4-2H15m3-2H6a6 6 0 1 0 12 0",places:"M6.5 12a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m11-3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m5-5.5l-1-.4-.1-.1h.6c.6 0 1-.4 1-1 0-1-.9-2-2-2h-.6l-.8-1.7A3 3 0 0 0 16.8 2H7.2a3 3 0 0 0-2.8 2.3L3.6 6H3a2 2 0 0 0-2 2c0 .6.4 1 1 1h.6v.1l-1 .4a2 2 0 0 0-1.4 2l.7 7.6a1 1 0 0 0 1 .9H3v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h6v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h1.1a1 1 0 0 0 1-.9l.7-7.5a2 2 0 0 0-1.3-2.1M6.3 4.9c.1-.5.5-.9 1-.9h9.5c.4 0 .8.4 1 .9L19.2 9H4.7l1.6-4.1zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.2-3H2.8l-.7-6.6.9-.4h18l.9.4-.7 6.6z",recent:"M13 4h-2v7H9v2h2v2h2v-2h4v-2h-4zm-1-4a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20",symbols:"M0 0h11v2H0zm4 11h3V6h4V4H0v2h4zm11.5 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5m0-2.99a.5.5 0 0 1 0 .99c-.28 0-.5-.22-.5-.5s.22-.49.5-.49m6 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 2.99a.5.5 0 0 1-.5-.5.5.5 0 0 1 1 .01.5.5 0 0 1-.5.49m.5-9l-9 9 1.51 1.5 9-9zm-5-2c2.2 0 4-1.12 4-2.5V2s.98-.16 1.5.95C23 4.05 23 6 23 6s1-1.12 1-3.13C24-.02 21 0 21 0h-2v6.35A5.85 5.85 0 0 0 17 6c-2.2 0-4 1.12-4 2.5s1.8 2.5 4 2.5m-6.7 9.48L8.82 18.9a47.54 47.54 0 0 1-1.44 1.13c-.3-.3-.99-1.02-2.04-2.19.9-.83 1.47-1.46 1.72-1.89s.38-.87.38-1.33c0-.6-.27-1.18-.82-1.76-.54-.58-1.33-.87-2.35-.87-1 0-1.79.29-2.34.87-.56.6-.83 1.18-.83 1.79 0 .81.42 1.75 1.25 2.8a6.57 6.57 0 0 0-1.8 1.79 3.46 3.46 0 0 0-.51 1.83c0 .86.3 1.56.92 2.1a3.5 3.5 0 0 0 2.42.83c1.17 0 2.44-.38 3.81-1.14L8.23 24h2.82l-2.09-2.38 1.34-1.14zM3.56 14.1a1.02 1.02 0 0 1 .73-.28c.31 0 .56.08.75.25a.85.85 0 0 1 .28.66c0 .52-.42 1.11-1.26 1.78-.53-.65-.8-1.23-.8-1.74a.9.9 0 0 1 .3-.67m.18 7.9c-.43 0-.78-.12-1.06-.35-.28-.23-.41-.49-.41-.76 0-.6.5-1.3 1.52-2.09a31.23 31.23 0 0 0 2.25 2.44c-.92.5-1.69.76-2.3.76"},S0={search:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z",delete:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"},l3={search:"Search",emojilist:"List of emoji",notfound:"No Emoji Found",clear:"Clear",categories:{search:"Search Results",recent:"Frequently Used",people:"Smileys & People",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"},skintones:{1:"Default Skin Tone",2:"Light Skin Tone",3:"Medium-Light Skin Tone",4:"Medium Skin Tone",5:"Medium-Dark Skin Tone",6:"Dark Skin Tone"}};let T0=(()=>{class n{ngZone;renderer;ref;frequently;platformId;perLine=9;totalFrequentLines=4;i18n={};style={};title="Emoji Mart\u2122";emoji="department_store";darkMode=!("function"!=typeof matchMedia||!matchMedia("(prefers-color-scheme: dark)").matches);color="#ae65c5";hideObsolete=!0;categories=[];activeCategories=[];set="apple";skin=1;isNative=!1;emojiSize=24;sheetSize=64;emojisToShowFilter;showPreview=!0;emojiTooltip=!1;autoFocus=!1;custom=[];hideRecent=!0;imageUrlFn;include;exclude;notFoundEmoji="sleuth_or_spy";categoriesIcons=L0;searchIcons=S0;useButton=!1;enableFrequentEmojiSort=!1;enableSearch=!0;showSingleCategory=!1;virtualize=!1;virtualizeOffset=0;recent;emojiClick=new e.bkB;emojiSelect=new e.bkB;skinChange=new e.bkB;scrollRef;previewRef;searchRef;categoryRefs;scrollHeight=0;clientHeight=0;clientWidth=0;selected;nextScroll;scrollTop;firstRender=!0;previewEmoji=null;animationFrameRequestId=null;NAMESPACE="emoji-mart";measureScrollbar=0;RECENT_CATEGORY={id:"recent",name:"Recent",emojis:null};SEARCH_CATEGORY={id:"search",name:"Search",emojis:null,anchor:!1};CUSTOM_CATEGORY={id:"custom",name:"Custom",emojis:[]};scrollListener;backgroundImageFn=(c,t)=>`https://cdn.jsdelivr.net/npm/emoji-datasource-${c}@14.0.0/img/${c}/sheets-256/${t}.png`;constructor(c,t,l,i,u){this.ngZone=c,this.renderer=t,this.ref=l,this.frequently=i,this.platformId=u}ngOnInit(){this.measureScrollbar=function Y2(){if(typeof document>"u")return 0;const n=document.createElement("div");n.style.width="100px",n.style.height="100px",n.style.overflow="scroll",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const a=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),a}(),this.i18n={...l3,...this.i18n},this.i18n.categories={...l3.categories,...this.i18n.categories},this.skin=JSON.parse((0,_.UE)(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.skin`)||"null")||this.skin;const c=[...Z0];this.custom.length>0&&(this.CUSTOM_CATEGORY.emojis=this.custom.map(C=>({...C,id:C.shortNames[0],custom:!0})),c.push(this.CUSTOM_CATEGORY)),void 0!==this.include&&c.sort((C,b)=>this.include.indexOf(C.id)>this.include.indexOf(b.id)?1:-1);for(const C of c){const b=!this.include||!this.include.length||this.include.indexOf(C.id)>-1,T=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(C.id)>-1;if(b&&!T){if(this.emojisToShowFilter){const W=[],{emojis:u1}=C;for(let a1=0;a1-1,l=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(this.RECENT_CATEGORY.id)>-1;t&&!l&&(this.hideRecent=!1,this.categories.unshift(this.RECENT_CATEGORY)),this.categories[0]&&(this.categories[0].first=!0),this.categories.unshift(this.SEARCH_CATEGORY),this.selected=this.categories.filter(C=>C.first)[0].name;const i=Math.min(this.categories.length,3);this.setActiveCategories(this.activeCategories=this.categories.slice(0,i));const u=this.categories[i-1].emojis.slice();this.categories[i-1].emojis=u.slice(0,60),setTimeout(()=>{this.categories[i-1].emojis=u,this.setActiveCategories(this.categories),this.ref.detectChanges(),(0,_.UE)(this.platformId)&&this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.updateCategoriesSize()})})}),this.ngZone.runOutsideAngular(()=>{this.scrollListener=this.renderer.listen(this.scrollRef.nativeElement,"scroll",()=>{this.handleScroll()})})}ngOnDestroy(){this.scrollListener?.(),this.cancelAnimationFrame()}setActiveCategories(c){this.activeCategories=this.showSingleCategory?c.filter(t=>t.name===this.selected||t===this.SEARCH_CATEGORY):c}updateCategoriesSize(){if(this.categoryRefs.forEach(c=>c.memoizeSize()),this.scrollRef){const c=this.scrollRef.nativeElement;this.scrollHeight=c.scrollHeight,this.clientHeight=c.clientHeight,this.clientWidth=c.clientWidth}}handleAnchorClick(c){if(this.updateCategoriesSize(),this.selected=c.category.name,this.setActiveCategories(this.categories),this.SEARCH_CATEGORY.emojis)return this.handleSearch(null),this.searchRef?.clear(),void this.handleAnchorClick(c);const t=this.categoryRefs.find(l=>l.id===c.category.id);if(t){let{top:l}=t;c.category.first?l=0:l+=1,this.scrollRef.nativeElement.scrollTop=l}this.nextScroll=c.category.name;for(const l of this.categories)this.categoryRefs.find(({id:u})=>u===l.id)?.handleScroll(this.scrollRef.nativeElement.scrollTop)}categoryTrack(c,t){return t.id}handleScroll(c=!1){if(this.nextScroll)return this.selected=this.nextScroll,this.nextScroll=void 0,void this.ref.detectChanges();if(!this.scrollRef||this.showSingleCategory)return;let t;if(this.SEARCH_CATEGORY.emojis)t=this.SEARCH_CATEGORY;else{const l=this.scrollRef.nativeElement;if(0===l.scrollTop)t=this.categories.find(i=>!0===i.first);else if(l.scrollHeight-l.scrollTop===this.clientHeight)t=this.categories[this.categories.length-1];else for(const i of this.categories)this.categoryRefs.find(({id:b})=>b===i.id)?.handleScroll(l.scrollTop)&&(t=i);this.scrollTop=l.scrollTop}!c&&t&&t.name!==this.selected?(this.selected=t.name,this.ref.detectChanges()):c&&this.ref.detectChanges()}handleSearch(c){this.SEARCH_CATEGORY.emojis=c;for(const t of this.categoryRefs.toArray())"Search"===t.name?(t.emojis=c,t.updateDisplay(c?"block":"none")):t.updateDisplay(c?"none":"block");this.scrollRef.nativeElement.scrollTop=0,this.handleScroll()}handleEnterKey(c,t){if(!t&&null!==this.SEARCH_CATEGORY.emojis&&this.SEARCH_CATEGORY.emojis.length){if(!(t=this.SEARCH_CATEGORY.emojis[0]))return;V4(this.emojiSelect,this.ngZone,{$event:c,emoji:t})}!this.hideRecent&&!this.recent&&t&&this.frequently.add(t);const l=this.categoryRefs.toArray()[1];l&&this.enableFrequentEmojiSort&&this.ngZone.run(()=>{l.updateRecentEmojis(),l.ref.markForCheck()})}handleEmojiOver(c){if(!this.showPreview||!this.previewRef)return;const t=this.CUSTOM_CATEGORY.emojis.find(l=>l.id===c.emoji.id);t&&(c.emoji={...t}),this.previewEmoji=c.emoji,this.cancelAnimationFrame(),this.ref.detectChanges()}handleEmojiLeave(){!this.showPreview||!this.previewRef||(this.animationFrameRequestId=requestAnimationFrame(()=>{this.previewEmoji=null,this.ref.detectChanges()}))}handleEmojiClick(c){V4(this.emojiClick,this.ngZone,c),V4(this.emojiSelect,this.ngZone,c),this.handleEnterKey(c.$event,c.emoji)}handleSkinChange(c){this.skin=c,localStorage.setItem(`${this.NAMESPACE}.skin`,String(c)),this.skinChange.emit(c)}getWidth(){return this.style&&this.style.width?this.style.width:this.perLine*(this.emojiSize+12)+12+2+this.measureScrollbar+"px"}cancelAnimationFrame(){null!==this.animationFrameRequestId&&(cancelAnimationFrame(this.animationFrameRequestId),this.animationFrameRequestId=null)}static \u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(e.sFG),e.rXU(e.gRc),e.rXU(c0),e.rXU(e.Agw))};static \u0275cmp=e.VBU({type:n,selectors:[["emoji-mart"]],viewQuery:function(t,l){if(1&t&&(e.GBs(m4,7),e.GBs(H4,5),e.GBs($4,5),e.GBs(f0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.scrollRef=i.first),e.mGM(i=e.lsd())&&(l.previewRef=i.first),e.mGM(i=e.lsd())&&(l.searchRef=i.first),e.mGM(i=e.lsd())&&(l.categoryRefs=i)}},inputs:{perLine:"perLine",totalFrequentLines:"totalFrequentLines",i18n:"i18n",style:"style",title:"title",emoji:"emoji",darkMode:"darkMode",color:"color",hideObsolete:"hideObsolete",categories:"categories",activeCategories:"activeCategories",set:"set",skin:"skin",isNative:"isNative",emojiSize:"emojiSize",sheetSize:"sheetSize",emojisToShowFilter:"emojisToShowFilter",showPreview:"showPreview",emojiTooltip:"emojiTooltip",autoFocus:"autoFocus",custom:"custom",hideRecent:"hideRecent",imageUrlFn:"imageUrlFn",include:"include",exclude:"exclude",notFoundEmoji:"notFoundEmoji",categoriesIcons:"categoriesIcons",searchIcons:"searchIcons",useButton:"useButton",enableFrequentEmojiSort:"enableFrequentEmojiSort",enableSearch:"enableSearch",showSingleCategory:"showSingleCategory",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",recent:"recent",backgroundImageFn:"backgroundImageFn"},outputs:{emojiClick:"emojiClick",emojiSelect:"emojiSelect",skinChange:"skinChange"},standalone:!0,features:[e.aNF],decls:8,vars:16,consts:[["scrollRef",""],[3,"ngStyle"],[1,"emoji-mart-bar"],[3,"anchorClick","categories","color","selected","i18n","icons"],[3,"i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter","searchResults","enterKeyOutsideAngular",4,"ngIf"],[1,"emoji-mart-scroll"],[3,"id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton","emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular",4,"ngFor","ngForOf","ngForTrackBy"],["class","emoji-mart-bar",4,"ngIf"],[3,"searchResults","enterKeyOutsideAngular","i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter"],[3,"emojiOverOutsideAngular","emojiLeaveOutsideAngular","emojiClickOutsideAngular","id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton"],[3,"skinChange","emoji","idleEmoji","emojiIsNative","emojiSize","emojiSkin","emojiSet","i18n","emojiSheetSize","emojiBackgroundImageFn","emojiImageUrlFn"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"section",1)(1,"div",2)(2,"emoji-mart-anchors",3),e.bIt("anchorClick",function(C){return e.eBV(i),e.Njj(l.handleAnchorClick(C))}),e.k0s()(),e.DNE(3,B3,1,7,"emoji-search",4),e.j41(4,"section",5,0),e.DNE(6,t3,1,23,"emoji-category",6),e.k0s(),e.DNE(7,E6,2,11,"div",7),e.k0s()}2&t&&(e.ZvI("emoji-mart ",l.darkMode?"emoji-mart-dark":"",""),e.xc7("width",l.getWidth()),e.Y8G("ngStyle",l.style),e.R7$(2),e.Y8G("categories",l.categories)("color",l.color)("selected",l.selected)("i18n",l.i18n)("icons",l.categoriesIcons),e.R7$(),e.Y8G("ngIf",l.enableSearch),e.R7$(),e.BMQ("aria-label",l.i18n.emojilist),e.R7$(2),e.Y8G("ngForOf",l.activeCategories)("ngForTrackBy",l.categoryTrack),e.R7$(),e.Y8G("ngIf",l.showPreview))},dependencies:[_.MD,_.Sq,_.bT,_.B3,q4,$4,H4,f0],encapsulation:2,changeDetection:0})}return n})();function V4(n,a,c){n.observed&&a.run(()=>n.emit(c))}var J2=y(60),s1=y(3955),x1=y(8359);class m1 extends x1.yU{constructor(a,c){super()}schedule(a,c=0){return this}}const D1={setInterval(n,a,...c){const{delegate:t}=D1;return t?.setInterval?t.setInterval(n,a,...c):setInterval(n,a,...c)},clearInterval(n){const{delegate:a}=D1;return(a?.clearInterval||clearInterval)(n)},delegate:void 0};var Z1=y(7908),b2=y(6129);class U0{constructor(a,c=U0.now){this.schedulerActionCtor=a,this.now=c}schedule(a,c=0,t){return new this.schedulerActionCtor(this,a).schedule(t,c)}}U0.now=b2.U.now;const t4=new class m0 extends U0{constructor(a,c=U0.now){super(a,c),this.actions=[],this._active=!1}flush(a){const{actions:c}=this;if(this._active)return void c.push(a);let t;this._active=!0;do{if(t=a.execute(a.state,a.delay))break}while(a=c.shift());if(this._active=!1,t){for(;a=c.shift();)a.unsubscribe();throw t}}}(class F2 extends m1{constructor(a,c){super(a,c),this.scheduler=a,this.work=c,this.pending=!1}schedule(a,c=0){var t;if(this.closed)return this;this.state=a;const l=this.id,i=this.scheduler;return null!=l&&(this.id=this.recycleAsyncId(i,l,c)),this.pending=!0,this.delay=c,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(i,this.id,c),this}requestAsyncId(a,c,t=0){return D1.setInterval(a.flush.bind(a,this),t)}recycleAsyncId(a,c,t=0){if(null!=t&&this.delay===t&&!1===this.pending)return c;null!=c&&D1.clearInterval(c)}execute(a,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const t=this._execute(a,c);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,c){let l,t=!1;try{this.work(a)}catch(i){t=!0,l=i||new Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),l}unsubscribe(){if(!this.closed){const{id:a,scheduler:c}=this,{actions:t}=c;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Z1.o)(t,this),null!=a&&(this.id=this.recycleAsyncId(c,a,null)),this.delay=null,super.unsubscribe()}}}),N3=t4;var z4=y(9470);function F4(n=0,a,c=N3){let t=-1;return null!=a&&((0,z4.m)(a)?c=a:t=a),new Z.c(l=>{let i=function r4(n){return n instanceof Date&&!isNaN(n)}(n)?+n-c.now():n;i<0&&(i=0);let u=0;return c.schedule(function(){l.closed||(l.next(u++),0<=t?this.schedule(void 0,t):l.complete())},i)})}const I2=["fileSelector"],C0=n=>({openFileSelector:n});function B2(n,a){if(1&n&&(e.j41(0,"div",8),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.dropZoneLabel)}}function p4(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"input",9),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.openFileSelector(l))}),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("value",c.browseBtnLabel),e.Y8G("className",c.browseBtnClassName)}}function M4(n,a){if(1&n&&e.DNE(0,B2,2,1,"div",6)(1,p4,2,2,"div",7),2&n){const c=e.XpG();e.Y8G("ngIf",c.dropZoneLabel),e.R7$(),e.Y8G("ngIf",c.showBrowseBtn)}}function u6(n,a){}class c6{constructor(a,c){this.relativePath=a,this.fileEntry=c}}let R4=(()=>{class n{constructor(c){this.template=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:n,selectors:[["","ngx-file-drop-content-tmp",""]]})}}return n})(),z0=(()=>{class n{get disabled(){return this._disabled}set disabled(c){this._disabled=null!=c&&"false"!=`${c}`}constructor(c,t){this.zone=c,this.renderer=t,this.accept="*",this.directory=!1,this.multiple=!0,this.dropZoneLabel="",this.dropZoneClassName="ngx-file-drop__drop-zone",this.useDragEnter=!1,this.contentClassName="ngx-file-drop__content",this.showBrowseBtn=!1,this.browseBtnClassName="btn btn-primary btn-xs ngx-file-drop__browse-btn",this.browseBtnLabel="Browse files",this.onFileDrop=new e.bkB,this.onFileOver=new e.bkB,this.onFileLeave=new e.bkB,this.isDraggingOverDropZone=!1,this.globalDraggingInProgress=!1,this.files=[],this.numOfActiveReadEntries=0,this.helperFormEl=null,this.fileInputPlaceholderEl=null,this.dropEventTimerSubscription=null,this._disabled=!1,this.openFileSelector=l=>{this.fileSelector&&this.fileSelector.nativeElement&&this.fileSelector.nativeElement.click()},this.globalDragStartListener=this.renderer.listen("document","dragstart",l=>{this.globalDraggingInProgress=!0}),this.globalDragEndListener=this.renderer.listen("document","dragend",l=>{this.globalDraggingInProgress=!1})}ngOnDestroy(){this.dropEventTimerSubscription&&(this.dropEventTimerSubscription.unsubscribe(),this.dropEventTimerSubscription=null),this.globalDragStartListener(),this.globalDragEndListener(),this.files=[],this.helperFormEl=null,this.fileInputPlaceholderEl=null}onDragOver(c){this.useDragEnter?(this.preventAndStop(c),c.dataTransfer&&(c.dataTransfer.dropEffect="copy")):!this.isDropzoneDisabled()&&!this.useDragEnter&&c.dataTransfer&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(c)),this.preventAndStop(c),c.dataTransfer.dropEffect="copy")}onDragEnter(c){!this.isDropzoneDisabled()&&this.useDragEnter&&(this.isDraggingOverDropZone||(this.isDraggingOverDropZone=!0,this.onFileOver.emit(c)),this.preventAndStop(c))}onDragLeave(c){this.isDropzoneDisabled()||(this.isDraggingOverDropZone&&(this.isDraggingOverDropZone=!1,this.onFileLeave.emit(c)),this.preventAndStop(c))}dropFiles(c){if(!this.isDropzoneDisabled()&&(this.isDraggingOverDropZone=!1,c.dataTransfer)){let t;t=c.dataTransfer.items?c.dataTransfer.items:c.dataTransfer.files,this.preventAndStop(c),this.checkFiles(t)}}uploadFiles(c){!this.isDropzoneDisabled()&&c.target&&(this.checkFiles(c.target.files||[]),this.resetFileInput())}getFakeDropEntry(c){const t={name:c.name,isDirectory:!1,isFile:!0,file:l=>l(c)};return new c6(t.name,t)}checkFile(c){if(c){if("webkitGetAsEntry"in c){let t=c.webkitGetAsEntry();if(t){if(t.isFile){const l=new c6(t.name,t);this.addToQueue(l)}else t.isDirectory&&this.traverseFileTree(t,t.name);return}}this.addToQueue(this.getFakeDropEntry(c))}}checkFiles(c){for(let t=0;t{if(this.files.length>0&&0===this.numOfActiveReadEntries){const t=this.files;this.files=[],this.onFileDrop.emit(t)}})}traverseFileTree(c,t){if(c.isFile){const l=new c6(t,c);this.files.push(l)}else{t+="/";const l=c.createReader();let i=[];const u=()=>{this.numOfActiveReadEntries++,l.readEntries(C=>{if(C.length)i=i.concat(C),u();else if(0===i.length){const b=new c6(t,c);this.zone.run(()=>{this.addToQueue(b)})}else for(let b=0;b{this.traverseFileTree(i[b],t+i[b].name)});this.numOfActiveReadEntries--})};u()}}resetFileInput(){if(this.fileSelector&&this.fileSelector.nativeElement){const c=this.fileSelector.nativeElement,t=c.parentElement,l=this.getHelperFormElement(),i=this.getFileInputPlaceholderElement();t!==l&&(this.renderer.insertBefore(t,i,c),this.renderer.appendChild(l,c),l.reset(),this.renderer.insertBefore(t,c,i),this.renderer.removeChild(t,i))}}getHelperFormElement(){return this.helperFormEl||(this.helperFormEl=this.renderer.createElement("form")),this.helperFormEl}getFileInputPlaceholderElement(){return this.fileInputPlaceholderEl||(this.fileInputPlaceholderEl=this.renderer.createElement("div")),this.fileInputPlaceholderEl}isDropzoneDisabled(){return this.globalDraggingInProgress||this.disabled}addToQueue(c){this.files.push(c)}preventAndStop(c){c.stopPropagation(),c.preventDefault()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.SKi),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["ngx-file-drop"]],contentQueries:function(t,l,i){if(1&t&&e.wni(i,R4,5,e.C4Q),2&t){let u;e.mGM(u=e.lsd())&&(l.contentTemplate=u.first)}},viewQuery:function(t,l){if(1&t&&e.GBs(I2,7),2&t){let i;e.mGM(i=e.lsd())&&(l.fileSelector=i.first)}},inputs:{accept:"accept",directory:"directory",multiple:"multiple",dropZoneLabel:"dropZoneLabel",dropZoneClassName:"dropZoneClassName",useDragEnter:"useDragEnter",contentClassName:"contentClassName",showBrowseBtn:"showBrowseBtn",browseBtnClassName:"browseBtnClassName",browseBtnLabel:"browseBtnLabel",disabled:"disabled"},outputs:{onFileDrop:"onFileDrop",onFileOver:"onFileOver",onFileLeave:"onFileLeave"},decls:7,vars:15,consts:[["fileSelector",""],["defaultContentTemplate",""],[3,"drop","dragover","dragenter","dragleave","className"],[3,"className"],["type","file",1,"ngx-file-drop__file-input",3,"change","accept","multiple"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","ngx-file-drop__drop-zone-label",4,"ngIf"],[4,"ngIf"],[1,"ngx-file-drop__drop-zone-label"],["type","button",3,"click","className","value"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2),e.bIt("drop",function(C){return e.eBV(i),e.Njj(l.dropFiles(C))})("dragover",function(C){return e.eBV(i),e.Njj(l.onDragOver(C))})("dragenter",function(C){return e.eBV(i),e.Njj(l.onDragEnter(C))})("dragleave",function(C){return e.eBV(i),e.Njj(l.onDragLeave(C))}),e.j41(1,"div",3)(2,"input",4,0),e.bIt("change",function(C){return e.eBV(i),e.Njj(l.uploadFiles(C))}),e.k0s(),e.DNE(4,M4,2,2,"ng-template",null,1,e.C5r)(6,u6,0,0,"ng-template",5),e.k0s()()}if(2&t){const i=e.sdS(5);e.AVh("ngx-file-drop__drop-zone--over",l.isDraggingOverDropZone),e.Y8G("className",l.dropZoneClassName),e.R7$(),e.Y8G("className",l.contentClassName),e.R7$(),e.Y8G("accept",l.accept)("multiple",l.multiple),e.BMQ("directory",l.directory||void 0)("webkitdirectory",l.directory||void 0)("mozdirectory",l.directory||void 0)("msdirectory",l.directory||void 0)("odirectory",l.directory||void 0),e.R7$(4),e.Y8G("ngTemplateOutlet",l.contentTemplate||i)("ngTemplateOutletContext",e.eq3(13,C0,l.openFileSelector))}},dependencies:[_.bT,_.T3],styles:[".ngx-file-drop__drop-zone[_ngcontent-%COMP%]{height:100px;margin:auto;border:2px dotted #0782d0;border-radius:30px}.ngx-file-drop__drop-zone--over[_ngcontent-%COMP%]{background-color:#93939380}.ngx-file-drop__content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100px;color:#0782d0}.ngx-file-drop__drop-zone-label[_ngcontent-%COMP%]{text-align:center}.ngx-file-drop__file-input[_ngcontent-%COMP%]{display:none}"]})}}return n})(),m6=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n,bootstrap:[z0]})}static{this.\u0275inj=e.G2t({imports:[_.MD]})}}return n})();var Y4=y(8944),C1=y(467),E3=y(6365),z3=y(9326),p6=y(6648);var o1=y(7673),b1=y(3703),F1=y(3669),J1=y(9974),q1=y(4360);function u2(n,a=F1.D){return n=n??h2,(0,J1.N)((c,t)=>{let l,i=!0;c.subscribe((0,q1._)(t,u=>{const C=a(u);(i||!n(l,C))&&(i=!1,l=C,t.next(u))}))})}function h2(n,a){return n===a}var M0=y(253),X2=y(9172),P2=y(6354);y(1594);let P0={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function o4(n){P0=n}const v4=/[&<>"']/,R0=new RegExp(v4.source,"g"),A0=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,A4=new RegExp(A0.source,"g"),W4={"&":"&","<":"<",">":">",'"':""","'":"'"},d4=n=>W4[n];function c4(n,a){if(a){if(v4.test(n))return n.replace(R0,d4)}else if(A0.test(n))return n.replace(A4,d4);return n}const I4=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,a0=/(^|[^\[])\^/g;function H2(n,a){n="string"==typeof n?n:n.source,a=a||"";const c={replace:(t,l)=>(l=(l="object"==typeof l&&"source"in l?l.source:l).replace(a0,"$1"),n=n.replace(t,l),c),getRegex:()=>new RegExp(n,a)};return c}function p8(n){try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const a3={exec:()=>null};function h6(n,a){const t=n.replace(/\|/g,(i,u,C)=>{let b=!1,T=u;for(;--T>=0&&"\\"===C[T];)b=!b;return b?"|":" |"}).split(/ \|/);let l=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),a)if(t.length>a)t.splice(a);else for(;t.length0)return{type:"space",raw:c[0]}}code(a){const c=this.rules.block.code.exec(a);if(c){const t=c[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:c[0],codeBlockStyle:"indented",text:this.options.pedantic?t:T6(t,"\n")}}}fences(a){const c=this.rules.block.fences.exec(a);if(c){const t=c[0],l=function b0(n,a){const c=n.match(/^(\s+)(?:```)/);if(null===c)return a;const t=c[1];return a.split("\n").map(l=>{const i=l.match(/^\s+/);if(null===i)return l;const[u]=i;return u.length>=t.length?l.slice(t.length):l}).join("\n")}(t,c[3]||"");return{type:"code",raw:t,lang:c[2]?c[2].trim().replace(this.rules.inline._escapes,"$1"):c[2],text:l}}}heading(a){const c=this.rules.block.heading.exec(a);if(c){let t=c[2].trim();if(/#$/.test(t)){const l=T6(t,"#");(this.options.pedantic||!l||/ $/.test(l))&&(t=l.trim())}return{type:"heading",raw:c[0],depth:c[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(a){const c=this.rules.block.hr.exec(a);if(c)return{type:"hr",raw:c[0]}}blockquote(a){const c=this.rules.block.blockquote.exec(a);if(c){const t=T6(c[0].replace(/^ *>[ \t]?/gm,""),"\n"),l=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(t);return this.lexer.state.top=l,{type:"blockquote",raw:c[0],tokens:i,text:t}}}list(a){let c=this.rules.block.list.exec(a);if(c){let t=c[1].trim();const l=t.length>1,i={type:"list",raw:"",ordered:l,start:l?+t.slice(0,-1):"",loose:!1,items:[]};t=l?`\\d{1,9}\\${t.slice(-1)}`:`\\${t}`,this.options.pedantic&&(t=l?t:"[*+-]");const u=new RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`);let C="",b="",T=!1;for(;a;){let W=!1;if(!(c=u.exec(a))||this.rules.block.hr.test(a))break;C=c[0],a=a.substring(C.length);let u1=c[2].split("\n",1)[0].replace(/^\t+/,G2=>" ".repeat(3*G2.length)),a1=a.split("\n",1)[0],T1=0;this.options.pedantic?(T1=2,b=u1.trimStart()):(T1=c[2].search(/[^ ]/),T1=T1>4?1:T1,b=u1.slice(T1),T1+=c[1].length);let Y1=!1;if(!u1&&/^ *$/.test(a1)&&(C+=a1+"\n",a=a.substring(a1.length+1),W=!0),!W){const G2=new RegExp(`^ {0,${Math.min(3,T1-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),N2=new RegExp(`^ {0,${Math.min(3,T1-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a4=new RegExp(`^ {0,${Math.min(3,T1-1)}}(?:\`\`\`|~~~)`),B0=new RegExp(`^ {0,${Math.min(3,T1-1)}}#`);for(;a;){const K0=a.split("\n",1)[0];if(a1=K0,this.options.pedantic&&(a1=a1.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),a4.test(a1)||B0.test(a1)||G2.test(a1)||N2.test(a))break;if(a1.search(/[^ ]/)>=T1||!a1.trim())b+="\n"+a1.slice(T1);else{if(Y1||u1.search(/[^ ]/)>=4||a4.test(u1)||B0.test(u1)||N2.test(u1))break;b+="\n"+a1}!Y1&&!a1.trim()&&(Y1=!0),C+=K0+"\n",a=a.substring(K0.length+1),u1=a1.slice(T1)}}i.loose||(T?i.loose=!0:/\n *\n *$/.test(C)&&(T=!0));let M2,f2=null;this.options.gfm&&(f2=/^\[[ xX]\] /.exec(b),f2&&(M2="[ ] "!==f2[0],b=b.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:C,task:!!f2,checked:M2,loose:!1,text:b,tokens:[]}),i.raw+=C}i.items[i.items.length-1].raw=C.trimEnd(),i.items[i.items.length-1].text=b.trimEnd(),i.raw=i.raw.trimEnd();for(let W=0;W"space"===T1.type),a1=u1.length>0&&u1.some(T1=>/\n.*\n/.test(T1.raw));i.loose=a1}if(i.loose)for(let W=0;W$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline._escapes,"$1"):c[3];return{type:"def",tag:t,raw:c[0],href:l,title:i}}}table(a){const c=this.rules.block.table.exec(a);if(c){if(!/[:|]/.test(c[2]))return;const t={type:"table",raw:c[0],header:h6(c[1]).map(l=>({text:l,tokens:[]})),align:c[2].replace(/^\||\| *$/g,"").split("|"),rows:c[3]&&c[3].trim()?c[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(t.header.length===t.align.length){let i,u,C,b,l=t.align.length;for(i=0;i({text:T,tokens:[]}));for(l=t.header.length,u=0;u/i.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(a){const c=this.rules.inline.link.exec(a);if(c){const t=c[2].trim();if(!this.options.pedantic&&/^$/.test(t))return;const u=T6(t.slice(0,-1),"\\");if((t.length-u.length)%2==0)return}else{const u=function R8(n,a){if(-1===n.indexOf(a[1]))return-1;let c=0;for(let t=0;t-1){const b=(0===c[0].indexOf("!")?5:4)+c[1].length+u;c[2]=c[2].substring(0,u),c[0]=c[0].substring(0,b).trim(),c[3]=""}}let l=c[2],i="";if(this.options.pedantic){const u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);u&&(l=u[1],i=u[3])}else i=c[3]?c[3].slice(1,-1):"";return l=l.trim(),/^$/.test(t)?l.slice(1):l.slice(1,-1)),t6(c,{href:l&&l.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},c[0],this.lexer)}}reflink(a,c){let t;if((t=this.rules.inline.reflink.exec(a))||(t=this.rules.inline.nolink.exec(a))){let l=(t[2]||t[1]).replace(/\s+/g," ");if(l=c[l.toLowerCase()],!l){const i=t[0].charAt(0);return{type:"text",raw:i,text:i}}return t6(t,l,t[0],this.lexer)}}emStrong(a,c,t=""){let l=this.rules.inline.emStrong.lDelim.exec(a);if(!(!l||l[3]&&t.match(/[\p{L}\p{N}]/u))&&(!l[1]&&!l[2]||!t||this.rules.inline.punctuation.exec(t))){const u=[...l[0]].length-1;let C,b,T=u,W=0;const u1="*"===l[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(u1.lastIndex=0,c=c.slice(-1*a.length+u);null!=(l=u1.exec(c));){if(C=l[1]||l[2]||l[3]||l[4]||l[5]||l[6],!C)continue;if(b=[...C].length,l[3]||l[4]){T+=b;continue}if((l[5]||l[6])&&u%3&&!((u+b)%3)){W+=b;continue}if(T-=b,T>0)continue;b=Math.min(b,b+T+W);const a1=[...l[0]][0].length,T1=a.slice(0,u+l.index+a1+b);if(Math.min(u,b)%2){const f2=T1.slice(1,-1);return{type:"em",raw:T1,text:f2,tokens:this.lexer.inlineTokens(f2)}}const Y1=T1.slice(2,-2);return{type:"strong",raw:T1,text:Y1,tokens:this.lexer.inlineTokens(Y1)}}}}codespan(a){const c=this.rules.inline.code.exec(a);if(c){let t=c[2].replace(/\n/g," ");const l=/[^ ]/.test(t),i=/^ /.test(t)&&/ $/.test(t);return l&&i&&(t=t.substring(1,t.length-1)),t=c4(t,!0),{type:"codespan",raw:c[0],text:t}}}br(a){const c=this.rules.inline.br.exec(a);if(c)return{type:"br",raw:c[0]}}del(a){const c=this.rules.inline.del.exec(a);if(c)return{type:"del",raw:c[0],text:c[2],tokens:this.lexer.inlineTokens(c[2])}}autolink(a){const c=this.rules.inline.autolink.exec(a);if(c){let t,l;return"@"===c[2]?(t=c4(c[1]),l="mailto:"+t):(t=c4(c[1]),l=t),{type:"link",raw:c[0],text:t,href:l,tokens:[{type:"text",raw:t,text:t}]}}}url(a){let c;if(c=this.rules.inline.url.exec(a)){let t,l;if("@"===c[2])t=c4(c[0]),l="mailto:"+t;else{let i;do{i=c[0],c[0]=this.rules.inline._backpedal.exec(c[0])[0]}while(i!==c[0]);t=c4(c[0]),l="www."===c[1]?"http://"+c[0]:c[0]}return{type:"link",raw:c[0],text:t,href:l,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(a){const c=this.rules.inline.text.exec(a);if(c){let t;return t=this.lexer.state.inRawBlock?c[0]:c4(c[0]),{type:"text",raw:c[0],text:t}}}}const Q2={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:a3,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Q2.def=H2(Q2.def).replace("label",Q2._label).replace("title",Q2._title).getRegex(),Q2.bullet=/(?:[*+-]|\d{1,9}[.)])/,Q2.listItemStart=H2(/^( *)(bull) */).replace("bull",Q2.bullet).getRegex(),Q2.list=H2(Q2.list).replace(/bull/g,Q2.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Q2.def.source+")").getRegex(),Q2._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Q2._comment=/|$)/,Q2.html=H2(Q2.html,"i").replace("comment",Q2._comment).replace("tag",Q2._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Q2.lheading=H2(Q2.lheading).replace(/bull/g,Q2.bullet).getRegex(),Q2.paragraph=H2(Q2._paragraph).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.blockquote=H2(Q2.blockquote).replace("paragraph",Q2.paragraph).getRegex(),Q2.normal={...Q2},Q2.gfm={...Q2.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Q2.gfm.table=H2(Q2.gfm.table).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.gfm.paragraph=H2(Q2._paragraph).replace("hr",Q2.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Q2.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Q2._tag).getRegex(),Q2.pedantic={...Q2.normal,html:H2("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Q2._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a3,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:H2(Q2.normal._paragraph).replace("hr",Q2.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Q2.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const g2={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:a3,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:a3,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~"};g2.punctuation=H2(g2.punctuation,"u").replace(/punctuation/g,g2._punctuation).getRegex(),g2.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,g2.anyPunctuation=/\\[punct]/g,g2._escapes=/\\([punct])/g,g2._comment=H2(Q2._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),g2.emStrong.lDelim=H2(g2.emStrong.lDelim,"u").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimAst=H2(g2.emStrong.rDelimAst,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.emStrong.rDelimUnd=H2(g2.emStrong.rDelimUnd,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2.anyPunctuation=H2(g2.anyPunctuation,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2._escapes=H2(g2._escapes,"gu").replace(/punct/g,g2._punctuation).getRegex(),g2._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,g2._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,g2.autolink=H2(g2.autolink).replace("scheme",g2._scheme).replace("email",g2._email).getRegex(),g2._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,g2.tag=H2(g2.tag).replace("comment",g2._comment).replace("attribute",g2._attribute).getRegex(),g2._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,g2._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,g2._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,g2.link=H2(g2.link).replace("label",g2._label).replace("href",g2._href).replace("title",g2._title).getRegex(),g2.reflink=H2(g2.reflink).replace("label",g2._label).replace("ref",Q2._label).getRegex(),g2.nolink=H2(g2.nolink).replace("ref",Q2._label).getRegex(),g2.reflinkSearch=H2(g2.reflinkSearch,"g").replace("reflink",g2.reflink).replace("nolink",g2.nolink).getRegex(),g2.normal={...g2},g2.pedantic={...g2.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:H2(/^!?\[(label)\]\((.*?)\)/).replace("label",g2._label).getRegex(),reflink:H2(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",g2._label).getRegex()},g2.gfm={...g2.normal,escape:H2(g2.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\b+" ".repeat(T.length));a;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(C=>!!(t=C.call({lexer:this},a,c))&&(a=a.substring(t.raw.length),c.push(t),!0)))){if(t=this.tokenizer.space(a)){a=a.substring(t.raw.length),1===t.raw.length&&c.length>0?c[c.length-1].raw+="\n":c.push(t);continue}if(t=this.tokenizer.code(a)){a=a.substring(t.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?c.push(t):(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(t=this.tokenizer.fences(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.heading(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.hr(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.blockquote(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.list(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.html(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.def(a)){a=a.substring(t.raw.length),l=c[c.length-1],!l||"paragraph"!==l.type&&"text"!==l.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(l.raw+="\n"+t.raw,l.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=l.text);continue}if(t=this.tokenizer.table(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.lheading(a)){a=a.substring(t.raw.length),c.push(t);continue}if(i=a,this.options.extensions&&this.options.extensions.startBlock){let C=1/0;const b=a.slice(1);let T;this.options.extensions.startBlock.forEach(W=>{T=W.call({lexer:this},b),"number"==typeof T&&T>=0&&(C=Math.min(C,T))}),C<1/0&&C>=0&&(i=a.substring(0,C+1))}if(this.state.top&&(t=this.tokenizer.paragraph(i))){l=c[c.length-1],u&&"paragraph"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(t),u=i.length!==a.length,a=a.substring(t.raw.length);continue}if(t=this.tokenizer.text(a)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===l.type?(l.raw+="\n"+t.raw,l.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=l.text):c.push(t);continue}if(a){const C="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(C);break}throw new Error(C)}}return this.state.top=!0,c}inline(a,c=[]){return this.inlineQueue.push({src:a,tokens:c}),c}inlineTokens(a,c=[]){let t,l,i,C,b,T,u=a;if(this.tokens.links){const W=Object.keys(this.tokens.links);if(W.length>0)for(;null!=(C=this.tokenizer.rules.inline.reflinkSearch.exec(u));)W.includes(C[0].slice(C[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,C.index)+"["+"a".repeat(C[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(C=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,C.index)+"["+"a".repeat(C[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(C=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,C.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;a;)if(b||(T=""),b=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(W=>!!(t=W.call({lexer:this},a,c))&&(a=a.substring(t.raw.length),c.push(t),!0)))){if(t=this.tokenizer.escape(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.tag(a)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(t=this.tokenizer.link(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.reflink(a,this.tokens.links)){a=a.substring(t.raw.length),l=c[c.length-1],l&&"text"===t.type&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(t=this.tokenizer.emStrong(a,u,T)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.codespan(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.br(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.del(a)){a=a.substring(t.raw.length),c.push(t);continue}if(t=this.tokenizer.autolink(a)){a=a.substring(t.raw.length),c.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(a))){a=a.substring(t.raw.length),c.push(t);continue}if(i=a,this.options.extensions&&this.options.extensions.startInline){let W=1/0;const u1=a.slice(1);let a1;this.options.extensions.startInline.forEach(T1=>{a1=T1.call({lexer:this},u1),"number"==typeof a1&&a1>=0&&(W=Math.min(W,a1))}),W<1/0&&W>=0&&(i=a.substring(0,W+1))}if(t=this.tokenizer.inlineText(i)){a=a.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(T=t.raw.slice(-1)),b=!0,l=c[c.length-1],l&&"text"===l.type?(l.raw+=t.raw,l.text+=t.text):c.push(t);continue}if(a){const W="Infinite loop on byte: "+a.charCodeAt(0);if(this.options.silent){console.error(W);break}throw new Error(W)}}return c}}class J4{options;constructor(a){this.options=a||P0}code(a,c,t){const l=(c||"").match(/^\S*/)?.[0];return a=a.replace(/\n$/,"")+"\n",l?'
    '+(t?a:c4(a,!0))+"
    \n":"
    "+(t?a:c4(a,!0))+"
    \n"}blockquote(a){return`
    \n${a}
    \n`}html(a,c){return a}heading(a,c,t){return`${a}\n`}hr(){return"
    \n"}list(a,c,t){const l=c?"ol":"ul";return"<"+l+(c&&1!==t?' start="'+t+'"':"")+">\n"+a+"\n"}listitem(a,c,t){return`
  • ${a}
  • \n`}checkbox(a){return"'}paragraph(a){return`

    ${a}

    \n`}table(a,c){return c&&(c=`${c}`),"\n\n"+a+"\n"+c+"
    \n"}tablerow(a){return`\n${a}\n`}tablecell(a,c){const t=c.header?"th":"td";return(c.align?`<${t} align="${c.align}">`:`<${t}>`)+a+`\n`}strong(a){return`${a}`}em(a){return`${a}`}codespan(a){return`${a}`}br(){return"
    "}del(a){return`${a}`}link(a,c,t){const l=p8(a);if(null===l)return t;let i='
    ",i}image(a,c,t){const l=p8(a);if(null===l)return t;let i=`${t}"colon"===(c=c.toLowerCase())?":":"#"===c.charAt(0)?"x"===c.charAt(1)?String.fromCharCode(parseInt(c.substring(2),16)):String.fromCharCode(+c.substring(1)):""));continue}case"code":t+=this.renderer.code(i.text,i.lang,!!i.escaped);continue;case"table":{const u=i;let C="",b="";for(let W=0;W0&&"paragraph"===a1.tokens[0].type?(a1.tokens[0].text=M2+" "+a1.tokens[0].text,a1.tokens[0].tokens&&a1.tokens[0].tokens.length>0&&"text"===a1.tokens[0].tokens[0].type&&(a1.tokens[0].tokens[0].text=M2+" "+a1.tokens[0].tokens[0].text)):a1.tokens.unshift({type:"text",text:M2+" "}):f2+=M2+" "}f2+=this.parse(a1.tokens,T),W+=this.renderer.listitem(f2,Y1,!!T1)}t+=this.renderer.list(W,C,b);continue}case"html":t+=this.renderer.html(i.text,i.block);continue;case"paragraph":t+=this.renderer.paragraph(this.parseInline(i.tokens));continue;case"text":{let u=i,C=u.tokens?this.parseInline(u.tokens):u.text;for(;l+1{t=t.concat(this.walkTokens(i[u],c))}):i.tokens&&(t=t.concat(this.walkTokens(i.tokens,c)))}}return t}use(...a){const c=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(t=>{const l={...t};if(l.async=this.defaults.async||l.async||!1,t.extensions&&(t.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const u=c.renderers[i.name];c.renderers[i.name]=u?function(...C){let b=i.renderer.apply(this,C);return!1===b&&(b=u.apply(this,C)),b}:i.renderer}if("tokenizer"in i){if(!i.level||"block"!==i.level&&"inline"!==i.level)throw new Error("extension level must be 'block' or 'inline'");const u=c[i.level];u?u.unshift(i.tokenizer):c[i.level]=[i.tokenizer],i.start&&("block"===i.level?c.startBlock?c.startBlock.push(i.start):c.startBlock=[i.start]:"inline"===i.level&&(c.startInline?c.startInline.push(i.start):c.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(c.childTokens[i.name]=i.childTokens)}),l.extensions=c),t.renderer){const i=this.defaults.renderer||new J4(this.defaults);for(const u in t.renderer){const C=t.renderer[u],T=i[u];i[u]=(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1||""}}l.renderer=i}if(t.tokenizer){const i=this.defaults.tokenizer||new y6(this.defaults);for(const u in t.tokenizer){const C=t.tokenizer[u],T=i[u];i[u]=(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1}}l.tokenizer=i}if(t.hooks){const i=this.defaults.hooks||new P4;for(const u in t.hooks){const C=t.hooks[u],T=i[u];i[u]=P4.passThroughHooks.has(u)?W=>{if(this.defaults.async)return Promise.resolve(C.call(i,W)).then(a1=>T.call(i,a1));const u1=C.call(i,W);return T.call(i,u1)}:(...W)=>{let u1=C.apply(i,W);return!1===u1&&(u1=T.apply(i,W)),u1}}l.hooks=i}if(t.walkTokens){const i=this.defaults.walkTokens,u=t.walkTokens;l.walkTokens=function(C){let b=[];return b.push(u.call(this,C)),i&&(b=b.concat(i.call(this,C))),b}}this.defaults={...this.defaults,...l}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,c){return h3.lex(a,c??this.defaults)}parser(a,c){return n4.parse(a,c??this.defaults)}#e(a,c){return(t,l)=>{const i={...l},u={...this.defaults,...i};!0===this.defaults.async&&!1===i.async&&(u.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),u.async=!0);const C=this.#c(!!u.silent,!!u.async);if(typeof t>"u"||null===t)return C(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return C(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(u.hooks&&(u.hooks.options=u),u.async)return Promise.resolve(u.hooks?u.hooks.preprocess(t):t).then(b=>a(b,u)).then(b=>u.walkTokens?Promise.all(this.walkTokens(b,u.walkTokens)).then(()=>b):b).then(b=>c(b,u)).then(b=>u.hooks?u.hooks.postprocess(b):b).catch(C);try{u.hooks&&(t=u.hooks.preprocess(t));const b=a(t,u);u.walkTokens&&this.walkTokens(b,u.walkTokens);let T=c(b,u);return u.hooks&&(T=u.hooks.postprocess(T)),T}catch(b){return C(b)}}}#c(a,c){return t=>{if(t.message+="\nPlease report this to https://github.com/markedjs/marked.",a){const l="

    An error occurred:

    "+c4(t.message+"",!0)+"
    ";return c?Promise.resolve(l):l}if(c)return Promise.reject(t);throw t}}};function V0(n,a){return n6.parse(n,a)}V0.options=V0.setOptions=function(n){return n6.setOptions(n),o4(V0.defaults=n6.defaults),V0},V0.getDefaults=function F0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},V0.defaults=P0,V0.use=function(...n){return n6.use(...n),o4(V0.defaults=n6.defaults),V0},V0.walkTokens=function(n,a){return n6.walkTokens(n,a)},V0.parseInline=n6.parseInline,V0.Parser=n4,V0.parser=n4.parse,V0.Renderer=J4,V0.TextRenderer=R6,V0.Lexer=h3,V0.lexer=h3.lex,V0.Tokenizer=y6,V0.Hooks=P4,V0.parse=V0;const p0=["*"];let U3=(()=>{class n{constructor(){this._buttonClick$=new S.B,this.copied$=this._buttonClick$.pipe((0,A.n)(()=>function D6(...n){const a=(0,z3.lI)(n),c=(0,z3.R0)(n,1/0),t=n;return t.length?1===t.length?(0,$.Tg)(t[0]):(0,E3.U)(c)((0,p6.H)(t,a)):G1.w}((0,o1.of)(!0),F4(3e3).pipe((0,b1.u)(!1)))),u2(),(0,M0.t)(1)),this.copiedText$=this.copied$.pipe((0,X2.Z)(!1),(0,P2.T)(c=>c?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["markdown-clipboard"]],standalone:!0,features:[e.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"button",0),e.nI1(1,"async"),e.bIt("click",function(){return l.onCopyToClipboardClick()}),e.EFF(2),e.nI1(3,"async"),e.k0s()),2&t&&(e.AVh("copied",e.bMT(1,3,l.copied$)),e.R7$(2),e.JRh(e.bMT(3,5,l.copiedText$)))},dependencies:[_.Jj],encapsulation:2,changeDetection:0})}}return n})();const I6=new e.nKC("CLIPBOARD_OPTIONS");var d3=function(n){return n.CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",n}(d3||{});const G0=new e.nKC("MARKED_EXTENSIONS"),l6=new e.nKC("MARKED_OPTIONS"),R3=new e.nKC("SECURITY_CONTEXT");let k3=(()=>{class n{get options(){return this._options}set options(c){this._options={...this.DEFAULT_MARKED_OPTIONS,...c}}get renderer(){return this.options.renderer}set renderer(c){this.options.renderer=c}constructor(c,t,l,i,u,C,b){this.clipboardOptions=c,this.extensions=t,this.platform=i,this.securityContext=u,this.http=C,this.sanitizer=b,this.DEFAULT_MARKED_OPTIONS={renderer:new J4},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new S.B,this.reload$=this._reload$.asObservable(),this.options=l}parse(c,t=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:l,inline:i,emoji:u,mermaid:C,disableSanitizer:b}=t,T={...this.options,...t.markedOptions},W=T.renderer||this.renderer||new J4;this.extensions&&(this.renderer=this.extendsRendererForExtensions(W)),C&&(this.renderer=this.extendsRendererForMermaid(W));const u1=this.trimIndentation(c),a1=l?this.decodeHtml(u1):u1,T1=u?this.parseEmoji(a1):a1,Y1=this.parseMarked(T1,T,i);return(b?Y1:this.sanitizer.sanitize(this.securityContext,Y1))||""}render(c,t=this.DEFAULT_RENDER_OPTIONS,l){const{clipboard:i,clipboardOptions:u,katex:C,katexOptions:b,mermaid:T,mermaidOptions:W}=t;C&&this.renderKatex(c,{...this.DEFAULT_KATEX_OPTIONS,...b}),T&&this.renderMermaid(c,{...this.DEFAULT_MERMAID_OPTIONS,...W}),i&&this.renderClipboard(c,l,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...u}),this.highlight(c)}reload(){this._reload$.next()}getSource(c){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(c,{responseType:"text"}).pipe((0,P2.T)(t=>this.handleExtension(c,t)))}highlight(c){if(!(0,_.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;c||(c=document);const t=c.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,l=>l.classList.add("language-none")),Prism.highlightAllUnder(c)}decodeHtml(c){if(!(0,_.UE)(this.platform))return c;const t=document.createElement("textarea");return t.innerHTML=c,t.value}extendsRendererForExtensions(c){const t=c;return!0===t.\u0275NgxMarkdownRendererExtendedForExtensions||(this.extensions?.length>0&&V0.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),c}extendsRendererForMermaid(c){const t=c;if(!0===t.\u0275NgxMarkdownRendererExtendedForMermaid)return c;const l=c.code;return c.code=function(i,u,C){return"mermaid"===u?`
    ${i}
    `:l.call(this,i,u,C)},t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,c}handleExtension(c,t){const l=c.lastIndexOf("://"),i=l>-1?c.substring(l+4):c,u=i.lastIndexOf("/"),C=u>-1?i.substring(u+1).split("?")[0]:"",b=C.lastIndexOf("."),T=b>-1?C.substring(b+1):"";return T&&"md"!==T?"```"+T+"\n"+t+"\n```":t}parseMarked(c,t,l=!1){if(t.renderer){const i={...t.renderer};delete i.\u0275NgxMarkdownRendererExtendedForExtensions,delete i.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,V0.use({renderer:i})}return l?V0.parseInline(c,t):V0.parse(c,t)}parseEmoji(c){if(!(0,_.UE)(this.platform))return c;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(c)}renderKatex(c,t){if((0,_.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(c,t)}}renderClipboard(c,t,l){if(!(0,_.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!t)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:u}=l,C=c.querySelectorAll("pre");for(let b=0;bu1.style.opacity="1",T.onmouseout=()=>u1.style.opacity="0",i){const Y1=t.createComponent(i);a1=Y1.hostView,Y1.changeDetectorRef.markForCheck()}else if(u)a1=t.createEmbeddedView(u);else{const Y1=t.createComponent(U3);a1=Y1.hostView,Y1.changeDetectorRef.markForCheck()}a1.rootNodes.forEach(Y1=>{Y1.onmouseover=()=>u1.style.opacity="1",u1.appendChild(Y1),T1=new ClipboardJS(Y1,{text:()=>T.innerText})}),a1.onDestroy(()=>T1.destroy())}}renderMermaid(c,t=this.DEFAULT_MERMAID_OPTIONS){if(!(0,_.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const l=c.querySelectorAll(".mermaid");0!==l.length&&(mermaid.initialize(t),mermaid.run({nodes:l}))}trimIndentation(c){if(!c)return"";let t;return c.split("\n").map(l=>{let i=t;return l.length>0&&(i=isNaN(i)?l.search(/\S|$/):Math.min(l.search(/\S|$/),i)),isNaN(t)&&(t=i),i?l.substring(i):l}).join("\n")}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(I6,8),e.KVO(G0,8),e.KVO(l6,8),e.KVO(e.Agw),e.KVO(R3),e.KVO(g.Qq,8),e.KVO(m.up))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),N0=(()=>{class n{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(c){this._disableSanitizer=this.coerceBooleanProperty(c)}get inline(){return this._inline}set inline(c){this._inline=this.coerceBooleanProperty(c)}get clipboard(){return this._clipboard}set clipboard(c){this._clipboard=this.coerceBooleanProperty(c)}get emoji(){return this._emoji}set emoji(c){this._emoji=this.coerceBooleanProperty(c)}get katex(){return this._katex}set katex(c){this._katex=this.coerceBooleanProperty(c)}get mermaid(){return this._mermaid}set mermaid(c){this._mermaid=this.coerceBooleanProperty(c)}get lineHighlight(){return this._lineHighlight}set lineHighlight(c){this._lineHighlight=this.coerceBooleanProperty(c)}get lineNumbers(){return this._lineNumbers}set lineNumbers(c){this._lineNumbers=this.coerceBooleanProperty(c)}get commandLine(){return this._commandLine}set commandLine(c){this._commandLine=this.coerceBooleanProperty(c)}constructor(c,t,l){this.element=c,this.markdownService=t,this.viewContainerRef=l,this.error=new e.bkB,this.load=new e.bkB,this.ready=new e.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new S.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,O1.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(c){var t=this;return(0,C1.A)(function*(l,i=!1){const u={decodeHtml:i,inline:t.inline,emoji:t.emoji,mermaid:t.mermaid,disableSanitizer:t.disableSanitizer},C={clipboard:t.clipboard,clipboardOptions:{buttonComponent:t.clipboardButtonComponent,buttonTemplate:t.clipboardButtonTemplate},katex:t.katex,katexOptions:t.katexOptions,mermaid:t.mermaid,mermaidOptions:t.mermaidOptions},b=yield t.markdownService.parse(l,u);t.element.nativeElement.innerHTML=b,t.handlePlugins(),t.markdownService.render(t.element.nativeElement,C,t.viewContainerRef),t.ready.emit()}).apply(this,arguments)}coerceBooleanProperty(c){return null!=c&&"false"!=`${String(c)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:c=>{this.render(c).then(()=>{this.load.emit(c)})},error:c=>this.error.emit(c)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,d3.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,d3.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(c,t){const l=c.querySelectorAll("pre");for(let i=0;i{const C=t[u];if(C){const b=this.toLispCase(u);l.item(i).setAttribute(b,C.toString())}})}toLispCase(c){const t=c.match(/([A-Z])/g);if(!t)return c;let l=c.toString();for(let i=0,u=t.length;i{class n{static forRoot(c){return{ngModule:n,providers:[e8(c)]}}static forChild(){return{ngModule:n}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD]})}}return n})();var s6;function P6(n,a){const c=a?function x4(n){return"string"==typeof n?()=>{throw new Error(n)}:n}(a):()=>{};let t=!1;return(...l)=>t?c(...l):(t=!0,n(...l))}function a6(n){return n.endsWith("/")?n:`${n}/`}!function(n){let a;var l;let c,t;(l=a=n.SecurityLevel||(n.SecurityLevel={})).Strict="strict",l.Loose="loose",l.Antiscript="antiscript",l.Sandbox="sandbox",function(l){l.Base="base",l.Forest="forest",l.Dark="dark",l.Default="default",l.Neutral="neutral"}(c=n.Theme||(n.Theme={})),function(l){l[l.Debug=1]="Debug",l[l.Info=2]="Info",l[l.Warn=3]="Warn",l[l.Error=4]="Error",l[l.Fatal=5]="Fatal"}(t=n.LogLevel||(n.LogLevel={}))}(s6||(s6={}));const u3=(n,a)=>{const c=a.createElement("script");return c.type="text/javascript",c.defer=!0,c.async=!0,c.src=n,c},H0=new e.nKC("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>u3});function m3(n,a){if(null==n)throw new Error("Unexpected "+n+" value: "+a);return n}let w3=(()=>{class n{constructor(){this.scriptFactory=(0,e.WQX)(H0),this.injector=(0,e.WQX)(e.duS),this.document=(0,e.WQX)(_.qQ)}injectDOMScript(c){const t=(0,e.N4e)(this.injector,()=>this.scriptFactory(c,this.document)),l=m3(this.document.getElementsByTagName("script")[0],"no existing script found");m3(l.parentNode,"no script's parent node found").insertBefore(t,l)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const $6=new e.nKC("MATOMO_ROUTER_ENABLED",{factory:()=>!1}),_3=new e.nKC("MATOMO_CONFIGURATION"),Z4=new e.nKC("INTERNAL_MATOMO_CONFIGURATION",{factory(){const{mode:n,requireConsent:a,...c}=m3((0,e.WQX)(_3,{optional:!0}),"No Matomo configuration found! Have you included Matomo module using MatomoModule.forRoot() or provideMatomo()?");return{mode:n?G(n):void 0,disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!(0,e.WQX)($6),requireConsent:a?t1(a):"none",enableJSErrorTracking:!1,runOutsideAngularZone:!1,disableCampaignParameters:!1,acceptDoNotTrack:!1,...c}}}),O6=new e.nKC("DEFERRED_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>{const n=(0,e.WQX)(Z4);let a;return{configuration:new Promise(t=>a=t),markReady(t){m3(a,"resolveFn")({...n,...t})}}}});new e.nKC("ASYNC_INTERNAL_MATOMO_CONFIGURATION",{factory:()=>(0,e.WQX)(O6).configuration});var B=function(n){return n[n.AUTO=0]="AUTO",n[n.MANUAL=1]="MANUAL",n[n.AUTO_DEFERRED=2]="AUTO_DEFERRED",n}(B||{});function G(n){switch(n){case B.AUTO:return"auto";case B.MANUAL:return"manual";case B.AUTO_DEFERRED:return"deferred";default:return n}}var D=function(n){return n[n.NONE=0]="NONE",n[n.COOKIE=1]="COOKIE",n[n.TRACKING=2]="TRACKING",n}(D||{});function t1(n){switch(n){case D.NONE:return"none";case D.COOKIE:return"cookie";case D.TRACKING:return"tracking";default:return n}}function V2(n){return null!=n.siteId&&null!=n.trackerUrl}function A3(n){return Array.isArray(n.trackers)}function F6(){window._paq=window._paq||[]}function h4(n){const a=[...n];for(;a.length>0&&void 0===a[a.length-1];)a.pop();return a}let _e=(()=>{class n{constructor(){this.ngZone=(0,e.WQX)(e.SKi),this.config=(0,e.WQX)(Z4),F6()}get(c){return this.pushFn(t=>t[c]())}pushFn(c){return new Promise(t=>{this.push([function(){t(c(this))}])})}push(c){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(h4(c))}):window._paq.push(h4(c))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:()=>function ge(){const n=(0,e.WQX)(Z4).disabled,a=(0,_.UE)((0,e.WQX)(e.Agw));return n||!a?new i4:new _e}(),providedIn:"root"})}}return n})();class i4{get(a){return(0,C1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}push(a){}pushFn(a){return(0,C1.A)(function*(){return Promise.reject("MatomoTracker is disabled")})()}}let L8=(()=>{class n{constructor(){this.delegate=(0,e.WQX)(_e),this._pageViewTracked=new S.B,this.pageViewTracked=this._pageViewTracked.asObservable(),(0,e.WQX)(e.abz).onDestroy(()=>this._pageViewTracked.complete())}trackPageView(c){this.delegate.push(["trackPageView",c]),this._pageViewTracked.next()}trackEvent(c,t,l,i,u){this.delegate.push(["trackEvent",c,t,l,i,u])}trackSiteSearch(c,t,l,i){this.delegate.push(["trackSiteSearch",c,t,l,i])}trackGoal(c,t,l){this.delegate.push(["trackGoal",c,t,l])}trackLink(c,t,l){this.delegate.push(["trackLink",c,t,l])}trackAllContentImpressions(){this.delegate.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(c,t){this.delegate.push(["trackVisibleContentImpressions",c,t])}trackContentImpressionsWithinNode(c){this.delegate.push(["trackContentImpressionsWithinNode",c])}trackContentInteractionNode(c,t){this.delegate.push(["trackContentInteractionNode",c,t])}trackContentImpression(c,t,l){this.delegate.push(["trackContentImpression",c,t,l])}trackContentInteraction(c,t,l,i){this.delegate.push(["trackContentInteraction",c,t,l,i])}logAllContentBlocksOnPage(){this.delegate.push(["logAllContentBlocksOnPage"])}ping(){this.delegate.push(["ping"])}enableHeartBeatTimer(c){this.delegate.push(["enableHeartBeatTimer",c])}enableLinkTracking(c=!1){this.delegate.push(["enableLinkTracking",c])}disablePerformanceTracking(){this.delegate.push(["disablePerformanceTracking"])}enableCrossDomainLinking(){this.delegate.push(["enableCrossDomainLinking"])}setCrossDomainLinkingTimeout(c){this.delegate.push(["setCrossDomainLinkingTimeout",c])}getCrossDomainLinkingUrlParameter(){return this.delegate.get("getCrossDomainLinkingUrlParameter")}setDocumentTitle(c){this.delegate.push(["setDocumentTitle",c])}setDomains(c){this.delegate.push(["setDomains",c])}setCustomUrl(c){this.delegate.push(["setCustomUrl",c])}setReferrerUrl(c){this.delegate.push(["setReferrerUrl",c])}setSiteId(c){this.delegate.push(["setSiteId",c])}setApiUrl(c){this.delegate.push(["setApiUrl",c])}setTrackerUrl(c){this.delegate.push(["setTrackerUrl",c])}addTracker(c,t){this.delegate.push(["addTracker",c,t])}getMatomoUrl(){return this.delegate.get("getMatomoUrl")}getPiwikUrl(){return this.delegate.get("getPiwikUrl")}getCurrentUrl(){return this.delegate.get("getCurrentUrl")}setDownloadClasses(c){this.delegate.push(["setDownloadClasses",c])}setDownloadExtensions(c){this.delegate.push(["setDownloadExtensions",c])}addDownloadExtensions(c){this.delegate.push(["addDownloadExtensions",c])}removeDownloadExtensions(c){this.delegate.push(["removeDownloadExtensions",c])}setIgnoreClasses(c){this.delegate.push(["setIgnoreClasses",c])}setLinkClasses(c){this.delegate.push(["setLinkClasses",c])}setLinkTrackingTimer(c){this.delegate.push(["setLinkTrackingTimer",c])}getLinkTrackingTimer(){return this.delegate.get("getLinkTrackingTimer")}discardHashTag(c){this.delegate.push(["discardHashTag",c])}setGenerationTimeMs(c){this.delegate.push(["setGenerationTimeMs",c])}setPagePerformanceTiming(c,t,l,i,u,C){let b;"object"==typeof c&&c?(b=c.networkTimeInMs,t=c.serverTimeInMs,l=c.transferTimeInMs,i=c.domProcessingTimeInMs,u=c.domCompletionTimeInMs,C=c.onloadTimeInMs):b=c,this.delegate.push(["setPagePerformanceTiming",b,t,l,i,u,C])}getCustomPagePerformanceTiming(){return this.delegate.get("getCustomPagePerformanceTiming")}appendToTrackingUrl(c){this.delegate.push(["appendToTrackingUrl",c])}setDoNotTrack(c){this.delegate.push(["setDoNotTrack",c])}killFrame(){this.delegate.push(["killFrame"])}redirectFile(c){this.delegate.push(["redirectFile",c])}setHeartBeatTimer(c,t){this.delegate.push(["setHeartBeatTimer",c,t])}getVisitorId(){return this.delegate.get("getVisitorId")}setVisitorId(c){this.delegate.push(["setVisitorId",c])}getVisitorInfo(){return this.delegate.get("getVisitorInfo")}getAttributionInfo(){return this.delegate.get("getAttributionInfo")}getAttributionCampaignName(){return this.delegate.get("getAttributionCampaignName")}getAttributionCampaignKeyword(){return this.delegate.get("getAttributionCampaignKeyword")}getAttributionReferrerTimestamp(){return this.delegate.get("getAttributionReferrerTimestamp")}getAttributionReferrerUrl(){return this.delegate.get("getAttributionReferrerUrl")}getUserId(){return this.delegate.get("getUserId")}setUserId(c){this.delegate.push(["setUserId",c])}resetUserId(){this.delegate.push(["resetUserId"])}setPageViewId(c){this.delegate.push(["setPageViewId",c])}getPageViewId(){return this.delegate.get("getPageViewId")}setCustomData(...c){this.delegate.push(["setCustomData",...c])}getCustomData(){return this.delegate.get("getCustomData")}setCustomVariable(c,t,l,i){this.delegate.push(["setCustomVariable",c,t,l,i])}deleteCustomVariable(c,t){this.delegate.push(["deleteCustomVariable",c,t])}deleteCustomVariables(c){this.delegate.push(["deleteCustomVariables",c])}getCustomVariable(c,t){return this.delegate.pushFn(l=>l.getCustomVariable(c,t))}storeCustomVariablesInCookie(){this.delegate.push(["storeCustomVariablesInCookie"])}setCustomDimension(c,t){this.delegate.push(["setCustomDimension",c,t])}deleteCustomDimension(c){this.delegate.push(["deleteCustomDimension",c])}getCustomDimension(c){return this.delegate.pushFn(t=>t.getCustomDimension(c))}setCampaignNameKey(c){this.delegate.push(["setCampaignNameKey",c])}setCampaignKeywordKey(c){this.delegate.push(["setCampaignKeywordKey",c])}setConversionAttributionFirstReferrer(c){this.delegate.push(["setConversionAttributionFirstReferrer",c])}setEcommerceView(c,t,l,i){!function Le(n){return"object"==typeof n&&1===Object.keys(n).length&&null!=n.productCategory}(c)?function _8(n){return"object"==typeof n&&"productSKU"in n}(c)?this.delegate.push(["setEcommerceView",c.productSKU,c.productName,c.productCategory,c.price]):this.delegate.push(["setEcommerceView",c,t,l,i]):this.delegate.push(["setEcommerceView",!1,!1,c.productCategory])}addEcommerceItem(c,t,l,i,u){this.delegate.push("string"==typeof c?["addEcommerceItem",c,t,l,i,u]:["addEcommerceItem",c.productSKU,c.productName,c.productCategory,c.price,c.quantity])}removeEcommerceItem(c){this.delegate.push(["removeEcommerceItem",c])}clearEcommerceCart(){this.delegate.push(["clearEcommerceCart"])}getEcommerceItems(){return this.delegate.get("getEcommerceItems")}trackEcommerceCartUpdate(c){this.delegate.push(["trackEcommerceCartUpdate",c])}trackEcommerceOrder(c,t,l,i,u,C){this.delegate.push(["trackEcommerceOrder",c,t,l,i,u,C])}requireConsent(){this.delegate.push(["requireConsent"])}setConsentGiven(){this.delegate.push(["setConsentGiven"])}rememberConsentGiven(c){this.delegate.push(["rememberConsentGiven",c])}forgetConsentGiven(){this.delegate.push(["forgetConsentGiven"])}hasRememberedConsent(){return this.delegate.get("hasRememberedConsent")}getRememberedConsent(){return this.delegate.get("getRememberedConsent")}isConsentRequired(){return this.delegate.get("isConsentRequired")}requireCookieConsent(){this.delegate.push(["requireCookieConsent"])}setCookieConsentGiven(){this.delegate.push(["setCookieConsentGiven"])}rememberCookieConsentGiven(c){this.delegate.push(["rememberCookieConsentGiven",c])}forgetCookieConsentGiven(){this.delegate.push(["forgetCookieConsentGiven"])}getRememberedCookieConsent(){return this.delegate.get("getRememberedCookieConsent")}areCookiesEnabled(){return this.delegate.get("areCookiesEnabled")}optUserOut(){this.delegate.push(["optUserOut"])}forgetUserOptOut(){this.delegate.push(["forgetUserOptOut"])}isUserOptedOut(){return this.delegate.get("isUserOptedOut")}disableCookies(){this.delegate.push(["disableCookies"])}deleteCookies(){this.delegate.push(["deleteCookies"])}hasCookies(){return this.delegate.get("hasCookies")}setCookieNamePrefix(c){this.delegate.push(["setCookieNamePrefix",c])}setCookieDomain(c){this.delegate.push(["setCookieDomain",c])}setCookiePath(c){this.delegate.push(["setCookiePath",c])}setSecureCookie(c){this.delegate.push(["setSecureCookie",c])}setCookieSameSite(c){this.delegate.push(["setCookieSameSite",c])}setVisitorCookieTimeout(c){this.delegate.push(["setVisitorCookieTimeout",c])}setReferralCookieTimeout(c){this.delegate.push(["setReferralCookieTimeout",c])}setSessionCookieTimeout(c){this.delegate.push(["setSessionCookieTimeout",c])}addListener(c){this.delegate.push(["addListener",c])}setRequestMethod(c){this.delegate.push(["setRequestMethod",c])}setCustomRequestProcessing(c){this.delegate.push(["setCustomRequestProcessing",c])}setRequestContentType(c){this.delegate.push(["setRequestContentType",c])}disableQueueRequest(){this.delegate.push(["disableQueueRequest"])}setRequestQueueInterval(c){this.delegate.push(["setRequestQueueInterval",c])}disableAlwaysUseSendBeacon(){this.delegate.push(["disableAlwaysUseSendBeacon"])}alwaysUseSendBeacon(){this.delegate.push(["alwaysUseSendBeacon"])}enableJSErrorTracking(){this.delegate.push(["enableJSErrorTracking"])}enableFileTracking(){this.delegate.push(["enableFileTracking"])}setExcludedReferrers(...c){const t=c.flat();this.delegate.push(["setExcludedReferrers",t])}getExcludedReferrers(){return this.delegate.get("getExcludedReferrers")}disableBrowserFeatureDetection(){this.delegate.push(["disableBrowserFeatureDetection"])}enableBrowserFeatureDetection(){this.delegate.push(["enableBrowserFeatureDetection"])}disableCampaignParameters(){this.delegate.push(["disableCampaignParameters"])}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function W8(n){return`${n}`}function Ce(n,a){return null==a?a6(n)+t8:n+a}const t8="matomo.php";class s5{initialize(){}init(){}initializeTracker(a){}}let V6=(()=>{class n{constructor(){this.config=(0,e.WQX)(Z4),this.deferredConfig=(0,e.WQX)(O6),this.tracker=(0,e.WQX)(L8),this.scriptInjector=(0,e.WQX)(w3),this.initialize=P6(()=>{this.runPreInitTasks(),function w1(n){return null==n.mode||"auto"===n.mode||n.mode===B.AUTO}(this.config)&&this.injectMatomoScript(this.config)},"Matomo has already been initialized"),this.injectMatomoScript=P6(c=>{if(function b3(n){return V2(n)||A3(n)}(c)){const{scriptUrl:t}=c,[l,...i]=function O4(n){return A3(n)?n.trackers:[{trackerUrl:n.trackerUrl,siteId:n.siteId,trackerUrlSuffix:n.trackerUrlSuffix}]}(c),u=t??a6(l.trackerUrl)+"matomo.js";this.registerMainTracker(l),this.registerAdditionalTrackers(i),this.scriptInjector.injectDOMScript(u)}else if(function v0(n){return null!=n.scriptUrl&&!V2(n)}(c)){const{scriptUrl:t,trackers:l}={trackers:[],...c};this.registerAdditionalTrackers(l),this.scriptInjector.injectDOMScript(t)}this.deferredConfig.markReady(c)},"Matomo trackers have already been initialized"),F6()}init(){this.initialize()}initializeTracker(c){this.injectMatomoScript(c)}registerMainTracker(c){const t=Ce(c.trackerUrl,c.trackerUrlSuffix),l=W8(c.siteId);this.tracker.setTrackerUrl(t),this.tracker.setSiteId(l)}registerAdditionalTrackers(c){c.forEach(({trackerUrl:t,siteId:l,trackerUrlSuffix:i})=>{const u=Ce(t,i),C=W8(l);this.tracker.addTracker(u,C)})}runPreInitTasks(){this.config.acceptDoNotTrack&&this.tracker.setDoNotTrack(!0),"cookie"===this.config.requireConsent?this.tracker.requireCookieConsent():"tracking"===this.config.requireConsent&&this.tracker.requireConsent(),this.config.enableJSErrorTracking&&this.tracker.enableJSErrorTracking(),this.config.disableCampaignParameters&&this.tracker.disableCampaignParameters(),this.config.trackAppInitialLoad&&this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:()=>function L6(){const n=(0,e.WQX)(Z4).disabled,a=(0,_.UE)((0,e.WQX)(e.Agw));return n||!a?new s5:new V6}(),providedIn:"root"})}}return n})();const j0=Symbol("MATOMO_PROVIDERS"),E4=Symbol("MATOMO_CHECKS");function A5(n,a){const c=[];return a&&c.push(function K4(n){return function w4(n,a,c){return{kind:n,[j0]:a,[E4]:c}}("ScriptFactory",[{provide:H0,useValue:n}])}(a)),function p3(n,...a){const c=[{provide:e.Z63,multi:!0,useValue(){(0,e.WQX)(V6).initialize()}}],t=[];c.push("function"==typeof n?{provide:_3,useFactory:n}:{provide:_3,useValue:n});for(const l of a)c.push(...l[j0]),t.push(l.kind);for(const l of a)l[E4]?.(t);return(0,e.EmA)(c)}(n,...c)}let P8=(()=>{class n{static forRoot(c,t){return{ngModule:n,providers:[A5(c,t)]}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({})}}return n})();var E2=y(1583),C6=y(7468),ze=y(4572),Q8=y(8793),x8=y(6697),Be=y(5343);function b8(n,a){return a?c=>(0,Q8.x)(a.pipe((0,x8.s)(1),function Z8(){return(0,J1.N)((n,a)=>{n.subscribe((0,q1._)(a,Be.l))})}()),c.pipe(b8(n))):(0,K.Z)((c,t)=>(0,$.Tg)(n(c,t)).pipe((0,x8.s)(1),(0,b1.u)(c)))}var U6=y(5964),y8=y(274),Me=y(8141),Ve=y(9901);const z6=new e.nKC("MATOMO_ROUTER_CONFIGURATION"),I3={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[],navigationEndComparator:"fullUrl"},j8=new e.nKC("INTERNAL_ROUTER_CONFIGURATION",{factory:()=>{const{disabled:n,enableLinkTracking:a}=(0,e.WQX)(Z4),c=(0,e.WQX)(z6,{optional:!0})||{};return{...I3,...c,enableLinkTracking:a,disabled:n}}}),xe=new e.nKC("MATOMO_ROUTER_INTERCEPTORS");class F8{constructor(a,c){this.fn=a,this.injector=c}beforePageTrack(a){return(0,e.N4e)(this.injector,()=>this.fn(a))}}function r6(n){return function o5(n){return"function"!=typeof n.prototype?.beforePageTrack}(n)?{provide:xe,multi:!0,useFactory:()=>new F8(n,(0,e.WQX)(e.duS))}:{provide:xe,multi:!0,useClass:n}}function l8(n){return n?n.map(r6):[]}new e.nKC("MATOMO_ROUTE_DATA_KEY",{providedIn:"root",factory:()=>"matomo"});const q2=new e.nKC("MATOMO_PAGE_TITLE_PROVIDER",{factory:()=>new g4((0,e.WQX)(m.hE))});class g4{constructor(a){this.title=a}getCurrentPageTitle(a){return(0,o1.of)(this.title.getTitle())}}const l4=new e.nKC("MATOMO_PAGE_URL_PROVIDER",{factory:()=>new X((0,e.WQX)(j8),(0,e.WQX)(_.kB,{optional:!0}),(0,e.WQX)(_.hb))});class X{constructor(a,c,t){this.config=a,this.baseHref=c,this.locationStrategy=t}getCurrentPageUrl(a){const c=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+a.urlAfterRedirects:a.urlAfterRedirects;return(0,o1.of)(c)}getBaseHrefWithoutTrailingSlash(){return function P(n){return n.endsWith("/")?n.slice(0,-1):n}(this.baseHref??this.locationStrategy.getBaseHref()??"")}}function J(n){return n instanceof E2.wF}function n1(n){return"string"==typeof n?new RegExp(n):n}function U1(n){return(a,c)=>n(a)===n(c)}let R2=(()=>{class n{constructor(c,t,l,i,u,C,b){if(this.router=c,this.platformId=t,this.config=l,this.pageTitleProvider=i,this.pageUrlProvider=u,this.tracker=C,this.interceptors=b,this.initialize=P6(()=>{if(this.config.disabled||!(0,_.UE)(this.platformId))return;const T=-1===this.config.delay?F1.D:function Y3(n,a=t4){const c=F4(n,a);return b8(()=>c)}(this.config.delay),W=function y2(n){switch(n.navigationEndComparator){case"fullUrl":return U1(a=>a.urlAfterRedirects);case"ignoreQueryParams":return U1(a=>function k1(n){return n.split("?")[0]}(a.urlAfterRedirects));default:return n.navigationEndComparator}}(this.config);this.router.events.pipe((0,U6.p)(J),(0,U6.p)(function S1(n){const a=function _1(n){return n?Array.isArray(n)?n.map(n1):[n1(n)]:[]}(n);return c=>!a.some(t=>c.urlAfterRedirects.match(t))}(this.config.exclude)),u2(W),T,(0,A.n)(u1=>this.presetPageTitleAndUrl(u1).pipe((0,P2.T)(({pageUrl:a1})=>({pageUrl:a1,event:u1})))),(0,y8.H)(({event:u1,pageUrl:a1})=>this.callInterceptors(u1).pipe((0,Me.M)(()=>this.trackPageView(a1))))).subscribe()},"MatomoRouter has already been initialized"),b&&!Array.isArray(b))throw function a2(){return new Error('An invalid MATOMO_ROUTER_INTERCEPTORS provider was configured. Did you forget to set "multi: true" ?')}()}init(){this.initialize()}callInterceptors(c){return this.interceptors?(0,C6.p)(this.interceptors.map(t=>{const l=t.beforePageTrack(c);return(null==l?(0,o1.of)(void 0):(0,p6.H)(l)).pipe((0,x8.s)(1),(0,Ve.U)(void 0))})).pipe((0,b1.u)(void 0),(0,Ve.U)(void 0)):(0,o1.of)(void 0)}presetPageTitleAndUrl(c){const t=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(c).pipe((0,Me.M)(i=>this.tracker.setDocumentTitle(i))):(0,o1.of)(void 0),l=this.pageUrlProvider.getCurrentPageUrl(c).pipe((0,Me.M)(i=>this.tracker.setCustomUrl(i)));return(0,ze.z)([t,l]).pipe((0,P2.T)(([i,u])=>({pageUrl:u})))}trackPageView(c){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking("enable-pseudo"===this.config.enableLinkTracking),this.tracker.setReferrerUrl(c)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(E2.Ix),e.KVO(e.Agw),e.KVO(j8),e.KVO(q2),e.KVO(l4),e.KVO(L8),e.KVO(xe,8))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Y0=(()=>{class n{constructor(c,t,l){this.router=c,!t&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:n,providers:[{provide:z6,useValue:c},l8(c.interceptors)]}}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(R2),e.KVO(n,12),e.KVO((0,e.Rfq)(()=>b4),12))}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return n})(),b4=(()=>{class n{constructor(c,t,l){this.router=c,!t&&!l&&this.router.initialize()}static forRoot(c={}){return{ngModule:n,providers:[{provide:z6,useValue:c},l8(c.interceptors)]}}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(R2),e.KVO(Y0,12),e.KVO((0,e.Rfq)(()=>n),12))}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[{provide:$6,useValue:!0}]})}}return n})(),E0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["error-message"]],inputs:{message:"message"},decls:8,vars:1,consts:[["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"h3",4),e.EFF(5,"Error"),e.k0s()(),e.j41(6,"div",5),e.EFF(7),e.k0s()()),2&t&&(e.R7$(7),e.SpI(" ",l.message," "))}})}}return n})();function n0(n,a,c){return()=>n.init().then(t=>{c.init(t.googleTagManagerId),a.initializeTracker({siteId:t.matomoId,trackerUrl:t.matomoUrl})})}var L3=y(8508),z2=y(3077),_4=y(7473),x0=y(452),o0=y(7387),q3=y(3836),M6=y(6964),$8=y(5586),I5=y(3636),h0=y(8058),g1=y(5312);function K8(n,a){if(1&n&&(e.j41(0,"option",32),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function I0(n,a){1&n&&(e.j41(0,"div",33),e.nrm(1,"div",34),e.k0s())}function Ue(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"div",37),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",39),e.k0s()(),e.joV(),e.j41(5,"div",40)(6,"h3",41),e.EFF(7,"Error loading quotes"),e.k0s(),e.j41(8,"p",42),e.EFF(9),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(9),e.JRh(c.error)}}function be(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",48),e.nrm(2,"path",49),e.k0s(),e.joV(),e.j41(3,"h3",50),e.EFF(4,"No quotes found"),e.k0s(),e.j41(5,"p",51),e.EFF(6,"No orders found"),e.k0s()())}function v8(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"div",54),e.EFF(3,"REQUEST DATE"),e.k0s(),e.j41(4,"div",55),e.EFF(5),e.k0s(),e.j41(6,"div",56),e.EFF(7,"PRODUCT"),e.k0s(),e.j41(8,"div",57),e.EFF(9,"STATUS"),e.k0s(),e.j41(10,"div",54),e.EFF(11,"ACTIONS"),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.JRh("customer"===c.selectedRole?"PROVIDER":"CUSTOMER")}}function ye(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"div",59)(2,"div",60),e.EFF(3),e.nI1(4,"date"),e.k0s(),e.j41(5,"div",61),e.EFF(6),e.k0s(),e.j41(7,"div",62),e.EFF(8),e.k0s(),e.j41(9,"div",57)(10,"span",63),e.EFF(11),e.k0s()(),e.j41(12,"div",64)(13,"button",65),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.openChat(l))}),e.qSk(),e.j41(14,"svg",66),e.nrm(15,"path",67),e.k0s()(),e.joV(),e.j41(16,"button",68),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.viewDetails(l))}),e.EFF(17," Details "),e.qSk(),e.j41(18,"svg",69),e.nrm(19,"path",70),e.k0s()()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.AVh("bg-gray-50",t.isQuoteFinalized(c))("dark:bg-gray-800",t.isQuoteFinalized(c))("hover:bg-gray-50",!t.isQuoteFinalized(c))("dark:hover:bg-gray-800",!t.isQuoteFinalized(c)),e.BMQ("data-quote-id",c.id),e.R7$(2),e.SpI(" ",e.i5U(4,22,c.quoteDate,"dd-MM-yyyy")," "),e.R7$(3),e.SpI(" ",t.getOtherPartyName(c)," "),e.R7$(2),e.SpI(" ",t.getProductName(c)," "),e.R7$(2),e.Y8G("ngClass",t.getStateClass(t.getPrimaryState(c))),e.R7$(),e.SpI(" ",t.getStatusLabel(c)," "),e.R7$(2),e.HbH(t.getIconButtonClass(c,"chat","text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200")),e.Y8G("disabled",t.isActionDisabled(c,"chat")),e.R7$(3),e.AVh("opacity-50",t.isActionDisabled(c,"viewDetails"))("cursor-not-allowed",t.isActionDisabled(c,"viewDetails")),e.Y8G("disabled",t.isActionDisabled(c,"viewDetails"))}}function k8(n,a){if(1&n&&(e.j41(0,"div",43),e.DNE(1,be,7,0,"div",44)(2,v8,12,1,"div",45)(3,ye,20,25,"div",46),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("ngIf",0===c.filteredQuotes.length),e.R7$(),e.Y8G("ngIf",c.filteredQuotes.length>0),e.R7$(),e.Y8G("ngForOf",c.filteredQuotes)}}function r3(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",80)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.selectedState,l)||(i.selectedState=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",82),e.EFF(3),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("id","state-"+c),e.R50("ngModel",t.selectedState),e.Y8G("value",c),e.R7$(),e.Y8G("for","state-"+c),e.R7$(),e.SpI(" ",t.getStateDisplay(c)," ")}}function i5(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71)(1,"div",72)(2,"div",73)(3,"h3",74),e.EFF(4,"Update Quote State"),e.k0s(),e.j41(5,"div",75),e.DNE(6,r3,4,5,"div",76),e.k0s(),e.j41(7,"div",77)(8,"button",78),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showStateUpdate=!1)}),e.EFF(9," Cancel "),e.k0s(),e.j41(10,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmStateUpdate())}),e.EFF(11," Update "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(6),e.Y8G("ngForOf",c.availableStates),e.R7$(4),e.Y8G("disabled",!c.selectedState)}}function X3(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71)(1,"div",72)(2,"div",73)(3,"h3",74),e.EFF(4),e.k0s(),e.j41(5,"p",83),e.EFF(6),e.k0s(),e.j41(7,"div",9)(8,"label",84),e.EFF(9," Completion Date "),e.k0s(),e.j41(10,"input",85),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.selectedDate,l)||(i.selectedDate=l),e.Njj(l)}),e.k0s(),e.j41(11,"p",86),e.EFF(12,"Date must be in the future"),e.k0s()(),e.j41(13,"div",87)(14,"button",78),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDatePickerModal())}),e.EFF(15," Cancel "),e.k0s(),e.j41(16,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmDateUpdate())}),e.EFF(17," Save Date "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(4),e.SpI(" ","requested"===c.datePickerType?"Add Requested Completion Date":"Add Expected Completion Date"," "),e.R7$(2),e.SpI(" ","requested"===c.datePickerType?"Select when you need this quote to be completed:":"Select when you expect to complete this quote:"," "),e.R7$(4),e.R50("ngModel",c.selectedDate),e.Y8G("min",c.getTomorrowDate()),e.R7$(6),e.Y8G("disabled",!c.selectedDate||!c.isDateValid())}}let e3=(()=>{class n{constructor(){this.router=(0,e.WQX)(E2.Ix),this.quoteService=(0,e.WQX)(L3.K),this.localStorage=(0,e.WQX)(z2.s),this.notificationService=(0,e.WQX)(_4.J),this.accountService=(0,e.WQX)(x0.O),this.productService=(0,e.WQX)(o0.F),this.quotes=[],this.filteredQuotes=[],this.loading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage="",this.quoteToDelete=null,this.showAcceptConfirm=!1,this.acceptConfirmMessage="",this.acceptConfirmCallback=null,this.showCancelConfirm=!1,this.cancelConfirmMessage="",this.cancelConfirmCallback=null,this.organizationNames=new Map,this.productNames=new Map,this.showStateUpdate=!1,this.quoteToUpdate=null,this.selectedState=null,this.availableStates=[h0.yz.PENDING,h0.yz.IN_PROGRESS,h0.yz.APPROVED,h0.yz.REJECTED,h0.yz.CANCELLED,h0.yz.ACCEPTED],this.QUOTE_STATUSES=h0.yz,this.selectedRole="customer",this.currentUserId=null,this.statusFilter="",this.showQuoteDetailsModal=!1,this.selectedQuoteId=null,this.showChatModal=!1,this.selectedChatQuoteId=null,this.showAttachmentModal=!1,this.selectedAttachmentQuote=null,this.showDatePickerModal=!1,this.selectedDateQuote=null,this.datePickerType=null,this.selectedDate=""}ngOnInit(){let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.currentUserId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.currentUserId=t.partyId}this.currentUserId?this.loadQuotes():this.error="User not authenticated"}loadQuotes(){this.currentUserId?(this.loading=!0,this.error=null,this.quoteService.getQuotesByUserAndRole(this.currentUserId,this.selectedRole).subscribe({next:c=>{this.quotes=c,this.enrichQuoteData(c),this.filterQuotesByStatus(),this.loading=!1},error:c=>{console.error("Failed to load quotes:",c),this.error="Failed to load quotes. Please try again.",this.loading=!1}})):this.error="User not authenticated"}isOrganizationId(c){return c.startsWith("urn:ngsi-ld:organization:")}enrichQuoteData(c){const t=new Set,l=new Set;if(c.forEach(i=>{i.relatedParty?.forEach(u=>{u.id&&!this.organizationNames.has(u.id)&&this.isOrganizationId(u.id)&&t.add(u.id)}),i.quoteItem?.forEach(u=>{u.productOffering?.id&&!this.productNames.has(u.productOffering.id)&&l.add(u.productOffering.id)})}),t.size>0){const i=Array.from(t).map(u=>this.accountService.getOrgInfo(u).then(C=>({id:u,name:C?.tradingName||C?.name||u}),()=>({id:u,name:u})));Promise.all(i).then(u=>{u.forEach(({id:C,name:b})=>{this.organizationNames.set(C,b)}),this.filteredQuotes=[...this.filteredQuotes]})}if(console.log("Product IDs to fetch:",Array.from(l)),l.size>0){const i=Array.from(l).map(u=>(console.log("Fetching product:",u),this.productService.getProductById(u).then(C=>(console.log("Product fetched:",u,C?.name),{id:u,name:C?.name||"Product Name Unavailable"}),C=>(console.error("Product fetch error:",u,C),{id:u,name:"Product Name Unavailable"}))));Promise.all(i).then(u=>{u.forEach(({id:C,name:b})=>{this.productNames.set(C,b)}),console.log("Product names map:",Array.from(this.productNames.entries())),this.filteredQuotes=[...this.filteredQuotes]})}}refreshQuotes(){this.loadQuotes()}selectRole(c){this.selectedRole=c,this.loadQuotes()}getRoleTabClass(c){return this.selectedRole===c?"bg-white dark:bg-gray-600 text-blue-400 shadow-sm":"text-gray-500 hover:text-gray-700 dark:hover:text-gray-200"}filterQuotesByStatus(){this.filteredQuotes=this.statusFilter?this.quotes.filter(c=>this.getPrimaryState(c)===this.statusFilter):[...this.quotes],this.filteredQuotes.sort((c,t)=>{const l=c.quoteDate?new Date(c.quoteDate).getTime():0;return(t.quoteDate?new Date(t.quoteDate).getTime():0)-l})}get filterStatusOptions(){const c="customer"===this.selectedRole?h0.D5:h0.Wc;return[{value:h0.yz.PENDING,label:c.PENDING},{value:h0.yz.IN_PROGRESS,label:c.IN_PROGRESS},{value:h0.yz.APPROVED,label:c.APPROVED},{value:h0.yz.ACCEPTED,label:c.ACCEPTED},{value:h0.yz.CANCELLED,label:c.CANCELLED},{value:h0.yz.REJECTED,label:c.REJECTED}]}createQuote(){this.router.navigate(["/quotes/new"])}viewDetails(c){this.selectedQuoteId=c.id,this.showQuoteDetailsModal=!0}viewQuote(c){this.selectedQuoteId=c.id,this.showQuoteDetailsModal=!0}closeQuoteDetailsModal(){this.showQuoteDetailsModal=!1,this.selectedQuoteId=null}onQuoteUpdated(c){const t=this.quotes.findIndex(u=>u.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus());const l=this.extractShortId(c.id),i=this.getPrimaryState(c);this.notificationService.showSuccess(`Quote ${l} has been updated to ${i}.`)}closeChatModal(){this.showChatModal=!1,this.selectedChatQuoteId=null}closeAttachmentModal(){this.showAttachmentModal=!1,this.selectedAttachmentQuote=null}onAttachmentUploaded(c){const t=this.quotes.findIndex(l=>l.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus()),"seller"===this.selectedRole&&this.getPrimaryState(c)===h0.yz.IN_PROGRESS&&(console.log("Provider uploaded PDF, updating quote status to approved:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.APPROVED).subscribe({next:l=>{const i=this.quotes.findIndex(C=>C.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus());const u=this.extractShortId(c.id);console.log("Quote status automatically updated to approved after PDF upload"),this.notificationService.showSuccess(`Quote ${u} has been approved after PDF upload.`)},error:l=>{console.error("Error updating quote status to approved:",l),this.notificationService.showError(`Error updating quote status: ${l.message||"Unknown error"}`)}}))}updateQuoteState(c){this.quoteToUpdate=c,this.selectedState=c.state||null,this.showStateUpdate=!0}confirmStateUpdate(){this.quoteToUpdate&&this.selectedState&&this.quoteService.updateQuoteState(this.quoteToUpdate.id,this.selectedState).subscribe({next:c=>{const t=this.quotes.findIndex(l=>l.id===c.id);-1!==t&&(this.quotes[t]=c,this.filterQuotesByStatus()),this.showStateUpdate=!1,this.notificationService.showSuccess("Quote state updated successfully")},error:c=>{console.error("Failed to update quote state:",c),this.notificationService.showError("Failed to update quote state")}})}confirmDelete(c){this.quoteToDelete=c,this.deleteConfirmMessage=`Are you sure you want to delete Quote ${this.extractShortId(c.id)}? This action cannot be undone.`,this.showDeleteConfirm=!0}deleteQuote(){this.quoteToDelete&&this.quoteService.deleteQuote(this.quoteToDelete.id).subscribe({next:()=>{this.quotes=this.quotes.filter(c=>c.id!==this.quoteToDelete.id),this.filterQuotesByStatus(),this.showDeleteConfirm=!1,this.notificationService.showSuccess("Quote deleted successfully")},error:c=>{console.error("Failed to delete quote:",c),this.notificationService.showError("Failed to delete quote")}})}openChat(c){this.selectedChatQuoteId=c.id,this.showChatModal=!0}downloadAttachment(c){this.quoteService.downloadAttachment(c).subscribe({next:()=>this.notificationService.showSuccess("Download started"),error:t=>{console.error("Error downloading attachment:",t),this.notificationService.showError(t.message||"Error downloading attachment")}})}addAttachment(c){this.selectedAttachmentQuote=c,this.showAttachmentModal=!0}acceptQuote(c){const t=this.extractShortId(c.id);this.acceptConfirmMessage="Are you sure you want to accept this request?",this.acceptConfirmCallback=()=>{console.log("Accepting quote request:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.IN_PROGRESS).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quote request successfully accepted"),this.notificationService.showSuccess(`Quote request ${t} has been accepted and is now in progress.`)},error:l=>{console.error("Error accepting quote request:",l),this.notificationService.showError(`Error accepting quote request: ${l.message||"Unknown error"}`)}}),this.showAcceptConfirm=!1},this.showAcceptConfirm=!0}acceptQuoteCustomer(c){const t=this.extractShortId(c.id);this.acceptConfirmMessage="Are you sure you want to accept the quotation?",this.acceptConfirmCallback=()=>{console.log("Customer accepting quotation:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.ACCEPTED).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quotation successfully accepted by customer"),this.notificationService.showSuccess(`Quotation ${t} has been accepted successfully.`)},error:l=>{console.error("Error accepting quotation:",l),this.notificationService.showError(`Error accepting quotation: ${l.message||"Unknown error"}`)}}),this.showAcceptConfirm=!1},this.showAcceptConfirm=!0}addRequestedDate(c){this.selectedDateQuote=c,this.datePickerType="requested",this.selectedDate="",this.showDatePickerModal=!0}addExpectedDate(c){this.selectedDateQuote=c,this.datePickerType="expected",this.selectedDate="",this.showDatePickerModal=!0}closeDatePickerModal(){this.showDatePickerModal=!1,this.selectedDateQuote=null,this.datePickerType=null,this.selectedDate=""}getTomorrowDate(){const c=new Date;return c.setDate(c.getDate()+1),c.toISOString().split("T")[0]}isDateValid(){if(!this.selectedDate)return!1;const c=new Date(this.selectedDate),t=new Date;return t.setHours(0,0,0,0),c>t}confirmDateUpdate(){if(!(this.selectedDateQuote&&this.datePickerType&&this.selectedDate&&this.isDateValid()))return;const c=this.extractShortId(this.selectedDateQuote.id),t=this.datePickerType,l=new Date(this.selectedDate),i=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log(`Setting ${t} completion date for quote:`,this.selectedDateQuote.id,"Date:",i),this.quoteService.updateQuoteDate(this.selectedDateQuote.id,i,t).subscribe({next:u=>{const C=this.quotes.findIndex(b=>b.id===u.id);-1!==C&&(this.quotes[C]=u,this.filterQuotesByStatus()),console.log(`${t} completion date successfully updated`),this.notificationService.showSuccess(`${"requested"===t?"Requested":"Expected"} completion date for quote ${c} has been set successfully.`),this.closeDatePickerModal()},error:u=>{console.error(`Error setting ${t} completion date:`,u),this.notificationService.showError(`Error setting ${t} completion date: ${u.message||"Unknown error"}`)}})}cancelQuote(c){const t=this.extractShortId(c.id);this.cancelConfirmMessage=`Are you sure you want to cancel quote ${t}? This action cannot be undone and will disable all other quote actions.`,this.cancelConfirmCallback=()=>{console.log("Cancelling quote:",c.id),this.quoteService.updateQuoteStatus(c.id,h0.yz.CANCELLED).subscribe({next:l=>{const i=this.quotes.findIndex(u=>u.id===l.id);-1!==i&&(this.quotes[i]=l,this.filterQuotesByStatus()),console.log("Quote successfully cancelled"),this.notificationService.showSuccess(`Quote ${t} has been cancelled successfully.`)},error:l=>{console.error("Error cancelling quote:",l),this.notificationService.showError(`Error cancelling quote: ${l.message||"Unknown error"}`)}}),this.showCancelConfirm=!1},this.showCancelConfirm=!0}createOffer(c){this.router.navigate(["/my-offerings"],{state:{quoteId:c.id}})}extractShortId(c){return c?c.length>8?c.slice(-8):c:"N/A"}getOtherPartyName(c){if(!c.relatedParty||0===c.relatedParty.length)return"Unknown";const t="customer"===this.selectedRole?g1.c.SELLER_ROLE:g1.c.BUYER_ROLE,l=c.relatedParty.find(u=>u.role?.toLowerCase()===t.toLowerCase());if(!l?.id)return"Unknown";const i=this.organizationNames.get(l.id);return i&&i!==l.id?i:"Loading..."}getProductName(c){if(!c.quoteItem||0===c.quoteItem.length)return"Unknown Product";const t=c.quoteItem[0],l=t.productOffering?.id;return t.productOffering?.name?t.productOffering.name:l?this.productNames.get(l)||"Loading...":t.product?.name?t.product.name:"Unknown Product"}getPrimaryState(c){return Array.isArray(c.quoteItem)&&c.quoteItem.length>0?c.quoteItem[0].state||"unknown":c.state?c.state:"unknown"}getStatusLabel(c){const t=this.getPrimaryState(c),l="customer"===this.selectedRole?h0.D5:h0.Wc;switch(t){case h0.yz.PENDING:return l.PENDING;case h0.yz.IN_PROGRESS:return l.IN_PROGRESS;case h0.yz.APPROVED:return l.APPROVED;case h0.yz.ACCEPTED:return l.ACCEPTED;case h0.yz.CANCELLED:return l.CANCELLED;case h0.yz.REJECTED:return l.REJECTED;default:return t}}hasAttachment(c){return Array.isArray(c.quoteItem)&&c.quoteItem.some(t=>t.attachment&&t.attachment.length>0)}isQuoteCancelled(c){return c.quoteItem?.some(t=>t.state===h0.yz.CANCELLED)||!1}isQuoteAccepted(c){return c.quoteItem?.some(t=>t.state===h0.yz.ACCEPTED)||!1}isQuoteFinalized(c){return this.isQuoteCancelled(c)||this.isQuoteAccepted(c)}isActionDisabled(c,t){const l=this.isQuoteCancelled(c),u=(this.isQuoteAccepted(c),this.isQuoteFinalized(c));switch(t){case"viewDetails":case"downloadAttachment":return l;case"chat":case"accept":case"acceptCustomer":case"addRequestedDate":case"addExpectedDate":default:return!1;case"addAttachment":case"cancel":return u}}getButtonClass(c,t){const l="px-2 py-1 text-xs font-medium transition-colors rounded border";return this.isActionDisabled(c,t)?`${l} text-gray-400 cursor-not-allowed border-gray-200`:"viewDetails"===t?`${l} text-blue-600 hover:text-blue-800 border-blue-200 hover:bg-blue-50`:`${l} text-indigo-600 hover:text-indigo-800 border-indigo-200 hover:bg-indigo-50`}getIconButtonClass(c,t,l){const i="p-1.5 text-xs cursor-pointer rounded hover:bg-gray-100 transition-colors";return this.isActionDisabled(c,t)?`${i} text-gray-400 cursor-not-allowed hover:bg-transparent`:`${i} ${l}`}getActionTitle(c,t){return this.isActionDisabled(c,t)?"Action disabled - quote is "+(this.isQuoteCancelled(c)?"cancelled":"accepted"):""}getStateDisplay(c){return c?{[h0.yz.PENDING]:"Pending",[h0.yz.IN_PROGRESS]:"In Progress",[h0.yz.APPROVED]:"Approved",[h0.yz.REJECTED]:"Rejected",[h0.yz.CANCELLED]:"Cancelled",[h0.yz.ACCEPTED]:"Accepted"}[c]||c:"Unknown"}getStateClass(c){switch(c){case h0.yz.PENDING:return"status-pending";case h0.yz.IN_PROGRESS:return"status-inProgress";case h0.yz.APPROVED:return"status-approved";case h0.yz.REJECTED:return"status-rejected";case h0.yz.CANCELLED:return"status-cancelled";case h0.yz.ACCEPTED:return"status-accepted";default:return"status-unknown"}}canUpdateState(c){return c!==h0.yz.CANCELLED&&c!==h0.yz.ACCEPTED}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-list"]],standalone:!0,features:[e.aNF],decls:42,vars:27,consts:[[1,"w-full","mx-auto","px-6","py-8"],[1,"flex","justify-between","items-center","mb-6"],[1,"flex","items-center","gap-3"],[1,"text-2xl","font-bold","text-gray-900","dark:text-white"],["href","https://knowledgebase.dome-marketplace.eu/books/tailored-offering-guide","target","_blank","rel","noopener noreferrer","title","Click here for the guide of the Tailored process",1,"text-gray-500","hover:text-gray-700","dark:text-gray-400","dark:hover:text-gray-200","transition-colors"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule","evenodd"],[1,"flex","space-x-3"],[1,"bg-gray-600","text-white","px-4","py-2","rounded-md","hover:bg-gray-700","focus:outline-none","focus:ring-2","focus:ring-gray-500","focus:ring-offset-2","disabled:opacity-50",3,"click","disabled"],[1,"mb-6"],[1,"flex","space-x-1","bg-gray-100","dark:bg-gray-700","p-1","rounded-lg"],[1,"flex-1","px-8","py-4","text-2xl","font-medium","rounded-md","transition-colors",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6","inline","mr-3"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"],[1,"flex","items-center","space-x-4"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-5","h-5","text-gray-500","dark:text-gray-100"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"],[1,"text-sm","font-medium","text-gray-700","dark:text-gray-100"],[1,"form-select","rounded-md","border-gray-300","dark:bg-gray-700","dark:border-gray-800","dark:text-white","shadow-sm","focus:border-indigo-500","focus:ring-indigo-500",3,"ngModelChange","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],["class","bg-white dark:bg-gray-700 shadow-md rounded-lg overflow-hidden",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],["title","Accept Quote","confirmText","Accept","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-green-600 border border-transparent rounded-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500",3,"confirm","cancel","isOpen","message"],["title","Cancel Quote","confirmText","Cancel Quote","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],["class","fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",4,"ngIf"],[3,"close","quoteUpdated","isOpen","quoteId","currentUserRole","currentUserId"],[3,"close","isOpen","quoteId"],[3,"close","uploadSuccess","isOpen","quote"],[3,"value"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[1,"flex"],[1,"flex-shrink-0"],["viewBox","0 0 20 20","fill","currentColor",1,"h-5","w-5","text-red-400"],["fill-rule","evenodd","d","M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule","evenodd"],[1,"ml-3"],[1,"text-sm","font-medium","text-red-800"],[1,"mt-1","text-sm","text-red-700"],[1,"bg-white","dark:bg-gray-700","shadow-md","rounded-lg","overflow-hidden"],["class","text-center py-12",4,"ngIf"],["class","bg-gray-50 dark:bg-gray-800 px-6 py-3",4,"ngIf"],["class","quote-row",4,"ngFor","ngForOf"],[1,"text-center","py-12"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"mx-auto","h-12","w-12","text-gray-400"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"],[1,"mt-2","text-sm","font-medium","text-gray-900"],[1,"mt-1","text-sm","text-gray-500"],[1,"bg-gray-50","dark:bg-gray-800","px-6","py-3"],[1,"grid","grid-cols-12","gap-4","text-xs","font-medium","text-gray-500","dark:text-gray-300","uppercase","tracking-wider"],[1,"col-span-2"],[1,"col-span-3"],[1,"col-span-4"],[1,"col-span-1"],[1,"quote-row"],[1,"grid","grid-cols-12","gap-4","items-center","px-6","py-4","border-b","border-gray-100","dark:border-gray-600","transition-colors"],[1,"col-span-2","text-sm","text-gray-600","dark:text-gray-400"],[1,"col-span-3","text-sm","font-medium","text-gray-900","dark:text-white"],[1,"col-span-4","text-sm","text-gray-700","dark:text-gray-300"],[1,"status-badge","px-2","inline-flex","text-xs","leading-5","font-semibold","rounded-full",3,"ngClass"],[1,"col-span-2","flex","items-center","gap-2"],["title","Chat",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 10h.01M12 10h.01M16 10h.01M21 12c0 4.418-4.03 8-9 8a9.77 9.77 0 01-4-.8L3 21l1.8-4A7.96 7.96 0 013 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"],[1,"px-3","py-1","text-sm","font-medium","text-blue-600","dark:text-blue-400","hover:text-blue-800","dark:hover:text-blue-300","border","border-blue-200","dark:border-blue-700","rounded-md","hover:bg-blue-50","dark:hover:bg-blue-900/20","transition-colors","flex","items-center","gap-1",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5l7 7-7 7"],[1,"fixed","inset-0","bg-gray-600","bg-opacity-50","overflow-y-auto","h-full","w-full","z-50"],[1,"relative","top-20","mx-auto","p-5","border","w-96","shadow-lg","rounded-md","bg-white"],[1,"mt-3"],[1,"text-lg","font-medium","text-gray-900","mb-4"],[1,"space-y-3"],["class","flex items-center",4,"ngFor","ngForOf"],[1,"mt-6","flex","justify-end","space-x-3"],[1,"px-4","py-2","text-sm","font-medium","text-gray-700","bg-white","border","border-gray-300","rounded-md","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500",3,"click"],[1,"px-4","py-2","text-sm","font-medium","text-white","bg-indigo-600","border","border-transparent","rounded-md","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-indigo-500","disabled:opacity-50",3,"click","disabled"],[1,"flex","items-center"],["type","radio",1,"focus:ring-indigo-500","h-4","w-4","text-indigo-600","border-gray-300",3,"ngModelChange","id","ngModel","value"],[1,"ml-3","block","text-sm","font-medium","text-gray-700",3,"for"],[1,"text-sm","text-gray-600","mb-4"],["for","completion-date",1,"block","text-sm","font-medium","text-gray-700","mb-2"],["id","completion-date","type","date",1,"w-full","border","border-gray-300","rounded-md","px-3","py-2","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"ngModelChange","ngModel","min"],[1,"text-xs","text-gray-500","mt-1"],[1,"flex","justify-end","space-x-3"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.EFF(4,"Tailored offerings Dashboard"),e.k0s(),e.j41(5,"a",4),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s()()(),e.joV(),e.j41(8,"div",7)(9,"button",8),e.bIt("click",function(){return l.refreshQuotes()}),e.EFF(10),e.k0s()()(),e.j41(11,"div",9)(12,"div",10)(13,"button",11),e.bIt("click",function(){return l.selectRole("customer")}),e.qSk(),e.j41(14,"svg",12),e.nrm(15,"path",13),e.k0s(),e.EFF(16," As Customer "),e.k0s(),e.joV(),e.j41(17,"button",11),e.bIt("click",function(){return l.selectRole("seller")}),e.qSk(),e.j41(18,"svg",12),e.nrm(19,"path",14),e.k0s(),e.EFF(20," As Provider "),e.k0s()()(),e.joV(),e.j41(21,"div",9)(22,"div",15),e.qSk(),e.j41(23,"svg",16),e.nrm(24,"path",17),e.k0s(),e.joV(),e.j41(25,"span",18),e.EFF(26,"Filter by status"),e.k0s(),e.j41(27,"select",19),e.mxI("ngModelChange",function(u){return e.DH7(l.statusFilter,u)||(l.statusFilter=u),u}),e.bIt("ngModelChange",function(){return l.filterQuotesByStatus()}),e.j41(28,"option",20),e.EFF(29,"All Statuses"),e.k0s(),e.DNE(30,K8,2,2,"option",21),e.k0s()()(),e.DNE(31,I0,2,0,"div",22)(32,Ue,10,1,"div",23)(33,k8,4,3,"div",24),e.k0s(),e.j41(34,"app-confirm-dialog",25),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s(),e.j41(35,"app-confirm-dialog",26),e.bIt("confirm",function(){return l.acceptConfirmCallback&&l.acceptConfirmCallback()})("cancel",function(){return l.showAcceptConfirm=!1}),e.k0s(),e.j41(36,"app-confirm-dialog",27),e.bIt("confirm",function(){return l.cancelConfirmCallback&&l.cancelConfirmCallback()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s(),e.DNE(37,i5,12,2,"div",28),e.j41(38,"app-quote-details-modal",29),e.bIt("close",function(){return l.closeQuoteDetailsModal()})("quoteUpdated",function(u){return l.onQuoteUpdated(u)}),e.k0s(),e.j41(39,"app-chat-modal",30),e.bIt("close",function(){return l.closeChatModal()}),e.k0s(),e.j41(40,"app-attachment-modal",31),e.bIt("close",function(){return l.closeAttachmentModal()})("uploadSuccess",function(u){return l.onAttachmentUploaded(u)}),e.k0s(),e.DNE(41,X3,18,5,"div",28)),2&t&&(e.R7$(9),e.Y8G("disabled",l.loading),e.R7$(),e.SpI(" ",l.loading?"Loading...":"Refresh"," "),e.R7$(3),e.HbH(l.getRoleTabClass("customer")),e.R7$(4),e.HbH(l.getRoleTabClass("seller")),e.R7$(10),e.R50("ngModel",l.statusFilter),e.R7$(3),e.Y8G("ngForOf",l.filterStatusOptions),e.R7$(),e.Y8G("ngIf",l.loading),e.R7$(),e.Y8G("ngIf",l.error),e.R7$(),e.Y8G("ngIf",!l.loading&&!l.error),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage),e.R7$(),e.Y8G("isOpen",l.showAcceptConfirm)("message",l.acceptConfirmMessage),e.R7$(),e.Y8G("isOpen",l.showCancelConfirm)("message",l.cancelConfirmMessage),e.R7$(),e.Y8G("ngIf",l.showStateUpdate),e.R7$(),e.Y8G("isOpen",l.showQuoteDetailsModal)("quoteId",l.selectedQuoteId)("currentUserRole",l.selectedRole)("currentUserId",l.currentUserId||""),e.R7$(),e.Y8G("isOpen",l.showChatModal)("quoteId",l.selectedChatQuoteId),e.R7$(),e.Y8G("isOpen",l.showAttachmentModal)("quote",l.selectedAttachmentQuote),e.R7$(),e.Y8G("ngIf",l.showDatePickerModal))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,p.YN,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.vS,q3.w,M6.h,$8.d,I5.w],styles:[".status-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;border-radius:9999px;padding:.125rem .625rem;font-size:.75rem;line-height:1rem;font-weight:500}.status-pending[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity, 1))}.status-inProgress[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity, 1))}.status-approved[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity, 1))}.status-rejected[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity, 1))}.status-cancelled[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.status-accepted[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.status-unknown[_ngcontent-%COMP%]{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}"]})}}return n})();var A2=y(604);let O8=(()=>{class n{constructor(){this.faFileCertificate=A2.LP,this.faBadgeCheck=A2.Zsp,this.faHandHoldingCircleDollar=A2.EEq,this.faChartNetwork=A2.Qux,this.domePublish=g1.c.DOME_PUBLISH_LINK}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-about-dome"]],standalone:!0,features:[e.aNF],decls:86,vars:58,consts:[[1,"bg-secondary-50","dark:bg-secondary-200"],["id","jumbo",1,"w-full"],[1,"pt-8","pb-32","px-4","w-full","text-left","lg:pt-16","lg:px-12","bg-cover","bg-right-bottom","items-center","justify-between",2,"background-image","url(assets/images/bg_1_shadow.png)"],[1,"flex","flex-row","mx-auto","max-w-screen-xl"],[1,"flex","flex-col"],[1,"mb-4","text-left","text-4xl","font-extrabold","tracking-tight","md:text-5xl","lg:text-6xl","text-secondary-50"],[1,"text-left","text-lg","font-normal","lg:text-xl","text-secondary-50"],[1,"w-full","hidden","md:flex"],[1,"relative","-top-20","items-center","mx-auto","max-w-screen-xl","w-full","items-center","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","p-8"],[1,"mb-4","text-left","text-2xl","font-extrabold","tracking-tight","md:text-3xl","lg:text-4xl","dark:text-white","text-secondary-100"],[1,"flex","flex-col","md:flex-row","justify-between","mb-4"],[1,"p-2","md:w-1/2","mb-4"],[1,"dark:text-gray-300","text-gray-700","mb-2"],[1,"dark:text-gray-300","text-gray-700"],["src","assets/images/about-dome.png",1,"md:w-1/3","z-10","dark:text-white"],[1,"mb-4","text-left","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","dark:text-white","text-secondary-100"],[1,"flex","flex-col","md:flex-row","justify-between","gap-x-8"],[1,"flex","flex-col","md:w-1/3"],[1,"fa-2xl","text-center","text-primary-100","dark:text-primary-50","align-middle","mb-2",3,"icon"],[1,"flex","flex-col","justify-center","w-full","items-center","p-8","bg-white","dark:bg-secondary-100"],[1,"mb-4","text-center","text-2xl","font-extrabold","tracking-tight","md:text-3xl","lg:text-4xl","dark:text-white","text-secondary-100","mb-4"],[1,"dark:text-gray-300","text-gray-700","mb-4","text-center","w-3/4"],[1,"mb-4","text-left","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","dark:text-white","text-secondary-100","mb-4"],["target","_blank",1,"flex","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"href"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"mr-2","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"py-8","px-4","mx-auto","max-w-screen-xl","lg:py-16"],[1,"bg-cover","bg-right-bottom","bg-opacity-25","rounded-lg",2,"background-image","url(assets/images/bg_2_shadow.png)"],[1,"px-5","py-5","bg-blue-900/20","rounded-lg","justify-center"],[1,"pb-2","text-5xl","font-extrabold","text-white","mb-4","text-center","pt-8"],[1,"grid","grid-cols-1","lg:grid-cols-3","lg:gap-4","pt-4","pb-4","pl-8","pr-8","lg:pl-16","lg:pr-16"],[1,"lg:m-2"],[1,"lg:mb-8","text-base","font-normal","text-gray-300","text-start"],[1,"mb-4","text-center","text-lg","font-extrabold","tracking-tight","md:text-xl","lg:text-2xl","text-white","mb-4"],[1,"flex","justify-center"],["href","https://dome-project.eu/","target","_blank",1,"w-fit","flex","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",6),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"div",7),e.k0s()()(),e.j41(12,"div",8)(13,"h2",9),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",10)(17,"div",11)(18,"p",12),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"p",13),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.nrm(24,"img",14),e.k0s(),e.j41(25,"h3",15),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",16)(29,"div",17),e.nrm(30,"fa-icon",18),e.j41(31,"p",12),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"div",17),e.nrm(35,"fa-icon",18),e.j41(36,"p",12),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"div",17),e.nrm(40,"fa-icon",18),e.j41(41,"p",12),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()(),e.j41(44,"div",19)(45,"h2",20),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"p",21),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.j41(51,"h3",22),e.EFF(52,"Don\u2019t miss this opportunity and publish your offerings now!"),e.k0s(),e.j41(53,"a",23),e.qSk(),e.j41(54,"svg",24),e.nrm(55,"path",25),e.k0s(),e.EFF(56),e.nI1(57,"translate"),e.k0s()(),e.joV(),e.j41(58,"div",26)(59,"div",27)(60,"div",28)(61,"h2",29),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"div",30)(65,"div",31)(66,"p",32),e.EFF(67),e.nI1(68,"translate"),e.k0s()(),e.j41(69,"div",31)(70,"p",32),e.EFF(71),e.nI1(72,"translate"),e.k0s()(),e.j41(73,"div",31)(74,"p",32),e.EFF(75),e.nI1(76,"translate"),e.k0s()()(),e.j41(77,"h3",33),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"div",34)(81,"a",35),e.qSk(),e.j41(82,"svg",24),e.nrm(83,"path",25),e.k0s(),e.EFF(84),e.nI1(85,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(6),e.JRh(e.bMT(7,22,"ABOUT_DOME._title")),e.R7$(3),e.JRh(e.bMT(10,24,"ABOUT_DOME._subtitle")),e.R7$(5),e.JRh(e.bMT(15,26,"ABOUT_DOME._whatisdome")),e.R7$(5),e.JRh(e.bMT(20,28,"ABOUT_DOME._description")),e.R7$(3),e.JRh(e.bMT(23,30,"ABOUT_DOME._description2")),e.R7$(4),e.JRh(e.bMT(27,32,"ABOUT_DOME._benefits")),e.R7$(4),e.Y8G("icon",l.faChartNetwork),e.R7$(2),e.JRh(e.bMT(33,34,"ABOUT_DOME._trusted")),e.R7$(3),e.Y8G("icon",l.faBadgeCheck),e.R7$(2),e.JRh(e.bMT(38,36,"ABOUT_DOME._verified")),e.R7$(3),e.Y8G("icon",l.faHandHoldingCircleDollar),e.R7$(2),e.JRh(e.bMT(43,38,"ABOUT_DOME._transactions")),e.R7$(4),e.JRh(e.bMT(47,40,"ABOUT_DOME._whydome")),e.R7$(3),e.SpI(" ",e.bMT(50,42,"ABOUT_DOME._whydescription")," "),e.R7$(4),e.FS9("href",l.domePublish,e.B4B),e.R7$(3),e.SpI(" ",e.bMT(57,44,"ABOUT_DOME._publish")," "),e.R7$(6),e.JRh(e.bMT(63,46,"ABOUT_DOME._central")),e.R7$(5),e.JRh(e.bMT(68,48,"ABOUT_DOME._aligned")),e.R7$(4),e.JRh(e.bMT(72,50,"ABOUT_DOME._singlepoint")),e.R7$(4),e.JRh(e.bMT(76,52,"ABOUT_DOME._focus")),e.R7$(3),e.JRh(e.bMT(79,54,"ABOUT_DOME._explore")),e.R7$(6),e.SpI(" ",e.bMT(85,56,"ABOUT_DOME._domeproject")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9]})}}return n})();var Ge=y(7586),$2=y.n(Ge),e0=y(3207);class W3{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}createBlogEntry(a){return this.http.post(`${W3.BASE_URL}/domeblog`,a)}getBlogEntries(a){let c=`${W3.BASE_URL}/domeblog`,t=new g.Nl;return a?.contentType&&(t=t.set("contentType",a.contentType)),a?.page&&(t=t.set("page",a.page)),a?.limit&&(t=t.set("limit",a.limit)),(0,e0.s)(this.http.get(c,{params:t}))}getBlogEntryById(a){return(0,e0.s)(this.http.get(`${W3.BASE_URL}/domeblog/${a}`))}updateBlogEntry(a,c){return(0,e0.s)(this.http.patch(`${W3.BASE_URL}/domeblog/${c}`,a))}deleteBlogEntry(a){return(0,e0.s)(this.http.delete(`${W3.BASE_URL}/domeblog/${a}`))}static{this.\u0275fac=function(c){return new(c||W3)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:W3,factory:W3.\u0275fac,providedIn:"root"})}}function k7(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToUpdate())}),e.qSk(),e.j41(2,"svg",25),e.nrm(3,"path",26),e.k0s()(),e.joV(),e.j41(4,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openDeleteDialog())}),e.qSk(),e.j41(5,"svg",28),e.nrm(6,"path",29),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.Y8G("disabled",c.deleting)}}function r5(n,a){if(1&n&&(e.j41(0,"span",31),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function gc(n,a){if(1&n&&(e.j41(0,"div",30),e.Z7z(1,r5,2,1,"span",31,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c)}}function ee(n,a){1&n&&e.DNE(0,gc,3,0,"div",30),2&n&&e.vxM(0,a.length>0?0:-1)}function P5(n,a){if(1&n&&(e.j41(0,"div",21),e.nrm(1,"img",32),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("src",a,e.B4B)("alt",c.entry.title+" featured image")}}let Rn=(()=>{class n{constructor(c,t,l,i,u,C){this.route=c,this.router=t,this.domeBlogService=l,this.localStorage=i,this.titleService=u,this.metaService=C,this.entry={},this.blogId="",this.partyId="",this.checkAdmin=!1,this.contentType="blog",this.routeBase="/blog",this.deleting=!1,this.showDeleteConfirm=!1,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.applyRouteConfiguration(),c.initPartyInfo(),c.blogId=c.route.snapshot.paramMap.get("slugOrId")||c.route.snapshot.paramMap.get("id"),c.entry=yield c.getEntryBySlugOrId(c.blogId),c.applySeoMetadata()})()}goBack(){this.router.navigate([this.routeBase])}goToUpdate(){const c=this.entry?._id||(this.isObjectId(this.blogId)?this.blogId:null);c&&this.router.navigate(["/blog-entry/",c],{queryParams:{type:this.contentType}})}canManageEntry(){return this.checkAdmin}openDeleteDialog(){!(this.entry?._id||this.isObjectId(this.blogId)&&this.blogId)||this.deleting||(this.deleteConfirmMessage=`Are you sure you want to delete "${this.entry?.title||"this post"}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){const t=c.entry?._id||(c.isObjectId(c.blogId)?c.blogId:null);if(t){c.closeDeleteDialog(),c.deleting=!0;try{yield c.domeBlogService.deleteBlogEntry(t),c.goBack()}catch(l){console.error("There was an error while deleting the entry!",l)}finally{c.deleting=!1}}else c.closeDeleteDialog()})()}getEntryBySlugOrId(c){var t=this;return(0,C1.A)(function*(){if(!c)return{};if(t.isObjectId(c))try{return yield t.domeBlogService.getBlogEntryById(c)}catch{}try{const l=yield t.domeBlogService.getBlogEntries({contentType:t.contentType}),u=t.extractEntries(l).find(C=>C.slug===c);if(u?._id)try{return yield t.domeBlogService.getBlogEntryById(u._id)}catch{return u}if(u)return u}catch{}try{return yield t.domeBlogService.getBlogEntryById(c)}catch{return{}}})()}isObjectId(c){return/^[a-f\d]{24}$/i.test(c)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.checkAdmin=c.roles.some(t=>"admin"===t.name)}}applySeoMetadata(){const c=(this.entry?.title||"").toString().trim(),t=this.getEntryMetaDescription();c&&this.titleService.setTitle(c),t&&this.metaService.updateTag({name:"description",content:t})}applyRouteConfiguration(){const c=this.route?.snapshot.data?.contentType;this.contentType=c||"blog",this.routeBase="news"===this.contentType?"/news":"/blog"}extractEntries(c){if(Array.isArray(c))return c;const t=c?.items||c?.entries||c?.data||c?.results||c?.content;return Array.isArray(t)?t:[]}getEntryMetaDescription(){const c=(this.entry?.metaDescription||"").toString().trim();if(c)return this.truncateText(c,160);const t=(this.entry?.excerpt||"").toString().trim();if(t)return this.truncateText(t,160);const l=this.stripMarkdown((this.entry?.content||"").toString());return this.truncateText(l,160)}getFeaturedImage(){return"string"==typeof this.entry?.featuredImage&&this.entry.featuredImage.trim().length>0?this.entry.featuredImage.trim():"string"==typeof this.entry?.featuredImage?.url&&this.entry.featuredImage.url.trim().length>0?this.entry.featuredImage.url.trim():null}getEntryTags(){const c=this.entry?.tags;return Array.isArray(c)?c.map(t=>(t??"").toString().trim()).filter(t=>t.length>0):"string"==typeof c?c.split(",").map(t=>t.trim()).filter(t=>t.length>0):[]}stripMarkdown(c){return c.replace(/!\[[^\]]*]\([^)]*\)/g," ").replace(/\[[^\]]*]\([^)]*\)/g," ").replace(/[`*_>#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,t){return!c||c.length<=t?c:`${c.slice(0,t).trim()}...`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(W3),e.rXU(z2.s),e.rXU(m.hE),e.rXU(m.W8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-blog-entry-detail"]],standalone:!0,features:[e.aNF],decls:32,vars:15,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"pb-4"],[1,"flex","px-5","py-3","shadow-lg","text-gray-700","border","border-gray-200","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","p-4","pb-16","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","w-full","max-w-screen-xl","rounded-lg","border","border-gray-300","bg-white","p-6","shadow-lg","dark:border-secondary-300","dark:bg-secondary-100","md:p-8","lg:p-10"],[1,"mb-4","flex","items-start","justify-between","gap-4"],[1,"text-3xl","font-bold","text-secondary-200","dark:text-white","break-words"],[1,"flex","items-center","gap-2"],[1,"mb-6","text-[#4C5A6B]","dark:text-secondary-50"],[1,"text-[#2D58A7]","dark:text-primary-50"],[1,"mb-6","flex","justify-center"],[1,"text-gray-700","dark:text-secondary-50","whitespace-pre-line","break-words",3,"data"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","title","Edit entry",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete entry",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"mb-6","flex","flex-wrap","gap-2"],[1,"inline-flex","items-center","rounded-md","border","border-blue-200","bg-blue-50","px-2.5","py-1","text-xs","font-medium","text-blue-700","dark:border-blue-500/40","dark:bg-blue-900/30","dark:text-blue-200"],[1,"max-h-[300px]","w-full","max-w-3xl","rounded-lg","border","border-gray-300","object-contain","bg-gray-50","p-2","dark:border-gray-700","dark:bg-secondary-300",3,"src","alt"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9," Back "),e.k0s()(),e.joV(),e.j41(10,"li",9)(11,"div",10),e.qSk(),e.j41(12,"svg",11),e.nrm(13,"path",12),e.k0s(),e.joV(),e.j41(14,"span",13),e.EFF(15,"Entry details"),e.k0s()()()()()()(),e.j41(16,"div",14)(17,"div",15)(18,"div",16)(19,"h1",17),e.EFF(20),e.k0s(),e.DNE(21,k7,7,1,"div",18),e.k0s(),e.j41(22,"p",19),e.EFF(23," Created by "),e.j41(24,"b",20),e.EFF(25),e.k0s(),e.EFF(26),e.nI1(27,"date"),e.k0s(),e.DNE(28,ee,1,1)(29,P5,2,2,"div",21),e.nrm(30,"markdown",22),e.k0s()()(),e.j41(31,"app-confirm-dialog",23),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t){let i,u;e.R7$(20),e.JRh(l.entry.title),e.R7$(),e.vxM(21,l.canManageEntry()?21:-1),e.R7$(4),e.SpI(" ",l.entry.author," "),e.R7$(),e.SpI(" on ",e.i5U(27,12,l.entry.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(28,(i=l.getEntryTags())?28:-1,i),e.R7$(),e.vxM(29,(u=l.getFeaturedImage())?29:-1,u),e.R7$(),e.Y8G("data",l.entry.content),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass)}},dependencies:[_.MD,_.vh,N0,q3.w]})}}return n})(),U2=(()=>{class n{constructor(){this.eventMessageSubject=new S.B,this.messages$=this.eventMessageSubject.asObservable()}emitAddedFilter(c){this.eventMessageSubject.next({type:"AddedFilter",value:c})}emitRemovedFilter(c){this.eventMessageSubject.next({type:"RemovedFilter",value:c})}emitAddedCartItem(c){this.eventMessageSubject.next({type:"AddedCartItem",value:c})}emitRemovedCartItem(c){this.eventMessageSubject.next({type:"RemovedCartItem",value:c})}emitFilterShown(c){this.eventMessageSubject.next({type:"FilterShown",value:c})}emitToggleDrawer(c){this.eventMessageSubject.next({type:"ToggleCartDrawer",value:c})}emitLogin(c){this.eventMessageSubject.next({type:"LoginProcess",value:c})}emitBillAccChange(c){this.eventMessageSubject.next({type:"BillAccChanged",value:c})}emitSellerProductSpec(c){this.eventMessageSubject.next({type:"SellerProductSpec",value:c})}emitSellerCreateProductSpec(c){this.eventMessageSubject.next({type:"SellerCreateProductSpec",value:c})}emitSellerUpdateProductSpec(c){this.eventMessageSubject.next({type:"SellerUpdateProductSpec",value:c})}emitSellerServiceSpec(c){this.eventMessageSubject.next({type:"SellerServiceSpec",value:c})}emitSellerCreateServiceSpec(c){this.eventMessageSubject.next({type:"SellerCreateServiceSpec",value:c})}emitSellerUpdateServiceSpec(c){this.eventMessageSubject.next({type:"SellerUpdateServiceSpec",value:c})}emitSellerResourceSpec(c){this.eventMessageSubject.next({type:"SellerResourceSpec",value:c})}emitSellerCreateResourceSpec(c){this.eventMessageSubject.next({type:"SellerCreateResourceSpec",value:c})}emitSellerUpdateResourceSpec(c){this.eventMessageSubject.next({type:"SellerUpdateResourceSpec",value:c})}emitSellerOffer(c){this.eventMessageSubject.next({type:"SellerOffer",value:c})}emitSellerCreateOffer(c){this.eventMessageSubject.next({type:"SellerCreateOffer",value:c})}emitSellerUpdateOffer(c){this.eventMessageSubject.next({type:"SellerUpdateOffer",value:c})}emitSellerCreateCustomOffer(c,t){this.eventMessageSubject.next({type:"SellerCreateCustomOffer",value:{offer:c,partyId:t}})}emitSellerCatalog(c){this.eventMessageSubject.next({type:"SellerCatalog",value:c})}emitSellerUpdateCatalog(c){this.eventMessageSubject.next({type:"SellerCatalogUpdate",value:c})}emitSellerCreateCatalog(c){this.eventMessageSubject.next({type:"SellerCatalogCreate",value:c})}emitCategoryAdded(c){this.eventMessageSubject.next({type:"CategoryAdded",value:c})}emitChangedSession(c){this.eventMessageSubject.next({type:"ChangedSession",value:c})}emitCloseCartCard(c){this.eventMessageSubject.next({type:"CloseCartCard",value:c})}emitShowCartToast(c){this.eventMessageSubject.next({type:"ShowCartToast",value:c})}emitHideCartToast(c){this.eventMessageSubject.next({type:"HideCartToast",value:c})}emitAdminCategories(c){this.eventMessageSubject.next({type:"AdminCategories",value:c})}emitCreateCategory(c){this.eventMessageSubject.next({type:"CreateCategory",value:c})}emitUpdateCategory(c){this.eventMessageSubject.next({type:"UpdateCategory",value:c})}emitCloseContact(c){this.eventMessageSubject.next({type:"CloseContact",value:c})}emitOpenServiceDetails(c){this.eventMessageSubject.next({type:"OpenServiceDetails",value:c})}emitOpenResourceDetails(c){this.eventMessageSubject.next({type:"OpenResourceDetails",value:c})}emitOpenProductInvDetails(c){this.eventMessageSubject.next({type:"OpenProductInvDetails",value:c})}emitSavePricePlan(c){this.eventMessageSubject.next({type:"SavePricePlan",value:c})}emitUpdatePricePlan(c){this.eventMessageSubject.next({type:"UpdatePricePlan",value:c})}emitToggleEditPricePlan(c){this.eventMessageSubject.next({type:"ToggleEditPrice",value:c})}emitToggleNewPricePlan(c){this.eventMessageSubject.next({type:"ToggleNewPrice",value:c})}emitSubformChange(c){this.eventMessageSubject.next({type:"SubformChange",value:c})}emitCloseFeedback(c){this.eventMessageSubject.next({type:"CloseFeedback",value:c})}emitCloseQuoteRequest(c){this.eventMessageSubject.next({type:"CloseQuoteRequest",value:c})}emitUpdateOffer(c){this.eventMessageSubject.next({type:"UpdateOffer",value:c})}emitUpdateUsageSpec(c){this.eventMessageSubject.next({type:"UpdateUsageSpec",value:c})}emitUsageSpecList(c){this.eventMessageSubject.next({type:"UsageSpecList",value:c})}emitCreateUsageSpec(c){this.eventMessageSubject.next({type:"CreateUsageSpec",value:c})}emitAiSearchFacets(c){this.eventMessageSubject.next({type:"AiSearchFacets",value:c})}emitAiSearchCleared(){this.eventMessageSubject.next({type:"AiSearchCleared",value:!0})}emitFiltersCommitted(){this.eventMessageSubject.next({type:"FiltersCommitted",value:!0})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function As(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"p",12),e.EFF(2),e.k0s(),e.qSk(),e.j41(3,"svg",13),e.nrm(4,"path",14),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.JRh(c.createButtonLabel)}}function k2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17)(1,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.goToUpdate(l._id))}),e.qSk(),e.j41(2,"svg",26),e.nrm(3,"path",27),e.k0s()(),e.joV(),e.j41(4,"button",28),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",29),e.nrm(6,"path",30),e.k0s()()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(4),e.Y8G("disabled",t.isDeletingEntry(c))}}function x(n,a){if(1&n&&(e.j41(0,"span",32),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c," ")}}function E(n,a){if(1&n&&(e.j41(0,"div",31),e.Z7z(1,x,2,1,"span",32,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c)}}function v(n,a){1&n&&e.DNE(0,E,3,0,"div",31),2&n&&e.vxM(0,a.length>0?0:-1)}function N(n,a){if(1&n&&e.nrm(0,"img",21),2&n){const c=e.XpG().$implicit,t=e.XpG();e.Y8G("src",a,e.B4B)("alt",c.title+" featured image")("ngClass",t.getImageClass())}}function V(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",8)(1,"div",15)(2,"h2",16),e.EFF(3),e.k0s(),e.DNE(4,k2,7,1,"div",17),e.k0s(),e.j41(5,"h4",18),e.EFF(6," Created by "),e.j41(7,"b",19),e.EFF(8),e.k0s(),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.DNE(11,v,1,1),e.j41(12,"div",20),e.DNE(13,N,1,3,"img",21),e.j41(14,"div",22)(15,"p",23),e.EFF(16),e.k0s(),e.j41(17,"button",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.goToDetails(l))}),e.j41(18,"p",12),e.EFF(19,"View details"),e.k0s()()()()()}if(2&n){let c,t;const l=a.$implicit,i=e.XpG();e.R7$(2),e.Y8G("ngClass",i.getCardTitleClass()),e.R7$(),e.JRh(l.title),e.R7$(),e.vxM(4,i.canManageEntry(l)?4:-1),e.R7$(4),e.JRh(l.author),e.R7$(),e.SpI(" on ",e.i5U(10,8,l.date,"EEEE, dd/MM/yy, HH:mm"),". "),e.R7$(2),e.vxM(11,(c=i.getEntryTags(l))?11:-1,c),e.R7$(2),e.vxM(13,(t=i.getFeaturedImage(l))?13:-1,t),e.R7$(3),e.SpI(" ",i.getEntryExcerpt(l)," ")}}function c1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadMoreEntries())}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("disabled",c.loadingMore),e.R7$(),e.SpI(" ",c.loadingMore?"Loading...":"Load more"," ")}}let z1=(()=>{class n{constructor(c,t,l,i,u){this.router=c,this.eventMessage=t,this.localStorage=l,this.domeBlogService=i,this.route=u,this.pageLimit=9,this.partyId="",this.checkAdmin=!1,this.destroy$=new S.B,this.deletingEntryId=null,this.showDeleteConfirm=!1,this.pendingDeleteEntry=null,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",this.entries=[],this.contentType="blog",this.pageTitle="Blog",this.createButtonLabel="Add a new entry",this.routeBase="/blog",this.isNewsLayout=!1,this.currentPage=1,this.hasMoreEntries=!1,this.loadingMore=!1,this.eventMessage.messages$.subscribe(C=>{"ChangedSession"===C.type&&this.initPartyInfo()})}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.applyRouteConfiguration(),c.initPartyInfo(),yield c.loadEntries()})()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(console.log("user info ---"),console.log(c),c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.checkAdmin=c.roles.some(t=>"admin"===t.name)}}goToDetails(c){this.router.navigate([`${this.routeBase}/`,this.getEntryRouteId(c)])}goToCreate(){this.router.navigate(["/blog-entry"],{queryParams:{type:this.contentType}})}goToUpdate(c){this.router.navigate(["/blog-entry/",c])}canManageEntry(c){return this.checkAdmin}isDeletingEntry(c){return this.deletingEntryId===c?._id}openDeleteDialog(c){!c?._id||this.isDeletingEntry(c)||(this.pendingDeleteEntry=c,this.deleteConfirmMessage=`Are you sure you want to delete "${c.title}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1,this.pendingDeleteEntry=null}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){if(c.pendingDeleteEntry?._id){c.deletingEntryId=c.pendingDeleteEntry._id,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(c.deletingEntryId),yield c.loadEntries()}catch(t){console.error("There was an error while deleting the entry!",t)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}loadEntries(){var c=this;return(0,C1.A)(function*(){try{c.currentPage=1;const t=yield c.domeBlogService.getBlogEntries({contentType:c.contentType,page:c.currentPage,limit:c.pageLimit}),{entries:l,hasMore:i}=c.normalizeEntryResponse(t,c.currentPage);c.entries=l,c.hasMoreEntries=i}catch{c.entries=[],c.hasMoreEntries=!1}})()}loadMoreEntries(){var c=this;return(0,C1.A)(function*(){if(!c.loadingMore&&c.hasMoreEntries){c.loadingMore=!0;try{const t=c.currentPage+1,l=yield c.domeBlogService.getBlogEntries({contentType:c.contentType,page:t,limit:c.pageLimit}),{entries:i,hasMore:u}=c.normalizeEntryResponse(l,t);c.entries=[...c.entries,...i],c.currentPage=t,c.hasMoreEntries=u}catch{c.hasMoreEntries=!1}finally{c.loadingMore=!1}}})()}getEntryRouteId(c){return c?.slug&&"string"==typeof c.slug&&c.slug.trim().length>0?c.slug.trim():c?._id}getFeaturedImage(c){return"string"==typeof c?.featuredImage&&c.featuredImage.trim().length>0?c.featuredImage.trim():"string"==typeof c?.featuredImage?.url&&c.featuredImage.url.trim().length>0?c.featuredImage.url.trim():null}getEntryTags(c){const t=c?.tags;return Array.isArray(t)?t.map(l=>(l??"").toString().trim()).filter(l=>l.length>0):"string"==typeof t?t.split(",").map(l=>l.trim()).filter(l=>l.length>0):[]}getEntryExcerpt(c){const t=(c?.excerpt||"").toString().trim();if(t)return t;const l=(c?.metaDescription||"").toString().trim();if(l)return l;const i=this.stripMarkdown((c?.content||"").toString());return this.truncateText(i,260)}getCardTitleClass(){return this.isNewsLayout?"text-[28px] leading-tight md:text-[30px]":"text-2xl"}getImageClass(){return this.isNewsLayout?"h-72 w-full rounded-lg border border-gray-300 object-cover md:h-64 md:w-[432px] md:min-w-[432px] dark:border-gray-700":"h-52 w-full rounded-lg border border-gray-300 object-contain p-2 md:h-44 md:w-72 md:min-w-72 dark:border-gray-700"}applyRouteConfiguration(){const c=this.route?.snapshot.data?.contentType;this.contentType=c||"blog",this.isNewsLayout="news"===this.contentType,this.routeBase=this.isNewsLayout?"/news":"/blog",this.pageTitle=this.isNewsLayout?"News & Events":"Blog",this.createButtonLabel=this.isNewsLayout?"Add news/event":"Add a new entry"}normalizeEntryResponse(c,t){const i=this.extractEntries(c).filter(T=>this.matchesContentType(T)),u=Number(c?.total??c?.count??c?.pagination?.total??0);return{entries:i,hasMore:!!(c?.next||c?.hasMore||c?.pagination?.hasNext)||u>0&&t*this.pageLimit#-]/g," ").replace(/\s+/g," ").trim()}truncateText(c,t){return!c||c.length<=t?c:`${c.slice(0,t).trim()}...`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(U2),e.rXU(z2.s),e.rXU(W3),e.rXU(E2.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dome-blog"]],standalone:!0,features:[e.aNF],decls:13,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-6","px-6","py-10","sm:px-8","md:px-10","md:py-12","lg:px-16","xl:px-[160px]"],[1,"flex","flex-row","items-start","justify-between","gap-4"],[1,"flex","flex-col"],[1,"text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-secondary-200","dark:text-white"],["type","button","data-cy","newBlogEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","px-6","pb-16","pt-4","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mb-8","flex","w-full","flex-col","border","border-gray-300","bg-white","p-8","shadow-lg","rounded-lg","dark:border-secondary-300","dark:bg-secondary-100"],[1,"flex","justify-center","pt-2"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","data-cy","newBlogEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle",3,"click"],[1,"pl-2","pr-2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","inline-flex","justify-between"],[1,"font-bold","mb-4","dark:text-white","break-words",3,"ngClass"],[1,"flex","items-center","gap-2"],[1,"mb-4","text-lg","italic","text-secondary-200","dark:text-secondary-50"],[1,"text-secondary-100","dark:text-primary-50"],[1,"mt-2","flex","flex-col","gap-5","md:flex-row","md:items-start"],[3,"src","alt","ngClass"],[1,"flex","min-w-0","flex-1","flex-col"],[1,"dark:text-secondary-50","line-clamp-5","text-wrap","break-words"],["type","button",1,"mt-4","w-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["type","button","title","Edit entry",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete entry",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"mb-4","flex","flex-wrap","gap-2"],[1,"inline-flex","items-center","rounded-md","border","border-blue-200","bg-blue-50","px-2.5","py-1","text-xs","font-medium","text-blue-700","dark:border-blue-500/40","dark:bg-blue-900/30","dark:text-blue-200"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","px-5","py-2.5","text-center","disabled:opacity-60",3,"click","disabled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),e.EFF(6),e.k0s()(),e.DNE(7,As,5,1,"button",6),e.k0s()()(),e.j41(8,"div",7),e.Z7z(9,V,20,11,"div",8,e.fX1),e.DNE(11,c1,3,2,"div",9),e.k0s()(),e.j41(12,"app-confirm-dialog",10),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t&&(e.R7$(6),e.SpI(" ",l.pageTitle," "),e.R7$(),e.vxM(7,l.checkAdmin?7:-1),e.R7$(2),e.Dyx(l.entries),e.R7$(2),e.vxM(11,l.hasMoreEntries?11:-1),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[_.MD,_.YU,_.vh,q3.w]})}}return n})();const W6={prefix:"fass",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 64l448 0 0 64L0 128 0 64zM0 224l448 0 0 64L0 288l0-64zM448 384l0 64L0 448l0-64 448 0z"]},T9={prefix:"fass",iconName:"arrow-right-from-bracket",icon:[512,512,["sign-out"],"f08b","M486.6 278.6L509.3 256l-22.6-22.6-128-128L336 82.7 290.7 128l22.6 22.6L386.7 224 192 224l-32 0 0 64 32 0 194.7 0-73.4 73.4L290.7 384 336 429.3l22.6-22.6 128-128zM160 96l32 0 0-64-32 0L32 32 0 32 0 64 0 448l0 32 32 0 128 0 32 0 0-64-32 0-96 0L64 96l96 0z"]},Am={prefix:"fass",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM48 192l148 0c-2.6 10.2-4 21-4 32c0 38.2 16.8 72.5 43.3 96L0 320 48 192zM640 320l-235.3 0c26.6-23.5 43.3-57.8 43.3-96c0-11-1.4-21.8-4-32l148 0 48 128zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM464 352l48 160-384 0 48-160 288 0z"]},Te={prefix:"fass",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zM448 512L384 304 64 304 0 512l448 0z"]},mc={prefix:"fass",iconName:"address-card",icon:[576,512,[62140,"contact-card","vcard"],"f2bb","M576 32L0 32 0 480l576 0 0-448zM256 288l32 96L64 384l32-96 160 0zM112 192a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-32l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0zm0 64l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0zm0 64l128 0 16 0 0 32-16 0-128 0-16 0 0-32 16 0z"]},lT={prefix:"fass",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240L304 .6c5.3-.4 10.6-.6 16-.6C443.7 0 544 100.3 544 224c0 5.4-.2 10.7-.6 16L304 240zM32 272C32 144.8 130.9 40.8 256 32.5L256 288 425 457c-41.5 34.4-94.8 55-153 55C139.5 512 32 404.6 32 272zm288 16l255.5 0C571 355.9 538.3 416.1 489 457L320 288z"]},_T={prefix:"fass",iconName:"arrow-right",icon:[448,512,[8594],"f061","M422.6 278.6L445.3 256l-22.6-22.6-144-144L256 66.7 210.8 112l22.6 22.6L322.8 224 32 224 0 224l0 64 32 0 290.7 0-89.4 89.4L210.8 400 256 445.3l22.6-22.6 144-144z"]},nS={prefix:"fass",iconName:"clipboard-check",icon:[384,512,[],"f46c","M192 0c-41.8 0-77.4 26.7-90.5 64L0 64 0 512l384 0 0-448L282.5 64C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM297 273L185 385l-17 17-17-17L87 321l-17-17L104 270.1l17 17 47 47 95-95 17-17L313.9 256l-17 17z"]},wS={prefix:"fass",iconName:"ruler",icon:[512,512,[128207],"f545","M160 512L512 160 352 0 283.3 68.7l48 48L342.6 128 320 150.6l-11.3-11.3-48-48-41.4 41.4 48 48L278.6 192 256 214.6l-11.3-11.3-48-48-41.4 41.4 48 48L214.6 256 192 278.6l-11.3-11.3-48-48L91.3 260.7l48 48L150.6 320 128 342.6l-11.3-11.3-48-48L0 352 160 512z"]},TL={prefix:"fass",iconName:"cart-shopping",icon:[576,512,[128722,"shopping-cart"],"f07a","M24 0L0 0 0 48l24 0 52.1 0 60.3 316.5 3.7 19.5 19.9 0 328 0 24 0 0-48-24 0-308.1 0-9.1-48L496 288 576 32 122 32l-2.4-12.5L115.9 0 96 0 24 0zM176 512a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm336-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]},Ak={prefix:"fass",iconName:"boxes-stacked",icon:[576,512,[62625,"boxes","boxes-alt"],"f468","M248 0L160 0l0 224 256 0L416 0 328 0l0 96-80 0 0-96zM104 256L0 256 0 512l288 0 0-256-104 0 0 96-80 0 0-96zM576 512l0-256-104 0 0 96-80 0 0-96-72 0 0 256 256 0z"]},NO={prefix:"fass",iconName:"receipt",icon:[384,512,[129534],"f543","M0 0L0 512l64-48 64 48 64-48 64 48 64-48 64 48L384 0 320 48 256 0 192 48 128 0 64 48 0 0zM96 144l192 0 16 0 0 32-16 0L96 176l-16 0 0-32 16 0zM80 336l16 0 192 0 16 0 0 32-16 0L96 368l-16 0 0-32zm16-96l192 0 16 0 0 32-16 0L96 272l-16 0 0-32 16 0z"]},IV={prefix:"fass",iconName:"gears",icon:[640,512,["cogs"],"f085","M125 8l70 0 10 48.1c13.8 5.2 26.5 12.7 37.5 22L285.6 64 320 123.4l-33.9 30.3c1.3 7.3 1.9 14.7 1.9 22.3s-.7 15.1-1.9 22.3L320 228.6 285.6 288l-43.1-14.2c-11.1 9.3-23.7 16.8-37.5 22L195 344l-70 0-10-48.1c-13.8-5.2-26.5-12.7-37.5-22L34.4 288 0 228.6l33.9-30.3C32.7 191.1 32 183.6 32 176s.7-15.1 1.9-22.3L0 123.4 34.4 64 77.5 78.2c11.1-9.3 23.7-16.8 37.5-22L125 8zm83 168a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM632 386.4l-47.8 9.8c-4.9 13.4-12 25.8-20.9 36.7l15 44.8L517.7 512l-30.9-34c-7.4 1.3-15 2-22.7 2s-15.4-.7-22.7-2l-30.9 34-60.6-34.4 15-44.8c-8.9-10.9-16-23.3-20.9-36.7L296 386.4l0-68.7 47.8-9.8c4.9-13.4 12-25.8 20.9-36.7l-15-44.8L410.3 192l30.9 34c7.4-1.3 15-2 22.7-2s15.4 .7 22.7 2l30.9-34 60.6 34.4-15 44.8c8.9 10.9 16 23.3 20.9 36.7l47.8 9.8 0 68.7zM464 400a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},xE={prefix:"fass",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 278.6L18.7 256l22.6-22.6 160-160L224 50.7 269.3 96l-22.6 22.6L109.3 256 246.6 393.4 269.3 416 224 461.3l-22.6-22.6-160-160zm192 0L210.7 256l22.6-22.6 160-160L416 50.7 461.3 96l-22.6 22.6L301.3 256 438.6 393.4 461.3 416 416 461.3l-22.6-22.6-160-160z"]},Bf1={prefix:"fass",iconName:"hand-holding-box",icon:[576,512,[],"f47b","M224 128L224 0 96 0l0 256 384 0L480 0 352 0l0 128L288 96l-64 32zM140 327L68.8 384 0 384 0 512l32 0 192 0 160 0 12.4 0 10.2-7 128-88 33-22.7-45.3-65.9-33 22.7-94.5 65L256 416l0-32 32 0 64 0 32 0 0-64-32 0-64 0-64 0-64 0-11.2 0-8.8 7z"]},Kf1={prefix:"fass",iconName:"brain",icon:[512,512,[129504],"f5dc","M240 0l0 56 0 400 0 56-56 0c-28.9 0-52.7-21.9-55.7-50.1c-5.2 1.4-10.7 2.1-16.3 2.1c-35.3 0-64-28.7-64-64c0-7.4 1.3-14.6 3.6-21.2C21.4 367.4 0 338.2 0 304c0-31.9 18.7-59.5 45.8-72.3C37.1 220.8 32 207 32 192c0-30.7 21.6-56.3 50.4-62.6C80.8 123.9 80 118 80 112c0-29.9 20.6-55.1 48.3-62.1C131.3 21.9 155.1 0 184 0l56 0zm32 0l56 0c28.9 0 52.6 21.9 55.7 49.9c27.8 7 48.3 32.1 48.3 62.1c0 6-.8 11.9-2.4 17.4c28.8 6.2 50.4 31.9 50.4 62.6c0 15-5.1 28.8-13.8 39.7C493.3 244.5 512 272.1 512 304c0 34.2-21.4 63.4-51.6 74.8c2.3 6.6 3.6 13.8 3.6 21.2c0 35.3-28.7 64-64 64c-5.6 0-11.1-.7-16.3-2.1c-3 28.2-26.8 50.1-55.7 50.1l-56 0 0-56 0-400 0-56z"]},vn={PRICE:{ONE_TIME:"one time",RECURRING:"recurring",USAGE:"usage"},PRICE_ALTERATION:{DISCOUNT:{code:"discount",name:"Discount"},FEE:{code:"fee",name:"Fee"}},PRICE_ALTERATION_SUPPORTED:{PRICE_COMPONENT:"Price component",DISCOUNT_OR_FEE:"Discount or fee",NOTHING:"None"},PRICE_CONDITION:{EQ:{code:"eq",name:"Equal"},LT:{code:"lt",name:"Less than"},LE:{code:"le",name:"Less than or equal"},GT:{code:"gt",name:"Greater than"},GE:{code:"ge",name:"Greater than or equal"}},LICENSE:{NONE:"None",STANDARD:"Standard open data license",WIZARD:"Custom license (wizard)",FREETEXT:"Custom license (free-text)"},SLA:{NONE:"None",SPEC:"Spec"},METRICS:{UPDATES:"Updates rate",RESPTIME:"Response time",DELAY:"Delay"},MEASURESDESC:{UPDATES:"Expected number of updates in the given period.",RESPTIME:"Total amount of time to respond to a data request (GET).",DELAY:"Total amount of time to deliver a new update (SUBSCRIPTION)."},TIMERANGE:{DAY:"day",WEEK:"week",MONTH:"month"},UNITS:{MSEC:"ms",SEC:"s",MIN:"min"}};class X8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_CATALOG=g1.c.PRODUCT_CATALOG}constructor(a){this.http=a}formatCheapestPricePlan(a){var c={},t=null,l=[];if(null!=a&&a.productOfferingPrice){if(1==a.productOfferingPrice.length&&"open"==a.productOfferingPrice[0].name?.toLocaleLowerCase()&&0==a.productOfferingPrice[0].price?.value)return{priceType:a.productOfferingPrice[0].priceType,price:a.productOfferingPrice?.at(0)?.price?.value,unit:a.productOfferingPrice?.at(0)?.price?.unit,text:"open"};if(a.productOfferingPrice.length>0)if((l=a.productOfferingPrice.filter(u=>u.priceType===vn.PRICE.ONE_TIME)).length>0){for(var i=0;iNumber(l[i].price?.value))&&(t=a.productOfferingPrice[i]);c={priceType:t?.priceType,price:t?.price?.value,unit:t?.price?.unit,text:"one time"}}else l=a.productOfferingPrice.filter(function(u){return void 0!==u.priceType?-1!==[vn.PRICE.RECURRING,vn.PRICE.USAGE].indexOf(u.priceType?.toLocaleLowerCase()):""}),c={priceType:l[0]?.priceType,price:l[0]?.price?.value,unit:l[0]?.price?.unit,text:l[0]?.priceType?.toLocaleLowerCase()==vn.PRICE.RECURRING?l[0]?.recurringChargePeriodType:l[0]?.priceType?.toLocaleLowerCase()==vn.PRICE.USAGE?"/ "+l[0]?.unitOfMeasure?.units:""};else c={priceType:"Free",price:0,unit:"",text:""}}return c}getFormattedPriceList(a){let c=[];if(null!=a&&null!=a.productOfferingPrice)for(let t=0;t0&&(t="custom"===(yield c.getProductPrice(a.productOfferingPrice[0].id)).priceType?.toLowerCase()),t})()}calculatePrice(a){return console.log("Simulating HTTP call with payload:",a),this.http.post(`${X8.BASE_URL}/billing/order/`,a)}static{this.\u0275fac=function(c){return new(c||X8)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:X8,factory:X8.\u0275fac,providedIn:"root"})}}var Tu1=y(4412);class d8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_CART=g1.c.SHOPPING_CART}constructor(a){this.http=a,this.cartSubject=new Tu1.t([]),this.cart$=this.cartSubject.asObservable()}getShoppingCart(){var a=this;return(0,C1.A)(function*(){let c=`${d8.BASE_URL}${d8.API_CART}/item/`;const t=yield(0,e0.s)(a.http.get(c));return a.cartSubject.next(t),t})()}addItemShoppingCart(a){var c=this;return(0,C1.A)(function*(){console.log("adding to cart"),console.log(a);let t=`${d8.BASE_URL}${d8.API_CART}/item/`;yield(0,e0.s)(c.http.post(t,a)),yield c.refreshCart()})()}removeItemShoppingCart(a){var c=this;return(0,C1.A)(function*(){let t=`${d8.BASE_URL}${d8.API_CART}/item/${a}`;yield(0,e0.s)(c.http.delete(t)),yield c.refreshCart()})()}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){console.log("removing cart");let c=`${d8.BASE_URL}${d8.API_CART}/empty/`;yield(0,e0.s)(a.http.post(c,{})),yield a.refreshCart()})()}refreshCart(){var a=this;return(0,C1.A)(function*(){const c=yield a.getShoppingCart();a.cartSubject.next(c)})()}static{this.\u0275fac=function(c){return new(c||d8)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:d8,factory:d8.\u0275fac,providedIn:"root"})}}const SI1=(n,a)=>({"break-all":n,"break-words":a});function NI1(n,a){1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",9),e.nrm(2,"path",10)(3,"path",11),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function EI1(n,a){if(1&n&&e.nrm(0,"img",22),2&n){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function DI1(n,a){1&n&&e.nrm(0,"img",30)}function TI1(n,a){1&n&&e.EFF(0," Estimated price: ")}function RI1(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function AI1(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2),e.k0s(),e.j41(3,"span",33),e.DNE(4,TI1,1,0),e.EFF(5),e.DNE(6,RI1,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(7);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.vxM(4,"usage"==c.priceType?4:-1),e.R7$(),e.Lme(" ",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(6,t.hasKey(c,"recurringChargePeriod")?6:-1)}}function II1(n,a){if(1&n&&(e.j41(0,"div",26),e.Z7z(1,AI1,7,5,"div",31,e.fX1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function PI1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"div",19)(2,"div",20)(3,"div",21),e.DNE(4,EI1,1,1,"img",22)(5,DI1,1,0),e.k0s(),e.j41(6,"div",23)(7,"p",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.goToProdDetails(l))}),e.EFF(8),e.k0s()()(),e.j41(9,"div",25),e.DNE(10,II1,3,0,"div",26),e.k0s()(),e.j41(11,"div",27)(12,"button",28),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.deleteProduct(l))}),e.qSk(),e.j41(13,"svg",29),e.nrm(14,"path",6),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,SI1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(10,c.options.pricing?10:-1)}}function jI1(n,a){if(1&n&&e.Z7z(0,PI1,15,7,"div",18,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c)}}function $I1(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",13),e.DNE(1,jI1,2,0),e.j41(2,"div",14)(3,"button",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToShoppingCart(i.getSellerId(l.at(0))))}),e.qSk(),e.j41(4,"svg",16),e.nrm(5,"path",17),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.vxM(1,t.isArray(c)?1:-1),e.R7$(2),e.Y8G("disabled",0==c.length)("ngClass",0==c.length?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(3),e.SpI(" ",e.bMT(7,4,"CART_DRAWER._purchase")," ")}}function OI1(n,a){if(1&n&&e.Z7z(0,$I1,8,6,"div",13,e.fX1),2&n){const c=e.XpG(2);e.Dyx(c.items)}}function BI1(n,a){1&n&&(e.j41(0,"p",34),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI("",e.bMT(2,1,"CART_DRAWER._empty"),"."))}function VI1(n,a){if(1&n&&(e.j41(0,"div",12),e.DNE(1,OI1,2,0)(2,BI1,3,3),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.items.length>0?1:2)}}let Ru1=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.eventMessage=t,this.priceService=l,this.cartService=i,this.api=u,this.cdr=C,this.router=b,this.faCartShopping=TL,this.items=[],this.showBackDrop=!0,this.check_custom=!1,this.loading=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B}ngOnInit(){this.loading=!0,this.showBackDrop=!0,this.getCart(),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(c=>{"AddedCartItem"===c.type?(console.log("Elemento a\xf1adido"),this.loading=!0,this.getCart()):"RemovedCartItem"===c.type&&(this.loading=!0,this.getCart())}),console.log("Elementos en el carrito...."),console.log(this.items)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get objectKeys(){return Object.keys}getCart(){var c=this;try{this.cartService.getShoppingCart().then(function(){var t=(0,C1.A)(function*(l){console.log("---CARRITO API---"),console.log(l),c.items=l,yield c.getProviderInfo(),c.groupItemsByOwner(),c.loading=!1,c.cdr.detectChanges(),console.log("------------------")});return function(l){return t.apply(this,arguments)}}())}catch(t){this.loading=!1,this.handleError(t,"There was an error while retrieving the cart!")}}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}hasKey(c,t){return t in c}deleteProduct(c){var t=this;return(0,C1.A)(function*(){yield t.cartService.removeItemShoppingCart(c.id),console.log("deleted"),t.eventMessage.emitRemovedCartItem(c)})()}goToProdDetails(c){this.hideCart(),this.router.navigate(["/search/",c.id])}hideCart(){this.eventMessage.emitToggleDrawer(!1)}getSellerId(c){return c.relatedParty.find(l=>l.role===g1.c.SELLER_ROLE).id}goToShoppingCart(c){this.hideCart(),this.router.navigate(["/checkout",c])}getProviderInfo(){var c=this;return(0,C1.A)(function*(){for(let t=0;t{const i=l.relatedParty?.find(u=>u.role===g1.c.SELLER_ROLE)?.id;return i&&(t[i]||(t[i]=[]),t[i].push(l)),t},{}));console.log(c),this.items=c}isArray(c){return Array.isArray(c)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(X8),e.rXU(d8),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-cart-drawer"]],decls:14,vars:8,consts:[["id","cart-drawer","tabindex","-1","aria-labelledby","cart-drawer-label","aria-hidden","true",1,"h-full","flex","flex-col",3,"click"],[1,"mr-2","text-gray-500","dark:text-gray-400",3,"icon"],["id","cart-drawer-label","aria-hidden","true",1,"inline-flex","items-center","text-base","font-semibold","text-gray-500","dark:text-gray-400","text-xl"],[1,"h-px","my-2","bg-gray-200","border-0","dark:bg-gray-700"],["type","button","aria-controls","cart-drawer",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","inline-flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex-1","w-full","grid","grid-flow-row","auto-rows-max","overflow-y-auto","p-2"],[1,"mb-6","border","border-gray-300","dark:border-gray-600","rounded-lg","p-3"],[1,"mt-4"],["data-cy","cartPurchase","type","button",1,"flex","w-full","items-center","justify-center","gap-x-2","px-4","py-2","text-white","bg-blue-700","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","mr-2","ml-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","mt-2","mb-2","rounded-lg","bg-secondary-50/95","dark:bg-gray-700","dark:border-gray-800","border-secondary-50","border"],[1,"flex","flex-col","w-full"],[1,"flex","justify-between","w-full"],[1,"flex","p-2","box-decoration-clone"],["alt","",1,"rounded-t-lg","w-fit","h-[100px]",3,"src"],[1,"p-2","flex","items-center","w-2/3"],["role","button","tabindex","0",1,"text-lg","text-gray-700","dark:text-gray-400","line-clamp-4","text-wrap","break-words","cursor-pointer",3,"click","ngClass"],[1,"p-2","flex","items-center","flex-row"],[1,"items-center","text-sm","text-white"],[1,"p-2","flex","items-center"],["type","button",1,"h-fit","text-blue-700","hover:bg-gray-300","hover:text-white","focus:ring-4","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","dark:text-blue-500","dark:hover:text-white","dark:hover:bg-gray-600",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-[12px]","h-[12px]","text-gray-700","dark:text-gray-400"],["src","https://placehold.co/600x400/svg","alt","",1,"rounded-t-lg","w-fit","h-[100px]"],[1,"flex","place-content-center","flex-col"],[1,"font-bold","text-gray-900","dark:text-primary-50","mr-3"],[1,"text-xs","text-gray-900","dark:text-primary-50"],[1,"text-gray-700","dark:text-gray-400"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(u){return u.stopPropagation()}),e.nrm(1,"fa-icon",1),e.j41(2,"h3",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"hr",3),e.j41(6,"button",4),e.bIt("click",function(){return l.hideCart()}),e.qSk(),e.j41(7,"svg",5),e.nrm(8,"path",6),e.k0s(),e.joV(),e.j41(9,"span",7),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.DNE(12,NI1,6,0,"div",8)(13,VI1,3,1),e.k0s()),2&t&&(e.R7$(),e.Y8G("icon",l.faCartShopping),e.R7$(2),e.SpI(" ",e.bMT(4,4,"CART_DRAWER._title")," "),e.R7$(7),e.JRh(e.bMT(11,6,"CART_DRAWER._close")),e.R7$(2),e.vxM(12,l.loading?12:13))},dependencies:[_.YU,J2.aY,s1.D9],styles:["[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px!important}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#0003}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#888!important;border-radius:5px!important}"]})}}return n})();const YL1={prefix:"far",iconName:"arrow-right",icon:[448,512,[8594],"f061","M440.6 273.4c4.7-4.5 7.4-10.8 7.4-17.4s-2.7-12.8-7.4-17.4l-176-168c-9.6-9.2-24.8-8.8-33.9 .8s-8.8 24.8 .8 33.9L364.1 232 24 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l340.1 0L231.4 406.6c-9.6 9.2-9.9 24.3-.8 33.9s24.3 9.9 33.9 .8l176-168z"]},Sr1={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},xC1={prefix:"far",iconName:"clipboard-check",icon:[384,512,[],"f46c","M320 64l-40 0-9.6 0C263 27.5 230.7 0 192 0s-71 27.5-78.4 64L104 64 64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64zM80 112l0 24c0 13.3 10.7 24 24 24l88 0 88 0c13.3 0 24-10.7 24-24l0-24 16 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l16 0zm88-32a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM289 267.6c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-89.7 89.7L129 287c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l53.3 53.3c4.5 4.5 10.6 7 17 7s12.5-2.5 17-7L289 267.6z"]},BC1={prefix:"far",iconName:"eye",icon:[576,512,[128065],"f06e","M288 80c-65.2 0-118.8 29.6-159.9 67.7C89.6 183.5 63 226 49.4 256c13.6 30 40.2 72.5 78.6 108.3C169.2 402.4 222.8 432 288 432s118.8-29.6 159.9-67.7C486.4 328.5 513 286 526.6 256c-13.6-30-40.2-72.5-78.6-108.3C406.8 109.6 353.2 80 288 80zM95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 336c44.2 0 80-35.8 80-80s-35.8-80-80-80c-.7 0-1.3 0-2 0c1.3 5.1 2 10.5 2 16c0 35.3-28.7 64-64 64c-5.5 0-10.9-.7-16-2c0 .7 0 1.3 0 2c0 44.2 35.8 80 80 80zm0-208a128 128 0 1 1 0 256 128 128 0 1 1 0-256z"]},ux1={prefix:"far",iconName:"filter-list",icon:[512,512,[],"e17c","M41.2 64C18.5 64 0 82.5 0 105.2c0 10.4 3.9 20.4 11 28.1l93 100.1 0 126c0 13.4 6.7 26 18 33.4l75.5 49.8c5.3 3.5 11.6 5.4 18 5.4c18 0 32.6-14.6 32.6-32.6l0-182 93-100.1c7.1-7.6 11-17.6 11-28.1C352 82.5 333.5 64 310.8 64L41.2 64zM145.6 207.7L56.8 112l238.5 0-88.8 95.7c-4.1 4.4-6.4 10.3-6.4 16.3l0 162.8-48-31.7L152 224c0-6.1-2.3-11.9-6.4-16.3zM344 392c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zM320 256c0 13.3 10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0c-13.3 0-24 10.7-24 24zM408 72c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0z"]},kv1={prefix:"far",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16l-97.5 0c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8l97.5 0c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32L0 448c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32l-64 0z"]},kI2=(n,a)=>a.id,tk1=(n,a)=>({"break-all":n,"break-words":a});function wI2(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",5)(1,"span",6),e.nrm(2,"fa-icon",3),e.EFF(3),e.k0s(),e.j41(4,"button",7),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.notifyDismiss(l))}),e.qSk(),e.j41(5,"svg",8),e.nrm(6,"path",9),e.k0s(),e.joV(),e.j41(7,"span",10),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.FS9("title",null==c?null:c.name),e.Y8G("ngClass",e.l_i(10,tk1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20)))("id","badge-dismiss-"+t),e.R7$(),e.Y8G("ngClass",e.l_i(13,tk1,l.hasLongWord(null==c?null:c.name,20),!l.hasLongWord(null==c?null:c.name,20))),e.R7$(),e.Y8G("icon",l.faTag),e.R7$(),e.JRh(null==c?null:c.name),e.R7$(),e.BMQ("data-dismiss-target","#badge-dismiss-"+t),e.R7$(4),e.JRh(e.bMT(9,8,"CATEGORIES_FILTER._remove_badge"))}}function SI2(n,a){if(1&n&&e.Z7z(0,wI2,10,16,"span",5,kI2),2&n){const c=e.XpG();e.Dyx(c.selected)}}let xG=(()=>{class n{constructor(c,t){this.localStorage=c,this.eventMessage=t,this.selected=[],this.destroy$=new S.B,this.faAddressCard=mc,this.faFilterList=ux1,this.faTag=A2._2z,this.selected=[],this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(l=>{if("AddedFilter"===l.type){const i=l.value;-1==this.selected.findIndex(C=>C.id===i.id)&&this.selected.push(l.value)}else if("RemovedFilter"===l.type){const i=l.value,u=this.selected.findIndex(C=>C.id===i.id);u>-1&&this.selected.splice(u,1)}})}ngOnInit(){const c=this.localStorage.getObject("selected_categories");this.selected=Array.isArray(c)?c:[]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}notifyDismiss(c){console.log("Category dismissed: "+JSON.stringify(c)),this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c),this.eventMessage.emitFiltersCommitted()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-categories-panel"]],standalone:!0,features:[e.aNF],decls:8,vars:5,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","dark:text-white"],["id","chips",1,"flex","justify-center","items-center","min-h-[58px]","p-2"],[1,"mr-4","ml-2","min-w-fit"],[1,"mr-2",3,"icon"],[1,"overflow-x-auto","max-h-[46px]","inline-flex"],[1,"inline-flex","min-w-fit","mb-1","justify-between","items-center","px-2","py-1","me-2","text-xs","font-medium","text-primary-100","border","border-1","border-primary-100","bg-secondary-50","rounded","dark:bg-secondary-100","dark:text-secondary-50",3,"ngClass","id","title"],[1,"line-clamp-1","min-w-fit","text-wrap","break-words",3,"ngClass"],["type","button","aria-label","Remove",1,"inline-flex","items-center","p-1","ms-2","text-sm","text-primary-100","dark:text-secondary-50","bg-transparent","rounded-sm","hover:bg-primary-100","hover:text-secondary-50","dark:hover:bg-primary-50","dark:hover:text-primary-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-2","h-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"span",2),e.nrm(3,"fa-icon",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",4),e.DNE(7,SI2,2,0),e.k0s()()()),2&t&&(e.R7$(3),e.Y8G("icon",l.faFilterList),e.R7$(),e.JRh(e.bMT(5,3,"CATEGORIES_FILTER._applied_filters")),e.R7$(3),e.vxM(7,l.selected.length>0?7:-1))},dependencies:[s1.h,s1.D9,J2.aY,_.YU]})}}return n})(),nk1=(()=>{class n{constructor(){}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-europe-trademark"]],decls:6,vars:3,consts:[[1,"w-full"],[1,"mx-auto","max-w-[1180px]","px-6","py-3","flex","items-center","gap-3"],["src","assets/logos/euflag.png","alt","EU flag",1,"h-[18px]","w-auto"],[1,"text-[14px]","text-gray-500","dark:text-gray-400","leading-none"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"img",2),e.j41(3,"p",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()()()),2&t&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"europeTrademark")," "))},dependencies:[s1.D9],encapsulation:2})}}return n})();class Uk{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}sendFeedback(a){return this.http.post(`${Uk.BASE_URL}/feedback`,a)}static{this.\u0275fac=function(c){return new(c||Uk)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:Uk,factory:Uk.\u0275fac,providedIn:"root"})}}const NI2=()=>[1,2,3,4,5];function EI2(n,a){if(1&n&&(e.j41(0,"h5",9),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.rateMessage)}}function DI2(n,a){if(1&n&&(e.j41(0,"h5",9),e.EFF(1),e.k0s(),e.j41(2,"p",13),e.EFF(3,"(optional)"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.writeMessage)}}function TI2(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.setRating(l))}),e.nrm(1,"path",18),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",t.rating>=c?"text-primary-100":"text-gray-300 dark:text-gray-500")}}function RI2(n,a){1&n&&(e.j41(0,"div",11)(1,"h5",14),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",15),e.Z7z(5,TI2,2,1,":svg:svg",16,e.fX1),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._tap")),e.R7$(3),e.Dyx(e.lJ4(3,NI2)))}function AI2(n,a){1&n&&(e.j41(0,"div",11)(1,"h5",14),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",15),e.nrm(5,"textarea",19),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FEEDBACK._write")))}function II2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12)(1,"button",20),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.next())}),e.qSk(),e.j41(2,"svg",21),e.nrm(3,"path",22),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"FEEDBACK._send")," "))}function PI2(n,a){if(1&n&&(e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.DNE(2,EI2,2,1,"h5",9)(3,DI2,4,1),e.k0s(),e.j41(4,"div",10),e.DNE(5,RI2,7,4,"div",11)(6,AI2,6,3)(7,II2,6,3,"div",12),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faMessagePen),e.R7$(),e.vxM(2,c.addComment?3:2),e.R7$(3),e.vxM(5,c.addComment?6:5),e.R7$(2),e.vxM(7,c.rating?7:-1)}}function jI2(n,a){if(1&n&&(e.j41(0,"div",23),e.nrm(1,"fa-icon",8),e.j41(2,"h5",24),e.EFF(3),e.nI1(4,"translate"),e.k0s()()),2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faHandsHoldingHeart),e.R7$(2),e.JRh(e.bMT(4,2,"FEEDBACK._thanks"))}}function $I2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7),e.nrm(1,"fa-icon",8),e.j41(2,"h5",9),e.EFF(3,"Would you like to provide feedback?"),e.k0s(),e.j41(4,"div",25)(5,"div",26)(6,"label",27)(7,"input",28),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.wantsFeedback,l)||(i.wantsFeedback=l),e.Njj(l)}),e.k0s(),e.j41(8,"span",29),e.EFF(9,"Yes"),e.k0s()(),e.j41(10,"label",27)(11,"input",28),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.wantsFeedback,l)||(i.wantsFeedback=l),e.Njj(l)}),e.k0s(),e.j41(12,"span",29),e.EFF(13,"No"),e.k0s()()(),e.j41(14,"div",12)(15,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateFeedback())}),e.qSk(),e.j41(16,"svg",21),e.nrm(17,"path",22),e.k0s(),e.EFF(18," Confirm "),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("icon",c.faMessagePen),e.R7$(6),e.R50("ngModel",c.wantsFeedback),e.Y8G("value",!0),e.R7$(4),e.R50("ngModel",c.wantsFeedback),e.Y8G("value",!1),e.R7$(4),e.Y8G("disabled",null==c.wantsFeedback)}}let _d1=(()=>{class n{constructor(c,t,l){this.eventMessage=c,this.feedbackService=t,this.localStorage=l,this.faMessagePen=A2.a5l,this.faHandsHoldingHeart=A2.hzq,this.rating=0,this.addComment=!1,this.showThanksMessage=!1,this.checkCampaing=!1,this.wantsFeedback=!1}onClick(){this.eventMessage.emitCloseFeedback(!0)}ngOnInit(){this.checkCampaing="campaign"==this.type}updateFeedback(){this.checkCampaing=!1,this.wantsFeedback||this.eventMessage.emitCloseFeedback(!0);let c=this.localStorage.getObject("feedback");this.localStorage.setObject("feedback",{approval:this.wantsFeedback,expire:c?.expire})}setRating(c){this.rating=c}next(){var c=this;return(0,C1.A)(function*(){if(0==c.addComment)c.addComment=!0;else{let t={rating:c.rating,type:c.type};null!=document.getElementById("message")&&(t.description=document.getElementById("message")?.value),yield(0,e0.s)(c.feedbackService.sendFeedback(t)),c.showThanksMessage=!0,yield(0,e0.s)(c.feedbackService.sendFeedback(t)),c.showThanksMessage=!0}})()}hide(){let l={expire:this.localStorage.getObject("feedback")?.expire??g1.c?.feedbackCampaignExpiration??0,approval:!1};this.localStorage.setObject("feedback",l),this.eventMessage.emitCloseFeedback(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(Uk),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["feedback-modal"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{rateMessage:"rateMessage",writeMessage:"writeMessage",type:"type"},decls:12,vars:4,consts:[["id","details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-x-hidden","justify-center","items-center","w-1/2","md:inset-0","h-full","max-h-full","rounded-lg","$event.stopPropagation();"],[1,"relative","w-full","max-w-7xl","max-h-full","rounded-t-lg",3,"click"],[1,"relative","sm:m-8","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-secondary-100","bg-cover","bg-right-bottom","rounded-lg","overflow-y-auto","max-h-[calc(100vh-10rem)]"],["type","button","data-modal-hide","details-modal",1,"absolute","top-4","right-4","z-50","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","rounded-t-lg","p-8"],[1,"text-5xl","text-primary-50","align-middle","mr-2",3,"icon"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"p-8"],[1,"justify-start"],[1,"flex"],[1,"text-md","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"font-semibold","tracking-tight","text-lg","text-primary-100","dark:text-primary-50"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 22 20",1,"w-8","h-8","cursor-pointer","transition-colors",3,"ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 22 20",1,"w-8","h-8","cursor-pointer","transition-colors",3,"click","ngClass"],["d","M20.924 7.625a1.523 1.523 0 0 0-1.238-1.044l-5.051-.734-2.259-4.577a1.534 1.534 0 0 0-2.752 0L7.365 5.847l-5.051.734A1.535 1.535 0 0 0 1.463 9.2l3.656 3.563-.863 5.031a1.532 1.532 0 0 0 2.226 1.616L11 17.033l4.518 2.375a1.534 1.534 0 0 0 2.226-1.617l-.863-5.03L20.537 9.2a1.523 1.523 0 0 0 .387-1.575Z"],["id","message","rows","4",1,"block","p-2.5","w-full","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:ring-blue-500","dark:focus:border-blue-500"],["type","button",1,"mt-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-primary-100","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"w-full","mb-4","rounded-t-lg","p-8"],[1,"md:text-3xl","lg:text-4xl","mt-2","font-semibold","tracking-tight","text-secondary-100","dark:text-white","text-wrap","break-words"],[1,"justify-start","mt-4"],[1,"flex","gap-4"],[1,"inline-flex","items-center"],["type","radio","name","feedbackOption",1,"w-4","h-4","cursor-pointer","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"ngModelChange","ngModel","value"],[1,"ms-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["type","button",1,"mt-4","w-fit","flex","items-center","justify-start","disabled:opacity-50","disabled:cursor-not-allowed","text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-primary-100","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click","disabled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"button",3),e.bIt("click",function(u){return l.hide(),u.stopPropagation()}),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.joV(),e.j41(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.DNE(9,PI2,8,4)(10,jI2,5,4)(11,$I2,19,6),e.k0s()()()),2&t&&(e.R7$(7),e.JRh(e.bMT(8,2,"CARD._close")),e.R7$(2),e.vxM(9,l.showThanksMessage||l.checkCampaing?l.showThanksMessage?10:l.checkCampaing?11:-1:9))},dependencies:[_.YU,p.me,p.Fm,p.BC,p.vS,J2.aY,s1.D9]})}}return n})();const yk1={prefix:"fab",iconName:"x-twitter",icon:[512,512,[],"e61b","M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"]},wk1={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z"]},Ak1={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]},Ok1=[{label:"FOOTER.aboutTitle",navLinks:[{label:"FOOTER.domeProject",url:"https://dome-project.eu/",isRouterLink:!1},{label:"FOOTER.contactUs",url:"/contact-us",isRouterLink:!0},{label:"Feedback"},{label:"Newsletter",url:"https://www.linkedin.com/newsletters/newsletter-7142535480692133889/",isRouterLink:!1}]},{label:"FOOTER.marketplaceTitle",navLinks:[{label:"FOOTER.browse",url:"/search",isRouterLink:!0},{label:"FOOTER.forCustomers",url:"landing-page/customers",isRouterLink:!0},{label:"FOOTER.forProviders",url:"landing-page/providers",isRouterLink:!0}]},{label:"FOOTER.resourcesTitle",navLinks:[{label:"FOOTER.documentation",url:"https://knowledgebase.dome-marketplace-prd.org/",isRouterLink:!1},{label:"FOOTER.news",url:"/news",isRouterLink:!0},{label:"FOOTER.faqs",url:"/faq",isRouterLink:!0}]},{label:"FOOTER.legalTitle",navLinks:[{label:"FOOTER._licensing",url:"/assets/documents/terms.pdf",isRouterLink:!1},{label:"FOOTER._privacy",url:"/assets/documents/privacy.pdf",isRouterLink:!1},{label:"FOOTER._cookies",url:"/assets/documents/cookies.pdf",isRouterLink:!1}]}],MH2=[{name:"BAE",displayName:"BAE Marketplace",browserTitle:"BAE Marketplace",isDefault:!0,assets:{logoUrl:"assets/themes/bae/bae-logo.svg",faviconUrl:"assets/themes/bae/bae-logo.svg",jumboBgUrl:"assets/themes/bae/jumboBackground.png",cardDefaultBgUrl:"assets/themes/bae/cardBackground.svg"},links:{headerLinks:[{label:"HEADER._home",url:"/dashboard",isRouterLink:!0},{label:"HEADER._browse",id:"searchDropdown",children:[{label:"HEADER._services",url:"/search",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],marketplaceHomeUrl:"/search",linkedin:"https://linkedin.com/company/ocean-theme-example",youtube:"https://youtube.com/c/ocean-theme-example",twitter:"https://twitter.com/ocean-theme-example"},dashboard:{showFeaturedOfferings:!0,showPlatformBenefits:!1}},{name:"DOME",displayName:"Dome Marketplace",browserTitle:"DOME Marketplace",assets:{logoUrl:"assets/themes/dome/dome-logo.svg",faviconUrl:"assets/dome_logo.PNG",jumboBgUrl:"assets/themes/dome/jumboBackground.png",cardDefaultBgUrl:"assets/themes/dome/cardBackground.png"},links:{headerLinks:[{label:"HEADER._forCustomers",url:"/landing-page/customers",isRouterLink:!0},{label:"HEADER._forProviders",url:"/landing-page/providers",isRouterLink:!0},{label:"HEADER._marketplaceH",children:[{label:"HEADER._browse_serv",url:"/browse",isRouterLink:!0},{label:"HEADER._catalogs",url:"/catalogues",isRouterLink:!0}]},{label:"HEADER._blog",url:"/blog",isRouterLink:!0}],footerLinks:Ok1,footerLinksColsNumber:Ok1.length,marketplaceHomeUrl:"/browse",linkedin:g1.c.DOME_LINKEDIN,youtube:g1.c.DOME_YOUTUBE,twitter:g1.c.DOME_X,privacyPolicy:"assets/documents/privacy.pdf"},dashboard:{showFeaturedOfferings:!0,showPlatformBenefits:!0},metaTags:[{property:"og:title",content:"DOME Marketplace - Dashboard"},{property:"og:description",content:"The European federated ecosystem for secure and trusted Cloud and Edge service procurement."},{property:"og:image",content:"https://dome-marketplace.eu"},{property:"og:url",content:"https://dome-marketplace.eu/dashboard"},{property:"og:type",content:"website"}]}];let cF=(()=>{class n{constructor(c,t,l,i){this.rendererFactory=c,this.document=t,this.platformId=l,this.injector=i,this.themeManagedMetaAttribute="data-theme-managed-meta",this.availableThemes=MH2,this.renderer=this.rendererFactory.createRenderer(null,null),this.currentThemeSubject=new Tu1.t(null),this.currentTheme$=this.currentThemeSubject.asObservable(),this.defaultTheme=this.availableThemes.find(u=>u.isDefault)||this.availableThemes[0],!this.defaultTheme&&this.availableThemes.length>0?(console.warn("ThemeService: Ning\xfan tema marcado como 'isDefault'. Usando el primero de la lista como fallback."),this.defaultTheme=this.availableThemes[0]):0===this.availableThemes.length&&(console.error("ThemeService: No hay temas disponibles. El sistema de temas no funcionar\xe1 correctamente."),this.defaultTheme={name:"fallback",displayName:"Fallback",assets:{logoUrl:""}})}applyThemeClassToBody(c,t){if((0,_.UE)(this.platformId)&&this.document?.body){const l=this.document.body;t&&t!==c&&this.renderer.removeClass(l,`theme-${t.toLowerCase()}`),this.renderer.addClass(l,`theme-${c.toLowerCase()}`)}}applyThemeBrowserMetadata(c){if(!(0,_.UE)(this.platformId)||!this.document)return;const t=c.browserTitle||c.displayName;t&&(this.document.title=t),this.applyThemeMetaTags(c);const l=c.assets?.faviconUrl;if(!l)return;const i=l.startsWith("/")?l:`/${l}`;let u=this.document.querySelector("link[rel*='icon']");!u&&this.document.head&&(u=this.renderer.createElement("link"),this.renderer.setAttribute(u,"rel","icon"),this.renderer.appendChild(this.document.head,u)),u&&this.renderer.setAttribute(u,"href",i)}applyThemeMetaTags(c){const t=this.document.head;t&&(t.querySelectorAll(`meta[${this.themeManagedMetaAttribute}="true"]`).forEach(l=>this.renderer.removeChild(t,l)),c.metaTags?.length&&c.metaTags.forEach(l=>{if(!l.content||!l.name&&!l.property)return;const i=this.renderer.createElement("meta");this.renderer.setAttribute(i,this.themeManagedMetaAttribute,"true"),this.renderer.setAttribute(i,"content",l.content),l.name&&this.renderer.setAttribute(i,"name",l.name),l.property&&this.renderer.setAttribute(i,"property",l.property),this.renderer.appendChild(t,i)}))}initializeProviderTheme(c){let t;if(c&&(t=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),t||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),t||(t=this.defaultTheme),!t&&this.availableThemes.length>0&&(t=this.availableThemes[0]),t){const l=this.currentThemeSubject.value;this.applyThemeClassToBody(t.name,l?.name),this.applyThemeBrowserMetadata(t),this.currentThemeSubject.next(t);try{const i=this.injector.get(s1.c$);i.currentLang&&i.reloadLang(i.currentLang)}catch(i){console.error("No se pudo obtener TranslateService. \xbfEst\xe1 importado el TranslateModule correctamente?",i)}}else console.error("ThemeService: No se pudo determinar un tema para aplicar.")}findTheme(c){let t;return c&&(t=this.availableThemes.find(l=>l.name.toLowerCase()===c.toLowerCase()),t||console.warn(`ThemeService: El tema del proveedor '${c}' no se encontr\xf3. Usando el tema por defecto.`)),t||(t=this.defaultTheme),t}getCurrentThemeConfig(){return this.currentThemeSubject.value}getAvailableThemes(){return this.availableThemes}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(e._9s),e.KVO(_.qQ),e.KVO(e.Agw),e.KVO(e.zZn))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const Bk1=(n,a)=>a.label,Vk1=(n,a)=>a.url,xH2=(n,a)=>a.label+(a.url||""),bH2=n=>({"mr-4":n});function yH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"fa-icon",15),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.openNewTab(l.url))}),e.k0s()}2&n&&e.Y8G("icon",a.$implicit.icon)}function FH2(n,a){if(1&n&&(e.j41(0,"div",9),e.Z7z(1,yH2,1,1,"fa-icon",14,Vk1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.socialLinks)}}function vH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",19),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(4);return i.feedback=!i.feedback,e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function kH2(n,a){if(1&n&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function wH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(3);return e.Njj(i.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function SH2(n,a){if(1&n&&e.DNE(0,kH2,3,4,"a",20)(1,wH2,3,3),2&n){const c=e.XpG().$implicit;e.vxM(0,c.isRouterLink?1:0)}}function NH2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,vH2,3,3,"a",18)(2,SH2,2,1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,"Feedback"===c.label?1:2)}}function EH2(n,a){if(1&n&&(e.j41(0,"div")(1,"h3",16),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"ul",17),e.Z7z(5,NH2,3,1,"li",null,Bk1),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,c.label)," "),e.R7$(3),e.Dyx(c.navLinks)}}function DH2(n,a){if(1&n&&(e.j41(0,"footer",0)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),e.nrm(6,"img",7),e.k0s(),e.j41(7,"p",8),e.EFF(8," DOME \u2014 Europe's trusted marketplace for verified cloud, edge & AI services. "),e.k0s(),e.DNE(9,FH2,3,0,"div",9),e.k0s(),e.j41(10,"div",10)(11,"div",11),e.Z7z(12,EH2,7,3,"div",null,Bk1),e.k0s()()()(),e.j41(14,"div",12)(15,"div",13),e.nrm(16,"app-europe-trademark"),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(9),e.vxM(9,c.socialLinks.length?9:-1),e.R7$(3),e.Dyx(c.footerLinks)}}function TH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"fa-icon",26),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.openNewTab(l.url))}),e.k0s()}if(2&n){const c=a.$implicit;e.Y8G("ngClass",e.eq3(2,bH2,a.$index!==a.$count-1))("icon",c.icon)}}function RH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",27),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return i.feedback=!i.feedback,e.Njj(l.stopPropagation())}),e.EFF(2," Feedback "),e.k0s()()}}function AH2(n,a){if(1&n&&(e.j41(0,"a",28),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function IH2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.goToRoute(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function PH2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,AH2,3,4,"a",28)(2,IH2,3,3),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function jH2(n,a){if(1&n&&(e.j41(0,"div")(1,"div",22)(2,"div",23),e.Z7z(3,TH2,1,4,"fa-icon",24,Vk1),e.k0s(),e.j41(5,"ul",25),e.DNE(6,RH2,3,0,"li"),e.Z7z(7,PH2,3,1,"li",null,xH2),e.k0s()()()),2&n){const c=e.XpG();e.R7$(3),e.Dyx(c.socialLinks),e.R7$(3),e.vxM(6,c.checkLogged?6:-1),e.R7$(),e.Dyx(c.defaultFooterLinks)}}function $H2(n,a){1&n&&(e.nrm(0,"feedback-modal",1),e.nI1(1,"translate"),e.nI1(2,"translate")),2&n&&e.Y8G("rateMessage",e.bMT(1,2,"FEEDBACK._footer_title"))("writeMessage",e.bMT(2,4,"FEEDBACK._footer_improve"))}let Uk1=(()=>{class n{constructor(c,t,l,i){this.themeService=c,this.localStorage=t,this.eventMessage=l,this.router=i,this.faLinkedin=wk1,this.faYoutube=Ak1,this.faXTwitter=yk1,this.unSub=new S.B,this.checkLogged=!1,this.feedback=!1,this.isDomeTheme=!1,this.socialLinks=[],this.footerLinks=[],this.defaultFooterLinks=[]}ngOnInit(){this.getCurrentThemeData(),this.checkEventMessages(),this.checkIfLogged()}checkIfLogged(){const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0&&(this.checkLogged=!0)}checkEventMessages(){this.eventMessage.messages$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{"CloseFeedback"===c.type&&(this.feedback=!1),this.checkIfLogged()})}getCurrentThemeData(){this.themeService.currentTheme$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{this.isDomeTheme="DOME"===(c?.name||"").toUpperCase(),this.footerLinks=c?.links?.footerLinks||[],this.defaultFooterLinks=this.footerLinks.flatMap(t=>t.navLinks||[]),this.columns=c?.links?.footerLinksColsNumber||0,this.socialLinks=[],c?.links?.linkedin&&this.socialLinks.push({url:c.links.linkedin,icon:this.faLinkedin}),c?.links?.twitter&&this.socialLinks.push({url:c.links.twitter,icon:this.faXTwitter}),c?.links?.youtube&&this.socialLinks.push({url:c.links.youtube,icon:this.faYoutube})})}goToRoute(c){this.router.navigate([c])}openNewTab(c){window.open(c,"_blank")}ngOnDestroy(){this.unSub.complete(),this.unSub.unsubscribe()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(cF),e.rXU(z2.s),e.rXU(U2),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-footer"]],decls:3,vars:2,consts:[[1,"w-full","bg-[#0A1930]","text-white","antialiased"],["type","experience",1,"fixed","inset-0","z-40","flex","items-center","justify-center",3,"rateMessage","writeMessage"],[1,"mx-auto","max-w-[1240px]","px-8","lg:px-12"],[1,"pt-[72px]","pb-[56px]"],[1,"grid","grid-cols-1","md:grid-cols-12","gap-y-12","md:gap-x-12"],[1,"md:col-span-5"],[1,"flex","items-start"],["src","assets/logos/DOME_Logo_White_Name.svg","alt","DOME logo",1,"h-[60px]"],[1,"mt-10","max-w-[460px]","text-[19px]","leading-[1.58]","text-white/80"],[1,"mt-8","flex","items-center","gap-6"],[1,"md:col-span-7"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-x-[70px]","gap-y-12"],[1,"border-white/15","py-[22px]"],[1,"flex","flex-col","sm:flex-row","sm:items-center","sm:justify-between","gap-4","text-[14px]","leading-[1.5]","text-white/55"],["size","lg",1,"cursor-pointer","opacity-90","hover:opacity-100","transition",3,"icon"],["size","lg",1,"cursor-pointer","opacity-90","hover:opacity-100","transition",3,"click","icon"],[1,"text-[14px]","leading-[1.25]","font-semibold","tracking-[0.08em]","text-white/95"],[1,"mt-5","space-y-[10px]"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"click"],["target","_blank","rel","noopener noreferrer",1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"href"],[1,"block","text-[14px]","leading-[1.6]","text-white/65","hover:text-white","transition","cursor-pointer",3,"click"],[1,"flex","h-[25px]","justify-center","md:justify-between","items-center","bg-white","border-t","border-gray-200","shadow","dark:bg-tertiary-50","dark:border-gray-600","p-4"],[1,"hidden","md:flex","justify-start","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer",3,"ngClass","icon"],[1,"flex","flex-wrap","items-center","text-sm","font-medium","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer",3,"click","ngClass","icon"],[1,"mr-4","hover:underline","md:mr-6",3,"click"],["target","_blank","rel","noopener noreferrer",1,"mr-4","hover:underline","md:mr-6",3,"href"],[1,"mr-4","hover:underline","md:mr-6","cursor-pointer",3,"click"]],template:function(t,l){1&t&&e.DNE(0,DH2,17,1,"footer",0)(1,jH2,9,1)(2,$H2,3,6,"feedback-modal",1),2&t&&(e.vxM(0,l.isDomeTheme?0:1),e.R7$(2),e.vxM(2,l.feedback?2:-1))},dependencies:[_.YU,J2.aY,nk1,_d1,s1.D9]})}}return n})();const BH2=function(){function n(a,c){void 0===c&&(c=[]),this._eventType=a,this._eventFunctions=c}return n.prototype.init=function(){var a=this;this._eventFunctions.forEach(function(c){typeof window<"u"&&window.addEventListener(a._eventType,c)})},n}();var bG=function(){return bG=Object.assign||function(n){for(var a,c=1,t=arguments.length;c"u")&&(n instanceof pc(n).ShadowRoot||n instanceof ShadowRoot)}typeof window<"u"&&(window.Dismiss=Wk1,window.initDismisses=xd1);var lF=Math.max,wG=Math.min,Gk=Math.round;function yd1(){var n=navigator.userAgentData;return null!=n&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Jk1(){return!/^((?!chrome|android).)*safari/i.test(yd1())}function Hk(n,a,c){void 0===a&&(a=!1),void 0===c&&(c=!1);var t=n.getBoundingClientRect(),l=1,i=1;a&&y7(n)&&(l=n.offsetWidth>0&&Gk(t.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Gk(t.height)/n.offsetHeight||1);var C=(nF(n)?pc(n):window).visualViewport,b=!Jk1()&&c,T=(t.left+(b&&C?C.offsetLeft:0))/l,W=(t.top+(b&&C?C.offsetTop:0))/i,u1=t.width/l,a1=t.height/i;return{width:u1,height:a1,top:W,right:T+u1,bottom:W+a1,left:T,x:T,y:W}}function Fd1(n){var a=pc(n);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function Ts(n){return n?(n.nodeName||"").toLowerCase():null}function IL(n){return((nF(n)?n.ownerDocument:n.document)||window.document).documentElement}function vd1(n){return Hk(IL(n)).left+Fd1(n).scrollLeft}function cf(n){return pc(n).getComputedStyle(n)}function kd1(n){var a=cf(n);return/auto|scroll|overlay|hidden/.test(a.overflow+a.overflowY+a.overflowX)}function HH2(n,a,c){void 0===c&&(c=!1);var t=y7(a),l=y7(a)&&function GH2(n){var a=n.getBoundingClientRect(),c=Gk(a.width)/n.offsetWidth||1,t=Gk(a.height)/n.offsetHeight||1;return 1!==c||1!==t}(a),i=IL(a),u=Hk(n,l,c),C={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(t||!t&&!c)&&(("body"!==Ts(a)||kd1(i))&&(C=function UH2(n){return n!==pc(n)&&y7(n)?function VH2(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):Fd1(n)}(a)),y7(a)?((b=Hk(a,!0)).x+=a.clientLeft,b.y+=a.clientTop):i&&(b.x=vd1(i))),{x:u.left+C.scrollLeft-b.x,y:u.top+C.scrollTop-b.y,width:u.width,height:u.height}}function wd1(n){var a=Hk(n),c=n.offsetWidth,t=n.offsetHeight;return Math.abs(a.width-c)<=1&&(c=a.width),Math.abs(a.height-t)<=1&&(t=a.height),{x:n.offsetLeft,y:n.offsetTop,width:c,height:t}}function SG(n){return"html"===Ts(n)?n:n.assignedSlot||n.parentNode||(bd1(n)?n.host:null)||IL(n)}function Qk1(n){return["html","body","#document"].indexOf(Ts(n))>=0?n.ownerDocument.body:y7(n)&&kd1(n)?n:Qk1(SG(n))}function BE(n,a){var c;void 0===a&&(a=[]);var t=Qk1(n),l=t===(null==(c=n.ownerDocument)?void 0:c.body),i=pc(t),u=l?[i].concat(i.visualViewport||[],kd1(t)?t:[]):t,C=a.concat(u);return l?C:C.concat(BE(SG(u)))}function YH2(n){return["table","td","th"].indexOf(Ts(n))>=0}function Zk1(n){return y7(n)&&"fixed"!==cf(n).position?n.offsetParent:null}function VE(n){for(var a=pc(n),c=Zk1(n);c&&YH2(c)&&"static"===cf(c).position;)c=Zk1(c);return c&&("html"===Ts(c)||"body"===Ts(c)&&"static"===cf(c).position)?a:c||function qH2(n){var a=/firefox/i.test(yd1());if(/Trident/i.test(yd1())&&y7(n)&&"fixed"===cf(n).position)return null;var l=SG(n);for(bd1(l)&&(l=l.host);y7(l)&&["html","body"].indexOf(Ts(l))<0;){var i=cf(l);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||a&&"filter"===i.willChange||a&&i.filter&&"none"!==i.filter)return l;l=l.parentNode}return null}(n)||a}var S5="top",F7="bottom",v7="right",N5="left",UE=[S5,F7,v7,N5],Yk="start",GE="end",Kk1="viewport",HE="popper",ew1=UE.reduce(function(n,a){return n.concat([a+"-"+Yk,a+"-"+GE])},[]),cw1=[].concat(UE,["auto"]).reduce(function(n,a){return n.concat([a,a+"-"+Yk,a+"-"+GE])},[]),sY2=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function aY2(n){var a=new Map,c=new Set,t=[];function l(i){c.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach(function(C){if(!c.has(C)){var b=a.get(C);b&&l(b)}}),t.push(i)}return n.forEach(function(i){a.set(i.name,i)}),n.forEach(function(i){c.has(i.name)||l(i)}),t}function iY2(n){var a;return function(){return a||(a=new Promise(function(c){Promise.resolve().then(function(){a=void 0,c(n())})})),a}}var tw1={placement:"bottom",modifiers:[],strategy:"absolute"};function nw1(){for(var n=arguments.length,a=new Array(n),c=0;c=0?"x":"y"}function lw1(n){var b,a=n.reference,c=n.element,t=n.placement,l=t?Rs(t):null,i=t?qk(t):null,u=a.x+a.width/2-c.width/2,C=a.y+a.height/2-c.height/2;switch(l){case S5:b={x:u,y:a.y-c.height};break;case F7:b={x:u,y:a.y+a.height};break;case v7:b={x:a.x+a.width,y:C};break;case N5:b={x:a.x-c.width,y:C};break;default:b={x:a.x,y:a.y}}var T=l?Nd1(l):null;if(null!=T){var W="y"===T?"height":"width";switch(i){case Yk:b[T]=b[T]-(a[W]/2-c[W]/2);break;case GE:b[T]=b[T]+(a[W]/2-c[W]/2)}}return b}var hY2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sw1(n){var a,c=n.popper,t=n.popperRect,l=n.placement,i=n.variation,u=n.offsets,C=n.position,b=n.gpuAcceleration,T=n.adaptive,W=n.roundOffsets,u1=n.isFixed,a1=u.x,T1=void 0===a1?0:a1,Y1=u.y,f2=void 0===Y1?0:Y1,M2="function"==typeof W?W({x:T1,y:f2}):{x:T1,y:f2};T1=M2.x,f2=M2.y;var G2=u.hasOwnProperty("x"),N2=u.hasOwnProperty("y"),a4=N5,B0=S5,K0=window;if(T){var r0=VE(c),W2="clientHeight",e6="clientWidth";r0===pc(c)&&"static"!==cf(r0=IL(c)).position&&"absolute"===C&&(W2="scrollHeight",e6="scrollWidth"),(l===S5||(l===N5||l===v7)&&i===GE)&&(B0=F7,f2-=(u1&&r0===K0&&K0.visualViewport?K0.visualViewport.height:r0[W2])-t.height,f2*=b?1:-1),l!==N5&&(l!==S5&&l!==F7||i!==GE)||(a4=v7,T1-=(u1&&r0===K0&&K0.visualViewport?K0.visualViewport.width:r0[e6])-t.width,T1*=b?1:-1)}var l5,Ae=Object.assign({position:C},T&&hY2),Dn=!0===W?function gY2(n,a){var t=n.y,l=a.devicePixelRatio||1;return{x:Gk(n.x*l)/l||0,y:Gk(t*l)/l||0}}({x:T1,y:f2},pc(c)):{x:T1,y:f2};return T1=Dn.x,f2=Dn.y,Object.assign({},Ae,b?((l5={})[B0]=N2?"0":"",l5[a4]=G2?"0":"",l5.transform=(K0.devicePixelRatio||1)<=1?"translate("+T1+"px, "+f2+"px)":"translate3d("+T1+"px, "+f2+"px, 0)",l5):((a={})[B0]=N2?f2+"px":"",a[a4]=G2?T1+"px":"",a.transform="",a))}var FY2={left:"right",right:"left",bottom:"top",top:"bottom"};function EG(n){return n.replace(/left|right|bottom|top/g,function(a){return FY2[a]})}var vY2={start:"end",end:"start"};function aw1(n){return n.replace(/start|end/g,function(a){return vY2[a]})}function ow1(n,a){var c=a.getRootNode&&a.getRootNode();if(n.contains(a))return!0;if(c&&bd1(c)){var t=a;do{if(t&&n.isSameNode(t))return!0;t=t.parentNode||t.host}while(t)}return!1}function Ed1(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function iw1(n,a,c){return a===Kk1?Ed1(function kY2(n,a){var c=pc(n),t=IL(n),l=c.visualViewport,i=t.clientWidth,u=t.clientHeight,C=0,b=0;if(l){i=l.width,u=l.height;var T=Jk1();(T||!T&&"fixed"===a)&&(C=l.offsetLeft,b=l.offsetTop)}return{width:i,height:u,x:C+vd1(n),y:b}}(n,c)):nF(a)?function SY2(n,a){var c=Hk(n,!1,"fixed"===a);return c.top=c.top+n.clientTop,c.left=c.left+n.clientLeft,c.bottom=c.top+n.clientHeight,c.right=c.left+n.clientWidth,c.width=n.clientWidth,c.height=n.clientHeight,c.x=c.left,c.y=c.top,c}(a,c):Ed1(function wY2(n){var a,c=IL(n),t=Fd1(n),l=null==(a=n.ownerDocument)?void 0:a.body,i=lF(c.scrollWidth,c.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=lF(c.scrollHeight,c.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),C=-t.scrollLeft+vd1(n),b=-t.scrollTop;return"rtl"===cf(l||c).direction&&(C+=lF(c.clientWidth,l?l.clientWidth:0)-i),{width:i,height:u,x:C,y:b}}(IL(n)))}function dw1(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function fw1(n,a){return a.reduce(function(c,t){return c[t]=n,c},{})}function YE(n,a){void 0===a&&(a={});var t=a.placement,l=void 0===t?n.placement:t,i=a.strategy,u=void 0===i?n.strategy:i,C=a.boundary,b=void 0===C?"clippingParents":C,T=a.rootBoundary,W=void 0===T?Kk1:T,u1=a.elementContext,a1=void 0===u1?HE:u1,T1=a.altBoundary,Y1=void 0!==T1&&T1,f2=a.padding,M2=void 0===f2?0:f2,G2=dw1("number"!=typeof M2?M2:fw1(M2,UE)),a4=n.rects.popper,B0=n.elements[Y1?a1===HE?"reference":HE:a1],K0=function EY2(n,a,c,t){var l="clippingParents"===a?function NY2(n){var a=BE(SG(n)),t=["absolute","fixed"].indexOf(cf(n).position)>=0&&y7(n)?VE(n):n;return nF(t)?a.filter(function(l){return nF(l)&&ow1(l,t)&&"body"!==Ts(l)}):[]}(n):[].concat(a),i=[].concat(l,[c]),C=i.reduce(function(b,T){var W=iw1(n,T,t);return b.top=lF(W.top,b.top),b.right=wG(W.right,b.right),b.bottom=wG(W.bottom,b.bottom),b.left=lF(W.left,b.left),b},iw1(n,i[0],t));return C.width=C.right-C.left,C.height=C.bottom-C.top,C.x=C.left,C.y=C.top,C}(nF(B0)?B0:B0.contextElement||IL(n.elements.popper),b,W,u),r0=Hk(n.elements.reference),W2=lw1({reference:r0,element:a4,strategy:"absolute",placement:l}),e6=Ed1(Object.assign({},a4,W2)),N6=a1===HE?e6:r0,T8={top:K0.top-N6.top+G2.top,bottom:N6.bottom-K0.bottom+G2.bottom,left:K0.left-N6.left+G2.left,right:N6.right-K0.right+G2.right},Ae=n.modifiersData.offset;if(a1===HE&&Ae){var Dn=Ae[l];Object.keys(T8).forEach(function(l5){var dF=[v7,F7].indexOf(l5)>=0?1:-1,fF=[S5,F7].indexOf(l5)>=0?"y":"x";T8[l5]+=Dn[fF]*dF})}return T8}function qE(n,a,c){return lF(n,wG(a,c))}function uw1(n,a,c){return void 0===c&&(c={x:0,y:0}),{top:n.top-a.height-c.y,right:n.right-a.width+c.x,bottom:n.bottom-a.height+c.y,left:n.left-a.width-c.x}}function mw1(n){return[S5,v7,F7,N5].some(function(a){return n[a]>=0})}var Dd1=dY2({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function fY2(n){var a=n.state,c=n.instance,t=n.options,l=t.scroll,i=void 0===l||l,u=t.resize,C=void 0===u||u,b=pc(a.elements.popper),T=[].concat(a.scrollParents.reference,a.scrollParents.popper);return i&&T.forEach(function(W){W.addEventListener("scroll",c.update,NG)}),C&&b.addEventListener("resize",c.update,NG),function(){i&&T.forEach(function(W){W.removeEventListener("scroll",c.update,NG)}),C&&b.removeEventListener("resize",c.update,NG)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function mY2(n){var a=n.state;a.modifiersData[n.name]=lw1({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function _Y2(n){var a=n.state,c=n.options,t=c.gpuAcceleration,l=void 0===t||t,i=c.adaptive,u=void 0===i||i,C=c.roundOffsets,b=void 0===C||C,T={placement:Rs(a.placement),variation:qk(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:l,isFixed:"fixed"===a.options.strategy};null!=a.modifiersData.popperOffsets&&(a.styles.popper=Object.assign({},a.styles.popper,sw1(Object.assign({},T,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:u,roundOffsets:b})))),null!=a.modifiersData.arrow&&(a.styles.arrow=Object.assign({},a.styles.arrow,sw1(Object.assign({},T,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function CY2(n){var a=n.state;Object.keys(a.elements).forEach(function(c){var t=a.styles[c]||{},l=a.attributes[c]||{},i=a.elements[c];!y7(i)||!Ts(i)||(Object.assign(i.style,t),Object.keys(l).forEach(function(u){var C=l[u];!1===C?i.removeAttribute(u):i.setAttribute(u,!0===C?"":C)}))})},effect:function zY2(n){var a=n.state,c={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,c.popper),a.styles=c,a.elements.arrow&&Object.assign(a.elements.arrow.style,c.arrow),function(){Object.keys(a.elements).forEach(function(t){var l=a.elements[t],i=a.attributes[t]||{},C=Object.keys(a.styles.hasOwnProperty(t)?a.styles[t]:c[t]).reduce(function(b,T){return b[T]="",b},{});!y7(l)||!Ts(l)||(Object.assign(l.style,C),Object.keys(i).forEach(function(b){l.removeAttribute(b)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function bY2(n){var a=n.state,t=n.name,l=n.options.offset,i=void 0===l?[0,0]:l,u=cw1.reduce(function(W,u1){return W[u1]=function xY2(n,a,c){var t=Rs(n),l=[N5,S5].indexOf(t)>=0?-1:1,i="function"==typeof c?c(Object.assign({},a,{placement:n})):c,u=i[0],C=i[1];return u=u||0,C=(C||0)*l,[N5,v7].indexOf(t)>=0?{x:C,y:u}:{x:u,y:C}}(u1,a.rects,i),W},{}),C=u[a.placement],T=C.y;null!=a.modifiersData.popperOffsets&&(a.modifiersData.popperOffsets.x+=C.x,a.modifiersData.popperOffsets.y+=T),a.modifiersData[t]=u}},{name:"flip",enabled:!0,phase:"main",fn:function RY2(n){var a=n.state,c=n.options,t=n.name;if(!a.modifiersData[t]._skip){for(var l=c.mainAxis,i=void 0===l||l,u=c.altAxis,C=void 0===u||u,b=c.fallbackPlacements,T=c.padding,W=c.boundary,u1=c.rootBoundary,a1=c.altBoundary,T1=c.flipVariations,Y1=void 0===T1||T1,f2=c.allowedAutoPlacements,M2=a.options.placement,G2=Rs(M2),a4=b||(G2!==M2&&Y1?function TY2(n){if("auto"===Rs(n))return[];var a=EG(n);return[aw1(n),a,aw1(a)]}(M2):[EG(M2)]),B0=[M2].concat(a4).reduce(function(aw,GL){return aw.concat("auto"===Rs(GL)?function DY2(n,a){void 0===a&&(a={});var l=a.boundary,i=a.rootBoundary,u=a.padding,C=a.flipVariations,b=a.allowedAutoPlacements,T=void 0===b?cw1:b,W=qk(a.placement),u1=W?C?ew1:ew1.filter(function(Y1){return qk(Y1)===W}):UE,a1=u1.filter(function(Y1){return T.indexOf(Y1)>=0});0===a1.length&&(a1=u1);var T1=a1.reduce(function(Y1,f2){return Y1[f2]=YE(n,{placement:f2,boundary:l,rootBoundary:i,padding:u})[Rs(f2)],Y1},{});return Object.keys(T1).sort(function(Y1,f2){return T1[Y1]-T1[f2]})}(a,{placement:GL,boundary:W,rootBoundary:u1,padding:T,flipVariations:Y1,allowedAutoPlacements:f2}):GL)},[]),K0=a.rects.reference,r0=a.rects.popper,W2=new Map,e6=!0,N6=B0[0],T8=0;T8=0,fF=dF?"width":"height",hc=YE(a,{placement:Ae,boundary:W,rootBoundary:u1,altBoundary:a1,padding:T}),Tn=dF?l5?v7:N5:l5?F7:S5;K0[fF]>r0[fF]&&(Tn=EG(Tn));var iH=EG(Tn),uF=[];if(i&&uF.push(hc[Dn]<=0),C&&uF.push(hc[Tn]<=0,hc[iH]<=0),uF.every(function(aw){return aw})){N6=Ae,e6=!1;break}W2.set(Ae,uF)}if(e6)for(var Lf1=function(GL){var oD=B0.find(function(fH){var mF=W2.get(fH);if(mF)return mF.slice(0,GL).every(function(Cf1){return Cf1})});if(oD)return N6=oD,"break"},aD=Y1?3:1;aD>0&&"break"!==Lf1(aD);aD--);a.placement!==N6&&(a.modifiersData[t]._skip=!0,a.placement=N6,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function jY2(n){var a=n.state,c=n.options,t=n.name,l=c.mainAxis,i=void 0===l||l,u=c.altAxis,C=void 0!==u&&u,a1=c.tether,T1=void 0===a1||a1,Y1=c.tetherOffset,f2=void 0===Y1?0:Y1,M2=YE(a,{boundary:c.boundary,rootBoundary:c.rootBoundary,padding:c.padding,altBoundary:c.altBoundary}),G2=Rs(a.placement),N2=qk(a.placement),a4=!N2,B0=Nd1(G2),K0=function IY2(n){return"x"===n?"y":"x"}(B0),r0=a.modifiersData.popperOffsets,W2=a.rects.reference,e6=a.rects.popper,N6="function"==typeof f2?f2(Object.assign({},a.rects,{placement:a.placement})):f2,T8="number"==typeof N6?{mainAxis:N6,altAxis:N6}:Object.assign({mainAxis:0,altAxis:0},N6),Ae=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,Dn={x:0,y:0};if(r0){if(i){var l5,dF="y"===B0?S5:N5,fF="y"===B0?F7:v7,hc="y"===B0?"height":"width",Tn=r0[B0],iH=Tn+M2[dF],uF=Tn-M2[fF],rH=T1?-e6[hc]/2:0,Lf1=N2===Yk?W2[hc]:e6[hc],aD=N2===Yk?-e6[hc]:-W2[hc],dH=a.elements.arrow,aw=T1&&dH?wd1(dH):{width:0,height:0},GL=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},oD=GL[dF],fH=GL[fF],mF=qE(0,W2[hc],aw[hc]),Cf1=a4?W2[hc]/2-rH-mF-oD-T8.mainAxis:Lf1-mF-oD-T8.mainAxis,GF0=a4?-W2[hc]/2+rH+mF+fH+T8.mainAxis:aD+mF+fH+T8.mainAxis,zf1=a.elements.arrow&&VE(a.elements.arrow),HF0=zf1?"y"===B0?zf1.clientTop||0:zf1.clientLeft||0:0,FE1=null!=(l5=Ae?.[B0])?l5:0,qF0=Tn+GF0-FE1,vE1=qE(T1?wG(iH,Tn+Cf1-FE1-HF0):iH,Tn,T1?lF(uF,qF0):uF);r0[B0]=vE1,Dn[B0]=vE1-Tn}if(C){var kE1,pF=r0[K0],uH="y"===K0?"height":"width",wE1=pF+M2["x"===B0?S5:N5],SE1=pF-M2["x"===B0?F7:v7],Mf1=-1!==[S5,N5].indexOf(G2),NE1=null!=(kE1=Ae?.[K0])?kE1:0,EE1=Mf1?wE1:pF-W2[uH]-e6[uH]-NE1+T8.altAxis,DE1=Mf1?pF+W2[uH]+e6[uH]-NE1-T8.altAxis:SE1,TE1=T1&&Mf1?function PY2(n,a,c){var t=qE(n,a,c);return t>c?c:t}(EE1,pF,DE1):qE(T1?EE1:wE1,pF,T1?DE1:SE1);r0[K0]=TE1,Dn[K0]=TE1-pF}a.modifiersData[t]=Dn}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function BY2(n){var a,c=n.state,t=n.name,l=n.options,i=c.elements.arrow,u=c.modifiersData.popperOffsets,C=Rs(c.placement),b=Nd1(C),W=[N5,v7].indexOf(C)>=0?"height":"width";if(i&&u){var u1=function(a,c){return dw1("number"!=typeof(a="function"==typeof a?a(Object.assign({},c.rects,{placement:c.placement})):a)?a:fw1(a,UE))}(l.padding,c),a1=wd1(i),T1="y"===b?S5:N5,Y1="y"===b?F7:v7,f2=c.rects.reference[W]+c.rects.reference[b]-u[b]-c.rects.popper[W],M2=u[b]-c.rects.reference[b],G2=VE(i),N2=G2?"y"===b?G2.clientHeight||0:G2.clientWidth||0:0,r0=N2/2-a1[W]/2+(f2/2-M2/2),W2=qE(u1[T1],r0,N2-a1[W]-u1[Y1]);c.modifiersData[t]=((a={})[b]=W2,a.centerOffset=W2-r0,a)}},effect:function VY2(n){var a=n.state,t=n.options.element,l=void 0===t?"[data-popper-arrow]":t;null!=l&&("string"==typeof l&&!(l=a.elements.popper.querySelector(l))||ow1(a.elements.popper,l)&&(a.elements.arrow=l))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function GY2(n){var a=n.state,c=n.name,t=a.rects.reference,l=a.rects.popper,i=a.modifiersData.preventOverflow,u=YE(a,{elementContext:"reference"}),C=YE(a,{altBoundary:!0}),b=uw1(u,t),T=uw1(C,l,i),W=mw1(b),u1=mw1(T);a.modifiersData[c]={referenceClippingOffsets:b,popperEscapeOffsets:T,isReferenceHidden:W,hasPopperEscaped:u1},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":W,"data-popper-escaped":u1})}}]}),PL=function(){return PL=Object.assign||function(n){for(var a,c=1,t=arguments.length;cconsole.log(c),error:c=>console.error(c),complete:()=>console.info("complete")})}logout(){let a=`${kn.BASE_URL}/logout`;return console.log("-- logout --"),(0,e0.s)(this.http.get(a))}static{this.\u0275fac=function(c){return new(c||kn)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:kn,factory:kn.\u0275fac,providedIn:"root"})}}let QY2=(()=>{class n{constructor(){}get intervalId(){return this._intervalId}set intervalId(c){this._intervalId=c}fetchServer(c,t,l,i){let C=new URL(window.location.href).origin;fetch(`${g1.c.BASE_URL}${l}?state=${t}&callback_url=${C}`).then(b=>{400!==b.status&&500!==b.status?401!==b.status&&(this.stopChecking(c),c.close(),i(b)):this.stopChecking(c)}).catch(b=>{this.stopChecking(c)})}poll(c,t,l,i){null!=c&&(this.intervalId=window.setInterval(()=>{this.fetchServer(c,t,l,i)},1e3,c,t),window.setTimeout(C=>{this.stopChecking(C)},45e3,c))}launchPopup(c,t,l,i){window,window,window,window;window.innerWidth?window:document.documentElement.clientWidth?document:screen;const T1=(window.innerHeight?window:document.documentElement.clientHeight?document:screen,window,window.open(c,"_blank"));return T1?.focus(),T1}pollCertCredential(c,t){return new Promise((l,i)=>{this.poll(c,t,g1.c.SIOP_INFO.pollCertPath,function(){var u=(0,C1.A)(function*(C){let b=yield C.json();l(b)});return function(C){return u.apply(this,arguments)}}())})}pollServer(c,t){this.poll(c,t,g1.c.SIOP_INFO.pollPath,()=>{window.location.replace("/dashboard?token=local")})}stopChecking(c){null!=this.intervalId&&(c.closed||c.close(),clearInterval(this.intervalId),this.intervalId=void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const ZY2=["navbarbutton"],bw1=(n,a)=>a.id,yw1=(n,a)=>a.label,Fw1=()=>({mobile:!1}),vw1=()=>({mobile:!0});function KY2(n,a){if(1&n&&e.nrm(0,"img",7),2&n){const c=e.XpG();e.Mz_("alt","",null==c.currentTheme?null:c.currentTheme.displayName," Logo"),e.Y8G("src",null==c.currentTheme||null==c.currentTheme.assets?null:c.currentTheme.assets.logoUrl,e.B4B)}}function eq2(n,a){if(1&n&&(e.j41(0,"div",16)(1,"div",24)(2,"ul",25),e.eu8(3,10),e.k0s(),e.nrm(4,"div",26),e.j41(5,"div",27),e.eu8(6,10),e.k0s()()()),2&n){e.XpG();const c=e.sdS(37),t=e.sdS(39);e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.lJ4(4,vw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",t)("ngTemplateOutletContext",e.lJ4(5,vw1))}}function cq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",38),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/my-offerings"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._offerings")," ")}}function tq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",39),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/admin"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(4,2,"HEADER._admin")," ")}}function nq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/quote-list"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Quotes "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function lq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/tenders"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Tenders "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faReceipt)}}function sq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"a",42),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeUserDropdown())}),e.nrm(2,"fa-icon",21),e.EFF(3,"Analytics "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faPieChart)}}function aq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",43),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goTo("/usage-spec"))}),e.nrm(2,"fa-icon",21),e.EFF(3,"Usage Spec "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("icon",c.faRuler)}}function oq2(n,a){if(1&n&&(e.j41(0,"button",36),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function iq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17)(1,"div",28)(2,"div",29),e.EFF(3),e.k0s(),e.j41(4,"div",30),e.EFF(5),e.k0s()(),e.nrm(6,"div",31),e.j41(7,"ul",19)(8,"li")(9,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/profile"))}),e.nrm(10,"fa-icon",21),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.DNE(13,cq2,5,4,"li")(14,tq2,5,4,"li"),e.j41(15,"li")(16,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-orders"))}),e.nrm(17,"fa-icon",21),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.DNE(20,nq2,4,1,"li")(21,lq2,4,1,"li")(22,sq2,4,1,"li")(23,aq2,4,1,"li"),e.j41(24,"li")(25,"button",34),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/product-inventory"))}),e.nrm(26,"fa-icon",21),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"li")(30,"button",35),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goTo("/checkout"))}),e.nrm(31,"fa-icon",21),e.EFF(32),e.nI1(33,"translate"),e.k0s()()(),e.nrm(34,"div",31),e.j41(35,"div",19),e.DNE(36,oq2,4,4,"button",36),e.j41(37,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.logout())}),e.nrm(38,"fa-icon",21),e.EFF(39),e.nI1(40,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.JRh(c.username),e.R7$(2),e.JRh(c.email),e.R7$(5),e.Y8G("icon",c.faAddressCard),e.R7$(),e.SpI("",e.bMT(12,19,"HEADER._profile")," "),e.R7$(2),e.vxM(13,c.roles.includes(c.sellerRole)?13:-1),e.R7$(),e.vxM(14,c.isAdmin&&!1===c.loggedAsOrg||c.roles.includes(c.certifierRole)?14:-1),e.R7$(3),e.Y8G("icon",c.faReceipt),e.R7$(),e.SpI("",e.bMT(19,21,"HEADER._orders")," "),e.R7$(2),e.vxM(20,c.quotesEnabled?20:-1),e.R7$(),e.vxM(21,c.tenderEnabled?21:-1),e.R7$(),e.vxM(22,c.analyticsEnabled?22:-1),e.R7$(),e.vxM(23,c.roles.includes(c.sellerRole)?23:-1),e.R7$(3),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(28,23,"HEADER._inventory")," "),e.R7$(4),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(33,25,"HEADER._cart")," "),e.R7$(4),e.vxM(36,c.orgs.length>0&&c.isAdmin?36:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(40,27,"HEADER._sign_out")," ")}}function rq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG();return i.changeSession(l,!1),e.Njj(i.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(2),e.Y8G("icon",t.faUsers),e.R7$(),e.SpI("",c.name," ")}}function dq2(n,a){if(1&n&&e.DNE(0,rq2,4,2,"li"),2&n){const c=a.$implicit,t=e.XpG();e.vxM(0,c.id!=(null==t.loginInfo?null:t.loginInfo.logged_as)||(null==t.loginInfo?null:t.loginInfo.logged_as)==(null==t.loginInfo?null:t.loginInfo.id)?0:-1)}}function fq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.changeSession(0,!0),e.Njj(l.hideDropdown("orgs-dropdown"))}),e.nrm(2,"fa-icon",21),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faUser),e.R7$(),e.SpI("",null==c.loginInfo?null:c.loginInfo.user," ")}}function uq2(n,a){if(1&n&&(e.j41(0,"a",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function mq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(3).$implicit,u=e.XpG(2);return e.Njj(u.goTo(l.url,i.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.BMQ("data-cy","/search"===c.url||"/browse"===c.url?"browseServices":"/catalogues"===c.url?"browseCatalogs":null),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function pq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,uq2,3,4,"a",20)(2,mq2,3,4),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function hq2(n,a){if(1&n&&(e.j41(0,"li",45)(1,"button",46),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"span",47),e.EFF(5,"\u25be"),e.k0s()(),e.j41(6,"div",48)(7,"ul",19),e.Z7z(8,pq2,3,1,"li",null,yw1),e.k0s()()()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("id",c.id),e.BMQ("data-dropdown-toggle",c.id+"Menu")("data-cy","searchDropdown"===c.id||"dropdown-marketplace"===c.id?"browse":null),e.R7$(),e.SpI(" ",e.bMT(3,6,c.label)," "),e.R7$(4),e.Y8G("id",c.id+"Menu"),e.R7$(),e.BMQ("aria-labelledby",c.id),e.R7$(),e.Dyx(c.children)}}function gq2(n,a){if(1&n&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function _q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(3).$implicit,u=e.XpG(2);return e.Njj(u.goTo(l.url,i.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function Lq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,gq2,3,4,"a",50)(2,_q2,3,3),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,c.isRouterLink?2:1)}}function Cq2(n,a){if(1&n&&e.Z7z(0,Lq2,3,1,"li",null,yw1),2&n){const c=e.XpG(2).$implicit;e.Dyx(c.children)}}function zq2(n,a){if(1&n&&e.DNE(0,hq2,10,8,"li",45)(1,Cq2,2,0),2&n){const c=e.XpG(2).mobile;e.vxM(0,c?1:0)}}function Mq2(n,a){if(1&n&&(e.j41(0,"a",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function xq2(n,a){if(1&n&&(e.j41(0,"a",53),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("routerLink",c.url),e.BMQ("data-cy","/about"===c.url?"about":null),e.R7$(),e.SpI(" ",e.bMT(2,3,c.label)," ")}}function bq2(n,a){if(1&n&&e.DNE(0,Mq2,3,4,"a",52)(1,xq2,3,5),2&n){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function yq2(n,a){if(1&n&&(e.j41(0,"a",50),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(3).$implicit;e.Y8G("href",c.url,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,c.label)," ")}}function Fq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3).$implicit,i=e.XpG(2);return e.Njj(i.goTo(l.url))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(3).$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,c.label)," ")}}function vq2(n,a){if(1&n&&e.DNE(0,yq2,3,4,"a",50)(1,Fq2,3,3),2&n){const c=e.XpG(2).$implicit;e.vxM(0,c.isRouterLink?1:0)}}function kq2(n,a){if(1&n&&(e.j41(0,"li"),e.DNE(1,bq2,2,1)(2,vq2,2,1),e.k0s()),2&n){const c=e.XpG(2).mobile;e.R7$(),e.vxM(1,c?2:1)}}function wq2(n,a){if(1&n&&e.DNE(0,zq2,2,1)(1,kq2,3,1),2&n){const c=a.$implicit;e.vxM(0,null!=c.children&&c.children.length?0:1)}}function Sq2(n,a){if(1&n&&e.Z7z(0,wq2,2,1,null,null,bw1),2&n){const c=e.XpG();e.Dyx(c.headerLinks)}}function Nq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/contact-us"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Eq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/contact-us"))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"HEADER.contactUs")," "))}function Dq2(n,a){if(1&n&&e.DNE(0,Nq2,3,3,"button",55)(1,Eq2,3,3),2&n){const c=e.XpG(2).mobile;e.vxM(0,c?0:1)}}function Tq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onLoginClick())}),e.EFF(1," Login "),e.k0s()}}function Rq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onLoginClick())}),e.EFF(1," Login "),e.k0s()}}function Aq2(n,a){if(1&n&&e.DNE(0,Dq2,2,1)(1,Tq2,2,0,"button",54)(2,Rq2,2,0),2&n){const c=e.XpG().mobile,t=e.XpG();e.vxM(0,"DOME"===t.providerThemeName?0:-1),e.R7$(),e.vxM(1,c?1:2)}}function Iq2(n,a){if(1&n&&e.nrm(0,"fa-layers-counter",62),2&n){const c=e.XpG(4);e.Y8G("content",c.cartCount.toString())}}function Pq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",60),e.bIt("click",function(l){return e.eBV(c),e.XpG(3).toggleCartDrawer(),e.Njj(l.stopPropagation())}),e.j41(1,"fa-layers",61),e.nrm(2,"fa-icon",15),e.DNE(3,Iq2,1,1,"fa-layers-counter",62),e.k0s()(),e.j41(4,"div",63)(5,"span",64),e.EFF(6),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("fixedWidth",!0),e.R7$(),e.Y8G("icon",c.faCartShopping),e.R7$(),e.vxM(3,c.cartCount>0?3:-1),e.R7$(3),e.JRh(c.usercharacters)}}function jq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/my-offerings"))}),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faHandHoldingBox),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._offerings")," ")}}function $q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/admin"))}),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faCogs),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._admin")," ")}}function Oq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/quote-list"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Quotes "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function Bq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/tenders"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Tenders "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faReceipt)}}function Vq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",73),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.isNavBarOpen=!1)}),e.nrm(1,"fa-icon",21),e.EFF(2,"Analytics "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faPieChart)}}function Uq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.goTo("/usage-spec"))}),e.nrm(1,"fa-icon",21),e.EFF(2,"Usage Spec "),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faRuler)}}function Gq2(n,a){if(1&n&&(e.j41(0,"button",71),e.nrm(1,"fa-icon",21),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faAnglesLeft),e.R7$(),e.SpI("",e.bMT(3,2,"HEADER._change_session")," ")}}function Hq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",65)(1,"div",66),e.EFF(2),e.k0s(),e.j41(3,"div",67)(4,"div",68),e.EFF(5),e.k0s(),e.j41(6,"div",69),e.EFF(7),e.k0s()()(),e.j41(8,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/profile"))}),e.nrm(9,"fa-icon",21),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,jq2,4,4,"button",71)(13,$q2,4,4,"button",71),e.j41(14,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-orders"))}),e.nrm(15,"fa-icon",21),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.DNE(18,Oq2,3,1,"button",71)(19,Bq2,3,1,"button",71)(20,Vq2,3,1,"a",72)(21,Uq2,3,1,"button",71),e.j41(22,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/product-inventory"))}),e.nrm(23,"fa-icon",21),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.j41(26,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.goTo("/checkout"))}),e.nrm(27,"fa-icon",21),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"a",50),e.nrm(31,"fa-icon",21),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"a",50),e.nrm(35,"fa-icon",21),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.DNE(38,Gq2,4,4,"button",71),e.j41(39,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.logout())}),e.nrm(40,"fa-icon",21),e.EFF(41),e.nI1(42,"translate"),e.k0s()}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(c.usercharacters),e.R7$(3),e.JRh(c.username),e.R7$(2),e.JRh(c.email),e.R7$(2),e.Y8G("icon",c.faAddressCard),e.R7$(),e.SpI("",e.bMT(11,26,"HEADER._profile")," "),e.R7$(2),e.vxM(12,c.roles.includes(c.sellerRole)?12:-1),e.R7$(),e.vxM(13,c.isAdmin&&!1===c.loggedAsOrg||c.roles.includes(c.certifierRole)?13:-1),e.R7$(2),e.Y8G("icon",c.faReceipt),e.R7$(),e.SpI("",e.bMT(17,28,"HEADER._orders")," "),e.R7$(2),e.vxM(18,c.quotesEnabled?18:-1),e.R7$(),e.vxM(19,c.tenderEnabled?19:-1),e.R7$(),e.vxM(20,c.analyticsEnabled?20:-1),e.R7$(),e.vxM(21,c.roles.includes(c.sellerRole)?21:-1),e.R7$(2),e.Y8G("icon",c.faBoxesStacked),e.R7$(),e.SpI("",e.bMT(25,30,"HEADER._inventory")," "),e.R7$(3),e.Y8G("icon",c.faCartShopping),e.R7$(),e.SpI("",e.bMT(29,32,"HEADER._cart")," "),e.R7$(2),e.Y8G("href",c.knowledge,e.B4B),e.R7$(),e.Y8G("icon",c.faBrain),e.R7$(),e.SpI("",e.bMT(33,34,"HEADER._knowledge")," "),e.R7$(2),e.Y8G("href",c.ticketing,e.B4B),e.R7$(),e.Y8G("icon",c.faClipboardCheck),e.R7$(),e.SpI("",e.bMT(37,36,"HEADER._ticketing")," "),e.R7$(2),e.vxM(38,c.orgs.length>0&&c.isAdmin?38:-1),e.R7$(2),e.Y8G("icon",c.faArrowRightFromBracket),e.R7$(),e.SpI("",e.bMT(42,38,"HEADER._sign_out")," ")}}function Yq2(n,a){if(1&n&&e.DNE(0,Pq2,7,4)(1,Hq2,43,40),2&n){const c=e.XpG().mobile;e.vxM(0,c?1:0)}}function qq2(n,a){if(1&n&&e.DNE(0,Aq2,3,2)(1,Yq2,2,1),2&n){const c=e.XpG();e.vxM(0,c.is_logged?1:0)}}function Xq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",23)(1,"app-cart-drawer",74),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()()}}let kw1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.translate=c,this.localStorage=t,this.api=l,this.loginService=i,this.cdr=u,this.route=C,this.eventMessage=b,this.router=T,this.qrVerifier=W,this.themeService=u1,this.sc=a1,this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.tenderEnabled=g1.c.TENDER_ENABLED,this.knowledge=g1.c.KNOWLEDGE_BASE_URL,this.knowledge_onboarding=g1.c.KB_ONBOARDING_GUIDELINES_URL,this.knowledge_guidelines=g1.c.KB_GUIDELNES_URL,this.registration=g1.c.REGISTRATION_FORM_URL,this.ticketing=g1.c.TICKETING_SYSTEM_URL,this.analyticsEnabled=g1.c.analyticsEnabled,this.analytics=g1.c.analytics,this.domeAbout=g1.c.DOME_ABOUT_LINK,this.domePublish=g1.c.DOME_PUBLISH_LINK,this.sellerRole=g1.c.SELLER_ROLE,this.orgAdminRole=g1.c.ORG_ADMIN_ROLE,this.certifierRole=g1.c.CERTIFIER_ROLE,this.langs=[],this.showCart=!1,this.is_logged=!1,this.showLogin=!1,this.loggedAsOrg=!1,this.isAdmin=!1,this.orgs=[],this.username="",this.email="",this.usercharacters="",this.roles=[],this.isNavBarOpen=!1,this.flagDropdownOpen=!1,this.cartCount=0,this.scrolled=!1,this.qrWindow=null,this.statePair="",this.currentTheme=null,this.headerLinks=[],this.themeSubscription=new x1.yU,this.destroy$=new S.B,this.faCartShopping=TL,this.faHandHoldingBox=Bf1,this.faAddressCard=mc,this.faArrowRightFromBracket=T9,this.faBoxesStacked=Ak,this.faClipboardCheck=nS,this.faBrain=Kf1,this.faAnglesLeft=xE,this.faUser=Te,this.faUsers=Am,this.faCogs=IV,this.faReceipt=NO,this.faRuler=wS,this.faPieChart=lT,this.faBars=W6,this.faArrowRight=_T}onScroll(){this.scrolled=window.scrollY>10}onClick(){this.showCart&&(this.showCart=!1,this.cdr.detectChanges()),this.isNavBarOpen&&(this.isNavBarOpen=!1)}onResize(){this.isNavBarOpen&&(this.navbarbutton?.nativeElement.blur(),this.isNavBarOpen=!1)}ngDoCheck(){this.qrWindow&&this.qrWindow.closed&&(this.qrVerifier.stopChecking(this.qrWindow),this.qrWindow=null)}ngOnInit(){this.langs=this.translate.getLangs();const c=this.localStorage.getItem("current_language");this.defaultLang=c??this.translate.getDefaultLang(),this.themeSubscription=this.themeService.currentTheme$.subscribe(t=>{this.currentTheme=t,this.themeAuthUrls=t?.authUrls,this.headerLinks=this.resolveLinksEnv(t?.links?.headerLinks||[]),t?.links&&(t.links.headerLinks=this.headerLinks)}),this.hydrateLoginFromStorage(),this.sc.cart$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{this.cartCount=t.length,this.cdr.detectChanges()}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{"ToggleCartDrawer"===t.type&&(this.showCart=!1,this.cdr.detectChanges()),"LoginProcess"===t.type&&this.hydrateLoginFromStorage()}),D2()}ngAfterViewInit(){D2()}ngOnDestroy(){this.qrWindow?.close(),this.qrWindow=null,this.themeSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}resolveLinksEnv(c){const t=l=>l.map(i=>{const u={...i};return i.environmentName&&(u.url=g1.c[i.environmentName]||""),i.children?.length&&(u.children=t(i.children)),u});return t(c)}hydrateLoginFromStorage(){const c=this.localStorage.getObject("login_items");if("{}"!==JSON.stringify(c))if(c.expire-$2()().unix()-4<=0)this.resetLoginState();else{if(this.loginInfo=c,this.is_logged=!0,this.orgs=c.organizations??[],this.isAdmin=(c.roles??[]).some(t=>t.name===g1.c.ADMIN_ROLE),c.logged_as===c.id)this.loggedAsOrg=!1,this.username=c.user,this.usercharacters=(c.user?.slice(0,2)||"").toUpperCase(),this.email=c.email,this.roles=(c.roles??[]).map(t=>t.name);else{const t=this.orgs.find(l=>l.id===c.logged_as);this.loggedAsOrg=!0,this.username=t?.name??"",this.usercharacters=(this.username.slice(0,2)||"").toUpperCase(),this.email=t?.description??"",this.roles=(t?.roles??[]).map(l=>l.name)}this.cdr.detectChanges()}else this.resetLoginState()}resetLoginState(){this.is_logged=!1,this.isAdmin=!1,this.loggedAsOrg=!1,this.loginInfo=null,this.orgs=[],this.roles=[],this.username="",this.email="",this.usercharacters="",this.cdr.detectChanges()}goToCatalogSearch(c){this.router.navigate(["/search/catalogue",c])}goTo(c,t){this.closeUserDropdown(),t&&this.closeDropdown("dropdown-marketplaceMenu"),this.router.navigate([c])}toggleCartDrawer(){this.showCart=!this.showCart,this.cdr.detectChanges()}toggleNavBar(){this.isNavBarOpen=!this.isNavBarOpen}switchLanguage(c){this.translate.use(c),this.localStorage.setItem("current_language",c),this.defaultLang=c}logout(){var c=this;return(0,C1.A)(function*(){c.closeUserDropdown(),c.localStorage.setObject("login_items",{}),c.resetLoginState(),"/dashboard"===c.router.url?window.location.reload():c.router.navigate(["/dashboard"]),yield c.loginService.logout(),c.cdr.detectChanges()})()}changeSession(c,t){this.closeUserDropdown();const l=this.localStorage.getObject("login_items");if("{}"===JSON.stringify(l))return;if(t)return this.loginInfo={id:l.id,user:l.user,email:l.email,token:l.token,expire:l.expire,partyId:l.partyId,roles:l.roles,organizations:l.organizations,logged_as:l.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),void D2();const i=this.orgs[c];i&&(this.loginInfo={id:l.id,user:l.user,email:l.email,token:l.token,expire:l.expire,partyId:l.partyId,roles:l.roles,organizations:l.organizations,logged_as:i.id},this.localStorage.setObject("login_items",this.loginInfo),this.eventMessage.emitChangedSession(this.loginInfo),this.hydrateLoginFromStorage(),D2())}hideDropdown(c){this.closeUserDropdown(),document.getElementById(c)?.classList.add("hidden")}closeUserDropdown(){document.getElementById("userDropdown")?.classList.add("hidden")}closeDropdown(c){document.getElementById(c)?.classList.add("hidden")}openDropdown(c){document.getElementById(c)?.classList.remove("hidden")}onLoginClick(){if(!0===g1.c.SIOP_INFO.enabled&&void 0===this.qrVerifier.intervalId){this.statePair=L4();let c=`${g1.c.SIOP_INFO.verifierHost}${g1.c.SIOP_INFO.verifierQRCodePath}?state=${this.statePair}&client_id=${g1.c.SIOP_INFO.clientID}`;if(g1.c.SIOP_INFO.isRedirection){const u=new URL(window.location.href),C=new URL(u.origin);return C.pathname=g1.c.SIOP_INFO.requestUri,c=`${c}&response_type=code&request_uri=${C.toString()}&scope=openid%20learcredential&nonce=${L4()}`,void(window.location.href=c)}const t=new URL(g1.c.SIOP_INFO.callbackURL),l=new URL(window.location.href);return l.pathname=t.pathname,l.search=t.search,c=`${c}&client_callback=${l.toString()}`,this.qrWindow=this.qrVerifier.launchPopup(c,"Scan QR code",500,500),void this.qrVerifier.pollServer(this.qrWindow,this.statePair)}!1===g1.c.SIOP_INFO.enabled&&window.location.replace(`${g1.c.BASE_URL}/login`)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(s1.c$),e.rXU(z2.s),e.rXU(o0.F),e.rXU(kn),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(U2),e.rXU(E2.Ix),e.rXU(QY2),e.rXU(cF),e.rXU(d8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-header"]],viewQuery:function(t,l){if(1&t&&e.GBs(ZY2,5),2&t){let i;e.mGM(i=e.lsd())&&(l.navbarbutton=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("scroll",function(){return l.onScroll()},!1,e.tSv)("click",function(){return l.onClick()},!1,e.EBC)("resize",function(){return l.onResize()},!1,e.tSv)},decls:41,vars:30,consts:[["navbarbutton",""],["navLinksTemplate",""],["headerActionsTemplate",""],[1,"sticky","top-0","z-50","w-full","text-white","transition-all","duration-300"],[1,"mx-auto","max-w-[1180px]","px-6","sm:px-10"],[1,"flex","h-[88px]","items-center","justify-between"],[1,"flex","items-center","gap-4","cursor-pointer","select-none",3,"click"],[1,"h-[51.7px]","w-auto",3,"src","alt"],[1,"hidden","lg:flex","items-center","justify-center","flex-1"],[1,"flex","items-center","gap-12"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"flex","items-center","gap-3"],[1,"hidden","lg:flex","items-center","gap-3"],["type","button","aria-controls","navbar-dropdown",1,"inline-flex","lg:hidden","h-[44px]","w-[44px]","items-center","justify-center","rounded-[10px]","text-white/90","hover:text-white","hover:bg-white/10","transition",3,"click"],[1,"sr-only"],[3,"icon"],["id","navbar-dropdown",1,"lg:hidden","pb-6"],["id","userDropdown",1,"dropdown-glass","hidden","absolute","right-6","sm:right-10","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],["id","support-dropdown",1,"dropdown-glass","hidden","absolute","right-6","sm:right-10","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],[1,"flex","flex-col"],["target","_blank",1,"dropdown-item",3,"href"],[1,"mr-2",3,"icon"],["data-cy","orgsDropdown","id","orgs-dropdown",1,"dropdown-glass","hidden","absolute","right-[280px]","top-[88px]","z-50","w-[260px]","rounded-[14px]","p-2"],[1,"fixed","inset-0","z-40","backdrop-blur-sm","bg-black/10"],[1,"mt-3","rounded-[14px]","bg-white/10","backdrop-blur-md","ring-1","ring-white/10","overflow-hidden","shadow-[0_10px_30px_rgba(0,0,0,0.18)]"],[1,"flex","flex-col","p-2"],[1,"h-px","mx-2","my-2","bg-white/10"],[1,"flex","flex-col","gap-2","p-2"],[1,"px-3","py-2"],[1,"text-[13px]","font-semibold","text-slate-900"],[1,"mt-0.5","text-[12px]","text-slate-600","break-all"],[1,"h-px","my-2","bg-slate-900/10"],["id","userProfile","type","button",1,"dropdown-item",3,"click"],["id","productOrders","type","button",1,"dropdown-item",3,"click"],["id","myInventory","type","button",1,"dropdown-item",3,"click"],["id","myShoppingCart","type","button",1,"dropdown-item",3,"click"],["data-cy","changeSession","type","button","data-dropdown-toggle","orgs-dropdown","data-dropdown-placement","left-start",1,"dropdown-item"],["id","signOut","type","button",1,"dropdown-item",3,"click"],["id","myOfferings","type","button",1,"dropdown-item",3,"click"],["id","administration","data-cy","administration","type","button",1,"dropdown-item",3,"click"],["id","quotelist","type","button",1,"dropdown-item",3,"click"],["id","tenderlist","type","button",1,"dropdown-item",3,"click"],["id","analytics","routerLink","/analytics",1,"dropdown-item",3,"click"],["id","usageSpecs","type","button",1,"dropdown-item",3,"click"],["type","button",1,"dropdown-item",3,"click"],[1,"relative"],["type","button",1,"inline-flex","items-center","gap-2","text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"id"],[1,"inline-block","opacity-80"],[1,"dropdown-glass","hidden","absolute","left-0","top-[calc(100%+14px)]","z-50","w-[260px]","rounded-[14px]","p-2",3,"id"],["type","button",1,"dropdown-item","text-left",3,"click"],["target","_blank",1,"mobile-nav-item",3,"href"],[1,"mobile-nav-item",3,"click"],["target","_blank",1,"text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"href"],[1,"text-[15px]","font-semibold","text-white/90","hover:text-white","transition-colors",3,"routerLink"],["type","button",1,"mobile-action-btn","mobile-action-btn--solid"],["type","button",1,"mobile-action-btn","mobile-action-btn--outline"],["type","button",1,"mobile-action-btn","mobile-action-btn--outline",3,"click"],["data-cy","contactUs","id","contactUs","type","button",1,"ml-1","inline-flex","h-[44px]","items-center","justify-center","rounded-[10px]","bg-transparent","border-color-c","px-6","text-[15px]","font-semibold","text-white","transition",3,"click"],["type","button",1,"mobile-action-btn","mobile-action-btn--solid",3,"click"],["data-cy","login","id","login","type","button",1,"ml-1","inline-flex","h-[44px]","items-center","justify-center","rounded-[10px]","header-solid-btn","px-6","text-[15px]","font-semibold","text-white","transition",3,"click"],["data-cy","shoppingCart","id","shoppingCart","type","button","aria-label","Shopping cart",1,"inline-flex","h-[44px]","w-[44px]","items-center","justify-center","rounded-[10px]","text-white/90","hover:text-white","hover:bg-white/10","transition",3,"click"],[3,"fixedWidth"],[2,"background","Tomato",3,"content"],["data-cy","loggedAcc","id","loggedAcc","data-dropdown-toggle","userDropdown","data-dropdown-placement","bottom-end","aria-label","User menu",1,"ml-1","inline-flex","h-[44px]","w-[44px]","items-center","justify-center","rounded-full","bg-white/15","text-white","cursor-pointer","select-none"],[1,"text-[14px]","font-bold","tracking-wide"],[1,"mobile-user-box"],[1,"mobile-user-box__avatar"],[1,"min-w-0"],[1,"mobile-user-box__name"],[1,"mobile-user-box__email"],["type","button",1,"mobile-nav-item",3,"click"],["type","button",1,"mobile-nav-item"],["routerLink","/analytics",1,"mobile-nav-item"],["routerLink","/analytics",1,"mobile-nav-item",3,"click"],[1,"absolute","right-0","top-0","z-40","h-screen","w-full","max-w-[520px]","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"nav",3)(1,"div",4)(2,"div",5)(3,"a",6),e.bIt("click",function(){return e.eBV(i),e.Njj(l.goTo("/dashboard"))}),e.DNE(4,KY2,1,3,"img",7),e.k0s(),e.j41(5,"div",8)(6,"ul",9),e.eu8(7,10),e.k0s()(),e.j41(8,"div",11)(9,"div",12),e.eu8(10,10),e.k0s(),e.j41(11,"button",13,0),e.bIt("click",function(C){return e.eBV(i),l.toggleNavBar(),e.Njj(C.stopPropagation())}),e.j41(13,"span",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"fa-icon",15),e.k0s()()(),e.DNE(17,eq2,7,6,"div",16)(18,iq2,41,29,"div",17),e.k0s(),e.j41(19,"div",18)(20,"ul",19)(21,"li")(22,"a",20),e.nrm(23,"fa-icon",21),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"li")(27,"a",20),e.nrm(28,"fa-icon",21),e.EFF(29),e.nI1(30,"translate"),e.k0s()()()(),e.j41(31,"div",22)(32,"ul",19),e.Z7z(33,dq2,1,1,null,null,bw1),e.DNE(35,fq2,4,2,"li"),e.k0s()(),e.DNE(36,Sq2,2,0,"ng-template",null,1,e.C5r)(38,qq2,2,1,"ng-template",null,2,e.C5r),e.k0s(),e.DNE(40,Xq2,2,0,"div",23)}if(2&t){const i=e.sdS(37),u=e.sdS(39);e.AVh("header-top",!l.scrolled&&!l.isNavBarOpen)("header-glass",l.scrolled||l.isNavBarOpen),e.R7$(4),e.vxM(4,null!=l.currentTheme&&null!=l.currentTheme.assets&&l.currentTheme.assets.logoUrl?4:-1),e.R7$(3),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.lJ4(28,Fw1)),e.R7$(3),e.Y8G("ngTemplateOutlet",u)("ngTemplateOutletContext",e.lJ4(29,Fw1)),e.R7$(),e.BMQ("aria-expanded",l.isNavBarOpen),e.R7$(3),e.JRh(e.bMT(15,22,"HEADER._open_menu")),e.R7$(2),e.Y8G("icon",l.faBars),e.R7$(),e.vxM(17,l.isNavBarOpen?17:-1),e.R7$(),e.vxM(18,l.is_logged?18:-1),e.R7$(4),e.Y8G("href",l.knowledge,e.B4B),e.R7$(),e.Y8G("icon",l.faBrain),e.R7$(),e.SpI("",e.bMT(25,24,"HEADER._knowledge")," "),e.R7$(3),e.Y8G("href",l.ticketing,e.B4B),e.R7$(),e.Y8G("icon",l.faClipboardCheck),e.R7$(),e.SpI("",e.bMT(30,26,"HEADER._ticketing")," "),e.R7$(4),e.Dyx(l.orgs),e.R7$(2),e.vxM(35,l.loggedAsOrg?35:-1),e.R7$(5),e.vxM(40,l.showCart?40:-1)}},dependencies:[_.T3,J2.aY,J2.d0,J2.VA,E2.Wk,Ru1,s1.D9],styles:[".dropdown-glass[_ngcontent-%COMP%]{background:#ffffffeb;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 18px 40px #0f172a24,0 6px 14px #0f172a1a;border:1px solid rgba(15,23,42,.06)}.dropdown-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:.5rem;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:600;color:#0f172a;text-decoration:none;background:transparent;border:0;cursor:pointer}.dropdown-item[_ngcontent-%COMP%]:hover{background:#0f172a0f}.mobile-nav-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;padding:12px;border-radius:12px;font-size:15px;font-weight:600;color:#ffffffeb;cursor:pointer;text-decoration:none;background:transparent;border:0;text-align:left}.mobile-nav-item[_ngcontent-%COMP%]:hover{background:#ffffff1a;color:#fff}.header-glass[_ngcontent-%COMP%]{background:var(--theme-header-v2-glass-bg, rgba(7, 18, 40, .55));backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);background-image:linear-gradient(to bottom,#ffffff0d,#ffffff05);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 6px 20px #00000040}.header-top[_ngcontent-%COMP%]{background:var(--theme-header-v2-top-bg, #070f24);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid transparent;box-shadow:none}.border-color-c[_ngcontent-%COMP%]{border:2px solid var(--theme-header-v2-outline-border, #2D58A7)}.border-color-c[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-outline-hover-bg, rgba(47, 111, 214, .9));color:var(--theme-header-v2-outline-hover-text, #ffffff)}.header-solid-btn[_ngcontent-%COMP%]{background-color:var(--theme-header-v2-solid-bg, #2D58A7)}.header-solid-btn[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-solid-hover-bg, rgba(47, 111, 214, .9))}.mobile-action-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:0 16px;border-radius:10px;font-size:15px;font-weight:600;transition:all .2s ease}.mobile-action-btn--solid[_ngcontent-%COMP%]{background-color:var(--theme-header-v2-solid-bg, #2D58A7);color:#fff;border:0}.mobile-action-btn--solid[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-solid-hover-bg, rgba(47, 111, 214, .9))}.mobile-action-btn--outline[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid var(--theme-header-v2-outline-border, #2D58A7)}.mobile-action-btn--outline[_ngcontent-%COMP%]:hover{background-color:var(--theme-header-v2-outline-hover-bg, rgba(47, 111, 214, .9));color:var(--theme-header-v2-outline-hover-text, #ffffff)}.mobile-user-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px;margin-bottom:4px;border-radius:12px;background:#ffffff14}.mobile-user-box__avatar[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:9999px;background:#ffffff26;color:#fff;font-size:14px;font-weight:700;flex:0 0 auto}.mobile-user-box__name[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#fff;line-height:1.2}.mobile-user-box__email[_ngcontent-%COMP%]{margin-top:2px;font-size:12px;color:#ffffffb8;line-height:1.2;word-break:break-all}"]})}}return n})();function Wq2(n,a){1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14),e.k0s(),e.joV(),e.j41(3,"p",15),e.EFF(4," The quote has been created, you can close this window "),e.k0s()())}function Jq2(n,a){if(1&n&&(e.j41(0,"div",8),e.qSk(),e.j41(1,"svg",16),e.nrm(2,"path",17),e.k0s(),e.joV(),e.j41(3,"p",18),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.SpI(" ",c.errorMessage||"Error during the creation of the quote"," ")}}function Qq2(n,a){1&n&&(e.j41(0,"p",26),e.EFF(1,"Message is required (minimum 10 characters)"),e.k0s())}function Zq2(n,a){1&n&&(e.j41(0,"p",26),e.EFF(1,"Request date is required"),e.k0s())}function Kq2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"div",19)(2,"p",20),e.EFF(3,"Request for Product:"),e.k0s(),e.j41(4,"p",21),e.EFF(5),e.k0s()(),e.j41(6,"div",19)(7,"p",20),e.EFF(8,"Provider:"),e.k0s(),e.j41(9,"p",21),e.EFF(10),e.k0s()(),e.j41(11,"form",22),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(12,"div")(13,"label",23),e.EFF(14," Message / Requirements "),e.j41(15,"span",24),e.EFF(16,"*"),e.k0s()(),e.nrm(17,"textarea",25),e.DNE(18,Qq2,2,0,"p",26),e.j41(19,"p",27),e.EFF(20," Please provide as much detail as possible to help us prepare an accurate quote. "),e.k0s()(),e.j41(21,"div")(22,"label",28),e.EFF(23," Request Date "),e.j41(24,"span",24),e.EFF(25,"*"),e.k0s()(),e.nrm(26,"input",29),e.DNE(27,Zq2,2,0,"p",26),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(5),e.JRh(c.displayProductName),e.R7$(5),e.JRh(c.displayProviderName),e.R7$(),e.Y8G("formGroup",c.quoteForm),e.R7$(6),e.AVh("border-red-300",c.isFieldInvalid("customerMessage")),e.R7$(),e.vxM(18,c.isFieldInvalid("customerMessage")?18:-1),e.R7$(8),e.AVh("border-red-300",c.isFieldInvalid("requestDate")),e.Y8G("min",c.minDate),e.R7$(),e.vxM(27,c.isFieldInvalid("requestDate")?27:-1)}}function eX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",11)(1,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.EFF(2," Close "),e.k0s()()}}function cX2(n,a){1&n&&(e.j41(0,"span",32),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"circle",34)(3,"path",35),e.k0s(),e.EFF(4," Sending... "),e.k0s())}function tX2(n,a){1&n&&e.EFF(0," Send Request ")}function nX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12)(1,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.EFF(2," Cancel "),e.k0s(),e.j41(3,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.DNE(4,cX2,5,0,"span",32)(5,tX2,1,0),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(3),e.Y8G("disabled",c.quoteForm.invalid||c.isSubmitting),e.R7$(),e.vxM(4,c.isSubmitting?4:5)}}let Vd1=(()=>{class n{constructor(c){this.eventMessage=c,this.customerId="",this.isOpen=!1,this.closeModal=new e.bkB,this.submitRequest=new e.bkB,this.quoteCreated=new e.bkB,this.fb=(0,e.WQX)(p.ok),this.quoteService=(0,e.WQX)(L3.K),this.isSubmitting=!1,this.showSuccessMessage=!1,this.showErrorMessage=!1,this.errorMessage="",this.quoteForm=this.fb.group({customerMessage:["",[p.k0.required,p.k0.minLength(10)]],requestDate:["",[p.k0.required]]})}get displayProductName(){return this.productOff?.name||"Unknown Product"}get displayProviderName(){return this.orgInfo?.tradingName||this.orgInfo?.name||"Unknown Provider"}get minDate(){return(new Date).toISOString().split("T")[0]}isFieldInvalid(c){const t=this.quoteForm.get(c);return!(!t||!t.invalid||!t.dirty&&!t.touched)}onBackdropClick(c){c.target===c.currentTarget&&this.onClose()}onClose(){this.quoteForm.reset({customerMessage:"",requestDate:""}),this.isSubmitting=!1,this.showSuccessMessage=!1,this.showErrorMessage=!1,this.errorMessage="",this.eventMessage.emitCloseQuoteRequest(!0),this.closeModal.emit()}onSubmit(){if(this.quoteForm.valid&&this.productOff&&this.customerId&&!this.isSubmitting){this.isSubmitting=!0;const c=this.quoteForm.value,t={customerMessage:c.customerMessage,customerIdRef:this.customerId,providerIdRef:this.orgInfo?.id||"",productOfferingId:this.productOff.id||this.productOff?.productSpecification?.id||""},l=new Date(c.requestDate),i=`${l.getDate().toString().padStart(2,"0")}-${(l.getMonth()+1).toString().padStart(2,"0")}-${l.getFullYear()}`;console.log("Submitting quote request with data:",t),console.log("Request date:",i),this.quoteService.createQuoteFromRequest(t).pipe((0,A.n)(u=>{const C=u?.id;return console.log("Quote created successfully with ID:",C),C?(console.log("Updating quote with request date:",i),this.quoteService.updateQuoteDate(C,i,"requested")):(console.warn("No quote ID returned, skipping date update"),[u])})).subscribe({next:u=>{console.log("Quote creation and date update completed:",u),this.quoteCreated.emit(u),this.submitRequest.emit(t),this.isSubmitting=!1,this.showSuccessMessage=!0},error:u=>{console.error("Error creating quote or updating date:",u),this.isSubmitting=!1,this.showErrorMessage=!0,this.errorMessage=u?.error?.message||u?.message||"Error during the creation of the quote"}})}else console.log("Form validation failed:"),console.log("Form valid:",this.quoteForm.valid),console.log("Product:",this.productOff),console.log("Customer ID:",this.customerId),console.log("Is submitting:",this.isSubmitting),Object.keys(this.quoteForm.controls).forEach(c=>{const t=this.quoteForm.get(c);t&&t.markAsTouched()}),this.customerId||(this.showErrorMessage=!0,this.errorMessage="Customer ID is required. Please log in first.")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-request-modal"]],inputs:{productOff:"productOff",prodSpec:"prodSpec",orgInfo:"orgInfo",customerId:"customerId",isOpen:"isOpen"},outputs:{closeModal:"closeModal",submitRequest:"submitRequest",quoteCreated:"quoteCreated"},standalone:!0,features:[e.aNF],decls:15,vars:5,consts:[[1,"fixed","inset-0","bg-gray-600","bg-opacity-50","overflow-y-auto","h-full","w-full","z-50","flex","items-center","justify-center","p-4",3,"click"],[1,"relative","bg-white","dark:bg-secondary-100","rounded-lg","shadow-xl","max-w-2xl","w-full","max-h-full","overflow-hidden",3,"click"],[1,"flex","items-center","justify-between","p-6","border-b","border-gray-200"],[1,"text-xl","font-semibold","text-gray-900","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"p-6","overflow-y-auto",2,"max-height","calc(80vh - 220px)"],[1,"flex","flex-col","items-center","justify-center","py-12"],[1,"space-y-5"],[1,"px-6","py-4","border-t","border-gray-200","bg-gray-50","dark:bg-secondary-200","rounded-b-lg"],[1,"flex","justify-end"],[1,"flex","justify-end","space-x-3"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-16","h-16","text-green-500","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"text-lg","font-medium","text-gray-900","dark:text-white","text-center"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-16","h-16","text-red-500","mb-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"text-lg","font-medium","text-red-600","dark:text-red-400","text-center"],[1,"bg-gray-50","dark:bg-secondary-200","p-4","rounded-lg","border-l-4","border-blue-500"],[1,"text-xs","text-gray-500","dark:text-gray-400","mb-1"],[1,"text-gray-900","dark:text-white","font-medium"],[1,"space-y-4",3,"ngSubmit","formGroup"],["for","customerMessage",1,"block","text-sm","font-medium","text-gray-700","dark:text-white","mb-2"],[1,"text-red-500"],["id","customerMessage","formControlName","customerMessage","rows","5","placeholder","Please describe your requirements or any specific questions about this product...",1,"w-full","px-3","py-2","border","border-gray-300","dark:bg-secondary-200","dark:text-gray-200","rounded-md","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500","resize-vertical"],[1,"text-red-500","text-xs","mt-1"],[1,"text-xs","text-gray-500","mt-1"],["for","requestDate",1,"block","text-sm","font-medium","text-gray-700","dark:text-white","mb-2"],["id","requestDate","type","date","formControlName","requestDate",1,"w-full","px-3","py-2","border","border-gray-300","dark:bg-secondary-200","dark:text-gray-200","rounded-md","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:border-blue-500",3,"min"],["type","button",1,"px-4","py-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","bg-white","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-600","rounded-md","hover:bg-gray-50","dark:hover:bg-secondary-400","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors",3,"click"],["type","submit",1,"px-4","py-2","text-sm","font-medium","text-white","bg-blue-600","border","border-blue-600","rounded-md","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-blue-500","focus:ring-offset-2","transition-colors","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center"],["fill","none","viewBox","0 0 24 24",1,"animate-spin","-ml-1","mr-2","h-4","w-4","text-white"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(u){return l.onBackdropClick(u)}),e.j41(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"h3",3),e.EFF(4," Request Quote "),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return l.onClose()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s()()(),e.joV(),e.j41(8,"div",7),e.DNE(9,Wq2,5,0,"div",8)(10,Jq2,5,1,"div",8)(11,Kq2,28,10,"div",9),e.k0s(),e.j41(12,"div",10),e.DNE(13,eX2,3,0,"div",11)(14,nX2,6,2,"div",12),e.k0s()()()),2&t&&(e.R7$(9),e.vxM(9,l.showSuccessMessage?9:-1),e.R7$(),e.vxM(10,l.showErrorMessage?10:-1),e.R7$(),e.vxM(11,l.showSuccessMessage||l.showErrorMessage?-1:11),e.R7$(2),e.vxM(13,l.showSuccessMessage||l.showErrorMessage?13:-1),e.R7$(),e.vxM(14,l.showSuccessMessage||l.showErrorMessage?-1:14))},dependencies:[_.MD,p.YN,p.qT,p.me,p.BC,p.cb,p.X1,p.j4,p.JD],encapsulation:2})}}return n})();const lX2=[_.MD,p.YN,p.X1,J2.dX,s1.h,g.q1,Vd1];let BL=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[_.vh,s1.c$],imports:[lX2,xG,_.MD,p.YN,p.X1,J2.dX,s1.h,g.q1]})}}return n})();const sX2=(n,a)=>({"break-all":n,"break-words":a});function aX2(n,a){if(1&n&&e.nrm(0,"markdown",30),2&n){const c=e.XpG();e.Y8G("ngClass",e.l_i(2,sX2,c.hasLongWord(c.value,20),!c.hasLongWord(c.value,20)))("data",c.value)}}function oX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"textarea",32),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.updateValue(l))}),e.k0s()}if(2&n){const c=e.XpG();e.FS9("placeholder",c.placeholder),e.Y8G("value",c.value)}}function iX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"emoji-mart",33),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())})("emojiClick",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.addEmoji(l))}),e.k0s()()}2&n&&(e.R7$(),e.Y8G("darkMode",!1))}let me=(()=>{class n{constructor(){this.placeholder="Write your description here...",this.rows=8,this.value="",this.showPreview=!1,this.showEmoji=!1,this.onChange=c=>{},this.onTouched=()=>{}}onClick(){1==this.showEmoji&&(this.showEmoji=!1)}writeValue(c){this.value=c||""}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}updateValue(c){const t=c.target.value;this.value=t,this.onChange(t),this.onTouched()}togglePreview(){this.showPreview=!this.showPreview}addList(){this.value+="\n- First item\n- Second item"}addOrderedList(){this.value+="\n1. First item\n2. Second item"}addCode(){this.value+="\n`code`"}addCodeBlock(){this.value+="\n```\ncode\n```"}addBlockquote(){this.value+="\n> blockquote"}addTable(){this.value+="\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}addEmoji(c){this.showEmoji=!1,this.value+=c.emoji.native,this.onChange(this.value)}addMarkdownTag(c){const t=document.getElementById("editor");if(!t)return;const l=t.selectionStart,i=t.selectionEnd,u=this.value.substring(0,l);let C=this.value.substring(l,i);const b=this.value.substring(i);switch(c){case"bold":C=`**${C||"bold text"}**`;break;case"italic":C=`*${C||"italic text"}*`;break;case"link":C=`[${C||"link text"}](http://)`;break;case"list":C=`- ${C||"list item"}`;break;case"orderedList":C=`1. ${C||"ordered item"}`;break;case"blockquote":C=`> ${C||"blockquote"}`;break;case"code":C=`\`${C||"inline code"}\``;break;case"codeBlock":C=`\`\`\`\n${C||"code block"}\n\`\`\``;break;case"table":C=`| Column 1 | Column 2 | Column 3 |\n|----------|----------|----------|\n| ${C||"data"} | data | data |`}this.value=u+C+b,this.onChange(this.value),setTimeout(()=>{t.selectionStart=t.selectionEnd=l+C.length,t.focus()},0)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-markdown-textarea"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{placeholder:"placeholder",rows:"rows"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:71,vars:28,consts:[[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-secondary-200","dark:border-secondary-200"],[1,"flex","items-center","justify-between","px-3","py-2","border-b"],[1,"flex","flex-wrap","items-center","divide-gray-200","dark:divide-secondary-200","sm:divide-x","sm:rtl:divide-x-reverse"],[1,"flex","items-center","space-x-1","rtl:space-x-reverse","sm:pe-4","text-gray-500","dark:text-gray-200"],["type","button",1,"p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 5h4.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0-7H6m2 7h6.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0 0H6"],[1,"sr-only"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8.874 19 6.143-14M6 19h6.33m-.66-14H18"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M9 8h10M9 12h10M9 16h10M4.99 8H5m-.02 4h.01m0 4H5"],["type","button",1,"hidden","lg:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6h8m-8 6h8m-8 6h8M4 16a2 2 0 1 1 3.321 1.5L4 20h5M4 5l2-1v6m-2 0h4"],["type","button",1,"hidden","md:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["fill-rule","evenodd","d","M5 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm0 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm1.65-9.76A1 1 0 0 0 5 9v6a1 1 0 0 0 1.65.76l3.5-3a1 1 0 0 0 0-1.52l-3.5-3ZM12 10a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Z","clip-rule","evenodd"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-width","2","d","M3 11h18m-9 0v8m-8 0h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8 8-4 4 4 4m8 0 4-4-4-4m-2-3-4 14"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 3v4a1 1 0 0 1-1 1H5m5 4-2 2 2 2m4-4 2 2-2 2m5-12v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.213 9.787a3.391 3.391 0 0 0-4.795 0l-3.425 3.426a3.39 3.39 0 0 0 4.795 4.794l.321-.304m-.321-4.49a3.39 3.39 0 0 0 4.795 0l3.424-3.426a3.39 3.39 0 0 0-4.794-4.795l-1.028.961"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM13.5 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-7 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm3.5 9.5A5.5 5.5 0 0 1 4.6 11h10.81A5.5 5.5 0 0 1 10 15.5Z"],["type","button","data-tooltip-target","tooltip-fullscreen",1,"rounded","cursor-pointer","text-gray-500","dark:text-gray-200","p-2","sm:ms-auto","hover:text-gray-900","dark:hover:text-gray-900","hover:bg-gray-100",3,"click"],["stroke","currentColor","stroke-width","2","d","M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z"],["stroke","currentColor","stroke-width","2","d","M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"],["id","tooltip-fullscreen","role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","bg-gray-900","rounded-lg","shadow-sm","opacity-0","tooltip"],["data-popper-arrow","",1,"tooltip-arrow"],[1,"relative","px-4","py-2","bg-white","dark:bg-secondary-300","rounded-b-lg"],["for","editor",1,"sr-only"],[1,"min-h-16","h-fit","block","bg-white","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"absolute","z-50","top-[-100px]","right-0"],["id","editor","data-cy","textArea","rows","8","maxLength","100000",1,"block","w-full","h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0",3,"input","placeholder","value"],[3,"click","emojiClick","darkMode"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"button",4),e.bIt("click",function(){return l.addMarkdownTag("bold")}),e.qSk(),e.j41(5,"svg",5),e.nrm(6,"path",6),e.k0s(),e.joV(),e.j41(7,"span",7),e.EFF(8,"Bold"),e.k0s()(),e.j41(9,"button",4),e.bIt("click",function(){return l.addMarkdownTag("italic")}),e.qSk(),e.j41(10,"svg",5),e.nrm(11,"path",8),e.k0s(),e.joV(),e.j41(12,"span",7),e.EFF(13,"Italic"),e.k0s()(),e.j41(14,"button",4),e.bIt("click",function(){return l.addMarkdownTag("list")}),e.qSk(),e.j41(15,"svg",9),e.nrm(16,"path",10),e.k0s(),e.joV(),e.j41(17,"span",7),e.EFF(18,"Add list"),e.k0s()(),e.j41(19,"button",11),e.bIt("click",function(){return l.addMarkdownTag("orderedList")}),e.qSk(),e.j41(20,"svg",9),e.nrm(21,"path",12),e.k0s(),e.joV(),e.j41(22,"span",7),e.EFF(23,"Add ordered list"),e.k0s()(),e.j41(24,"button",13),e.bIt("click",function(){return l.addMarkdownTag("blockquote")}),e.qSk(),e.j41(25,"svg",14),e.nrm(26,"path",15),e.k0s(),e.joV(),e.j41(27,"span",7),e.EFF(28,"Add blockquote"),e.k0s()(),e.j41(29,"button",4),e.bIt("click",function(){return l.addMarkdownTag("table")}),e.qSk(),e.j41(30,"svg",16),e.nrm(31,"path",17),e.k0s(),e.joV(),e.j41(32,"span",7),e.EFF(33,"Add table"),e.k0s()(),e.j41(34,"button",13),e.bIt("click",function(){return l.addMarkdownTag("code")}),e.qSk(),e.j41(35,"svg",16),e.nrm(36,"path",18),e.k0s(),e.joV(),e.j41(37,"span",7),e.EFF(38,"Add code"),e.k0s()(),e.j41(39,"button",13),e.bIt("click",function(){return l.addMarkdownTag("codeBlock")}),e.qSk(),e.j41(40,"svg",16),e.nrm(41,"path",19),e.k0s(),e.joV(),e.j41(42,"span",7),e.EFF(43,"Add code block"),e.k0s()(),e.j41(44,"button",13),e.bIt("click",function(){return l.addMarkdownTag("link")}),e.qSk(),e.j41(45,"svg",16),e.nrm(46,"path",20),e.k0s(),e.joV(),e.j41(47,"span",7),e.EFF(48,"Add link"),e.k0s()(),e.j41(49,"button",13),e.bIt("click",function(u){return l.showEmoji=!l.showEmoji,u.stopPropagation()}),e.qSk(),e.j41(50,"svg",21),e.nrm(51,"path",22),e.k0s(),e.joV(),e.j41(52,"span",7),e.EFF(53,"Add emoji"),e.k0s()()()(),e.j41(54,"button",23),e.bIt("click",function(){return l.togglePreview()}),e.qSk(),e.j41(55,"svg",9),e.nrm(56,"path",24)(57,"path",25),e.k0s(),e.joV(),e.j41(58,"span",7),e.EFF(59),e.nI1(60,"translate"),e.k0s()(),e.j41(61,"div",26),e.EFF(62),e.nI1(63,"translate"),e.nrm(64,"div",27),e.k0s()(),e.j41(65,"div",28)(66,"label",29),e.EFF(67,"Publish post"),e.k0s(),e.DNE(68,aX2,1,5,"markdown",30)(69,oX2,1,2)(70,iX2,2,1,"div",31),e.k0s()()),2&t&&(e.R7$(4),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",l.showPreview)("ngClass",l.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(10),e.JRh(e.bMT(60,24,"CREATE_CATALOG._preview")),e.R7$(3),e.SpI(" ",e.bMT(63,26,"CREATE_CATALOG._show_preview")," "),e.R7$(6),e.vxM(68,l.showPreview?68:69),e.R7$(2),e.vxM(70,l.showEmoji?70:-1))},dependencies:[N0,_.YU,T0,BL,s1.D9]})}}return n})();class wn{static{this.BASE_URL=g1.c.BASE_URL}constructor(a){this.http=a}uploadFile(a){return this.http.post(`${wn.BASE_URL}/charging/api/assetManagement/assets/uploadJob`,a)}static{this.\u0275fac=function(c){return new(c||wn)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:wn,factory:wn.\u0275fac,providedIn:"root"})}}const rX2=(n,a)=>a.value;function dX2(n,a){1&n&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",20),e.nrm(2,"path",21)(3,"path",22),e.k0s(),e.joV(),e.j41(4,"span",23),e.EFF(5,"Loading..."),e.k0s()())}function fX2(n,a){if(1&n&&(e.j41(0,"option",28),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value),e.R7$(),e.JRh(c.label)}}function uX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Use only lowercase letters, numbers and hyphens."),e.k0s())}function mX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"This slug is already in use. Pick a different one."),e.k0s())}function pX2(n,a){if(1&n&&(e.j41(0,"label",34),e.EFF(1,"URL slug"),e.k0s(),e.nrm(2,"input",35),e.j41(3,"p",36),e.EFF(4),e.k0s(),e.DNE(5,uX2,2,0,"p",37)(6,mX2,2,0,"p",37)),2&n){const c=e.XpG(2);e.R7$(4),e.Lme("URL preview: ",c.getUrlPreviewBase(),"/",c.entryForm.controls.slug.value||"my-blog-entry",""),e.R7$(),e.vxM(5,c.entryForm.controls.slug.touched&&c.entryForm.controls.slug.invalid?5:-1),e.R7$(),e.vxM(6,c.isSlugTaken()?6:-1)}}function hX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Meta description cannot exceed 160 characters."),e.k0s())}function gX2(n,a){1&n&&(e.j41(0,"p",37),e.EFF(1,"Excerpt cannot exceed 300 characters."),e.k0s())}function _X2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",49),e.nrm(1,"img",54),e.j41(2,"button",55),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.removeFeaturedImage())}),e.qSk(),e.j41(3,"svg",56),e.nrm(4,"path",57),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("src",c.getFeaturedImageUrl(),e.B4B)}}function LX2(n,a){1&n&&(e.j41(0,"p",53),e.EFF(1,"Uploading featured image..."),e.k0s())}function CX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",38),e.EFF(1,"Meta description (extract)"),e.k0s(),e.nrm(2,"textarea",39),e.j41(3,"p",36),e.EFF(4),e.k0s(),e.DNE(5,hX2,2,0,"p",37),e.j41(6,"label",40),e.EFF(7,"Excerpt"),e.k0s(),e.nrm(8,"textarea",41),e.j41(9,"p",36),e.EFF(10),e.k0s(),e.DNE(11,gX2,2,0,"p",37),e.j41(12,"label",42),e.EFF(13,"Tags"),e.k0s(),e.nrm(14,"input",43),e.j41(15,"p",36),e.EFF(16,"Separate tags with commas."),e.k0s(),e.j41(17,"label",44),e.EFF(18,"Author"),e.k0s(),e.nrm(19,"input",45),e.j41(20,"label",46),e.EFF(21,"Date"),e.k0s(),e.nrm(22,"input",47),e.j41(23,"p",36),e.EFF(24,"Optional. Leave empty to avoid sending a date."),e.k0s(),e.j41(25,"label",48),e.EFF(26,"Featured image"),e.k0s(),e.DNE(27,_X2,5,1,"div",49),e.j41(28,"div",50)(29,"input",51),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onFeaturedImageSelected(l))}),e.k0s(),e.j41(30,"p",52),e.EFF(31,"Upload to media manager (max 3MB)"),e.k0s(),e.DNE(32,LX2,2,0,"p",53),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(4),e.SpI("",(c.entryForm.controls.metaDescription.value||"").length,"/160"),e.R7$(),e.vxM(5,c.entryForm.controls.metaDescription.touched&&c.entryForm.controls.metaDescription.hasError("maxlength")?5:-1),e.R7$(5),e.SpI("",(c.entryForm.controls.excerpt.value||"").length,"/300"),e.R7$(),e.vxM(11,c.entryForm.controls.excerpt.touched&&c.entryForm.controls.excerpt.hasError("maxlength")?11:-1),e.R7$(16),e.vxM(27,c.getFeaturedImageUrl()?27:-1),e.R7$(2),e.Y8G("disabled",c.uploadingFeaturedImage),e.R7$(3),e.vxM(32,c.uploadingFeaturedImage?32:-1)}}function zX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDeleteDialog())}),e.EFF(2," Delete entry "),e.k0s(),e.j41(3,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.update())}),e.EFF(4," Update entry "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",c.loading),e.R7$(2),e.Y8G("disabled",!c.canSubmit())}}function MX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.create())}),e.EFF(2," Create entry "),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("disabled",!c.canSubmit())}}function xX2(n,a){if(1&n&&(e.j41(0,"form",24)(1,"form",25)(2,"label",26),e.EFF(3,"Content type"),e.k0s(),e.j41(4,"select",27),e.Z7z(5,fX2,2,2,"option",28,rX2),e.k0s(),e.j41(7,"label",29),e.EFF(8),e.k0s(),e.nrm(9,"input",30),e.DNE(10,pX2,7,4)(11,CX2,33,7),e.j41(12,"label",31),e.EFF(13),e.k0s(),e.nrm(14,"app-markdown-textarea",32),e.k0s(),e.DNE(15,zX2,5,2,"div",33)(16,MX2,3,1),e.k0s()),2&n){const c=e.XpG();e.Y8G("formGroup",c.entryForm),e.R7$(),e.Y8G("formGroup",c.entryForm),e.R7$(4),e.Dyx(c.contentTypes),e.R7$(3),e.JRh(c.getTitleLabel()),e.R7$(2),e.vxM(10,c.isFaqEntry()?-1:10),e.R7$(),e.vxM(11,c.isFaqEntry()?-1:11),e.R7$(2),e.JRh(c.getContentLabel()),e.R7$(2),e.vxM(15,c.blogId?15:16)}}function bX2(n,a){if(1&n&&(e.j41(0,"div",19)(1,"div",60)(2,"div",10),e.qSk(),e.j41(3,"svg",61),e.nrm(4,"path",62),e.k0s(),e.joV(),e.j41(5,"h3",63),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",64),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let ww1=(()=>{class n{constructor(c,t,l,i,u){this.route=c,this.router=t,this.localStorage=l,this.domeBlogService=i,this.attachmentService=u,this.slugRegex=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.maxFileSize=g1.c.MAX_FILE_SIZE,this.entryForm=new p.gE({contentType:new p.MJ("blog",[p.k0.required]),title:new p.MJ("",[p.k0.required]),slug:new p.MJ("",[p.k0.required,p.k0.pattern(this.slugRegex)]),featuredImage:new p.MJ(""),metaDescription:new p.MJ("",[p.k0.maxLength(160)]),excerpt:new p.MJ("",[p.k0.maxLength(300)]),tags:new p.MJ(""),author:new p.MJ(""),date:new p.MJ(""),content:new p.MJ("",[p.k0.required])}),this.loading=!1,this.partyId="",this.showError=!1,this.errorMessage="",this.name="",this.blogId=void 0,this.existingEntries=[],this.slugManuallyEdited=!1,this.showDeleteConfirm=!1,this.deleteConfirmTitle="Delete entry",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",this.uploadingFeaturedImage=!1,this.contentTypes=[{value:"blog",label:"Blog"},{value:"news",label:"News / Event"},{value:"faq",label:"FAQ"}]}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(c.applyInitialContentType(),c.setupSlugHandlers(),c.setupContentTypeHandlers(),c.blogId=c.route.snapshot.paramMap.get("id"),yield c.loadExistingEntries(),c.blogId){let t=yield c.domeBlogService.getBlogEntryById(c.blogId);c.entryForm.controls.contentType.setValue(c.normalizeContentType(t.contentType||c.entryForm.controls.contentType.value),{emitEvent:!1}),c.applyContentTypeRules(),c.entryForm.controls.title.setValue(t.title);const l=c.slugify(t.slug||t.title||"");c.entryForm.controls.slug.setValue(l,{emitEvent:!1}),c.entryForm.controls.featuredImage.setValue(c.extractFeaturedImageUrl(t.featuredImage)),c.entryForm.controls.metaDescription.setValue(t.metaDescription||""),c.entryForm.controls.excerpt.setValue(t.excerpt||""),c.entryForm.controls.tags.setValue(c.formatTagsForInput(t.tags)),c.entryForm.controls.author.setValue((t.author||"").toString().trim()),c.entryForm.controls.date.setValue(c.formatDateForInput(t.date)),c.slugManuallyEdited=l.length>0&&l!==c.slugify(t.title||""),c.entryForm.controls.content.setValue(t.content)}else c.entryForm.controls.slug.setValue(c.slugify(c.entryForm.value.title||""),{emitEvent:!1});c.initPartyInfo()})()}goBack(){this.router.navigate([this.getLandingRoute()])}create(){var c=this;return(0,C1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const t=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let i=c.buildEntryBody({partyId:c.partyId,author:t||c.name});l&&(i.date=l),c.domeBlogService.createBlogEntry(i).subscribe({next:u=>{c.loading=!1,c.goBack()},error:u=>{console.error("There was an error while creating!",u),u.error.error?(console.log(u),c.errorMessage="Error: "+u.error.error):c.errorMessage="There was an error while creating the entry!",c.loading=!1,c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})})()}update(){var c=this;return(0,C1.A)(function*(){if(c.entryForm.invalid||c.isSlugTaken())return void c.entryForm.markAllAsTouched();const t=c.normalizeOptionalText(c.entryForm.controls.author.value),l=c.normalizeOptionalText(c.entryForm.controls.date.value);let i=c.buildEntryBody();t&&(i.author=t),l&&(i.date=l);try{yield c.domeBlogService.updateBlogEntry(i,c.blogId),c.loading=!1,c.goBack()}catch{c.errorMessage="There was an error while updating the entry!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})()}openDeleteDialog(){!this.blogId||this.loading||(this.deleteConfirmMessage=`Are you sure you want to delete "${this.entryForm.controls.title.value||"this post"}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1}confirmDelete(){var c=this;return(0,C1.A)(function*(){if(c.blogId){c.closeDeleteDialog(),c.loading=!0;try{yield c.domeBlogService.deleteBlogEntry(c.blogId),c.loading=!1,c.goBack()}catch{c.loading=!1,c.errorMessage="There was an error while deleting the entry!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else c.closeDeleteDialog()})()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,this.name=c.user;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.name=t.name}}loadExistingEntries(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.domeBlogService.getBlogEntries();c.existingEntries=Array.isArray(t)?t:[]}catch{c.existingEntries=[]}})()}setupSlugHandlers(){this.entryForm.controls.title.valueChanges.subscribe(c=>{this.slugManuallyEdited||this.entryForm.controls.slug.setValue(this.slugify(c||""),{emitEvent:!1})}),this.entryForm.controls.slug.valueChanges.subscribe(c=>{const t=this.slugify(c||"");c!==t&&this.entryForm.controls.slug.setValue(t,{emitEvent:!1});const l=this.slugify(this.entryForm.controls.title.value||"");this.slugManuallyEdited=t.length>0&&t!==l})}setupContentTypeHandlers(){this.entryForm.controls.contentType.valueChanges.subscribe(()=>{this.applyContentTypeRules()}),this.applyContentTypeRules()}slugify(c){return c.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}isSlugTaken(){const c=this.slugify(this.entryForm.controls.slug.value||"");if(!c)return!1;const t=this.getSelectedContentType();return this.existingEntries.some(l=>this.slugify(l.slug||l.title||"")===c&&l._id!==this.blogId&&this.normalizeContentType(l.contentType)===t)}canSubmit(){return!this.loading&&!this.uploadingFeaturedImage&&this.entryForm.valid&&!this.isSlugTaken()}onFeaturedImageSelected(c){const t=c.target,l=t.files?.[0];if(!l)return;if(!l.type.startsWith("image/"))return this.showTemporaryError("File must have a valid image format!"),void(t.value="");if(l.size>this.maxFileSize)return this.showTemporaryError("File size must be under 3MB."),void(t.value="");const i=l.name.replace(/[^A-Za-z0-9_.-]/g,"_"),u=`blogcover_${Date.now()}_${i}`;if(!this.filenameRegex.test(u))return this.showTemporaryError("File name contains unsupported characters."),void(t.value="");const C=new FileReader;C.onload=b=>{const T=b.target?.result;if("string"!=typeof T||!T.includes(","))return this.showTemporaryError("There was an error while processing the image file."),void(t.value="");const W=T.split(",")[1],u1={content:{name:u,data:W},contentType:l.type,isPublic:!0};this.uploadingFeaturedImage=!0,this.attachmentService.uploadFile(u1).subscribe({next:a1=>{const T1=(a1?.content||"").toString();T1?this.entryForm.controls.featuredImage.setValue(T1):this.showTemporaryError("There was an error while uploading the featured image.")},error:a1=>{console.error("There was an error while uploading featured image!",a1),this.showTemporaryError(413!==a1.status?a1?.error?.error?`Error: ${a1.error.error}`:"There was an error while uploading the featured image.":"File size too large! Must be under 3MB.")},complete:()=>{this.uploadingFeaturedImage=!1,t.value=""}})},C.onerror=()=>{this.showTemporaryError("There was an error while reading the image file."),t.value=""},C.readAsDataURL(l)}removeFeaturedImage(){this.entryForm.controls.featuredImage.setValue("")}isFaqEntry(){return"faq"===this.getSelectedContentType()}getTitleLabel(){return this.isFaqEntry()?"Question":"Title"}getContentLabel(){return this.isFaqEntry()?"Answer":"Content"}getUrlPreviewBase(){const c=this.getSelectedContentType();return"news"===c?"/news":"faq"===c?"/faq":"/blog"}getFeaturedImageUrl(){return this.extractFeaturedImageUrl(this.entryForm.controls.featuredImage.value)}parseTagsFromForm(){const c=(this.entryForm.controls.tags.value||"").toString();if(!c.trim())return[];const t=new Map;return c.split(",").forEach(l=>{const i=l.trim().replace(/\s+/g," ");if(!i)return;const u=i.toLowerCase();t.has(u)||t.set(u,i)}),Array.from(t.values())}formatTagsForInput(c){return Array.isArray(c)?c.map(t=>(t??"").toString().trim()).filter(t=>t.length>0).join(", "):"string"==typeof c?c.split(",").map(t=>t.trim()).filter(t=>t.length>0).join(", "):""}extractFeaturedImageUrl(c){return c?"string"==typeof c?c.trim():"string"==typeof c?.url?c.url.trim():"":""}normalizeOptionalText(c){return null==c?"":c.toString().trim()}applyInitialContentType(){const c=this.route.snapshot.queryParamMap?.get("type");this.entryForm.controls.contentType.setValue(this.normalizeContentType(c),{emitEvent:!1})}applyContentTypeRules(){this.isFaqEntry()?(this.entryForm.controls.slug.clearValidators(),this.entryForm.controls.slug.setValue(this.slugify(this.entryForm.controls.title.value||""),{emitEvent:!1}),this.entryForm.controls.featuredImage.setValue("",{emitEvent:!1})):this.entryForm.controls.slug.setValidators([p.k0.required,p.k0.pattern(this.slugRegex)]),this.entryForm.controls.slug.updateValueAndValidity({emitEvent:!1})}buildEntryBody(c={}){const t=this.getSelectedContentType(),l={title:this.entryForm.value.title,slug:this.slugify(this.entryForm.value.slug||this.entryForm.value.title||""),contentType:t,content:this.entryForm.value.content,...c};return"faq"!==t&&(l.featuredImage=this.getFeaturedImageUrl(),l.metaDescription=this.entryForm.value.metaDescription,l.excerpt=this.entryForm.value.excerpt,l.tags=this.parseTagsFromForm()),l}getLandingRoute(){const c=this.getSelectedContentType();return"news"===c?"/news":"faq"===c?"/faq":"/blog"}getSelectedContentType(){return this.normalizeContentType(this.entryForm.controls.contentType.value)}normalizeContentType(c){const t=(c||"").toString().trim().toLowerCase();return"news"===t||"news/event"===t||"event"===t?"news":"faq"===t?"faq":"blog"}formatDateForInput(c){const t=this.normalizeOptionalText(c);if(!t)return"";if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(t))return t;const l=$2()(t);return l.isValid()?l.format("YYYY-MM-DDTHH:mm"):""}showTemporaryError(c){this.errorMessage=c,this.showError=!0,this.uploadingFeaturedImage=!1,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(z2.s),e.rXU(W3),e.rXU(wn))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-entry-form"]],standalone:!0,features:[e.aNF],decls:24,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","shadow-lg","text-gray-700","border","border-gray-200","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","p-4","pb-16","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","w-full","max-w-screen-xl","rounded-lg","border","border-gray-300","bg-white","p-6","shadow-lg","dark:border-secondary-300","dark:bg-secondary-100","md:p-8"],[1,"mb-6","text-3xl","font-bold","text-secondary-200","dark:text-white"],["role","status",1,"flex","min-h-[300px]","w-full","items-center","justify-center"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"md:p-8",3,"formGroup"],["for","contentType",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryContentType","id","contentType","formControlName","contentType",1,"mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value"],["for","title",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryTitle","id","title","type","text","formControlName","title",1,"mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","content",1,"h-[500px]"],[1,"flex","justify-end","mt-6","space-x-4"],["for","slug",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntrySlug","id","slug","type","text","formControlName","slug","placeholder","my-blog-entry",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-2","text-xs","text-gray-500","dark:text-gray-300"],[1,"mb-2","text-sm","text-red-600","dark:text-red-300"],["for","metaDescription",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryMetaDescription","id","metaDescription","formControlName","metaDescription","rows","3","placeholder","Short SEO summary (recommended up to 160 characters)",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","excerpt",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryExcerpt","id","excerpt","formControlName","excerpt","rows","4","placeholder","Short text used in blog cards and previews",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","tags",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryTags","id","tags","type","text","formControlName","tags","placeholder","ai, automation, product updates",1,"mb-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","author",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryAuthor","id","author","type","text","formControlName","author","placeholder","Optional. If empty on create, current session user is used",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","date",1,"font-bold","text-lg","dark:text-white"],["data-cy","blogEntryDate","id","date","type","datetime-local","formControlName","date",1,"mb-3","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-gray-800","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","featuredImageFile",1,"font-bold","text-lg","dark:text-white"],[1,"relative","mb-3","mt-2","w-full"],[1,"mb-3","mt-2"],["id","featuredImageFile","type","file","accept","image/*",1,"block","w-full","text-sm","text-gray-900","file:mr-4","file:rounded-lg","file:border-0","file:bg-primary-100","file:px-4","file:py-2","file:text-white","hover:file:bg-primary-50","dark:text-white","disabled:opacity-60",3,"change","disabled"],[1,"mt-2","text-xs","text-gray-500","dark:text-gray-300"],[1,"mt-2","text-sm","text-primary-100","dark:text-primary-50"],["alt","Featured image preview",1,"h-56","w-full","rounded-lg","border","border-gray-300","object-cover","dark:border-gray-700",3,"src"],["type","button",1,"absolute","right-2","top-2","rounded-full","bg-red-700","p-1","text-white","hover:bg-red-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-4","w-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","blogEntryDelete",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-red-700","hover:bg-red-800","disabled:opacity-60",3,"click","disabled"],["data-cy","blogEntryCreate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100","disabled:opacity-50",3,"click","disabled"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9," Back "),e.k0s()(),e.joV(),e.j41(10,"li",9)(11,"div",10),e.qSk(),e.j41(12,"svg",11),e.nrm(13,"path",12),e.k0s(),e.joV(),e.j41(14,"span",13),e.EFF(15,"Create blog entry"),e.k0s()()()()()()(),e.j41(16,"div",14)(17,"div",15)(18,"h1",16),e.EFF(19),e.k0s(),e.DNE(20,dX2,6,0,"div",17)(21,xX2,17,7),e.k0s()()(),e.j41(22,"app-confirm-dialog",18),e.bIt("confirm",function(){return l.confirmDelete()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s(),e.DNE(23,bX2,9,1,"div",19)),2&t&&(e.R7$(19),e.SpI(" ",l.blogId?"Update CMS entry":"Create CMS entry"," "),e.R7$(),e.vxM(20,l.loading?20:21),e.R7$(2),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass),e.R7$(),e.vxM(23,l.showError?23:-1))},dependencies:[me,p.X1,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,q3.w]})}}return n})();function yX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCreate())}),e.j41(1,"span",12),e.EFF(2,"Add FAQ"),e.k0s(),e.qSk(),e.j41(3,"svg",13),e.nrm(4,"path",14),e.k0s()()}}function FX2(n,a){1&n&&(e.qSk(),e.j41(0,"svg",26),e.nrm(1,"path",14),e.k0s())}function vX2(n,a){1&n&&(e.qSk(),e.j41(0,"svg",26),e.nrm(1,"path",27),e.k0s())}function kX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",28)(1,"button",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(2,"svg",30),e.nrm(3,"path",31),e.k0s()(),e.joV(),e.j41(4,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG();return e.Njj(i.openDeleteDialog(l))}),e.qSk(),e.j41(5,"svg",33),e.nrm(6,"path",34),e.k0s()()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG();e.R7$(4),e.Y8G("disabled",t.isDeletingEntry(c))}}function wX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"article",15)(1,"div",16)(2,"button",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.toggleFaq(i.getEntryId(l)))}),e.j41(3,"span",18),e.EFF(4),e.k0s(),e.j41(5,"span",19),e.DNE(6,FX2,2,0,"svg",20)(7,vX2,2,0,"svg",20),e.k0s()(),e.DNE(8,kX2,7,1,"div",21),e.k0s(),e.j41(9,"div",22)(10,"div",23),e.nrm(11,"div",24)(12,"markdown",25),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.AVh("faq-card--open",t.isOpen(t.getEntryId(c))),e.R7$(2),e.BMQ("aria-expanded",t.isOpen(t.getEntryId(c))),e.R7$(2),e.JRh(c.title),e.R7$(),e.AVh("faq-icon--open",t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",!t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",t.isOpen(t.getEntryId(c))),e.R7$(),e.Y8G("ngIf",t.canManageEntry()),e.R7$(),e.AVh("faq-answer--open",t.isOpen(t.getEntryId(c))),e.R7$(3),e.Y8G("data",c.content)}}function SX2(n,a){1&n&&(e.j41(0,"div",35),e.EFF(1," No FAQs have been published yet. "),e.k0s())}let NX2=(()=>{class n{constructor(c,t,l){this.router=c,this.domeBlogService=t,this.localStorage=l,this.faqs=[],this.openFaqId="",this.checkAdmin=!1,this.deletingEntryId=null,this.showDeleteConfirm=!1,this.pendingDeleteEntry=null,this.deleteConfirmTitle="Delete FAQ",this.deleteConfirmMessage="",this.deleteConfirmButtonText="Delete",this.deleteConfirmButtonClass="px-4 py-2 text-sm font-medium text-white bg-red-700 border border-transparent rounded-md hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500"}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.initPartyInfo(),yield c.loadFaqs()})()}loadFaqs(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.domeBlogService.getBlogEntries({contentType:"faq"});c.faqs=c.extractEntries(t).filter(l=>c.isFaqEntry(l))}catch{c.faqs=[]}})()}toggleFaq(c){this.openFaqId=this.openFaqId===c?"":c}isOpen(c){return this.openFaqId===c}getEntryId(c){return c?._id||c?.id||c?.slug||c?.title}goToCreate(){this.router.navigate(["/blog-entry"],{queryParams:{type:"faq"}})}goToUpdate(c){const t=c?._id||c?.id;t&&this.router.navigate(["/blog-entry/",t],{queryParams:{type:"faq"}})}canManageEntry(){return this.checkAdmin}isDeletingEntry(c){return this.deletingEntryId===(c?._id||c?.id)}openDeleteDialog(c){!c?._id&&!c?.id||this.isDeletingEntry(c)||(this.pendingDeleteEntry=c,this.deleteConfirmMessage=`Are you sure you want to delete "${c.title}"? This action cannot be undone.`,this.showDeleteConfirm=!0)}closeDeleteDialog(){this.showDeleteConfirm=!1,this.pendingDeleteEntry=null}confirmDeleteEntry(){var c=this;return(0,C1.A)(function*(){const t=c.pendingDeleteEntry?._id||c.pendingDeleteEntry?.id;if(t){c.deletingEntryId=t,c.closeDeleteDialog();try{yield c.domeBlogService.deleteBlogEntry(t),yield c.loadFaqs()}catch(l){console.error("There was an error while deleting the FAQ entry!",l)}finally{c.deletingEntryId=null}}else c.closeDeleteDialog()})()}initPartyInfo(){const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0&&(this.checkAdmin=c.roles.some(t=>"admin"===t.name))}extractEntries(c){if(Array.isArray(c))return c;const t=c?.items||c?.entries||c?.data||c?.results||c?.content;return Array.isArray(t)?t:[]}isFaqEntry(c){return"faq"===(c?.contentType||c?.type||"").toString().trim().toLowerCase()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(W3),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-faq"]],decls:12,vars:8,consts:[[1,"bg-secondary-50","dark:bg-secondary-200","flex","min-h-full","flex-col"],[1,"w-full","bg-secondary-50"],[1,"mx-auto","flex","w-full","max-w-[1440px]","flex-col","gap-6","px-6","py-10","sm:px-8","md:px-10","md:py-12","lg:px-16","xl:px-[160px]"],[1,"flex","flex-row","items-start","justify-between","gap-4"],[1,"text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-secondary-200","dark:text-white"],["type","button","data-cy","newFaqEntry","class","h-fit text-white bg-primary-100 hover:bg-primary-50 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-full text-sm p-2.5 text-center inline-flex items-center align-middle",3,"click",4,"ngIf"],[1,"flex-1","mx-auto","w-full","max-w-[1440px]","px-6","pb-16","pt-8","sm:px-8","md:px-10","lg:px-16","xl:px-[160px]"],[1,"mx-auto","flex","w-full","max-w-[1120px]","flex-col","gap-4","lg:gap-6"],["class","faq-card",3,"faq-card--open",4,"ngFor","ngForOf"],["class","rounded-lg border border-gray-300 bg-white p-8 text-center text-gray-600 dark:border-secondary-300 dark:bg-secondary-100 dark:text-secondary-50",4,"ngIf"],[3,"confirm","cancel","isOpen","title","message","confirmText","confirmButtonClass"],["type","button","data-cy","newFaqEntry",1,"h-fit","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle",3,"click"],[1,"pl-2","pr-2"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"faq-card"],[1,"flex","items-start","gap-3"],["type","button",1,"faq-question",3,"click"],[1,"faq-question__title"],[1,"faq-icon"],["class","h-5 w-5","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",4,"ngIf"],["class","flex shrink-0 items-center gap-2 pt-1",4,"ngIf"],[1,"faq-answer"],[1,"faq-answer__inner"],[1,"faq-divider"],[1,"faq-answer__content",3,"data"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"h-5","w-5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14"],[1,"flex","shrink-0","items-center","gap-2","pt-1"],["type","button","title","Edit FAQ",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button","title","Delete FAQ",1,"text-white","bg-red-700","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","disabled:opacity-60",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 7h12m-1 0-.9 12.1A2 2 0 0 1 14.11 21H9.89a2 2 0 0 1-1.99-1.9L7 7m3 0V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2"],[1,"rounded-lg","border","border-gray-300","bg-white","p-8","text-center","text-gray-600","dark:border-secondary-300","dark:bg-secondary-100","dark:text-secondary-50"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"section",1)(2,"div",2)(3,"div",3)(4,"h1",4),e.EFF(5," FAQ "),e.k0s(),e.DNE(6,yX2,5,0,"button",5),e.k0s()()(),e.j41(7,"div",6)(8,"div",7),e.DNE(9,wX2,13,12,"article",8)(10,SX2,2,0,"div",9),e.k0s()()(),e.j41(11,"app-confirm-dialog",10),e.bIt("confirm",function(){return l.confirmDeleteEntry()})("cancel",function(){return l.closeDeleteDialog()}),e.k0s()),2&t&&(e.R7$(6),e.Y8G("ngIf",l.checkAdmin),e.R7$(3),e.Y8G("ngForOf",l.faqs),e.R7$(),e.Y8G("ngIf",0===l.faqs.length),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("title",l.deleteConfirmTitle)("message",l.deleteConfirmMessage)("confirmText",l.deleteConfirmButtonText)("confirmButtonClass",l.deleteConfirmButtonClass))},dependencies:[_.Sq,_.bT,N0,q3.w],styles:["[_nghost-%COMP%]{display:block}.faq-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #d8dade;border-radius:8px;padding:24px;transition:border-color .25s ease,box-shadow .25s ease}.faq-card--open[_ngcontent-%COMP%]{box-shadow:0 10px 26px #0b152814}.faq-question[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;gap:24px;background:transparent;border:none;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}.faq-question__title[_ngcontent-%COMP%]{flex:1;color:#0b1528;font-weight:700;font-size:20px;line-height:26px;overflow-wrap:anywhere}.faq-icon[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#dde6f6;color:#2d58a7;flex-shrink:0;transition:background-color .25s ease,color .25s ease}.faq-icon--open[_ngcontent-%COMP%]{background:#2d58a7;color:#fff}.faq-answer[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;opacity:0;margin-top:0;transition:grid-template-rows .25s ease,opacity .2s ease,margin-top .25s ease}.faq-answer--open[_ngcontent-%COMP%]{grid-template-rows:1fr;opacity:1;margin-top:20px}.faq-answer__inner[_ngcontent-%COMP%]{min-height:0;overflow:hidden}.faq-divider[_ngcontent-%COMP%]{height:1px;width:100%;background:#d8dade;margin-bottom:20px}.faq-answer__content[_ngcontent-%COMP%]{color:#4c5a6b;font-size:17px;line-height:27px;overflow-wrap:anywhere}.dark[_nghost-%COMP%] .faq-card[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-card[_ngcontent-%COMP%]{background:var(--secondary-100, #1f2937)}.dark[_nghost-%COMP%] .faq-question__title[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-question__title[_ngcontent-%COMP%], .dark[_nghost-%COMP%] .faq-answer__content[_ngcontent-%COMP%], .dark [_nghost-%COMP%] .faq-answer__content[_ngcontent-%COMP%]{color:#fff}"]})}}return n})();class c5{static{this.BASE_URL=g1.c.BASE_URL}static{this.USAGE_SPEC_LIMIT=g1.c.USAGE_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getUsageSpec(a){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification/${a}`))}getUsageSpecs(a,c){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification?limit=${c5.USAGE_SPEC_LIMIT}&offset=${a}&relatedParty.id=${c}`))}getAllUsageSpecs(a){return(0,e0.s)(this.http.get(`${c5.BASE_URL}/usage/usageSpecification?relatedParty.id=${a}`))}postUsageSpec(a){return this.http.post(`${c5.BASE_URL}/usage/usageSpecification`,a)}updateUsageSpec(a,c){return this.http.patch(`${c5.BASE_URL}/usage/usageSpecification/${c}`,a)}static{this.\u0275fac=function(c){return new(c||c5)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:c5,factory:c5.\u0275fac,providedIn:"root"})}}class D8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_ORDERING=g1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}postProductOrder(a){return this.http.post(`${D8.BASE_URL}${D8.API_ORDERING}/productOrder`,a,{observe:"response"})}getProductOrders(a,c,t,l,i=[]){console.log("getProductOrders");let u=`${D8.BASE_URL}${D8.API_ORDERING}/productOrder?limit=${D8.ORDER_LIMIT}&offset=${c}&relatedParty.id=${a}&relatedParty.role=${l}`,C="";if(t.length>0){for(let b=0;b0&&(u=u+"&productOrderItem.action="+i.join(",")),(0,e0.s)(this.http.get(u))}updateOrder(a,c){return console.log("updatingOrder..."),console.log(a),console.log(c),(0,e0.s)(this.http.patch(`${D8.BASE_URL}${D8.API_ORDERING}/productOrder/${a}`,c))}static{this.\u0275fac=function(c){return new(c||D8)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:D8,factory:D8.\u0275fac,providedIn:"root"})}}class f8{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_INVENTORY=g1.c.INVENTORY}static{this.INVENTORY_LIMIT=g1.c.INVENTORY_LIMIT}static{this.INVENTORY_RES_LIMIT=g1.c.INVENTORY_RES_LIMIT}static{this.INVENTORY_SERV_LIMIT=g1.c.INVENTORY_SERV_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getInventory(a,c,t,l){let i=`${f8.BASE_URL}${f8.API_INVENTORY}/product?limit=${f8.INVENTORY_LIMIT}&offset=${a}&relatedParty.id=${c}`,u="";if(t.length>0){for(let C=0;C0){for(let u=0;u0){for(let u=0;u{class n{constructor(c,t,l,i,u){this.api=c,this.accountService=t,this.orderService=l,this.inventoryService=i,this.invoicesService=u,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT}getItemsPaginated(c,t,l,i,u,C,b){return(0,C1.A)(function*(){console.log("options"),console.log(C);try{let T=[c];if("keywords"in C&&T.push(C.keywords),"filters"in C&&T.push(C.filters),"partyId"in C&&null!=C.partyId&&T.push(C.partyId.toString()),"catalogId"in C&&null!=C.catalogId&&T.push(C.catalogId.toString()),"sort"in C&&T.push(C.sort),"isBundle"in C&&T.push(C.isBundle),"selectedDate"in C&&T.push(C.selectedDate),"orders"in C&&T.push(C.orders),"role"in C&&T.push(C.role),"actionFilters"in C&&T.push(C.actionFilters),0==l)i=[],u=[],T[0]=c=0,console.log("------ Calling handler"),console.log(T),i=yield b(...T),c+=t;else for(let u1=0;u1null!=u1);return{page:c,items:i,nextItems:u,page_check:T}}})()}getProducts(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{return console.log("-------------------------- getProducts ----------------------------"),l&&l.length>0?yield u.api.getProductsByCategory(l,c,t,i):yield u.api.getProducts(c,t,i)}catch(C){return console.error("Error fetching products:",C),[]}})()}getProductsByCatalog(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{return console.log("-------------------------- getProductsByCatalog ----------------------------"),console.log(c),l&&l.length>0?yield u.api.getProductsByCategoryAndCatalog(l,i,c):yield u.api.getProductsByCatalog(i,c)}catch(C){return console.error("Error fetching products:",C),[]}})()}getOrders(c,t,l,i,u){var C=this;return(0,C1.A)(function*(b,T,W,u1,a1,T1=[]){try{u1=yield C.orderService.getProductOrders(W,b,T,a1,T1),console.log("getOrders",u1);const Y1=yield Promise.all(u1.map(M2=>C.accountService.getBillingAccountById(M2.billingAccount.id))),f2=yield Promise.all(u1.map(function(){var M2=(0,C1.A)(function*(G2,N2){const a4=yield Promise.all(G2.productOrderItem.map(function(){var B0=(0,C1.A)(function*(K0){try{console.log("Soy un productOrderItem???????: ",K0);const r0=yield C.api.getProductById(K0.productOffering.id),W2=yield C.api.getProductSpecification(r0.productSpecification.id);if(!r0.productOfferingPrice||0===r0.productOfferingPrice.length)return{id:r0.id,name:r0.name,category:r0.category,description:r0.description,lastUpdate:r0.lastUpdate,attachment:W2.attachment,productSpecification:r0.productSpecification,productOfferingTerm:r0.productOfferingTerm,version:r0.version,productOrderItem:K0};let e6={};if(e6={id:r0.id,name:r0.name,category:r0.category,description:r0.description,lastUpdate:r0.lastUpdate,attachment:W2.attachment,productSpecification:r0.productSpecification,productOfferingTerm:r0.productOfferingTerm,version:r0.version,productOrderItem:K0},r0.productOfferingPrice?.[0]){const N6=yield C.api.getProductPrice(r0.productOfferingPrice[0].id);e6.productOfferingPrice=N6,N6.priceType&&(e6.priceType=N6.priceType)}return e6}catch(r0){return console.error(`Error fetching product details for ${K0.id}:`,r0),null}});return function(K0){return B0.apply(this,arguments)}}()));return{...G2,billingAccount:Y1[N2],productOrderItems:a4.filter(Boolean)}});return function(G2,N2){return M2.apply(this,arguments)}}()));return console.log("Orders processed:",f2),f2}catch(Y1){return console.error("Error fetching orders:",Y1),[]}}).apply(this,arguments)}getOffers(c){var t=this;return(0,C1.A)(function*(){return(yield Promise.allSettled(c.map(function(){var i=(0,C1.A)(function*(u){const C=yield t.api.getProductById(u.productOffering.id),b=yield t.api.getProductSpecification(C.productSpecification.id);return u.product={id:u.id,name:C.name,category:C.category,description:C.description,lastUpdate:C.lastUpdate,attachment:b?.attachment??[],productSpecification:C.productSpecification,productOfferingTerm:C.productOfferingTerm,version:C.version},u});return function(u){return i.apply(this,arguments)}}()))).filter(i=>"rejected"!==i.status||(console.error("Error fetching offer:",i.reason),!1)).map(i=>i.value)})()}getInventory(c,t,l,i){var u=this;return(0,C1.A)(function*(){try{console.log("Fetching inventory...");const C=yield u.inventoryService.getInventory(c,i,l,t);return console.log("Inventory received:",C),yield u.getOffers(C)}catch(C){return console.error("Error fetching inventory:",C),[]}})()}getInvoices(c,t,l,i,u){var C=this;return(0,C1.A)(function*(){console.log("---getInvoices---");let b=[];try{b=yield C.invoicesService.getInvoices(l,c,t,i,u)}finally{return console.log("params:",l,c,t,i,u),console.log("---getInvoices result:---",b),console.log(b),b}})()}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(o0.F),e.KVO(x0.O),e.KVO(D8),e.KVO(f8),e.KVO(E5))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const EX2=(n,a)=>a.id,DX2=(n,a)=>({"break-all":n,"break-words":a});function TX2(n,a){1&n&&(e.j41(0,"div",9),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function RX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",19)(1,"td",21),e.EFF(2),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.k0s(),e.j41(5,"td",23)(6,"button",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(7,"svg",25),e.nrm(8,"path",26),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,DX2,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function AX2(n,a){1&n&&(e.j41(0,"div",20)(1,"div",27),e.qSk(),e.j41(2,"svg",28),e.nrm(3,"path",29),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"USAGE_SPECS._no_usage")," "))}function IX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",30)(1,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",32),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._load_more")," "))}function PX2(n,a){if(1&n&&e.DNE(0,IX2,6,3,"div",30),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function jX2(n,a){1&n&&(e.j41(0,"div",33),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function $X2(n,a){if(1&n&&(e.j41(0,"div",14)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",18),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",18),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"tbody"),e.Z7z(15,RX2,9,6,"tr",19,EX2,!1,AX2,7,3,"div",20),e.k0s()()(),e.DNE(18,PX2,1,1)(19,jX2,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,5,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,7,"USAGE_SPECS._description")," "),e.R7$(3),e.SpI(" ",e.bMT(13,9,"USAGE_SPECS._actions")," "),e.R7$(3),e.Dyx(c.usageSpecs),e.R7$(3),e.vxM(18,c.loading_more?19:18)}}let OX2=(()=>{class n{constructor(c,t,l,i){this.eventMessage=c,this.usageService=t,this.localStorage=l,this.paginationService=i,this.usageSpecs=[],this.nextUsageSpecs=[],this.loading=!1,this.loading_more=!1,this.partyId="",this.page=0,this.page_check=!0,this.USAGE_SPEC_LIMIT=g1.c.USAGE_SPEC_LIMIT}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.initPartyInfo(),c.loading=!0,yield c.getUsageSpecs(!1)})()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}getUsageSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.USAGE_SPEC_LIMIT,c,t.usageSpecs,t.nextUsageSpecs,{partyId:t.partyId},t.usageService.getUsageSpecs.bind(t.usageService)).then(i=>{t.page_check=i.page_check,t.usageSpecs=i.items,t.nextUsageSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getUsageSpecs(!0)})()}goToCreate(){this.eventMessage.emitCreateUsageSpec(!0)}goToUpdate(c){this.eventMessage.emitUpdateUsageSpec(c)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(c5),e.rXU(z2.s),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-list"]],standalone:!0,features:[e.aNF],decls:16,vars:7,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createUsageSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","usageSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["data-cy","usageSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"px-6","py-4"],["data-cy","usageSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()()(),e.DNE(14,TX2,6,0,"div",9)(15,$X2,20,11),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"USAGE_SPECS._list")),e.R7$(5),e.JRh(e.bMT(11,5,"USAGE_SPECS._add_new")),e.R7$(4),e.vxM(14,l.loading?14:15))},dependencies:[s1.h,s1.D9,J2.dX,_.MD,_.YU]})}}return n})();function GG(n,a=t4){return(0,J1.N)((c,t)=>{let l=null,i=null,u=null;const C=()=>{if(l){l.unsubscribe(),l=null;const T=i;i=null,t.next(T)}};function b(){const T=u+n,W=a.now();if(W{i=T,u=a.now(),l||(l=a.schedule(b,n),t.add(l))},()=>{C(),t.complete()},void 0,()=>{i=l=null}))})}const BX2=n=>{const a=n.get("paymentOnline")?.value,c=n.get("priceComponents")?.value;return!a||c&&0!==c.length?null:{priceComponentsRequired:!0}};function VX2(n){return a=>{const c=a.get("name");if(!c)return null;const t=c.value?.trim().toLowerCase();return t&&n().map(i=>i?.trim().toLowerCase()).includes(t)?{nonUniqueName:!0}:null}}function O3(n){return 0!==(n.value||"").trim().length?null:{whitespace:!0}}function D5(n){const a=n.value;if(!a||""===a.trim())return null;try{return JSON.parse(a),null}catch{return{invalidJson:!0}}}function UX2(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function GX2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",3)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"USAGE_SPECS._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let HX2=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.FormControl=p.MJ,console.log("\u{1f504} Initializing GeneralInfoComponent")}get formGroup(){return this.form}get nameControl(){const c=this.formGroup.get("name");return c instanceof p.MJ?c:null}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}ngOnInit(){console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data?(console.log("Initializing form in update mode with data:",this.data),this.formGroup.addControl("name",new p.MJ(this.data.name,[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("description",new p.MJ(this.data.description,p.k0.maxLength(1e5))),this.originalValue={name:this.data.name,description:this.data.description},console.log("\u{1f4dd} Original value stored:",this.originalValue)):(console.log("Initializing form in create mode"),this.formGroup.addControl("name",new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("description",new p.MJ(""))),this.isEditMode&&this.formGroup.valueChanges.pipe(GG(500),(0,O1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const t=this.getDirtyFields(c);if(t.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l)}else this.hasBeenModified=!1})}ngOnDestroy(){console.log("\u{1f5d1}\ufe0f Destroying GeneralInfoComponent"),this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){return Object.keys(c).filter(t=>{const i=this.originalValue[t];return JSON.stringify(c[t])!==JSON.stringify(i)})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-general-info"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:2,vars:2,consts:[["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","usageSpecName","id","prod-name","type","text","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","usageSpecDescription",3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,UX2,4,4)(1,GX2,4,4),2&t&&(e.vxM(0,l.nameControl?0:-1),e.R7$(),e.vxM(1,l.descControl?1:-1))},dependencies:[p.X1,p.me,p.BC,p.l_,BL,s1.D9,me]})}}return n})();const Sw1=(n,a)=>({"break-all":n,"break-words":a});function YX2(n,a){1&n&&(e.j41(0,"div",0)(1,"div",2),e.qSk(),e.j41(2,"svg",3),e.nrm(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"USAGE_SPECS._no_metrics")," "))}function qX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",10)(1,"td",11),e.EFF(2),e.k0s(),e.j41(3,"td",11),e.EFF(4),e.k0s(),e.j41(5,"td",12)(6,"button",13),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.deleteMetric(l))}),e.qSk(),e.j41(7,"svg",14),e.nrm(8,"path",15),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Sw1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,Sw1,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function XX2(n,a){if(1&n&&(e.j41(0,"div",6)(1,"table",7)(2,"thead",8)(3,"tr")(4,"th",9),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",9),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",9),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,qX2,9,10,"tr",10,e.fX1),e.k0s()()()),2&n){const c=e.XpG();e.R7$(5),e.SpI(" ",e.bMT(6,3,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"USAGE_SPECS._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"USAGE_SPECS._actions")," "),e.R7$(3),e.Dyx(c.metrics)}}function WX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",1)(1,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showCreateMetric=!l.showCreateMetric)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",17),e.nrm(5,"path",18),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"USAGE_SPECS._create_metric")," "))}function JX2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",19)(1,"div")(2,"label",20),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",21),e.k0s(),e.j41(6,"div")(7,"label",22),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"textarea",23),e.k0s()(),e.j41(11,"div",24)(12,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveMetric())}),e.EFF(13),e.nI1(14,"translate"),e.qSk(),e.j41(15,"svg",17),e.nrm(16,"path",26),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.metricsForm),e.R7$(3),e.JRh(e.bMT(4,6,"USAGE_SPECS._name")),e.R7$(5),e.JRh(e.bMT(9,8,"USAGE_SPECS._description")),e.R7$(4),e.Y8G("disabled",!c.metricsForm.valid)("ngClass",c.metricsForm.valid?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(14,10,"USAGE_SPECS._save_metric")," ")}}let QX2=(()=>{class n{constructor(c,t,l){this.eventMessage=c,this.fb=t,this.cdr=l,this.formChange=new e.bkB,this.metrics=[],this.showCreateMetric=!1,this.originalValue=[],this.hasBeenModified=!1,this.isEditMode=!1,this.onChange=()=>{},this.onTouched=()=>{},this.metricsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")})}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,console.log(c.metrics)})()}deleteMetric(c){const t=this.metrics.findIndex(C=>C.id===c.id);-1!==t&&this.metrics.splice(t,1),this.onChange([...this.metrics]);const l=[...this.metrics],u={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting change state:",u),this.eventMessage.emitSubformChange(u)}saveMetric(){this.metrics.push({id:L4(),name:this.metricsForm.value.name,description:this.metricsForm.value.description,valueType:"number"}),this.onChange([...this.metrics]),this.cdr.detectChanges(),this.showCreateMetric=!1;const c=[...this.metrics],l={subformType:"metrics",isDirty:!0,dirtyFields:this.getDirtyFields(c),originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l),this.metricsForm.reset()}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying Usage Spec Metrics Component"),this.isEditMode&&this.hasBeenModified){const c=[...this.metrics],t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getDirtyFields(c){const t=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&t.push("creatingMetrics"),t}writeValue(c){console.log("\u{1f4dd} Writing value to form:",c),this.metrics=c||[],this.isEditMode&&c&&(this.originalValue=JSON.parse(JSON.stringify(c)),console.log("\u{1f4dd} Original value stored:",this.originalValue))}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(p.ok),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-metrics"]],inputs:{formType:"formType",data:"data",partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:4,vars:2,consts:[[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","btnNewMetric","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","metricName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","metricDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","btnSaveMetric","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"]],template:function(t,l){1&t&&e.DNE(0,YX2,9,3,"div",0)(1,XX2,16,9)(2,WX2,6,3,"div",1)(3,JX2,17,12),2&t&&(e.vxM(0,0===l.metrics.length?0:1),e.R7$(2),e.vxM(2,0==l.showCreateMetric?2:3))},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,_.YU]})}}return n})();const HG=(n,a)=>({"break-all":n,"break-words":a});function ZX2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",4),e.nrm(4,"markdown",5),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"USAGE_SPECS._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,HG,l.hasLongWord(null==(c=l.usageSpecForm.get("generalInfo.description"))?null:c.value,20),!l.hasLongWord(null==(c=l.usageSpecForm.get("generalInfo.description"))?null:c.value,20)))("data",null==(t=l.usageSpecForm.get("generalInfo.description"))?null:t.value)}}function KX2(n,a){if(1&n&&(e.j41(0,"tr",11)(1,"td",12),e.EFF(2),e.k0s(),e.j41(3,"td",13),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,HG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,HG,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function eW2(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1,"Metrics"),e.k0s(),e.j41(2,"div",6)(3,"table",7)(4,"thead",8)(5,"tr")(6,"th",9),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",10),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"tbody"),e.Z7z(13,KX2,5,10,"tr",11,e.fX1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(7),e.SpI(" ",e.bMT(8,2,"USAGE_SPECS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,4,"USAGE_SPECS._description")," "),e.R7$(3),e.Dyx(null==(c=t.usageSpecForm.get("metrics"))?null:c.value)}}let cW2=(()=>{class n{ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--- INFO SUMMARY"),console.log(c.usageSpecForm),console.log(c.usageSpecForm.get("generalInfo")?.get("name")?.value),console.log(c.usageSpecForm.get("metrics")?.value)})()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-summary"]],inputs:{usageSpecForm:"usageSpecForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:9,vars:10,consts:[[1,"m-8"],[1,"mb-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","dark:bg-secondary-300","dark:text-white","border","dark:border-secondary-200"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","break-words",3,"ngClass"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"label",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",3),e.EFF(6),e.k0s()(),e.DNE(7,ZX2,5,8)(8,eW2,15,6),e.k0s()),2&t){let i,u,C,b;e.R7$(3),e.JRh(e.bMT(4,5,"USAGE_SPECS._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,HG,l.hasLongWord(null==(i=l.usageSpecForm.get("generalInfo.name"))?null:i.value,20),!l.hasLongWord(null==(i=l.usageSpecForm.get("generalInfo.name"))?null:i.value,20))),e.R7$(),e.SpI(" ",null==(u=l.usageSpecForm.get("generalInfo.name"))?null:u.value," "),e.R7$(),e.vxM(7,""!=(null==(C=l.usageSpecForm.get("generalInfo.description"))?null:C.value)?7:-1),e.R7$(),e.vxM(8,null!=(b=l.usageSpecForm.get("metrics"))&&b.value?8:-1)}},dependencies:[s1.h,s1.D9,N0,_.YU,BL]})}}return n})();const tW2=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),nW2=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function lW2(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._update")," "))}function sW2(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"USAGE_SPECS._create")," "))}function aW2(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function oW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",22),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",23),e.EFF(2),e.k0s(),e.j41(3,"span",24),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function iW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"usage-spec-general-info",25),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)("form",c.usageSpecForm.controls.generalInfo)}}function rW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"usage-spec-metrics",26),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("data",c.usageSpec)("formType",c.formType)}}function dW2(n,a){if(1&n&&e.nrm(0,"usage-spec-summary",27),2&n){const c=e.XpG(2);e.Y8G("usageSpecForm",c.usageSpecForm)}}function fW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.usageSpecForm.controls.generalInfo.valid)("ngClass","update"!==c.formType||c.usageSpecForm.controls.generalInfo.valid?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ","create"===c.formType?"Create Usage Spec":"Update Usage Spec"," ")}}function uW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,oW2,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.j41(6,"div",12),e.DNE(7,iW2,1,3,"usage-spec-general-info",13)(8,rW2,1,2)(9,dW2,1,1),e.k0s(),e.j41(10,"div",14)(11,"button",15),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep-1))}),e.qSk(),e.j41(12,"svg",16),e.nrm(13,"path",17),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.joV(),e.j41(16,"button",18),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep+1))}),e.EFF(17),e.nI1(18,"translate"),e.qSk(),e.j41(19,"svg",19),e.nrm(20,"path",20),e.k0s()(),e.DNE(21,fW2,2,3,"button",21),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.usageSpecForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.steps[c.currentStep]),e.R7$(2),e.vxM(7,0===c.currentStep?7:1===c.currentStep?8:2===c.currentStep?9:-1),e.R7$(4),e.Y8G("disabled",0===c.currentStep)("ngClass",e.l_i(14,tW2,0!==c.currentStep,0===c.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(15,10,"USAGE_SPECS._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStep===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,nW2,c.currentStep!==c.steps.length-1&&("create"!==c.formType||c.validateCurrentStep()||c.canNavigate(c.currentStep)),c.currentStep===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStep))),e.R7$(),e.SpI(" ",e.bMT(18,12,"USAGE_SPECS._next")," "),e.R7$(4),e.vxM(21,"create"===c.formType&&2===c.currentStep||"update"===c.formType?21:-1)}}function mW2(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",29)(2,"div",30),e.qSk(),e.j41(3,"svg",31),e.nrm(4,"path",32),e.k0s(),e.joV(),e.j41(5,"h3",33),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",34),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let Nw1=(()=>{class n{constructor(c,t,l,i,u){this.api=c,this.eventMessage=t,this.fb=l,this.accService=i,this.usageSpecService=u,this.formType="create",this.usageSpec={},this.currentStep=0,this.highestStep=0,this.steps=["General Info","Metrics","Summary"],this.isFormValid=!1,this.loadingData=!1,this.errorMessage="",this.showError=!1,this.formChanges={},this.formSubscription=null,this.destroy$=new S.B,this.hasChanges=!1,this.usageSpecForm=this.fb.group({generalInfo:this.fb.group({}),metrics:new p.MJ([])}),this.usageSpecForm.statusChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{this.isFormValid="VALID"===C}),this.formSubscription=this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{if("SubformChange"===C.type){const b=C.value;console.log("Received subform change:",b),this.handleSubformChange(b)}})}handleSubformChange(c){console.log("\u{1f4dd} Subform change received:",c),this.formChanges[c.subformType]=c,this.hasChanges=Object.keys(this.formChanges).length>0,console.log("\u{1f4dd} Has changes:",this.hasChanges),console.log(this.formChanges[c.subformType])}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}goToStep(c){"create"===this.formType&&c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep))}validateCurrentStep(){return 0!==this.currentStep||this.usageSpecForm.get("generalInfo")?.valid||!1}canNavigate(c){return"create"==this.formType?this.usageSpecForm.get("generalInfo")?.valid&&c<=this.currentStep||this.usageSpecForm.get("generalInfo")?.valid&&c<=this.highestStep:this.usageSpecForm.get("generalInfo")?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}submitForm(){"update"===this.formType?(console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",this.formChanges),this.updateUsageSpec()):this.createUsageSpec()}ngOnInit(){var c=this;return(0,C1.A)(function*(){"update"===c.formType&&c.usageSpec&&(c.loadingData=!0,yield c.loadUsageSpecData(),c.loadingData=!1)})()}loadUsageSpecData(){if(this.usageSpec){const c=this.usageSpec.specCharacteristic=this.usageSpec.specCharacteristic.map(t=>({...t,id:L4()}));this.usageSpecForm.patchValue({generalInfo:{name:this.usageSpec.name,description:this.usageSpec.description},metrics:c})}}createUsageSpec(){var c=this;return(0,C1.A)(function*(){const t=c.usageSpecForm.value,l=t.generalInfo,i=t.metrics.map(({id:C,...b})=>b),u={name:l.name,description:l.description||"",specCharacteristic:i,relatedParty:[{id:c.partyId,href:c.partyId,role:g1.c.SELLER_ROLE}]};console.log(u),c.usageSpecService.postUsageSpec(u).subscribe({next:C=>{console.log("usageSpec created:"),console.log(C),c.goBack()},error:C=>{console.error("There was an error while creating the usageSpec!",C),C.error.error?(console.log(C),c.errorMessage="Error: "+C.error.error):c.errorMessage="There was an error while creating the usageSpec!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}})})()}updateUsageSpec(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const t={name:c.usageSpec.name,description:c.usageSpec.description,specCharacteristic:c.usageSpec.specCharacteristic};for(const[l,i]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,i),l){case"generalInfo":t.name=i.currentValue.name,t.description=i.currentValue.description;break;case"metrics":const u=i.currentValue.map(C=>({name:C.name,description:C.description,valueType:"number"}));t.specCharacteristic=u,console.log("------ here"),console.log(u)}console.log("\u{1f4dd} Final update payload:",t);try{yield(0,e0.s)(c.usageSpecService.updateUsageSpec(t,c.usageSpec.id)),console.log("\u2705 Usage Spec updated successfully"),c.goBack()}catch(l){console.error("\u274c Error updating Usage Spec:",l),c.errorMessage=l?.error?.error?"Error: "+l.error.error:"An error occurred while updating the Usage Spec!",c.showError=!0,setTimeout(()=>c.showError=!1,3e3)}})()}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok),e.rXU(x0.O),e.rXU(c5))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["usage-spec-form"]],inputs:{formType:"formType",usageSpec:"usageSpec",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[3,"data","formType","form"],[1,"flex","justify-end","mt-6","space-x-4"],["data-cy","usageSpecPrevious",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","usageSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","btnCreateUsageSpec",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[3,"formChange","data","formType","form"],["formControlName","metrics",3,"formChange","data","formType"],[3,"usageSpecForm"],["data-cy","btnCreateUsageSpec",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,lW2,3,3,"h2",1)(2,sW2,3,3)(3,aW2,6,0,"div",2)(4,uW2,22,20),e.k0s(),e.DNE(5,mW2,9,1,"div",3)),2&t&&(e.R7$(),e.vxM(1,"update"===l.formType?1:2),e.R7$(2),e.vxM(3,l.loadingData?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[HX2,QX2,cW2,s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,_.YU]})}}return n})(),pW2=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.el=t,this.localStorage=l,this.eventMessage=i,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-usage-spec"]],standalone:!0,features:[e.aNF],decls:18,vars:8,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"usage-spec-form",12),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,4,"USAGE_SPECS._back")," "),e.R7$(7),e.JRh(e.bMT(16,6,"USAGE_SPECS._create")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","create"))},dependencies:[Nw1,s1.h,s1.D9,p.X1]})}}return n})(),hW2=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.el=t,this.localStorage=l,this.eventMessage=i,this.partyId=""}ngOnInit(){this.initPartyInfo()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitUsageSpecList(!0)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-usage-spec"]],inputs:{usageSpec:"usageSpec"},standalone:!0,features:[e.aNF],decls:18,vars:9,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType","usageSpec"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"usage-spec-form",12),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,5,"USAGE_SPECS._back")," "),e.R7$(7),e.JRh(e.bMT(16,7,"USAGE_SPECS._update")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","update")("usageSpec",l.usageSpec))},dependencies:[Nw1,s1.h,s1.D9,p.X1]})}}return n})();function gW2(n,a){1&n&&e.nrm(0,"usage-list")}function _W2(n,a){1&n&&e.nrm(0,"create-usage-spec")}function LW2(n,a){if(1&n&&e.nrm(0,"update-usage-spec",16),2&n){const c=e.XpG();e.Y8G("usageSpec",c.usageSpecToUpdate)}}let CW2=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.show_usage_specs=!0,this.show_create_usage=!1,this.show_update_usage=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{"UsageSpecList"===i.type&&1==i.value?this.goToUsageSpec():"UpdateUsageSpec"===i.type&&i.value?(this.show_update_usage=!0,this.show_usage_specs=!1,this.show_create_usage=!1,this.usageSpecToUpdate=i.value):"CreateUsageSpec"===i.type&&1==i.value&&(this.show_create_usage=!0,this.show_update_usage=!1,this.show_usage_specs=!1)})}ngOnInit(){this.userInfo=this.localStorage.getObject("login_items")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}goToUsageSpec(){this.show_update_usage=!1,this.show_usage_specs=!0,this.show_create_usage=!1}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-usage-specs"]],standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:31,vars:18,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white","mb-8"],["id","catalogs-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"usageSpec"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.joV(),e.j41(16,"div",9)(17,"ul",10)(18,"li")(19,"a",11),e.bIt("click",function(){return l.goToUsageSpec()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()()()(),e.j41(22,"div",12)(23,"div",13)(24,"div",14)(25,"button",15),e.bIt("click",function(){return l.goToUsageSpec()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()()(),e.DNE(28,gW2,1,0,"usage-list")(29,_W2,1,0,"create-usage-spec")(30,LW2,1,1,"update-usage-spec",16),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,8,"USAGE_SPECS._usage_spec")),e.R7$(5),e.JRh(e.bMT(9,10,"USAGE_SPECS._usage_spec")),e.R7$(6),e.SpI(" ",e.bMT(15,12,"USAGE_SPECS._usage_spec")," "),e.R7$(6),e.JRh(e.bMT(21,14,"USAGE_SPECS._list")),e.R7$(6),e.SpI(" ",e.bMT(27,16,"USAGE_SPECS._list")," "),e.R7$(2),e.vxM(28,l.show_usage_specs?28:-1),e.R7$(),e.vxM(29,l.show_create_usage?29:-1),e.R7$(),e.vxM(30,l.show_update_usage?30:-1))},dependencies:[s1.h,s1.D9,J2.dX,_.MD,OX2,pW2,hW2]})}}return n})(),T5=(()=>{class n{constructor(c,t){this.localStorage=c,this.router=t}canActivate(c,t){let l=this.localStorage.getObject("login_items");const i=c.data.roles;let u=[];const C={admin:g1.c.ADMIN_ROLE.toLowerCase(),seller:g1.c.SELLER_ROLE.toLowerCase(),buyer:g1.c.BUYER_ROLE.toLowerCase(),orgAdmin:g1.c.ORG_ADMIN_ROLE.toLowerCase(),certifier:g1.c.CERTIFIER_ROLE.toLowerCase(),individual:"individual"};return"{}"!=JSON.stringify(l)&&l.expire-$2()().unix()-4>0?(l.logged_as==l.id?(u.push("individual"),l.roles.forEach(b=>u.push(b.name.toLowerCase()))):(l.organizations.find(T=>T.id==l.logged_as).roles.forEach(T=>u.push(T.name.toLowerCase())),l.roles.some(T=>T.name.toLowerCase()===g1.c.ADMIN_ROLE.toLowerCase())&&u.push(g1.c.ADMIN_ROLE.toLowerCase())),!(0!=i.length&&!i.some(T=>u.includes(C[T]))&&(this.router.navigate(["/dashboard"]),1))):(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(z2.s),e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ew1=(()=>{class n{constructor(c){this.router=c}canActivate(){return!!g1.c.QUOTES_ENABLED||(this.router.navigate(["/dashboard"]),!1)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(E2.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function zW2(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",2),e.nrm(2,"path",3)(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Loading..."),e.k0s()())}function MW2(n,a){if(1&n&&(e.j41(0,"div",7)(1,"h2",8),e.EFF(2),e.k0s(),e.j41(3,"div",9)(4,"p"),e.EFF(5),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.title),e.R7$(3),e.SpI(" ",c.description," ")}}function xW2(n,a){if(1&n&&(e.j41(0,"h2",6),e.EFF(1,"Operator revenue sharing"),e.k0s(),e.Z7z(2,MW2,6,2,"div",7,e.fX1)),2&n){const c=e.XpG();e.R7$(2),e.Dyx(c.items)}}let Dw1=(()=>{class n{constructor(){this.loading=!1,this.items=[{title:"Total Subcription Revenue",description:"\u20ac45.000 (Q2 2025)"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["operator-revenue-sharing"]],standalone:!0,features:[e.aNF],decls:3,vars:1,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"border","border-primary-100","dark:border-primary-50","rounded-lg","p-4","md:p-8"],[1,"text-gray-900","dark:text-white","text-xl","font-normal","mb-2"],[1,"text-lg","font-normal","text-gray-500","dark:text-gray-400"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,zW2,6,0,"div",1)(2,xW2,4,0),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.loading?1:2))},dependencies:[s1.h,J2.dX,_.MD]})}}return n})();var t5=y(4843);const bW2=(n,a)=>a.key,yW2=()=>({standalone:!0});function FW2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function vW2(n,a){if(1&n&&(e.j41(0,"div")(1,"label",36),e.EFF(2),e.k0s(),e.nrm(3,"input",37),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("for","dashboard-"+c.key),e.R7$(),e.JRh(c.label),e.R7$(),e.Y8G("id","dashboard-"+c.key)("formControlName",c.key)}}function kW2(n,a){if(1&n&&(e.j41(0,"div",31),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function wW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"label",10),e.EFF(2,"Provide analytics JSON"),e.k0s(),e.j41(3,"textarea",11),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.providedJson,l)||(i.providedJson=l),e.Njj(l)}),e.k0s(),e.j41(4,"div",12)(5,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadProvidedJsonIntoForm())}),e.EFF(6," Load JSON "),e.k0s(),e.j41(7,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProvidedJson())}),e.EFF(8," Save JSON "),e.k0s()()(),e.j41(9,"form",15)(10,"section",16)(11,"div",17)(12,"div")(13,"p",18),e.EFF(14,"Analytics enabled"),e.k0s(),e.j41(15,"p",19),e.EFF(16,"analyticsEnabled"),e.k0s()(),e.j41(17,"label",20),e.nrm(18,"input",21)(19,"div",22),e.k0s()(),e.j41(20,"div")(21,"label",23),e.EFF(22,"Analytics URL"),e.k0s(),e.nrm(23,"input",24),e.k0s()(),e.j41(24,"section",25)(25,"h3",26),e.EFF(26,"Dashboard IDs"),e.k0s(),e.j41(27,"div",27),e.Z7z(28,vW2,4,4,"div",null,bW2),e.k0s()(),e.j41(30,"section",28)(31,"h3",26),e.EFF(32,"Superset guest token"),e.k0s(),e.j41(33,"div")(34,"label",29),e.EFF(35,"Guest token path"),e.k0s(),e.nrm(36,"input",30),e.k0s()()(),e.DNE(37,kW2,2,1,"div",31),e.j41(38,"div",32)(39,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(40," Save "),e.qSk(),e.j41(41,"svg",34),e.nrm(42,"path",35),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.R50("ngModel",c.providedJson),e.Y8G("ngModelOptions",e.lJ4(8,yW2)),e.R7$(4),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(2),e.Y8G("formGroup",c.analyticsForm),e.R7$(19),e.Dyx(c.dashboardSections),e.R7$(9),e.vxM(37,c.showSuccess?37:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function SW2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}const Ud1="/api/v1/dome/guest_token/";let NW2=(()=>{class n{constructor(c){this.http=c,this.dashboardSections=[{key:"businessInsightsNonLear",label:"Business Insights Non-LEAR"},{key:"businessInsightsLear",label:"Business Insights LEAR"},{key:"usageMonitor",label:"Usage Monitor"}],this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.providedJson="",this.successTimeoutId=null,this.analyticsForm=new p.gE({analyticsEnabled:new p.MJ(!1,{nonNullable:!0}),analytics:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),analyticsDashboards:new p.gE({businessInsightsNonLear:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),businessInsightsLear:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]}),usageMonitor:new p.MJ("",{nonNullable:!0,validators:[p.k0.required]})}),analyticsSuperset:new p.gE({guestTokenPath:new p.MJ(Ud1,{nonNullable:!0,validators:[p.k0.required]})})})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading analytics configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.buildPayload();yield c.saveAnalyticsPayload(t),yield c.syncFromBackend(),c.successMessage="Analytics configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving analytics configuration.")}finally{c.saving=!1}}})()}saveProvidedJson(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.parseProvidedJson(c.providedJson),l=c.normalizeProvidedAnalyticsForSave(t);yield c.saveAnalyticsPayload(l),yield c.syncFromBackend(),c.successMessage="Analytics JSON saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving provided JSON.")}finally{c.saving=!1}}})()}loadProvidedJsonIntoForm(){try{const c=this.parseProvidedJson(this.providedJson),t=this.normalizeProvidedAnalyticsForSave(c);this.loadAnalyticsConfig(t),this.providedJson=JSON.stringify(this.normalizeAnalyticsForJson(t),null,2)}catch(c){this.handleError(c,"The provided JSON could not be loaded into the form.")}}getDashboardControl(c){return this.analyticsForm.get(`analyticsDashboards.${c}`)}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=yield(0,t5._)(c.http.get(`${g1.c.BASE_URL}/config/analytics`));c.loadAnalyticsConfig(t),c.providedJson=JSON.stringify(c.normalizeAnalyticsForJson(t),null,2)})()}saveAnalyticsPayload(c){var t=this;return(0,C1.A)(function*(){const l=yield(0,t5._)(t.http.patch(`${g1.c.BASE_URL}/config/analytics`,c));g1.c.analytics=l?.analytics??c.analytics,g1.c.analyticsEnabled=l?.analyticsEnabled??c.analyticsEnabled})()}loadAnalyticsConfig(c){this.analyticsForm.patchValue({analyticsEnabled:"boolean"==typeof c?.analyticsEnabled&&c.analyticsEnabled,analytics:this.readAnalyticsUrl(c),analyticsDashboards:{businessInsightsNonLear:this.readString(c?.analyticsDashboards?.businessInsightsNonLear),businessInsightsLear:this.readString(c?.analyticsDashboards?.businessInsightsLear),usageMonitor:this.readString(c?.analyticsDashboards?.usageMonitor)},analyticsSuperset:{guestTokenPath:this.readGuestTokenPath(c)}})}buildPayload(){const c=this.analyticsForm.get("analyticsSuperset"),t=this.analyticsForm.get("analyticsDashboards");return{analytics:this.requireString(this.analyticsForm.get("analytics")?.value,"Analytics URL is required."),analyticsEnabled:this.requireBoolean(this.analyticsForm.get("analyticsEnabled")?.value,"Analytics enabled must be a boolean."),analyticsDashboards:{businessInsightsNonLear:this.requireString(t.get("businessInsightsNonLear")?.value,"Business Insights Non-LEAR dashboard ID is required."),businessInsightsLear:this.requireString(t.get("businessInsightsLear")?.value,"Business Insights LEAR dashboard ID is required."),usageMonitor:this.requireString(t.get("usageMonitor")?.value,"Usage Monitor dashboard ID is required.")},analyticsSuperset:{guestTokenPath:this.requireString(c.get("guestTokenPath")?.value,"Guest token path is required.")}}}normalizeProvidedAnalyticsForSave(c){const t=c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{};return{analytics:this.requireString(this.readAnalyticsUrl(c),"Analytics URL is required."),analyticsEnabled:this.requireBoolean(c?.analyticsEnabled,"Analytics enabled must be a boolean."),analyticsDashboards:{businessInsightsNonLear:this.requireString(c?.analyticsDashboards?.businessInsightsNonLear,"Business Insights Non-LEAR dashboard ID is required."),businessInsightsLear:this.requireString(c?.analyticsDashboards?.businessInsightsLear,"Business Insights LEAR dashboard ID is required."),usageMonitor:this.requireString(c?.analyticsDashboards?.usageMonitor,"Usage Monitor dashboard ID is required.")},analyticsSuperset:{guestTokenPath:this.requireString(t.guestTokenPath,"Guest token path is required.")}}}normalizeAnalyticsForJson(c){const t=c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{};return{analyticsEnabled:!0===c?.analyticsEnabled,analytics:this.readAnalyticsUrl(c),analyticsDashboards:{businessInsightsNonLear:this.readString(c?.analyticsDashboards?.businessInsightsNonLear),businessInsightsLear:this.readString(c?.analyticsDashboards?.businessInsightsLear),usageMonitor:this.readString(c?.analyticsDashboards?.usageMonitor)},analyticsSuperset:{guestTokenPath:this.readString(t.guestTokenPath)||Ud1}}}parseProvidedJson(c){const t=c.trim();if(!t)throw new Error("Please provide a JSON value.");try{const l=JSON.parse(t);if(!l||"object"!=typeof l||Array.isArray(l))throw new Error("Provided JSON must be an object.");return l}catch{throw new Error("Provided JSON is invalid.")}}requireString(c,t){const l="string"==typeof c?c.trim():"";if(!l)throw new Error(t);return l}requireBoolean(c,t){if("boolean"!=typeof c)throw new Error(t);return c}readString(c){return"string"==typeof c?c:""}readAnalyticsUrl(c){return"string"==typeof c?.analytics?c.analytics.trim():c?.analytics&&"object"==typeof c.analytics?this.readString(c.analytics.link)||this.readString(c.analytics.url)||this.readString(c.analytics.domain):""}readGuestTokenPath(c){return this.readString((c?.analyticsSuperset&&"object"==typeof c.analyticsSuperset?c.analyticsSuperset:{}).guestTokenPath)||Ud1}handleError(c,t){if(c?.error?.error){const l=c.error.details?` ${"string"==typeof c.error.details?c.error.details:JSON.stringify(c.error.details)}`:"";this.errorMessage=`Error: ${c.error.error}${l}`}else this.errorMessage=c?.message?c.message:t;this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["analytics-config"]],decls:7,vars:2,consts:[["data-cy","adminAnalyticsConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4"],["for","analytics-provided-json",1,"font-bold","text-lg","dark:text-white"],["id","analytics-provided-json","data-cy","adminAnalyticsJson","rows","10",1,"mt-2","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel","ngModelOptions"],[1,"flex","gap-2","justify-end"],["data-cy","adminLoadAnalyticsJson","type","button",1,"text-primary-100","border","border-primary-100","hover:bg-primary-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["data-cy","adminSaveAnalyticsJson","type","button",1,"text-white","bg-primary-100","rounded-lg","text-sm","px-4","py-2",3,"click","disabled","ngClass"],[1,"m-4","space-y-6",3,"formGroup"],[1,"space-y-4"],[1,"flex","items-center","justify-between","gap-4","p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"text-sm","text-gray-500","dark:text-gray-300"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox","formControlName","analyticsEnabled",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-200","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-50","dark:peer-focus:ring-secondary-200","dark:bg-gray-700","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","dark:border-gray-600","peer-checked:bg-primary-100"],["for","analytics-url",1,"font-semibold","text-sm","dark:text-white"],["id","analytics-url","formControlName","analytics","type","url",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formGroupName","analyticsDashboards",1,"space-y-4"],[1,"text-xl","font-bold","text-primary-100","dark:text-white"],[1,"grid","gap-4","xl:grid-cols-3"],["formGroupName","analyticsSuperset",1,"space-y-4"],["for","superset-guest-token-path",1,"font-semibold","text-sm","dark:text-white"],["id","superset-guest-token-path","formControlName","guestTokenPath","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","gap-3","mr-4"],["data-cy","adminSaveAnalyticsConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold","text-sm","dark:text-white",3,"for"],["type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5",3,"id","formControlName"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Analytics"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,FW2,6,0,"div",3)(5,wW2,43,9),e.k0s(),e.DNE(6,SW2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.me,p.Zm,p.BC,p.cb,p.vS,p.j4,p.JD,p.$R,E0],styles:["textarea[_ngcontent-%COMP%]{resize:vertical}"]})}}return n})();function EW2(n,a){if(1&n&&(e.j41(0,"span",4),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function DW2(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function TW2(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function RW2(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.JRh(c.child.lifecycleStatus)}}function AW2(n,a){if(1&n&&e.nrm(0,"categories-recursion-list",12),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("child",c)("parent",t.child)("path",t.path+" / "+t.child.name)}}function IW2(n,a){if(1&n&&e.Z7z(0,AW2,1,3,"categories-recursion-list",12,e.fX1),2&n){const c=e.XpG();e.Dyx(c.child.children)}}let PW2=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t}addCategory(c){this.eventMessage.emitCategoryAdded(c)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["categories-recursion-list"]],inputs:{child:"child",parent:"parent",path:"path"},decls:18,vars:8,consts:[["data-cy","adminCategoryRow",1,"flex","border-b","hover:bg-gray-200","dark:border-gray-700","dark:bg-secondary-300","dark:hover:bg-secondary-200","w-full","justify-between"],[1,"flex","px-6","py-4","w-2/4","text-wrap","break-all"],["data-cy","adminCategoryName"],[1,"hidden","md:flex","px-6","py-4","w-fit"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","px-6","py-4","w-fit","justify-end"],["data-cy","adminEditCategory","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],["data-cy","adminCategoryStatus",1,"h-fit","bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"w-full","text-wrap","break-all",3,"child","parent","path"]],template:function(t,l){1&t&&(e.j41(0,"tr",0)(1,"td",1),e.EFF(2),e.j41(3,"b",2),e.EFF(4),e.k0s()(),e.j41(5,"td",3),e.DNE(6,EW2,2,1,"span",4)(7,DW2,2,1)(8,TW2,2,1)(9,RW2,2,1),e.k0s(),e.j41(10,"td",3),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",5)(14,"button",6),e.bIt("click",function(){return l.goToUpdate(l.child)}),e.qSk(),e.j41(15,"svg",7),e.nrm(16,"path",8),e.k0s()()()(),e.DNE(17,IW2,2,0)),2&t&&(e.R7$(2),e.SpI(" ",l.path," / "),e.R7$(2),e.JRh(l.child.name),e.R7$(2),e.vxM(6,"Active"==l.child.lifecycleStatus?6:"Launched"==l.child.lifecycleStatus?7:"Retired"==l.child.lifecycleStatus?8:"Obsolete"==l.child.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,l.child.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(17,l.child.children&&l.child.children.length>0?17:-1))},dependencies:[n,_.vh]})}}return n})();const jW2=(n,a)=>a.id;function $W2(n,a){1&n&&(e.j41(0,"div",9),e.qSk(),e.j41(1,"svg",10),e.nrm(2,"path",11)(3,"path",12),e.k0s(),e.joV(),e.j41(4,"span",13),e.EFF(5,"Loading..."),e.k0s()())}function OW2(n,a){if(1&n&&(e.j41(0,"span",29),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function BW2(n,a){if(1&n&&(e.j41(0,"span",35),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function VW2(n,a){if(1&n&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function UW2(n,a){if(1&n&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function GW2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",38),e.nrm(2,"categories-recursion-list",39),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit;e.R7$(2),e.Y8G("child",c)("parent",t)("path",t.name)}}function HW2(n,a){if(1&n&&e.Z7z(0,GW2,3,3,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function YW2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",25)(1,"td",26)(2,"b",27),e.EFF(3),e.k0s()(),e.j41(4,"td",28),e.DNE(5,OW2,2,1,"span",29)(6,BW2,2,1)(7,VW2,2,1)(8,UW2,2,1),e.k0s(),e.j41(9,"td",30),e.EFF(10),e.nI1(11,"date"),e.k0s(),e.j41(12,"td",31)(13,"button",32),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(14,"svg",33),e.nrm(15,"path",34),e.k0s()()()(),e.DNE(16,HW2,2,0)}if(2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(2),e.vxM(5,"Active"==c.lifecycleStatus?5:"Launched"==c.lifecycleStatus?6:"Retired"==c.lifecycleStatus?7:"Obsolete"==c.lifecycleStatus?8:-1),e.R7$(5),e.SpI(" ",e.i5U(11,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(16,c.children.length>0?16:-1)}}function qW2(n,a){1&n&&(e.j41(0,"div",24)(1,"div",40),e.qSk(),e.j41(2,"svg",41),e.nrm(3,"path",42),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CATEGORIES._no_cat")," "))}function XW2(n,a){if(1&n&&(e.j41(0,"div",14)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr",18)(5,"th",19),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",20),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",21),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",22),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",23),e.Z7z(18,YW2,17,7,null,null,jW2,!1,qW2,7,3,"div",24),e.k0s()()()()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,5,"ADMIN._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,7,"ADMIN._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,9,"ADMIN._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,11,"ADMIN._actions")," "),e.R7$(3),e.Dyx(c.categories)}}let WW2=(()=>{class n{constructor(c,t,l,i,u){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.categories=[],this.unformattedCategories=[],this.page=0,this.CATEGOY_LIMIT=g1.c.CATEGORY_LIMIT,this.loading=!1,this.status=["Active","Launched"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCatalogs(){this.loading=!0,this.categories=[],this.unformattedCategories=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories(),D2()}createCategory(){this.eventMessage.emitCreateCategory(!0)}goToUpdate(c){this.eventMessage.emitUpdateCategory(c)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories...");const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));c.categories=i.filter(u=>!!u),c.loading=!1,c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.loading=!0,this.categories=[],this.unformattedCategories=[],this.getCategories(),console.log("filter")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["admin-categories"]],decls:16,vars:7,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","adminAddNewCategory","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-2/4"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminCategoriesTable"],[1,"flex","justify-center","m-4"],["data-cy","adminCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminTableOfferName",1,"flex","px-6","py-4","w-2/4"],["data-cy","adminCategoryName"],["data-cy","adminTableOfferStatus",1,"hidden","md:flex","px-6","py-4","w-fit"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["data-cy","adminEditCategory","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],["data-cy","adminCategoryStatus",1,"bg-blue-100","max-h-6","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["colspan","3"],[1,"w-full",3,"child","parent","path"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.createCategory()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()()(),e.DNE(14,$W2,6,0,"div",9)(15,XW2,21,13),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,3,"CATEGORIES._categories")),e.R7$(5),e.JRh(e.bMT(11,5,"CATEGORIES._add_new_cat")),e.R7$(4),e.vxM(14,l.loading?14:15))},dependencies:[PW2,_.vh,s1.D9]})}}return n})();function JW2(n,a){if(1&n&&e.nrm(0,"categories-recursion",5),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("child",c)("selected",t.selected)("parent",t.child)("path",t.path+" / "+t.child.name)}}function QW2(n,a){if(1&n&&e.Z7z(0,JW2,1,4,"categories-recursion",5,e.fX1),2&n){const c=e.XpG();e.Dyx(c.child.children)}}let Tw1=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t}isCategorySelected(c){return null!=this.selected&&-1!==this.selected.findIndex(l=>l.id===c.id)}addCategory(c){this.eventMessage.emitCategoryAdded(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["categories-recursion"]],inputs:{child:"child",parent:"parent",selected:"selected",path:"path"},decls:11,vars:8,consts:[["data-cy","adminParentCategoryRow",1,"flex","border-b","hover:bg-gray-200","dark:border-gray-700","dark:bg-secondary-300","dark:hover:bg-secondary-200","w-full","justify-between"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"w-full","text-wrap","break-all",3,"child","selected","parent","path"]],template:function(t,l){1&t&&(e.j41(0,"tr",0)(1,"td",1),e.EFF(2),e.j41(3,"b"),e.EFF(4),e.k0s()(),e.j41(5,"td",2),e.EFF(6),e.nI1(7,"date"),e.k0s(),e.j41(8,"td",3)(9,"input",4),e.bIt("click",function(){return l.addCategory(l.child)}),e.k0s()()(),e.DNE(10,QW2,2,0)),2&t&&(e.R7$(2),e.SpI(" ",l.path," / "),e.R7$(2),e.JRh(l.child.name),e.R7$(2),e.SpI(" ",e.i5U(7,5,l.child.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",l.isCategorySelected(l.child)),e.R7$(),e.vxM(10,l.child.children&&l.child.children.length>0?10:-1))},dependencies:[n,_.vh]})}}return n})();const ZW2=(n,a)=>a.id;function KW2(n,a){1&n&&(e.j41(0,"div",40)(1,"div",41),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function eJ2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",56),e.nrm(2,"categories-recursion",57),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",t)("selected",l.selected)("path",t.name)}}function cJ2(n,a){if(1&n&&e.Z7z(0,eJ2,3,4,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function tJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",51)(1,"td",52)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",53),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",54)(8,"input",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addCategory(l))}),e.k0s()()(),e.DNE(9,cJ2,2,0)}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(3),e.JRh(c.name),e.R7$(2),e.SpI(" ",e.i5U(6,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function nJ2(n,a){if(1&n&&(e.j41(0,"div",44)(1,"table",45)(2,"thead",46)(3,"tr",47)(4,"th",48),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",49),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",50),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,tJ2,10,7,null,null,ZW2),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._select")," "),e.R7$(3),e.Dyx(c.categories)}}function lJ2(n,a){if(1&n&&e.DNE(0,KW2,7,3,"div",40)(1,nJ2,16,9),2&n){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function sJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"form",28)(4,"label",29),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"input",30),e.j41(8,"label",29),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nrm(11,"app-markdown-textarea",31),e.j41(12,"label",32),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"label",33)(16,"input",34),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleParent())}),e.k0s(),e.nrm(17,"div",35),e.k0s(),e.DNE(18,lJ2,2,1),e.k0s(),e.j41(19,"div",36)(20,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.showFinish(),e.Njj(l.generalDone=!0)}),e.EFF(21),e.nI1(22,"translate"),e.qSk(),e.j41(23,"svg",38),e.nrm(24,"path",39),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,11,"CREATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(6,13,"CREATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(10,15,"CREATE_CATEGORIES._description")),e.R7$(4),e.JRh(e.bMT(14,17,"CREATE_CATEGORIES._choose_parent")),e.R7$(3),e.Y8G("checked",t.parentSelectionCheck),e.R7$(2),e.vxM(18,t.parentSelectionCheck?18:-1),e.R7$(2),e.Y8G("disabled",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory)("ngClass",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(22,19,"CREATE_CATEGORIES._next")," ")}}function aJ2(n,a){if(1&n&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function oJ2(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function iJ2(n,a){if(1&n&&(e.j41(0,"span",66),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function rJ2(n,a){if(1&n&&(e.j41(0,"span",67),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)}}function dJ2(n,a){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",68),e.nrm(4,"markdown",69),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_CATEGORIES._description")),e.R7$(3),e.Y8G("data",null==c.categoryToCreate?null:c.categoryToCreate.description)}}function fJ2(n,a){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",70)(4,"label",71),e.EFF(5),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_CATEGORIES._parent")),e.R7$(4),e.JRh(c.selectedCategory.name)}}function uJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",58)(4,"div")(5,"label",32),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",59),e.EFF(9),e.k0s()(),e.j41(10,"div",60)(11,"label",61),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,aJ2,2,1,"span",62)(15,oJ2,2,1)(16,iJ2,2,1)(17,rJ2,2,1),e.k0s(),e.DNE(18,dJ2,5,4)(19,fJ2,6,4),e.j41(20,"div",63)(21,"button",64),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createCategory())}),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",38),e.nrm(25,"path",39),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"CREATE_CATEGORIES._finish")),e.R7$(5),e.JRh(e.bMT(7,10,"CREATE_CATEGORIES._name")),e.R7$(3),e.SpI(" ",null==c.categoryToCreate?null:c.categoryToCreate.name," "),e.R7$(3),e.JRh(e.bMT(13,12,"CREATE_CATEGORIES._status")),e.R7$(2),e.vxM(14,"Active"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?14:"Launched"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?15:"Retired"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?16:"Obsolete"==(null==c.categoryToCreate?null:c.categoryToCreate.lifecycleStatus)?17:-1),e.R7$(4),e.vxM(18,""!=(null==c.categoryToCreate?null:c.categoryToCreate.description)?18:-1),e.R7$(),e.vxM(19,0==c.isParent?19:-1),e.R7$(3),e.SpI(" ",e.bMT(23,14,"CREATE_CATEGORIES._create")," ")}}function mJ2(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let pJ2=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.categories=[],this.unformattedCategories=[],this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),description:new p.MJ("")}),this.isParent=!0,this.parentSelectionCheck=!1,this.selectedCategory=void 0,this.loading=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo(),"CategoryAdded"===b.type&&this.addCategory(b.value)})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories()}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));c.categories=i.filter(Boolean),c.loading=!1,c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}toggleParent(){this.isParent=!this.isParent,this.parentSelectionCheck=!this.parentSelectionCheck,this.cdr.detectChanges()}addCategory(c){null==this.selectedCategory?(this.selectedCategory=c,this.selected=[],this.selected.push(c)):-1!==this.selected.findIndex(l=>l.id===c.id)?(this.selected=[],this.selectedCategory=void 0):(this.selectedCategory=c,this.selected=[],this.selected.push(c)),this.cdr.detectChanges()}isCategorySelected(c){return null!=this.selectedCategory&&c.id==this.selectedCategory.id}showFinish(){null!=this.generalForm.value.name&&(this.categoryToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",isRoot:this.isParent},0==this.isParent&&(this.categoryToCreate.parentId=this.selectedCategory.id),console.log("CATEGORY TO CREATE:"),console.log(this.categoryToCreate),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle")),this.showPreview=!1}createCategory(){this.api.postCategory(this.categoryToCreate).subscribe({next:c=>{this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the category!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-category"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:52,vars:29,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid","md:grid-cols-20/80"],[1,"flex","sm:flex-row","md:flex-col","md:mr-4","w-full","md:w-fit","overflow-x-auto"],[1,"hidden","md:block","text-xl","font-bold","text-black","mb-4","dark:text-white"],["id","general-info",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-primary-100","dark:text-primary-50","justify-items-center","md:justify-items-start",3,"click","disabled"],["id","general-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-primary-100","dark:border-primary-50","rounded-full","shrink-0"],[1,"flex","sm:text-center","md:text-start"],[1,"hidden","xl:flex","text-xs","sm:text-center","md:text-start"],[1,"h-px","mb-2","bg-gray-300","dark:bg-gray-200","border-0"],["id","summary",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-gray-500","justify-items-center","md:justify-items-start",3,"disabled"],["id","summary-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","leading-tight","justify-start"],[1,"hidden","xl:flex","text-xs","justify-start","text-start"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"m-4","gap-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminCategoryNameInput","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","adminCategoryDescription","formControlName","description"],[1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["data-cy","adminToggleParentCategory","type","checkbox",1,"sr-only","peer",3,"change","checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"flex","w-full","justify-items-end","justify-end"],["data-cy","adminCategoryNext","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-3/5"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminParentCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],["colspan","3"],[1,"w-full",3,"child","parent","selected","path"],[1,"m-8"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminCreateCategory","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-all",3,"data"],[1,"px-4","py-2","bg-white","border","border-1","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","p-4","mb-4"],[1,"text-base","dark:text-white","text-wrap","break-all"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div",16)(24,"h2",17),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",18),e.bIt("click",function(){return l.toggleGeneral()}),e.j41(28,"span",19),e.EFF(29," 1 "),e.k0s(),e.j41(30,"span")(31,"h3",20),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"p",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"hr",22),e.j41(38,"button",23)(39,"span",24),e.EFF(40," 2 "),e.k0s(),e.j41(41,"span")(42,"h3",25),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"p",26),e.EFF(46),e.nI1(47,"translate"),e.k0s()()()(),e.j41(48,"div"),e.DNE(49,sJ2,25,21)(50,uJ2,26,16),e.k0s()()()(),e.DNE(51,mJ2,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,13,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,15,"CREATE_CATEGORIES._create")),e.R7$(4),e.JRh(e.bMT(20,17,"CREATE_CATEGORIES._new")),e.R7$(6),e.JRh(e.bMT(26,19,"CREATE_CATEGORIES._steps")),e.R7$(2),e.Y8G("disabled",!l.generalDone),e.R7$(5),e.JRh(e.bMT(33,21,"CREATE_CATEGORIES._general")),e.R7$(3),e.JRh(e.bMT(36,23,"CREATE_CATEGORIES._general_info")),e.R7$(3),e.Y8G("disabled",!0),e.R7$(5),e.JRh(e.bMT(44,25,"CREATE_CATEGORIES._finish")),e.R7$(3),e.JRh(e.bMT(47,27,"CREATE_CATEGORIES._summary")),e.R7$(3),e.vxM(49,l.showGeneral?49:-1),e.R7$(),e.vxM(50,l.showSummary?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,Tw1,E0,_.vh,s1.D9]})}}return n})();const hJ2=(n,a)=>a.id;function gJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",46),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",47),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function _J2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function LJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",51),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function CJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",52),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function zJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",54),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function MJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",55),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function xJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",57),e.qSk(),e.j41(2,"svg",58),e.nrm(3,"path",48),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function bJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function yJ2(n,a){1&n&&(e.j41(0,"div",59)(1,"div",60),e.qSk(),e.j41(2,"svg",61),e.nrm(3,"path",62),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function FJ2(n,a){if(1&n&&(e.j41(0,"tr")(1,"td",75),e.nrm(2,"categories-recursion",76),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(4);e.R7$(2),e.Y8G("child",c)("parent",t)("selected",l.selected)("path",t.name)}}function vJ2(n,a){if(1&n&&e.Z7z(0,FJ2,3,4,"tr",null,e.fX1),2&n){const c=e.XpG().$implicit;e.Dyx(c.children)}}function kJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",70)(1,"td",71)(2,"b"),e.EFF(3),e.k0s()(),e.j41(4,"td",72),e.EFF(5),e.nI1(6,"date"),e.k0s(),e.j41(7,"td",73)(8,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addCategory(l))}),e.k0s()()(),e.DNE(9,vJ2,2,0)}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(3),e.JRh(c.name),e.R7$(2),e.SpI(" ",e.i5U(6,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isCategorySelected(c)),e.R7$(),e.vxM(9,c.children.length>0?9:-1)}}function wJ2(n,a){if(1&n&&(e.j41(0,"div",63)(1,"table",64)(2,"thead",65)(3,"tr",66)(4,"th",67),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",68),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",69),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,kJ2,10,7,null,null,hJ2),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._select")," "),e.R7$(3),e.Dyx(c.categories)}}function SJ2(n,a){if(1&n&&e.DNE(0,yJ2,7,3,"div",59)(1,wJ2,16,9),2&n){const c=e.XpG(2);e.vxM(0,0==c.categories.length?0:1)}}function NJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"form",28)(4,"label",29),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.nrm(7,"input",30),e.j41(8,"label",31),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",32)(12,"ol",33),e.DNE(13,gJ2,5,0,"li",34)(14,_J2,3,0)(15,LJ2,5,0,"li",35)(16,CJ2,3,0)(17,zJ2,5,0,"li",36)(18,MJ2,3,0)(19,xJ2,5,0,"li",37)(20,bJ2,3,0),e.k0s()(),e.j41(21,"label",29),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"app-markdown-textarea",38),e.j41(25,"label",31),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"label",39)(29,"input",40),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleParent())}),e.k0s(),e.nrm(30,"div",41),e.k0s(),e.DNE(31,SJ2,2,1),e.k0s(),e.j41(32,"div",42)(33,"button",43),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return l.showFinish(),e.Njj(l.generalDone=!0)}),e.EFF(34),e.nI1(35,"translate"),e.qSk(),e.j41(36,"svg",44),e.nrm(37,"path",45),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,17,"UPDATE_CATEGORIES._general")),e.R7$(2),e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(6,19,"UPDATE_CATEGORIES._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(10,21,"UPDATE_CATALOG._status")),e.R7$(4),e.vxM(13,"Active"==t.catStatus?13:14),e.R7$(2),e.vxM(15,"Launched"==t.catStatus?15:16),e.R7$(2),e.vxM(17,"Retired"==t.catStatus?17:18),e.R7$(2),e.vxM(19,"Obsolete"==t.catStatus?19:20),e.R7$(3),e.JRh(e.bMT(23,23,"UPDATE_CATEGORIES._description")),e.R7$(4),e.JRh(e.bMT(27,25,"UPDATE_CATEGORIES._choose_parent")),e.R7$(3),e.Y8G("disabled",t.checkDisableParent)("checked",t.parentSelectionCheck),e.R7$(2),e.vxM(31,t.parentSelectionCheck?31:-1),e.R7$(2),e.Y8G("disabled",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory)("ngClass",!t.generalForm.valid||1==t.parentSelectionCheck&&null==t.selectedCategory?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(35,27,"UPDATE_CATEGORIES._next")," ")}}function EJ2(n,a){if(1&n&&(e.j41(0,"span",81),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function DJ2(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function TJ2(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function RJ2(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)}}function AJ2(n,a){if(1&n&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",87),e.nrm(4,"markdown",88),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_CATEGORIES._description")),e.R7$(3),e.Y8G("data",null==c.categoryToUpdate?null:c.categoryToUpdate.description)}}function IJ2(n,a){if(1&n&&(e.j41(0,"label",31),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",89)(4,"label",90),e.EFF(5),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_CATEGORIES._parent")),e.R7$(4),e.JRh(c.selectedCategory.name)}}function PJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",13),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",77)(4,"div")(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"label",78),e.EFF(9),e.k0s()(),e.j41(10,"div",79)(11,"label",80),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.DNE(14,EJ2,2,1,"span",81)(15,DJ2,2,1)(16,TJ2,2,1)(17,RJ2,2,1),e.k0s(),e.DNE(18,AJ2,5,4)(19,IJ2,6,4),e.j41(20,"div",82)(21,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateCategory())}),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",44),e.nrm(25,"path",45),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"UPDATE_CATEGORIES._finish")),e.R7$(5),e.JRh(e.bMT(7,10,"UPDATE_CATEGORIES._name")),e.R7$(3),e.SpI(" ",null==c.categoryToUpdate?null:c.categoryToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(13,12,"UPDATE_CATEGORIES._status")),e.R7$(2),e.vxM(14,"Active"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?14:"Launched"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?15:"Retired"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?16:"Obsolete"==(null==c.categoryToUpdate?null:c.categoryToUpdate.lifecycleStatus)?17:-1),e.R7$(4),e.vxM(18,""!=(null==c.categoryToUpdate?null:c.categoryToUpdate.description)?18:-1),e.R7$(),e.vxM(19,0==c.isParent?19:-1),e.R7$(3),e.SpI(" ",e.bMT(23,14,"UPDATE_CATEGORIES._update")," ")}}function jJ2(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let $J2=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.categories=[],this.unformattedCategories=[],this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),description:new p.MJ("")}),this.isParent=!0,this.parentSelectionCheck=!1,this.checkDisableParent=!1,this.selectedCategory=void 0,this.loading=!1,this.catStatus="Active",this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo(),"CategoryAdded"===b.type&&this.addCategory(b.value)})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCategories(),this.populateCatInfo()}populateCatInfo(){this.generalForm.controls.name.setValue(this.category.name),this.generalForm.controls.description.setValue(this.category.description),this.catStatus=this.category.lifecycleStatus,0==this.category.isRoot?(this.isParent=!1,this.parentSelectionCheck=!0,this.checkDisableParent=!0):(this.isParent=!0,this.parentSelectionCheck=!1)}goBack(){this.eventMessage.emitAdminCategories(!0)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Getting categories..."),c.loading=!0,c.categories=[],c.unformattedCategories=[];const t=yield c.api.getDefaultCategories().catch(()=>[]),l=Array.isArray(t)?t:[];c.unformattedCategories=[...l];const i=yield Promise.all(l.map(u=>c.loadCategorySubtree(u)));if(c.categories=c.removeCategoryFromTree(i.filter(Boolean),c.category?.id),c.loading=!1,0==c.category.isRoot){const u=c.findCategoryById(c.categories,c.category.parentId);u&&(c.selectedCategory=u,c.selected=[u])}c.cdr.detectChanges(),D2()})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}findCategoryById(c,t){for(const l of c||[]){if(l?.id===t)return l;const i=this.findCategoryById(l?.children||[],t);if(i)return i}}removeCategoryFromTree(c,t){return t?(c||[]).filter(l=>l?.id!==t).map(l=>({...l,children:this.removeCategoryFromTree(l?.children||[],t)})):c||[]}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}toggleParent(){this.isParent=!this.isParent,this.parentSelectionCheck=!this.parentSelectionCheck,this.cdr.detectChanges()}addCategory(c){null==this.selectedCategory?(this.selectedCategory=c,this.selected=[],this.selected.push(c)):-1!==this.selected.findIndex(l=>l.id===c.id)?(this.selected=[],this.selectedCategory=void 0):(this.selectedCategory=c,this.selected=[],this.selected.push(c)),this.cdr.detectChanges()}isCategorySelected(c){return null!=this.selectedCategory&&c.id==this.selectedCategory.id}showFinish(){null!=this.generalForm.value.name&&(this.categoryToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.catStatus,isRoot:this.isParent},0==this.isParent&&(this.categoryToUpdate.parentId=this.selectedCategory.id),console.log(this.isParent),console.log("CATEGORY TO UPDATE:"),console.log(this.categoryToUpdate),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle")),this.showPreview=!1}updateCategory(){this.api.updateCategory(this.categoryToUpdate,this.category.id).subscribe({next:c=>{this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the category!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}setCatStatus(c){this.catStatus=c,this.cdr.detectChanges()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-category"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{category:"category"},decls:52,vars:27,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid","md:grid-cols-20/80"],[1,"flex","sm:flex-row","md:flex-col","md:mr-4","w-full","md:w-fit","overflow-x-auto"],[1,"hidden","md:block","text-xl","font-bold","text-black","mb-4","dark:text-white"],["id","general-info",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-primary-100","dark:text-primary-50","justify-items-center","md:justify-items-start",3,"click"],["id","general-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-primary-100","dark:border-primary-50","rounded-full","shrink-0"],[1,"flex","sm:text-center","md:text-start"],[1,"hidden","xl:flex","text-xs","sm:text-center","md:text-start"],[1,"h-px","mb-2","bg-gray-300","dark:bg-gray-200","border-0"],["id","summary",1,"grid","sm:grid-rows-2","md:grid-rows-1","md:grid-cols-40/60","xl:grid-cols-20/80","mb-2","mr-2","md:mr-0","text-gray-500","justify-items-center","md:justify-items-start",3,"click"],["id","summary-circle",1,"flex","items-center","justify-center","w-6","h-6","md:w-8","md:h-8","border","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","leading-tight","justify-start"],[1,"hidden","xl:flex","text-xs","justify-start","text-start"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"m-4","gap-4",3,"formGroup"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminCategoryNameInput","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],["data-cy","adminCategoryStatusObsolete",1,"cursor-pointer","flex","items-center"],["data-cy","adminCategoryDescription","formControlName","description"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["data-cy","adminToggleParentCategory","type","checkbox",1,"sr-only","peer",3,"change","disabled","checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"flex","w-full","justify-items-end","justify-end"],["data-cy","adminCategoryNext","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],["data-cy","adminCategoryStatusActive",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","adminCategoryStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],["data-cy","adminCategoryStatusRetired",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["data-cy","adminCategoryStatusObsolete",1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],[1,"flex","w-full","justify-between"],["scope","col",1,"flex","px-6","py-3","w-3/5"],["scope","col",1,"hidden","md:flex","px-6","py-3","w-fit"],["scope","col",1,"flex","px-6","py-3","w-fit"],["data-cy","adminParentCategoryRow",1,"flex","border-b","dark:border-gray-700","hover:bg-gray-200","w-full","justify-between","dark:bg-secondary-300","dark:hover:bg-secondary-200"],["data-cy","adminParentCategoryName",1,"flex","px-6","py-4","w-3/5","text-wrap","break-all"],[1,"hidden","md:flex","px-6","py-4","w-fit"],[1,"flex","px-6","py-4","w-fit","justify-end"],["id","select-checkbox","data-cy","adminParentCategoryCheckbox","type","checkbox","value","",1,"flex","w-4","h-4","justify-end","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],["colspan","3"],[1,"w-full",3,"child","parent","selected","path"],[1,"m-8"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminUpdateCategory","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","text-wrap","break-all","dark:bg-secondary-100","dark:text-white","text-gray-900",3,"data"],[1,"px-4","py-2","bg-white","border","dark:bg-secondary-300","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"text-base","dark:text-white","text-wrap","break-all"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div",16)(24,"h2",17),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"button",18),e.bIt("click",function(){return l.toggleGeneral()}),e.j41(28,"span",19),e.EFF(29," 1 "),e.k0s(),e.j41(30,"span")(31,"h3",20),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"p",21),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.nrm(37,"hr",22),e.j41(38,"button",23),e.bIt("click",function(){return l.showFinish()}),e.j41(39,"span",24),e.EFF(40," 2 "),e.k0s(),e.j41(41,"span")(42,"h3",25),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"p",26),e.EFF(46),e.nI1(47,"translate"),e.k0s()()()(),e.j41(48,"div"),e.DNE(49,NJ2,38,29)(50,PJ2,26,16),e.k0s()()()(),e.DNE(51,jJ2,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,11,"UPDATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,13,"UPDATE_CATEGORIES._update")),e.R7$(4),e.JRh(e.bMT(20,15,"UPDATE_CATEGORIES._update")),e.R7$(6),e.JRh(e.bMT(26,17,"UPDATE_CATEGORIES._steps")),e.R7$(7),e.JRh(e.bMT(33,19,"UPDATE_CATEGORIES._general")),e.R7$(3),e.JRh(e.bMT(36,21,"UPDATE_CATEGORIES._general_info")),e.R7$(8),e.JRh(e.bMT(44,23,"UPDATE_CATEGORIES._finish")),e.R7$(3),e.JRh(e.bMT(47,25,"UPDATE_CATEGORIES._summary")),e.R7$(3),e.vxM(49,l.showGeneral?49:-1),e.R7$(),e.vxM(50,l.showSummary?50:-1),e.R7$(),e.vxM(51,l.showError?51:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,Tw1,E0,_.vh,s1.D9]})}}return n})();function OJ2(n,a){if(1&n&&e.nrm(0,"error-message",25),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let BJ2=(()=>{class n{constructor(c,t){this.eventMessage=c,this.http=t,this.showError=!1,this.errorMessage="",this.verificationForm=new p.gE({productId:new p.MJ("",[p.k0.required]),vc:new p.MJ("",[p.k0.required])})}goBack(){this.eventMessage.emitAdminCategories(!0)}verifyCredential(){return this.http.patch(`${g1.c.BASE_URL}/admin/uploadcertificate/${this.verificationForm.value.productId}`,{vc:this.verificationForm.value.vc}).subscribe({next:l=>{this.goBack()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while uploading the product!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["verification"]],decls:40,vars:21,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid"],[1,"m-4","gap-4",3,"formGroup"],["for","verif-id",1,"font-bold","text-lg","dark:text-white"],["formControlName","productId","type","text","id","verif-id",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","vc",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminVerifiableCredential","formControlName","vc","rows","8","placeholder","Add credential...",1,"block","w-full","min-h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminAddCredential","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){if(1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div")(24,"form",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",18),e.j41(29,"label",19),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"textarea",20),e.k0s(),e.j41(33,"div",21)(34,"button",22),e.bIt("click",function(){return l.verifyCredential()}),e.EFF(35),e.nI1(36,"translate"),e.qSk(),e.j41(37,"svg",23),e.nrm(38,"path",24),e.k0s()()()()()()(),e.DNE(39,OJ2,1,1,"error-message",25)),2&t){let i;e.R7$(8),e.SpI(" ",e.bMT(9,9,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,11,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(20,13,"ADMIN._verification")),e.R7$(5),e.Y8G("formGroup",l.verificationForm),e.R7$(2),e.JRh(e.bMT(27,15,"ADMIN._productId")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.verificationForm.get("productId"))?null:i.invalid)&&""!=l.verificationForm.value.productId?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,17,"ADMIN._vc")),e.R7$(5),e.SpI(" ",e.bMT(36,19,"ADMIN._add")," "),e.R7$(4),e.vxM(39,l.showError?39:-1)}},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const Rw1=["general","technical","onboarding","legal"],VJ2=(n,a)=>a.supportType;function UJ2(n,a){if(1&n&&(e.j41(0,"label",34),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",35)),2&n){let c;const t=a.$implicit,l=e.XpG();e.Y8G("for","contact-us-"+t.supportType+"-email"),e.R7$(),e.JRh(e.bMT(2,5,t.labelKey)),e.R7$(2),e.Y8G("formControlName",t.controlName)("id","contact-us-"+t.supportType+"-email")("ngClass",1==(null==(c=l.emailForm.get(t.controlName))?null:c.invalid)&&""!=(null==(c=l.emailForm.get(t.controlName))?null:c.value)?"border-red-600":"border-gray-300")}}function GJ2(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function HJ2(n,a){if(1&n&&(e.j41(0,"div",33)(1,"div",36)(2,"div",8),e.qSk(),e.j41(3,"svg",37),e.nrm(4,"path",38),e.k0s(),e.joV(),e.j41(5,"h3",39),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"div",40),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()),2&n){const c=e.XpG();e.R7$(6),e.JRh(e.bMT(7,2,"ADMIN._updateSuccessTitle")),e.R7$(3),e.SpI(" ",e.bMT(10,4,c.successMessage)," ")}}let YJ2=(()=>{class n{constructor(c,t){this.eventMessage=c,this.http=t,this.showError=!1,this.errorMessage="",this.showSuccess=!1,this.successMessage="",this.contactUsDestinationControlNames={general:"contactUsGeneralEmail",technical:"contactUsTechnicalEmail",onboarding:"contactUsOnboardingEmail",legal:"contactUsLegalEmail"},this.contactUsDestinationLabels={general:"ADMIN._contactUsGeneralEmail",technical:"ADMIN._contactUsTechnicalEmail",onboarding:"ADMIN._contactUsOnboardingEmail",legal:"ADMIN._contactUsLegalEmail"},this.contactUsDestinationFields=Rw1.map(l=>({supportType:l,controlName:this.contactUsDestinationControlNames[l],labelKey:this.contactUsDestinationLabels[l]})),this.emailForm=new p.gE({smtpServer:new p.MJ("",[p.k0.required]),smtpPort:new p.MJ("",[p.k0.required]),email:new p.MJ("",[p.k0.required,p.k0.email]),emailUser:new p.MJ("",[p.k0.required]),emailPassword:new p.MJ("",[p.k0.required]),contactUsGeneralEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsTechnicalEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsOnboardingEmail:new p.MJ("",[p.k0.required,p.k0.email]),contactUsLegalEmail:new p.MJ("",[p.k0.required,p.k0.email])})}ngOnInit(){this.getConfig()}goBack(){this.eventMessage.emitAdminCategories(!0)}showSuccessMessage(c){this.showError=!1,this.showSuccess=!0,this.successMessage=c,setTimeout(()=>{this.showSuccess=!1},3e3)}showErrorMessage(c){this.showSuccess=!1,this.showError=!0,this.errorMessage=c,setTimeout(()=>{this.showError=!1},3e3)}getErrorMessage(c,t){return c?.error?.error?"Error: "+c.error.error:t}fillData(c){const t=c.contactUsDestinations??{};this.emailForm.setValue({smtpServer:c.smtpServer??"",smtpPort:c.smtpPort??"",email:c.email??"",emailUser:c.emailUser??"",emailPassword:"",contactUsGeneralEmail:t.general??"",contactUsTechnicalEmail:t.technical??"",contactUsOnboardingEmail:t.onboarding??"",contactUsLegalEmail:t.legal??""})}getConfig(){return this.http.get(`${g1.c.BASE_URL}/charging/api/orderManagement/notify/config`).subscribe({next:t=>{this.fillData(t)},error:t=>{console.error("There was an error while getting config!",t),this.showErrorMessage(this.getErrorMessage(t,"There was an error while getting the config"))}})}addConfig(){return this.http.post(`${g1.c.BASE_URL}/charging/api/orderManagement/notify/config`,{smtpServer:this.emailForm.value.smtpServer,smtpPort:this.emailForm.value.smtpPort,email:this.emailForm.value.email,emailUser:this.emailForm.value.emailUser,emailPassword:this.emailForm.value.emailPassword,contactUsDestinations:{general:this.emailForm.value.contactUsGeneralEmail,technical:this.emailForm.value.contactUsTechnicalEmail,onboarding:this.emailForm.value.contactUsOnboardingEmail,legal:this.emailForm.value.contactUsLegalEmail}}).subscribe({next:()=>{this.emailForm.patchValue({emailPassword:""}),this.showSuccessMessage("ADMIN._emailConfigUpdated")},error:l=>{console.error("There was an error while updating!",l),this.showErrorMessage(this.getErrorMessage(l,"There was an error while updating the config"))}})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["email"]],decls:58,vars:38,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"md:grid"],[1,"m-4","gap-4",3,"formGroup"],["for","smtp-server",1,"font-bold","text-lg","dark:text-white"],["formControlName","smtpServer","type","text","id","smtp-server",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","smtp-port",1,"font-bold","text-lg","dark:text-white"],["formControlName","smtpPort","type","text","id","smtp-port",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email",1,"font-bold","text-lg","dark:text-white"],["formControlName","email","type","text","id","email",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email-user",1,"font-bold","text-lg","dark:text-white"],["formControlName","emailUser","type","text","id","email-user",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email-pass",1,"font-bold","text-lg","dark:text-white"],["formControlName","emailPassword","type","password","id","email-pass",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mt-6","mb-2","font-bold","text-xl","text-primary-100","dark:text-white"],[1,"flex","w-full","justify-items-end","justify-end","ml-4"],["data-cy","adminAddCredential","type","button",1,"flex","text-white","justify-end","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],[1,"font-bold","text-lg","dark:text-white",3,"for"],["type","text",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControlName","id","ngClass"],["role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","text-sm","pr-8","pl-8"]],template:function(t,l){if(1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",14),e.j41(22,"div",15)(23,"div")(24,"form",16)(25,"label",17),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.nrm(28,"input",18),e.j41(29,"label",19),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"input",20),e.j41(33,"label",21),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"input",22),e.j41(37,"label",23),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.nrm(40,"input",24),e.j41(41,"label",25),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.nrm(44,"input",26),e.j41(45,"h3",27),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.Z7z(48,UJ2,4,7,null,null,VJ2),e.k0s(),e.j41(50,"div",28)(51,"button",29),e.bIt("click",function(){return l.addConfig()}),e.EFF(52),e.nI1(53,"translate"),e.qSk(),e.j41(54,"svg",30),e.nrm(55,"path",31),e.k0s()()()()()()(),e.DNE(56,GJ2,1,1,"error-message",32)(57,HJ2,11,6,"div",33)),2&t){let i,u,C,b,T;e.R7$(8),e.SpI(" ",e.bMT(9,18,"CREATE_CATEGORIES._back")," "),e.R7$(7),e.JRh(e.bMT(16,20,"ADMIN._email")),e.R7$(4),e.JRh(e.bMT(20,22,"ADMIN._email")),e.R7$(5),e.Y8G("formGroup",l.emailForm),e.R7$(2),e.JRh(e.bMT(27,24,"ADMIN._smtpServer")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.emailForm.get("smtpServer"))?null:i.invalid)&&""!=l.emailForm.value.smtpServer?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(31,26,"ADMIN._smtpPort")),e.R7$(2),e.Y8G("ngClass",1==(null==(u=l.emailForm.get("smtpPort"))?null:u.invalid)&&""!=l.emailForm.value.smtpPort?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(35,28,"ADMIN._sourceEmail")),e.R7$(2),e.Y8G("ngClass",1==(null==(C=l.emailForm.get("email"))?null:C.invalid)&&""!=l.emailForm.value.email?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(39,30,"ADMIN._emailUser")),e.R7$(2),e.Y8G("ngClass",1==(null==(b=l.emailForm.get("emailUser"))?null:b.invalid)&&""!=l.emailForm.value.emailUser?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(43,32,"ADMIN._emailPass")),e.R7$(2),e.Y8G("ngClass",1==(null==(T=l.emailForm.get("emailPassword"))?null:T.invalid)&&""!=l.emailForm.value.emailPassword?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(47,34,"ADMIN._contactUsDestinations")),e.R7$(2),e.Dyx(l.contactUsDestinationFields),e.R7$(4),e.SpI(" ",e.bMT(53,36,"ADMIN._add")," "),e.R7$(4),e.vxM(56,l.showError?56:-1),e.R7$(),e.vxM(57,l.showSuccess?57:-1)}},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const qJ2=[{key:"quotesEnabled",label:"Quotes",description:"Enable quote request flows and quote pages."},{key:"purchaseEnabled",label:"Purchases",description:"Enable shopping cart and checkout actions."},{key:"aiEnabled",label:"AI search",description:"Enable AI-assisted catalog search."},{key:"tenderingEnabled",label:"Tendering",description:"Enable tendering features."},{key:"dataSpaceEnabled",label:"Data space",description:"Enable data space fields in organization and offer forms."},{key:"dspEnabled",label:"DSP",description:"Enable DSP-related data space contract and schema fields."},{key:"launchValidationEnabled",label:"Launch validation",description:"Enable launch validation requests for offerings."},{key:"tenderDevButtonsOpenCloseEnabled",label:"Tender dev actions",description:"Enable tender open and close development controls."}];function tf(n,a){const c=n[a];return"boolean"==typeof c?c:void 0}function Aw1(n){const a=function XJ2(n){return!!n&&"object"==typeof n&&!Array.isArray(n)}(n)?n:{},c={};return c.searchEnabled=tf(a,"searchEnabled"),c.purchaseEnabled=tf(a,"purchaseEnabled"),c.quotesEnabled=tf(a,"quotesEnabled"),c.tenderingEnabled=tf(a,"tenderingEnabled"),c.dataSpaceEnabled=tf(a,"dataSpaceEnabled"),c.dspEnabled=tf(a,"dspEnabled"),c.launchValidationEnabled=tf(a,"launchValidationEnabled"),c.tenderDevButtonsOpenCloseEnabled=tf(a,"tenderDevButtonsOpenCloseEnabled"),c.aiEnabled=tf(a,"aiEnabled"),c}function Iw1(n){const a=Aw1(n);g1.c.SEARCH_ENABLED=a.searchEnabled??g1.c.SEARCH_ENABLED,g1.c.PURCHASE_ENABLED=a.purchaseEnabled??!0,g1.c.QUOTES_ENABLED=a.quotesEnabled??!1,g1.c.TENDER_ENABLED=a.tenderingEnabled??!1,g1.c.DATA_SPACE_ENABLED=a.dataSpaceEnabled??!1,g1.c.DSP_ENABLED=a.dspEnabled??g1.c.DSP_ENABLED,g1.c.LAUNCH_VALIDATION_ENABLED=a.launchValidationEnabled??!1,g1.c.TENDER_DEV_BUTTONS_OPEN_CLOSE_ENABLED=a.tenderDevButtonsOpenCloseEnabled??!1,g1.c.AI_SEARCH_ENABLED=a.aiEnabled??!1}function WJ2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function JJ2(n,a){if(1&n&&(e.j41(0,"div",11)(1,"div")(2,"p",17),e.EFF(3),e.k0s(),e.j41(4,"p",18),e.EFF(5),e.k0s(),e.j41(6,"p",19),e.EFF(7),e.k0s()(),e.j41(8,"div",20)(9,"label",21),e.nrm(10,"input",22)(11,"div",23),e.k0s()()()),2&n){let c,t,l;const i=a.$implicit,u=a.$index,C=e.XpG(2);e.Y8G("formGroupName",u),e.R7$(3),e.JRh(null==(c=C.getDefinition(null!==(c=null==(c=i.get("key"))?null:c.value)&&void 0!==c?c:""))?null:c.label),e.R7$(2),e.JRh(null==(t=C.getDefinition(null!==(t=null==(t=i.get("key"))?null:t.value)&&void 0!==t?t:""))?null:t.description),e.R7$(2),e.JRh(null==(l=i.get("key"))?null:l.value)}}function QJ2(n,a){if(1&n&&(e.j41(0,"div",12),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function ZJ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",9)(1,"div",10),e.Z7z(2,JJ2,12,4,"div",11,e.Vm6),e.k0s()(),e.DNE(4,QJ2,2,1,"div",12),e.j41(5,"div",13)(6,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(7," Save "),e.qSk(),e.j41(8,"svg",15),e.nrm(9,"path",16),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.featuresForm),e.R7$(2),e.Dyx(c.flagsArray.controls),e.R7$(2),e.vxM(4,c.showSuccess?4:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function KJ2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let eQ2=(()=>{class n{constructor(c){this.http=c,this.definitions=qJ2,this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.successTimeoutId=null,this.featuresForm=new p.gE({flags:new p.Yp([])})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}get flagsArray(){return this.featuresForm.get("flags")}getDefinition(c){return this.definitions.find(t=>t.key===c)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading features configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.buildFeaturesPayload(),l=`${g1.c.BASE_URL}/config/features`;yield(0,t5._)(c.http.patch(l,t)),Iw1(t),yield c.syncFromBackend(),c.successMessage="Features configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving features configuration.")}finally{c.saving=!1}}})()}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=`${g1.c.BASE_URL}/config`,i=Aw1(yield(0,t5._)(c.http.get(t)));c.loadFeatureFlags(i)})()}loadFeatureFlags(c){for(;this.flagsArray.length>0;)this.flagsArray.removeAt(0);for(const t of this.definitions)this.flagsArray.push(this.createFeatureGroup(t.key,c[t.key]??!1))}createFeatureGroup(c,t){return new p.gE({key:new p.MJ(c,{nonNullable:!0}),enabled:new p.MJ(t,{nonNullable:!0})})}buildFeaturesPayload(){const c={},t=new Set;return this.flagsArray.controls.forEach((l,i)=>{const u=(l.get("key")?.value??"").trim(),C=!0===l.get("enabled")?.value;if(!u)throw new Error(`Feature ${i+1}: key is required.`);if(t.has(u))throw new Error(`Feature "${u}" is duplicated.`);t.add(u),c[u]=C}),c}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["features-config"]],decls:7,vars:2,consts:[["data-cy","adminFeaturesConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4",3,"formGroup"],["formArrayName","flags",1,"space-y-3"],[1,"grid","gap-3","md:grid-cols-[minmax(0,1fr)_auto]","items-center","p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200",3,"formGroupName"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","gap-3","mr-4"],["data-cy","adminSaveFeaturesConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"text-sm","text-gray-500","dark:text-gray-300"],[1,"mt-1","font-mono","text-xs","text-gray-400","dark:text-gray-300"],[1,"flex","items-center","justify-between","gap-4","md:justify-end"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox","formControlName","enabled",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-200","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-50","dark:peer-focus:ring-secondary-200","dark:bg-gray-700","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","dark:border-gray-600","peer-checked:bg-primary-100"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Features"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,WJ2,6,0,"div",3)(5,ZJ2,10,4),e.k0s(),e.DNE(6,KJ2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.Zm,p.BC,p.cb,p.j4,p.JD,p.$R,p.v8,E0]})}}return n})();var aF=y(7005);const cQ2=()=>({standalone:!0});function tQ2(n,a){1&n&&(e.j41(0,"div",3),e.qSk(),e.j41(1,"svg",5),e.nrm(2,"path",6)(3,"path",7),e.k0s(),e.joV(),e.j41(4,"span",8),e.EFF(5,"Loading..."),e.k0s()())}function nQ2(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1," With "),e.j41(2,"span",26),e.EFF(3,"catalogFirstLevel"),e.k0s(),e.EFF(4,", root category and filters are disabled. "),e.k0s())}function lQ2(n,a){1&n&&(e.j41(0,"div")(1,"label",35),e.EFF(2,"Root name"),e.k0s(),e.nrm(3,"input",44),e.k0s())}function sQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",48),e.nrm(1,"input",49)(2,"input",50),e.j41(3,"button",51),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2).$index,u=e.XpG(3);return e.Njj(u.removeOption(i,l))}),e.EFF(4," Remove "),e.k0s()()}2&n&&e.Y8G("formGroupName",a.$index)}function aQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",41)(1,"div",45)(2,"h4",35),e.EFF(3,"Options"),e.k0s(),e.j41(4,"button",46),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.addOption(l))}),e.EFF(5," Add option "),e.k0s()(),e.j41(6,"div",47),e.Z7z(7,sQ2,5,1,"div",48,e.Vm6),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(7),e.Dyx(t.getOptionsArray(c).controls)}}function oQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",33)(1,"div",34)(2,"div")(3,"label",35),e.EFF(4,"Name"),e.k0s(),e.nrm(5,"input",36),e.k0s(),e.j41(6,"div")(7,"label",35),e.EFF(8,"Label"),e.k0s(),e.nrm(9,"input",37),e.k0s(),e.j41(10,"div")(11,"label",35),e.EFF(12,"Source"),e.k0s(),e.j41(13,"select",38),e.bIt("change",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.clearOptionsForCategoryRoot(l))}),e.j41(14,"option",39),e.EFF(15,"configured"),e.k0s(),e.j41(16,"option",40),e.EFF(17,"categoryRoot"),e.k0s()()(),e.DNE(18,lQ2,4,0,"div"),e.k0s(),e.DNE(19,aQ2,9,0,"div",41),e.j41(20,"div",42)(21,"button",43),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeFilter(l))}),e.EFF(22," Remove filter "),e.k0s()()()}if(2&n){let c,t;const l=a.$index,i=e.XpG(3);e.Y8G("formGroupName",l),e.R7$(18),e.vxM(18,"categoryRoot"===(null==(c=i.filtersArray.at(l).get("source"))?null:c.value)?18:-1),e.R7$(),e.vxM(19,"configured"===(null==(t=i.filtersArray.at(l).get("source"))?null:t.value)?19:-1)}}function iQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",27),e.EFF(1,"Primary root name"),e.k0s(),e.nrm(2,"input",28),e.j41(3,"div",29)(4,"h3",30),e.EFF(5,"Filters"),e.k0s(),e.j41(6,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addFilter())}),e.EFF(7," Add filter "),e.k0s()(),e.j41(8,"div",32),e.Z7z(9,oQ2,23,3,"div",33,e.Vm6),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(9),e.Dyx(c.filtersArray.controls)}}function rQ2(n,a){if(1&n&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function dQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"label",10),e.EFF(2,"Provide searchFilters JSON"),e.k0s(),e.j41(3,"textarea",11),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.providedJson,l)||(i.providedJson=l),e.Njj(l)}),e.k0s(),e.j41(4,"div",12)(5,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.loadProvidedJsonIntoForm())}),e.EFF(6," Load JSON "),e.k0s(),e.j41(7,"button",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProvidedJson())}),e.EFF(8," Save JSON "),e.k0s()()(),e.j41(9,"form",15)(10,"label",16),e.EFF(11,"Primary categories mode"),e.k0s(),e.j41(12,"select",17),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onPrimaryModeChange())}),e.j41(13,"option",18),e.EFF(14,"catalogFirstLevel"),e.k0s(),e.j41(15,"option",19),e.EFF(16,"rooted"),e.k0s()(),e.DNE(17,nQ2,5,0,"div",20)(18,iQ2,11,0),e.k0s(),e.DNE(19,rQ2,2,1,"div",21),e.j41(20,"div",22)(21,"button",23),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveConfig())}),e.EFF(22," Save "),e.qSk(),e.j41(23,"svg",24),e.nrm(24,"path",25),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.R50("ngModel",c.providedJson),e.Y8G("ngModelOptions",e.lJ4(9,cQ2)),e.R7$(4),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(2),e.Y8G("formGroup",c.searchFiltersForm),e.R7$(8),e.vxM(17,c.isCatalogFirstLevelMode?17:18),e.R7$(2),e.vxM(19,c.showSuccess?19:-1),e.R7$(2),e.Y8G("disabled",c.saving)("ngClass",c.saving?"opacity-50 cursor-not-allowed":"hover:bg-primary-50")}}function fQ2(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let uQ2=(()=>{class n{constructor(c){this.http=c,this.loading=!1,this.saving=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.providedJson="",this.successTimeoutId=null,this.searchFiltersForm=new p.gE({primaryCategoriesMode:new p.MJ("catalogFirstLevel",[p.k0.required]),primaryRootName:new p.MJ(""),filters:new p.Yp([])})}ngOnInit(){this.loadConfig()}ngOnDestroy(){this.successTimeoutId&&(clearTimeout(this.successTimeoutId),this.successTimeoutId=null)}loadConfig(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.showError=!1;try{yield c.syncFromBackend()}catch(t){c.handleError(t,"There was an error while loading search filters configuration.")}finally{c.loading=!1}})()}saveConfig(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const i="catalogFirstLevel"===(c.searchFiltersForm.value.primaryCategoriesMode??"catalogFirstLevel")?{primaryCategoriesMode:"catalogFirstLevel",primaryRootName:"",filters:[]}:{primaryCategoriesMode:"rooted",primaryRootName:c.requirePrimaryRootName(),filters:c.buildFiltersPayload()},u=`${g1.c.BASE_URL}/config/filters`;yield(0,t5._)(c.http.patch(u,i)),(0,aF.Wh)({searchFilters:i}),yield c.syncFromBackend(),c.successMessage="Search and filters configuration saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving search filters configuration.")}finally{c.saving=!1}}})()}saveProvidedJson(){var c=this;return(0,C1.A)(function*(){if(!c.saving){c.showError=!1,c.showSuccess=!1,c.saving=!0;try{const t=c.parseProvidedJson(c.providedJson),l=c.normalizeProvidedSearchFiltersForSave(t),i=`${g1.c.BASE_URL}/config/filters`;yield(0,t5._)(c.http.patch(i,l)),(0,aF.Wh)({searchFilters:l}),yield c.syncFromBackend(),c.successMessage="Search filters JSON saved successfully.",c.showSuccess=!0,c.successTimeoutId=setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving provided JSON.")}finally{c.saving=!1}}})()}loadProvidedJsonIntoForm(){try{const c=this.parseProvidedJson(this.providedJson),t=this.normalizeRuntimeSearchFilters(c);this.searchFiltersForm.patchValue({primaryCategoriesMode:t.primaryCategoriesMode,primaryRootName:t.primaryRootName}),this.loadFilters(t.filters)}catch(c){this.handleError(c,"The provided JSON could not be loaded into the form.")}}onPrimaryModeChange(){this.isCatalogFirstLevelMode&&(this.searchFiltersForm.patchValue({primaryRootName:""}),this.loadFilters([]))}get isCatalogFirstLevelMode(){return"catalogFirstLevel"===this.searchFiltersForm.get("primaryCategoriesMode")?.value}syncFromBackend(){var c=this;return(0,C1.A)(function*(){const t=`${g1.c.BASE_URL}/config`,l=yield(0,t5._)(c.http.get(t)),i=c.normalizeRuntimeSearchFilters(l?.searchFilters??{});c.providedJson=JSON.stringify(i,null,2),c.searchFiltersForm.patchValue({primaryCategoriesMode:i.primaryCategoriesMode,primaryRootName:i.primaryRootName}),c.loadFilters(i.filters)})()}get filtersArray(){return this.searchFiltersForm.get("filters")}getOptionsArray(c){return this.filtersArray.at(c).get("options")}addFilter(){this.filtersArray.push(this.createFilterGroup())}removeFilter(c){this.filtersArray.removeAt(c)}addOption(c){this.getOptionsArray(c).push(this.createOptionGroup())}removeOption(c,t){this.getOptionsArray(c).removeAt(t)}clearOptionsForCategoryRoot(c){if("categoryRoot"!==this.filtersArray.at(c).get("source")?.value)return;const l=this.getOptionsArray(c);for(;l.length>0;)l.removeAt(0)}loadFilters(c){for(;this.filtersArray.length>0;)this.filtersArray.removeAt(0);for(const t of c)this.filtersArray.push(this.createFilterGroup(this.mapRuntimeFilter(t)))}mapRuntimeFilter(c){const t="categoryRoot"===c?.source?"categoryRoot":"configured",l="configured"===t&&Array.isArray(c?.children)?c.children.filter(i=>"string"==typeof i?.name&&""!==i.name.trim()).map(i=>({name:i.name.trim(),label:"string"==typeof i?.label?i.label:""})):[];return{name:"string"==typeof c?.name?c.name:"",label:"string"==typeof c?.label?c.label:"",source:t,rootName:"string"==typeof c?.rootName?c.rootName:"",options:l}}createFilterGroup(c){return new p.gE({name:new p.MJ(c?.name??"",[p.k0.required]),label:new p.MJ(c?.label??""),source:new p.MJ(c?.source??"configured",[p.k0.required]),rootName:new p.MJ(c?.rootName??""),options:new p.Yp((c?.options??[]).map(t=>this.createOptionGroup(t)))})}createOptionGroup(c){return new p.gE({name:new p.MJ(c?.name??"",[p.k0.required]),label:new p.MJ(c?.label??"")})}buildFiltersPayload(){return this.filtersArray.controls.map((c,t)=>{const l=(c.get("name")?.value??"").trim(),i=(c.get("label")?.value??"").trim(),u="categoryRoot"===c.get("source")?.value?"categoryRoot":"configured",C=(c.get("rootName")?.value??"").trim();if(!l)throw new Error(`Filter ${t+1}: name is required.`);const b={name:l,source:u};if(i&&(b.label=i),"categoryRoot"===u){if(!C)throw new Error(`Filter "${l}": root name is required when source is categoryRoot.`);b.rootName=C}else{const T=this.getOptionsArray(t).controls.map((W,u1)=>{const a1=(W.get("name")?.value??"").trim(),T1=(W.get("label")?.value??"").trim();if(!a1)throw new Error(`Filter "${l}", option ${u1+1}: name is required.`);const Y1={name:a1};return T1&&(Y1.label=T1),Y1});b.children=T}return b})}normalizeRuntimeSearchFilters(c){return"catalogFirstLevel"==("rooted"===c?.primaryCategoriesMode?"rooted":"catalogFirstLevel")?{primaryCategoriesMode:"catalogFirstLevel",primaryRootName:"",filters:[]}:{primaryCategoriesMode:"rooted",primaryRootName:"string"==typeof c?.primaryRootName?c.primaryRootName.trim():"",filters:Array.isArray(c?.filters)?c.filters:[]}}requirePrimaryRootName(){const c=(this.searchFiltersForm.value.primaryRootName??"").trim();if(!c)throw new Error("Primary root name is required when mode is rooted.");return c}parseProvidedJson(c){const t=c.trim();if(!t)throw new Error("Please provide a JSON value.");try{const l=JSON.parse(t);if(!l||"object"!=typeof l||Array.isArray(l))throw new Error("Provided JSON must be an object.");return l}catch{throw new Error("Provided JSON is invalid.")}}normalizeProvidedSearchFiltersForSave(c){if(Object.prototype.hasOwnProperty.call(c,"searchFilters"))throw new Error("Provide only the searchFilters JSON object, not the full /config payload.");return this.normalizeRuntimeSearchFilters(c)}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["search-filters-config"]],decls:7,vars:2,consts:[["data-cy","adminSearchFiltersConfig",1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4"],["for","search-filters-provided-json",1,"font-bold","text-lg","dark:text-white"],["id","search-filters-provided-json","data-cy","adminSearchFiltersJson","rows","8",1,"mt-2","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel","ngModelOptions"],[1,"flex","gap-2","justify-end"],["data-cy","adminLoadSearchFiltersJson","type","button",1,"text-primary-100","border","border-primary-100","hover:bg-primary-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["data-cy","adminSaveSearchFiltersJson","type","button",1,"text-white","bg-primary-100","rounded-lg","text-sm","px-4","py-2",3,"click","disabled","ngClass"],[1,"m-4","gap-4",3,"formGroup"],["for","search-filters-mode",1,"font-bold","text-lg","dark:text-white"],["formControlName","primaryCategoriesMode","id","search-filters-mode",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["value","catalogFirstLevel"],["value","rooted"],[1,"mb-2","p-3","text-sm","rounded-lg","text-blue-700","bg-blue-100","dark:bg-secondary-200","dark:text-blue-400"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","mr-4"],["data-cy","adminSaveSearchFiltersConfig","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"font-semibold"],["for","search-filters-root-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","primaryRootName","type","text","id","search-filters-root-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mt-6","flex","items-center","justify-between"],[1,"font-bold","text-lg","dark:text-white"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2",3,"click"],["formArrayName","filters",1,"space-y-4","mt-3"],[1,"p-4","border","border-gray-200","rounded-lg","bg-white","dark:bg-secondary-300","dark:border-secondary-200",3,"formGroupName"],[1,"grid","md:grid-cols-2","gap-4"],[1,"font-semibold","text-sm","dark:text-white"],["formControlName","name","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","label","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","source",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5",3,"change"],["value","configured"],["value","categoryRoot"],[1,"mt-4"],[1,"flex","justify-end","mt-4"],["type","button",1,"text-red-700","border","border-red-300","hover:bg-red-50","rounded-lg","text-sm","px-4","py-2",3,"click"],["formControlName","rootName","type","text",1,"mt-1","bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],[1,"flex","items-center","justify-between"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-xs","px-3","py-1.5",3,"click"],["formArrayName","options",1,"space-y-2","mt-2"],[1,"grid","md:grid-cols-3","gap-2",3,"formGroupName"],["formControlName","name","type","text","placeholder","Option name",1,"bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["formControlName","label","type","text","placeholder","Option label",1,"bg-gray-50","dark:bg-secondary-200","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","block","w-full","p-2.5"],["type","button",1,"text-red-700","border","border-red-300","hover:bg-red-50","rounded-lg","text-xs","px-3","py-2",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Search & filters"),e.k0s(),e.nrm(3,"hr",2),e.DNE(4,tQ2,6,0,"div",3)(5,dQ2,25,10),e.k0s(),e.DNE(6,fQ2,1,1,"error-message",4)),2&t&&(e.R7$(4),e.vxM(4,l.loading?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.vS,p.j4,p.JD,p.$R,p.v8,E0]})}}return n})();function mQ2(n,a){if(1&n&&(e.j41(0,"p",3),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",6),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,2,"ADMIN._defaultCatalogId"),": "),e.R7$(3),e.JRh(c.defaultCatalogId)}}function pQ2(n,a){1&n&&(e.j41(0,"p",3),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"ADMIN._noDefaultCatalogConfigured")))}function hQ2(n,a){1&n&&(e.j41(0,"div",4),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9),e.k0s(),e.joV(),e.j41(4,"span",10),e.EFF(5,"Loading..."),e.k0s()())}function gQ2(n,a){if(1&n&&(e.j41(0,"div",16),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.successMessage," ")}}function _Q2(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",11)(1,"label",12),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",13),e.j41(5,"label",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"textarea",15),e.k0s(),e.DNE(9,gQ2,2,1,"div",16),e.j41(10,"div",17)(11,"button",18),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveDefaultCatalog())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",19),e.nrm(15,"path",20),e.k0s()()()}if(2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.defaultCatalogForm),e.R7$(2),e.JRh(e.bMT(3,8,"ADMIN._name")),e.R7$(2),e.Y8G("ngClass",null!=(c=t.defaultCatalogForm.get("name"))&&c.invalid&&null!=(c=t.defaultCatalogForm.get("name"))&&c.touched?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,10,"CREATE_CATALOG._description")),e.R7$(3),e.vxM(9,t.showSuccess?9:-1),e.R7$(2),e.Y8G("disabled",t.defaultCatalogForm.invalid||t.loading)("ngClass",t.defaultCatalogForm.invalid||t.loading?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(13,12,"ADMIN._saveDefaultCatalog")," ")}}function LQ2(n,a){if(1&n&&e.nrm(0,"error-message",5),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let CQ2=(()=>{class n{constructor(c){this.api=c,this.loading=!1,this.loadingDefaultCatalog=!1,this.showError=!1,this.showSuccess=!1,this.errorMessage="",this.successMessage="",this.defaultCatalogId="",this.defaultCatalogForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(1e5)])})}ngOnInit(){this.loadDefaultCatalogInfo()}loadDefaultCatalogInfo(){var c=this;return(0,C1.A)(function*(){if(c.defaultCatalogId=g1.c.DFT_CATALOG_ID??"",c.defaultCatalogId){c.loadingDefaultCatalog=!0;try{const t=yield c.api.getCatalog(c.defaultCatalogId);c.defaultCatalogForm.patchValue({name:t?.name??"",description:t?.description??""})}catch(t){c.defaultCatalogId="",c.handleError(t,"There was an error while loading the default catalog.")}finally{c.loadingDefaultCatalog=!1}}})()}saveDefaultCatalog(){var c=this;return(0,C1.A)(function*(){if(c.defaultCatalogForm.invalid||c.loading)c.defaultCatalogForm.markAllAsTouched();else{c.loading=!0,c.showError=!1,c.showSuccess=!1;try{const t={name:c.defaultCatalogForm.value.name?.trim(),description:c.defaultCatalogForm.value.description??"",lifecycleStatus:"Active"};let l=c.defaultCatalogId;if(l?yield(0,t5._)(c.api.updateAdminCatalog(t,l)):l=(yield(0,t5._)(c.api.postAdminCatalog(t)))?.id??"",!l)throw new Error("Catalog ID not returned by backend");yield(0,t5._)(c.api.setDefaultCatalog(l)),c.defaultCatalogId=l,g1.c.DFT_CATALOG_ID=l,c.successMessage="Default catalog saved successfully.",c.showSuccess=!0,setTimeout(()=>{c.showSuccess=!1},3e3)}catch(t){c.handleError(t,"There was an error while saving the default catalog.")}finally{c.loading=!1}}})()}handleError(c,t){this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:c?.message?c.message:t,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["default-catalog"]],decls:10,vars:6,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white"],[1,"h-px","m-4","bg-gray-300","dark:bg-gray-200","border-0"],[1,"m-4","text-sm","text-gray-600","dark:text-gray-300"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","py-6"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"font-semibold"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-10","h-10","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"m-4","gap-4",3,"formGroup"],["for","default-catalog-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminDefaultCatalogName","formControlName","name","type","text","id","default-catalog-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","default-catalog-description",1,"font-bold","text-lg","dark:text-white"],["data-cy","adminDefaultCatalogDescription","formControlName","description","id","default-catalog-description","rows","5","maxLength","100000",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["role","alert",1,"m-4","p-4","text-sm","rounded-lg","text-green-700","bg-green-100","dark:bg-secondary-200","dark:text-green-400"],[1,"flex","w-full","justify-end","mr-4"],["data-cy","adminSaveDefaultCatalog","type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",2),e.DNE(5,mQ2,5,4,"p",3)(6,pQ2,3,3)(7,hQ2,6,0,"div",4)(8,_Q2,16,14),e.k0s(),e.DNE(9,LQ2,1,1,"error-message",5)),2&t&&(e.R7$(2),e.JRh(e.bMT(3,4,"ADMIN._defaultCatalog")),e.R7$(3),e.vxM(5,l.defaultCatalogId?5:6),e.R7$(2),e.vxM(7,l.loadingDefaultCatalog?7:8),e.R7$(2),e.vxM(9,l.showError?9:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();function zQ2(n,a){1&n&&e.nrm(0,"admin-categories")}function MQ2(n,a){1&n&&e.nrm(0,"create-category")}function xQ2(n,a){if(1&n&&e.nrm(0,"update-category",27),2&n){const c=e.XpG();e.Y8G("category",c.category_to_update)}}function bQ2(n,a){1&n&&e.nrm(0,"verification")}function yQ2(n,a){1&n&&e.nrm(0,"operator-revenue-sharing")}function FQ2(n,a){1&n&&e.nrm(0,"email")}function vQ2(n,a){1&n&&e.nrm(0,"analytics-config")}function kQ2(n,a){1&n&&e.nrm(0,"search-filters-config")}function wQ2(n,a){1&n&&e.nrm(0,"features-config")}function SQ2(n,a){1&n&&e.nrm(0,"default-catalog")}let NQ2=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.show_categories=!0,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{"AdminCategories"===i.type&&1==i.value&&this.goToCategories(),"CreateCategory"===i.type&&1==i.value&&this.goToCreateCategories(),"UpdateCategory"===i.type&&(this.category_to_update=i.value,this.goToUpdateCategories())})}ngOnInit(){console.log("init")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}goToCategories(){this.selectCategories(),this.show_categories=!0,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToCreateCategories(){this.show_categories=!1,this.show_create_categories=!0,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToUpdateCategories(){this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!0,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToVerification(){this.selectVerification(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!0,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToRevenue(){this.selectRevenue(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!0,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToEmail(){this.selectEmail(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!0,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToAnalytics(){this.selectAnalytics(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!0,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToSearchFilters(){this.selectSearchFilters(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!0,this.show_features=!1,this.show_default_catalog=!1,this.cdr.detectChanges()}goToFeatures(){this.selectFeatures(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!0,this.show_default_catalog=!1,this.cdr.detectChanges()}goToDefaultCatalog(){this.selectDefaultCatalog(),this.show_categories=!1,this.show_create_categories=!1,this.show_update_categories=!1,this.show_verification=!1,this.show_revenue=!1,this.show_email=!1,this.show_analytics=!1,this.show_search_filters=!1,this.show_features=!1,this.show_default_catalog=!0,this.cdr.detectChanges()}selectCategories(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectVerification(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectEmail(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectAnalytics(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.selectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectSearchFilters(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.selectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectFeatures(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.selectMenu(b,"text-white bg-primary-100"),this.unselectMenu(T,"text-white bg-primary-100")}selectDefaultCatalog(){let c=document.getElementById("categories-button"),t=document.getElementById("verify-button"),l=document.getElementById("revenue-button"),i=document.getElementById("email-button"),u=document.getElementById("analytics-button"),C=document.getElementById("search-filters-button"),b=document.getElementById("features-button"),T=document.getElementById("default-catalog-button");this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100"),this.unselectMenu(C,"text-white bg-primary-100"),this.unselectMenu(b,"text-white bg-primary-100"),this.selectMenu(T,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-admin"]],decls:99,vars:43,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"px-4","pt-2","pb-1","text-xs","font-semibold","uppercase","tracking-wide","text-gray-500","dark:text-gray-400"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"my-1","border-t","border-gray-100","dark:border-gray-600"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","dark:text-white","mb-8","space-y-4"],[1,"mb-2","px-1","text-xs","font-semibold","uppercase","tracking-wide","text-gray-500","dark:text-gray-400"],[1,"bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600"],["id","default-catalog-button","data-cy","adminDefaultCatalogSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","categories-button","data-cy","adminCategoriesSection","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","verify-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","revenue-button",1,"block","w-full","px-4","py-2","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","email-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","rounded-t-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","analytics-button","data-cy","adminAnalyticsSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","search-filters-button","data-cy","adminSearchFiltersSection",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","features-button","data-cy","adminFeaturesSection",1,"block","w-full","px-4","py-2","rounded-b-lg","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"category"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8,"My offerings"),e.k0s()(),e.j41(9,"div",5)(10,"button",6),e.qSk(),e.j41(11,"svg",7),e.nrm(12,"path",8),e.k0s(),e.EFF(13," Administration "),e.k0s()()(),e.joV(),e.j41(14,"div",9)(15,"ul",10)(16,"li",11),e.EFF(17," Catalog "),e.k0s(),e.j41(18,"li")(19,"a",12),e.bIt("click",function(){return l.goToDefaultCatalog()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"li")(23,"a",12),e.bIt("click",function(){return l.goToCategories()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.nrm(26,"li",13),e.j41(27,"li",11),e.EFF(28," Business "),e.k0s(),e.j41(29,"li")(30,"a",12),e.bIt("click",function(){return l.goToVerification()}),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li")(34,"a",12),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.nrm(37,"li",13),e.j41(38,"li",11),e.EFF(39," Config "),e.k0s(),e.j41(40,"li")(41,"a",12),e.bIt("click",function(){return l.goToEmail()}),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"li")(45,"a",12),e.bIt("click",function(){return l.goToAnalytics()}),e.EFF(46,"Analytics"),e.k0s()(),e.j41(47,"li")(48,"a",12),e.bIt("click",function(){return l.goToSearchFilters()}),e.EFF(49,"Search & filters"),e.k0s()(),e.j41(50,"li")(51,"a",12),e.bIt("click",function(){return l.goToFeatures()}),e.EFF(52,"Features"),e.k0s()()()(),e.j41(53,"div",14)(54,"div",15)(55,"div",16)(56,"div")(57,"p",17),e.EFF(58,"Catalog"),e.k0s(),e.j41(59,"div",18)(60,"button",19),e.bIt("click",function(){return l.goToDefaultCatalog()}),e.EFF(61),e.nI1(62,"translate"),e.k0s(),e.j41(63,"button",20),e.bIt("click",function(){return l.goToCategories()}),e.EFF(64),e.nI1(65,"translate"),e.k0s()()(),e.j41(66,"div")(67,"p",17),e.EFF(68,"Business"),e.k0s(),e.j41(69,"div",18)(70,"button",21),e.bIt("click",function(){return l.goToVerification()}),e.EFF(71),e.nI1(72,"translate"),e.k0s(),e.j41(73,"button",22),e.bIt("click",function(){return l.goToRevenue()}),e.EFF(74),e.nI1(75,"translate"),e.k0s()()(),e.j41(76,"div")(77,"p",17),e.EFF(78,"Config"),e.k0s(),e.j41(79,"div",18)(80,"button",23),e.bIt("click",function(){return l.goToEmail()}),e.EFF(81),e.nI1(82,"translate"),e.k0s(),e.j41(83,"button",24),e.bIt("click",function(){return l.goToAnalytics()}),e.EFF(84," Analytics "),e.k0s(),e.j41(85,"button",25),e.bIt("click",function(){return l.goToSearchFilters()}),e.EFF(86," Search & filters "),e.k0s(),e.j41(87,"button",26),e.bIt("click",function(){return l.goToFeatures()}),e.EFF(88," Features "),e.k0s()()()()(),e.DNE(89,zQ2,1,0,"admin-categories")(90,MQ2,1,0,"create-category")(91,xQ2,1,1,"update-category",27)(92,bQ2,1,0,"verification")(93,yQ2,1,0,"operator-revenue-sharing")(94,FQ2,1,0,"email")(95,vQ2,1,0,"analytics-config")(96,kQ2,1,0,"search-filters-config")(97,wQ2,1,0,"features-config")(98,SQ2,1,0,"default-catalog"),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,21,"ADMIN._admin")),e.R7$(17),e.JRh(e.bMT(21,23,"ADMIN._defaultCatalog")),e.R7$(4),e.JRh(e.bMT(25,25,"ADMIN._categories")),e.R7$(7),e.JRh(e.bMT(32,27,"ADMIN._verification")),e.R7$(4),e.JRh(e.bMT(36,29,"ADMIN._revenue")),e.R7$(7),e.JRh(e.bMT(43,31,"ADMIN._email")),e.R7$(19),e.SpI(" ",e.bMT(62,33,"ADMIN._defaultCatalog")," "),e.R7$(3),e.SpI(" ",e.bMT(65,35,"ADMIN._categories")," "),e.R7$(7),e.SpI(" ",e.bMT(72,37,"ADMIN._verification")," "),e.R7$(3),e.SpI(" ",e.bMT(75,39,"ADMIN._revenue")," "),e.R7$(7),e.SpI(" ",e.bMT(82,41,"ADMIN._email")," "),e.R7$(8),e.vxM(89,l.show_categories?89:-1),e.R7$(),e.vxM(90,l.show_create_categories?90:-1),e.R7$(),e.vxM(91,l.show_update_categories?91:-1),e.R7$(),e.vxM(92,l.show_verification?92:-1),e.R7$(),e.vxM(93,l.show_revenue?93:-1),e.R7$(),e.vxM(94,l.show_email?94:-1),e.R7$(),e.vxM(95,l.show_analytics?95:-1),e.R7$(),e.vxM(96,l.show_search_filters?96:-1),e.R7$(),e.vxM(97,l.show_features?97:-1),e.R7$(),e.vxM(98,l.show_default_catalog?98:-1))},dependencies:[Dw1,NW2,WW2,pJ2,$J2,BJ2,YJ2,eQ2,uQ2,CQ2,s1.D9]})}}return n})();const Gd1=(n,a)=>a.id,YG=(n,a)=>({"break-all":n,"break-words":a});function EQ2(n,a){1&n&&(e.j41(0,"div",4),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function DQ2(n,a){if(1&n&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name)}}function TQ2(n,a){1&n&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CATALOGS._no_cat")))}function RQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToCatalogSearch(l.id))}),e.j41(1,"div",13)(2,"h5",14),e.EFF(3),e.k0s(),e.nrm(4,"markdown",15),e.nI1(5,"translate"),e.nrm(6,"hr",16),e.j41(7,"div",17),e.Z7z(8,DQ2,2,5,"span",18,Gd1,!1,TQ2,3,3,"span",19),e.k0s(),e.j41(11,"div",20)(12,"button",21),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).showFullDesc(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(13,"svg",22)(14,"g",23),e.nrm(15,"path",24)(16,"path",25),e.k0s()(),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(9,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("data",c.description?c.description:e.bMT(5,5,"CATALOGS._no_desc")),e.R7$(4),e.Dyx(c.category),e.R7$(9),e.SpI(" ",e.bMT(18,7,"CARD._details")," ")}}function AQ2(n,a){if(1&n&&(e.j41(0,"div",10),e.Z7z(1,RQ2,19,12,"div",11,Gd1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.catalogs)}}function IQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",26)(1,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",28),e.nrm(4,"path",29),e.k0s()()()}}function PQ2(n,a){if(1&n&&e.DNE(0,IQ2,5,0,"div",26),2&n){const c=e.XpG();e.vxM(0,c.page_check?0:-1)}}function jQ2(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function $Q2(n,a){if(1&n&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",e.l_i(2,YG,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function OQ2(n,a){1&n&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CATALOGS._no_cat")," "))}function BQ2(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",31)(2,"div",32),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(3,"div",33)(4,"h5",34),e.EFF(5),e.k0s()(),e.nrm(6,"hr",16),e.j41(7,"div",35)(8,"div",36),e.nrm(9,"markdown",37),e.nI1(10,"translate"),e.k0s()(),e.nrm(11,"hr",16),e.j41(12,"div",38),e.Z7z(13,$Q2,2,5,"span",39,Gd1,!1,OQ2,3,3,"span",40),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showDesc?"backdrop-blur-sm":""),e.R7$(5),e.SpI(" ",null==c.showingCat?null:c.showingCat.name," "),e.R7$(4),e.Y8G("ngClass",e.l_i(7,YG,c.hasLongWord(c.showingCat.description,20),!c.hasLongWord(c.showingCat.description,20)))("data",c.showingCat.description?c.showingCat.description:e.bMT(10,5,"CATALOGS._no_desc")),e.R7$(4),e.Dyx(c.showingCat.category)}}let VQ2=(()=>{class n{constructor(c,t,l,i){this.router=c,this.api=t,this.cdr=l,this.paginationService=i,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.searchField=new p.MJ,this.faEye=BC1,this.showDesc=!1}onClick(){1==this.showDesc&&(this.showDesc=!1,this.cdr.detectChanges())}ngOnInit(){this.loading=!0,this.getCatalogs(!1);let c=document.querySelector("[type=search]");c?.addEventListener("input",t=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))})}getCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.filter};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogs.bind(t.api));t.page_check=i.page_check,t.catalogs=i.items.filter(u=>u.id!==g1.c.DFT_CATALOG_ID),t.nextCatalogs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}filterCatalogs(){this.filter=this.searchField.value,this.page=0,this.getCatalogs(!1)}goToCatalogSearch(c){this.router.navigate(["/search/catalogue",c])}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getCatalogs(!0)})()}showFullDesc(c){this.showDesc=!0,this.showingCat=c}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-catalogs"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:13,vars:9,consts:[[1,"container","mx-auto","pt-2","mb-8"],["data-cy","cataloguesAllHeader",1,"mb-2","text-center","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"mb-8","text-lg","font-normal","text-gray-500","lg:text-xl","sm:px-16","xl:px-48","dark:text-secondary-50","text-center"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["id","details-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-40","flex","flex-col","lg:flex-row","justify-center","overflow-y-auto","overflow-x-hidden","px-4","pt-[80px]","lg:pt-0","lg:items-center",3,"ngClass"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"w-full","p-4","md:grid","md:grid-cols-2","gap-4","lg:grid-cols-4"],["data-cy","cataloguesList",1,"block","cursor-pointer","rounded-lg","bg-cover","mb-4","md:mb-0",2,"background-image","url(assets/logos/dome-logo-element-colour.png)"],["data-cy","cataloguesList",1,"block","cursor-pointer","rounded-lg","bg-cover","mb-4","md:mb-0",2,"background-image","url(assets/logos/dome-logo-element-colour.png)",3,"click"],[1,"block","w-full","h-full","p-6","bg-opacity-100","bg-secondary-50","rounded-lg","dark:bg-secondary-100","bg-secondary-50/90","dark:bg-secondary-100/90","bg-cover"],["data-cy","cataloguesTitle",1,"text-2xl","font-bold","tracking-tight","line-clamp-4","text-primary-100","dark:text-white","text-wrap","break-words",3,"ngClass"],["data-cy","cataloguesDescription",1,"line-clamp-[8]","text-wrap","break-all","dark:text-white","text-gray-900",3,"data"],[1,"h-px","my-1","bg-primary-100","border-0","dark:bg-primary-100"],["data-cy","cataloguesCategories",1,""],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","me-2","px-2.5","py-0.5","rounded-full","w-fit","text-wrap","break-words",3,"ngClass"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","me-2","px-2.5","py-0.5","rounded-full","w-fit","text-wrap","break-words"],[1,"flex","sticky","top-[100vh]","justify-center","align-items-bottom"],["data-cy","cataloguesViewDetails","type","button",1,"flex","mt-2","items-center","align-items-bottom","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-primary-100","dark:hover:bg-primary-50","dark:focus:ring-primary-100","mr-1",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],[1,"flex","pt-8","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","pt-8","flex","justify-center","align-middle"],[1,"relative","w-full","max-w-4xl"],["data-cy","cataloguesDetailsContents",1,"relative","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","bg-cover","bg-right-bottom","overflow-y-auto","max-h-[calc(100vh-160px)]",3,"click"],[1,"w-full","rounded-t-lg","p-4"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"p-4"],[1,"max-h-[300px]","overflow-y-auto","mb-4","p-4","rounded","border","border-primary-100/10","bg-primary-100/5","dark:bg-white/5"],[1,"dark:text-secondary-50","text-wrap","break-words",3,"ngClass","data"],["data-cy","cataloguesCategoriesList",1,"p-4","flex","flex-wrap","gap-2"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","px-2.5","py-0.5","rounded-full","text-wrap","break-words",3,"ngClass"],[1,"inline-block","bg-blue-300","text-primary-100","text-xs","font-bold","px-2.5","py-0.5","rounded-full","text-wrap","break-words"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,EQ2,6,0,"div",4)(9,AQ2,3,0)(10,PQ2,1,1)(11,jQ2,6,0),e.k0s(),e.DNE(12,BQ2,16,10,"div",5)),2&t&&(e.R7$(3),e.JRh(e.bMT(4,5,"CATALOGS._all_catalogs")),e.R7$(3),e.JRh(e.bMT(7,7,"CATALOGS._choose")),e.R7$(2),e.vxM(8,l.loading?8:9),e.R7$(2),e.vxM(10,l.loading_more?11:10),e.R7$(2),e.vxM(12,l.showDesc?12:-1))},dependencies:[_.YU,N0,s1.D9]})}}return n})();class oF{static{this.BASE_URL=g1.c.BASE_URL}static{this.CHARGING=g1.c.CHARGING}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a){this.http=a}completePayment(a){const c={confirm_action:a.action,reference:a.ref,client:a.client,signature:a.sig};return a.jwt?c.jwt=a.jwt:a.session_id&&(c.session_id=a.session_id),this.http.post(`${oF.BASE_URL}${oF.CHARGING}/api/orderManagement/orders/confirm/`,c,{observe:"response"})}static{this.\u0275fac=function(c){return new(c||oF)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:oF,factory:oF.\u0275fac,providedIn:"root"})}}const qG=[{text:"\u{1f1fa}\u{1f1f8} +1 United States",code:"+1",flag:"\u{1f1fa}\u{1f1f8}",country:"US"},{text:"\u{1f1e8}\u{1f1e6} +1 Canada",code:"+1",flag:"\u{1f1e8}\u{1f1e6}",country:"CA"},{text:"\u{1f1f7}\u{1f1fa} +7 Russia",code:"+7",flag:"\u{1f1f7}\u{1f1fa}",country:"RU"},{text:"\u{1f1ea}\u{1f1ec} +20 Egypt",code:"+20",flag:"\u{1f1ea}\u{1f1ec}",country:"EG"},{text:"\u{1f1ff}\u{1f1e6} +27 South Africa",code:"+27",flag:"\u{1f1ff}\u{1f1e6}",country:"ZA"},{text:"\u{1f1ec}\u{1f1f7} +30 Greece",code:"+30",flag:"\u{1f1ec}\u{1f1f7}",country:"GR"},{text:"\u{1f1f3}\u{1f1f1} +31 Netherlands",code:"+31",flag:"\u{1f1f3}\u{1f1f1}",country:"NL"},{text:"\u{1f1e7}\u{1f1ea} +32 Belgium",code:"+32",flag:"\u{1f1e7}\u{1f1ea}",country:"BE"},{text:"\u{1f1eb}\u{1f1f7} +33 France",code:"+33",flag:"\u{1f1eb}\u{1f1f7}",country:"FR"},{text:"\u{1f1ea}\u{1f1f8} +34 Spain",code:"+34",flag:"\u{1f1ea}\u{1f1f8}",country:"ES"},{text:"\u{1f1ed}\u{1f1fa} +36 Hungary",code:"+36",flag:"\u{1f1ed}\u{1f1fa}",country:"HU"},{text:"\u{1f1ee}\u{1f1f9} +39 Italy",code:"+39",flag:"\u{1f1ee}\u{1f1f9}",country:"IT"},{text:"\u{1f1f7}\u{1f1f4} +40 Romania",code:"+40",flag:"\u{1f1f7}\u{1f1f4}",country:"RO"},{text:"\u{1f1e8}\u{1f1ed} +41 Switzerland",code:"+41",flag:"\u{1f1e8}\u{1f1ed}",country:"CH"},{text:"\u{1f1e6}\u{1f1f9} +43 Austria",code:"+43",flag:"\u{1f1e6}\u{1f1f9}",country:"AT"},{text:"\u{1f1ec}\u{1f1e7} +44 United Kingdom",code:"+44",flag:"\u{1f1ec}\u{1f1e7}",country:"GB"},{text:"\u{1f1e9}\u{1f1f0} +45 Denmark",code:"+45",flag:"\u{1f1e9}\u{1f1f0}",country:"DK"},{text:"\u{1f1f8}\u{1f1ea} +46 Sweden",code:"+46",flag:"\u{1f1f8}\u{1f1ea}",country:"SE"},{text:"\u{1f1f3}\u{1f1f4} +47 Norway",code:"+47",flag:"\u{1f1f3}\u{1f1f4}",country:"NO"},{text:"\u{1f1f5}\u{1f1f1} +48 Poland",code:"+48",flag:"\u{1f1f5}\u{1f1f1}",country:"PL"},{text:"\u{1f1e9}\u{1f1ea} +49 Germany",code:"+49",flag:"\u{1f1e9}\u{1f1ea}",country:"DE"},{text:"\u{1f1f5}\u{1f1ea} +51 Peru",code:"+51",flag:"\u{1f1f5}\u{1f1ea}",country:"PE"},{text:"\u{1f1f2}\u{1f1fd} +52 Mexico",code:"+52",flag:"\u{1f1f2}\u{1f1fd}",country:"MX"},{text:"\u{1f1e8}\u{1f1fa} +53 Cuba",code:"+53",flag:"\u{1f1e8}\u{1f1fa}",country:"CU"},{text:"\u{1f1e6}\u{1f1f7} +54 Argentina",code:"+54",flag:"\u{1f1e6}\u{1f1f7}",country:"AR"},{text:"\u{1f1e7}\u{1f1f7} +55 Brazil",code:"+55",flag:"\u{1f1e7}\u{1f1f7}",country:"BR"},{text:"\u{1f1e8}\u{1f1f1} +56 Chile",code:"+56",flag:"\u{1f1e8}\u{1f1f1}",country:"CL"},{text:"\u{1f1e8}\u{1f1f4} +57 Colombia",code:"+57",flag:"\u{1f1e8}\u{1f1f4}",country:"CO"},{text:"\u{1f1fb}\u{1f1ea} +58 Venezuela",code:"+58",flag:"\u{1f1fb}\u{1f1ea}",country:"VE"},{text:"\u{1f1f2}\u{1f1fe} +60 Malaysia",code:"+60",flag:"\u{1f1f2}\u{1f1fe}",country:"MY"},{text:"\u{1f1e6}\u{1f1fa} +61 Australia",code:"+61",flag:"\u{1f1e6}\u{1f1fa}",country:"AU"},{text:"\u{1f1ee}\u{1f1e9} +62 Indonesia",code:"+62",flag:"\u{1f1ee}\u{1f1e9}",country:"ID"},{text:"\u{1f1f5}\u{1f1ed} +63 Philippines",code:"+63",flag:"\u{1f1f5}\u{1f1ed}",country:"PH"},{text:"\u{1f1f3}\u{1f1ff} +64 New Zealand",code:"+64",flag:"\u{1f1f3}\u{1f1ff}",country:"NZ"},{text:"\u{1f1f8}\u{1f1ec} +65 Singapore",code:"+65",flag:"\u{1f1f8}\u{1f1ec}",country:"SG"},{text:"\u{1f1f9}\u{1f1ed} +66 Thailand",code:"+66",flag:"\u{1f1f9}\u{1f1ed}",country:"TH"},{text:"\u{1f1ef}\u{1f1f5} +81 Japan",code:"+81",flag:"\u{1f1ef}\u{1f1f5}",country:"JP"},{text:"\u{1f1f0}\u{1f1f7} +82 South Korea",code:"+82",flag:"\u{1f1f0}\u{1f1f7}",country:"KR"},{text:"\u{1f1fb}\u{1f1f3} +84 Vietnam",code:"+84",flag:"\u{1f1fb}\u{1f1f3}",country:"VN"},{text:"\u{1f1e8}\u{1f1f3} +86 China",code:"+86",flag:"\u{1f1e8}\u{1f1f3}",country:"CN"},{text:"\u{1f1f9}\u{1f1f7} +90 Turkey",code:"+90",flag:"\u{1f1f9}\u{1f1f7}",country:"TR"},{text:"\u{1f1ee}\u{1f1f3} +91 India",code:"+91",flag:"\u{1f1ee}\u{1f1f3}",country:"IN"},{text:"\u{1f1f5}\u{1f1f0} +92 Pakistan",code:"+92",flag:"\u{1f1f5}\u{1f1f0}",country:"PK"},{text:"\u{1f1e6}\u{1f1eb} +93 Afghanistan",code:"+93",flag:"\u{1f1e6}\u{1f1eb}",country:"AF"},{text:"\u{1f1f1}\u{1f1f0} +94 Sri Lanka",code:"+94",flag:"\u{1f1f1}\u{1f1f0}",country:"LK"},{text:"\u{1f1f2}\u{1f1f2} +95 Myanmar",code:"+95",flag:"\u{1f1f2}\u{1f1f2}",country:"MM"},{text:"\u{1f1ee}\u{1f1f7} +98 Iran",code:"+98",flag:"\u{1f1ee}\u{1f1f7}",country:"IR"},{text:"\u{1f1f2}\u{1f1e6} +212 Morocco",code:"+212",flag:"\u{1f1f2}\u{1f1e6}",country:"MA"},{text:"\u{1f1e9}\u{1f1ff} +213 Algeria",code:"+213",flag:"\u{1f1e9}\u{1f1ff}",country:"DZ"},{text:"\u{1f1f9}\u{1f1f3} +216 Tunisia",code:"+216",flag:"\u{1f1f9}\u{1f1f3}",country:"TN"},{text:"\u{1f1f1}\u{1f1fe} +218 Libya",code:"+218",flag:"\u{1f1f1}\u{1f1fe}",country:"LY"},{text:"\u{1f1ec}\u{1f1f2} +220 Gambia",code:"+220",flag:"\u{1f1ec}\u{1f1f2}",country:"GM"},{text:"\u{1f1f8}\u{1f1f3} +221 Senegal",code:"+221",flag:"\u{1f1f8}\u{1f1f3}",country:"SN"},{text:"\u{1f1f2}\u{1f1f7} +222 Mauritania",code:"+222",flag:"\u{1f1f2}\u{1f1f7}",country:"MR"},{text:"\u{1f1f2}\u{1f1f1} +223 Mali",code:"+223",flag:"\u{1f1f2}\u{1f1f1}",country:"ML"},{text:"\u{1f1ec}\u{1f1f3} +224 Guinea",code:"+224",flag:"\u{1f1ec}\u{1f1f3}",country:"GN"},{text:"\u{1f1e8}\u{1f1ee} +225 Ivory Coast",code:"+225",flag:"\u{1f1e8}\u{1f1ee}",country:"CI"},{text:"\u{1f1e7}\u{1f1eb} +226 Burkina Faso",code:"+226",flag:"\u{1f1e7}\u{1f1eb}",country:"BF"},{text:"\u{1f1f3}\u{1f1ea} +227 Niger",code:"+227",flag:"\u{1f1f3}\u{1f1ea}",country:"NE"},{text:"\u{1f1f9}\u{1f1ec} +228 Togo",code:"+228",flag:"\u{1f1f9}\u{1f1ec}",country:"TG"},{text:"\u{1f1e7}\u{1f1ef} +229 Benin",code:"+229",flag:"\u{1f1e7}\u{1f1ef}",country:"BJ"},{text:"\u{1f1f2}\u{1f1fa} +230 Mauritius",code:"+230",flag:"\u{1f1f2}\u{1f1fa}",country:"MU"},{text:"\u{1f1f1}\u{1f1f7} +231 Liberia",code:"+231",flag:"\u{1f1f1}\u{1f1f7}",country:"LR"},{text:"\u{1f1f8}\u{1f1f1} +232 Sierra Leone",code:"+232",flag:"\u{1f1f8}\u{1f1f1}",country:"SL"},{text:"\u{1f1ec}\u{1f1ed} +233 Ghana",code:"+233",flag:"\u{1f1ec}\u{1f1ed}",country:"GH"},{text:"\u{1f1f3}\u{1f1ec} +234 Nigeria",code:"+234",flag:"\u{1f1f3}\u{1f1ec}",country:"NG"},{text:"\u{1f1f9}\u{1f1e9} +235 Chad",code:"+235",flag:"\u{1f1f9}\u{1f1e9}",country:"TD"},{text:"\u{1f1e8}\u{1f1eb} +236 Central African Republic",code:"+236",flag:"\u{1f1e8}\u{1f1eb}",country:"CF"},{text:"\u{1f1e8}\u{1f1f2} +237 Cameroon",code:"+237",flag:"\u{1f1e8}\u{1f1f2}",country:"CM"},{text:"\u{1f1e8}\u{1f1fb} +238 Cape Verde",code:"+238",flag:"\u{1f1e8}\u{1f1fb}",country:"CV"},{text:"\u{1f1f8}\u{1f1f9} +239 Sao Tome and Principe",code:"+239",flag:"\u{1f1f8}\u{1f1f9}",country:"ST"},{text:"\u{1f1ec}\u{1f1f6} +240 Equatorial Guinea",code:"+240",flag:"\u{1f1ec}\u{1f1f6}",country:"GQ"},{text:"\u{1f1ec}\u{1f1e6} +241 Gabon",code:"+241",flag:"\u{1f1ec}\u{1f1e6}",country:"GA"},{text:"\u{1f1e8}\u{1f1ec} +242 Republic of the Congo",code:"+242",flag:"\u{1f1e8}\u{1f1ec}",country:"CG"},{text:"\u{1f1e8}\u{1f1e9} +243 Democratic Republic of the Congo",code:"+243",flag:"\u{1f1e8}\u{1f1e9}",country:"CD"},{text:"\u{1f1e6}\u{1f1f4} +244 Angola",code:"+244",flag:"\u{1f1e6}\u{1f1f4}",country:"AO"},{text:"\u{1f1ec}\u{1f1fc} +245 Guinea-Bissau",code:"+245",flag:"\u{1f1ec}\u{1f1fc}",country:"GW"},{text:"\u{1f1ee}\u{1f1f4} +246 British Indian Ocean Territory",code:"+246",flag:"\u{1f1ee}\u{1f1f4}",country:"IO"},{text:"\u{1f1f8}\u{1f1e8} +248 Seychelles",code:"+248",flag:"\u{1f1f8}\u{1f1e8}",country:"SC"},{text:"\u{1f1f8}\u{1f1e9} +249 Sudan",code:"+249",flag:"\u{1f1f8}\u{1f1e9}",country:"SD"},{text:"\u{1f1f7}\u{1f1fc} +250 Rwanda",code:"+250",flag:"\u{1f1f7}\u{1f1fc}",country:"RW"},{text:"\u{1f1ea}\u{1f1f9} +251 Ethiopia",code:"+251",flag:"\u{1f1ea}\u{1f1f9}",country:"ET"},{text:"\u{1f1f8}\u{1f1f4} +252 Somalia",code:"+252",flag:"\u{1f1f8}\u{1f1f4}",country:"SO"},{text:"\u{1f1e9}\u{1f1ef} +253 Djibouti",code:"+253",flag:"\u{1f1e9}\u{1f1ef}",country:"DJ"},{text:"\u{1f1f0}\u{1f1ea} +254 Kenya",code:"+254",flag:"\u{1f1f0}\u{1f1ea}",country:"KE"},{text:"\u{1f1f9}\u{1f1ff} +255 Tanzania",code:"+255",flag:"\u{1f1f9}\u{1f1ff}",country:"TZ"},{text:"\u{1f1fa}\u{1f1ec} +256 Uganda",code:"+256",flag:"\u{1f1fa}\u{1f1ec}",country:"UG"},{text:"\u{1f1e7}\u{1f1ee} +257 Burundi",code:"+257",flag:"\u{1f1e7}\u{1f1ee}",country:"BI"},{text:"\u{1f1f2}\u{1f1ff} +258 Mozambique",code:"+258",flag:"\u{1f1f2}\u{1f1ff}",country:"MZ"},{text:"\u{1f1ff}\u{1f1f2} +260 Zambia",code:"+260",flag:"\u{1f1ff}\u{1f1f2}",country:"ZM"},{text:"\u{1f1f2}\u{1f1ec} +261 Madagascar",code:"+261",flag:"\u{1f1f2}\u{1f1ec}",country:"MG"},{text:"\u{1f1f7}\u{1f1ea} +262 Reunion",code:"+262",flag:"\u{1f1f7}\u{1f1ea}",country:"RE"},{text:"\u{1f1ff}\u{1f1fc} +263 Zimbabwe",code:"+263",flag:"\u{1f1ff}\u{1f1fc}",country:"ZW"},{text:"\u{1f1f3}\u{1f1e6} +264 Namibia",code:"+264",flag:"\u{1f1f3}\u{1f1e6}",country:"NA"},{text:"\u{1f1f2}\u{1f1fc} +265 Malawi",code:"+265",flag:"\u{1f1f2}\u{1f1fc}",country:"MW"},{text:"\u{1f1f1}\u{1f1f8} +266 Lesotho",code:"+266",flag:"\u{1f1f1}\u{1f1f8}",country:"LS"},{text:"\u{1f1e7}\u{1f1fc} +267 Botswana",code:"+267",flag:"\u{1f1e7}\u{1f1fc}",country:"BW"},{text:"\u{1f1f8}\u{1f1ff} +268 Eswatini",code:"+268",flag:"\u{1f1f8}\u{1f1ff}",country:"SZ"},{text:"\u{1f1f0}\u{1f1f2} +269 Comoros",code:"+269",flag:"\u{1f1f0}\u{1f1f2}",country:"KM"},{text:"\u{1f1f8}\u{1f1ed} +290 Saint Helena",code:"+290",flag:"\u{1f1f8}\u{1f1ed}",country:"SH"},{text:"\u{1f1ea}\u{1f1f7} +291 Eritrea",code:"+291",flag:"\u{1f1ea}\u{1f1f7}",country:"ER"},{text:"\u{1f1e6}\u{1f1fc} +297 Aruba",code:"+297",flag:"\u{1f1e6}\u{1f1fc}",country:"AW"},{text:"\u{1f1eb}\u{1f1f4} +298 Faroe Islands",code:"+298",flag:"\u{1f1eb}\u{1f1f4}",country:"FO"},{text:"\u{1f1ec}\u{1f1f1} +299 Greenland",code:"+299",flag:"\u{1f1ec}\u{1f1f1}",country:"GL"},{text:"\u{1f1ec}\u{1f1ee} +350 Gibraltar",code:"+350",flag:"\u{1f1ec}\u{1f1ee}",country:"GI"},{text:"\u{1f1f5}\u{1f1f9} +351 Portugal",code:"+351",flag:"\u{1f1f5}\u{1f1f9}",country:"PT"},{text:"\u{1f1f1}\u{1f1fa} +352 Luxembourg",code:"+352",flag:"\u{1f1f1}\u{1f1fa}",country:"LU"},{text:"\u{1f1ee}\u{1f1ea} +353 Ireland",code:"+353",flag:"\u{1f1ee}\u{1f1ea}",country:"IE"},{text:"\u{1f1ee}\u{1f1f8} +354 Iceland",code:"+354",flag:"\u{1f1ee}\u{1f1f8}",country:"IS"},{text:"\u{1f1e6}\u{1f1f1} +355 Albania",code:"+355",flag:"\u{1f1e6}\u{1f1f1}",country:"AL"},{text:"\u{1f1f2}\u{1f1f9} +356 Malta",code:"+356",flag:"\u{1f1f2}\u{1f1f9}",country:"MT"},{text:"\u{1f1e8}\u{1f1fe} +357 Cyprus",code:"+357",flag:"\u{1f1e8}\u{1f1fe}",country:"CY"},{text:"\u{1f1eb}\u{1f1ee} +358 Finland",code:"+358",flag:"\u{1f1eb}\u{1f1ee}",country:"FI"},{text:"\u{1f1e7}\u{1f1ec} +359 Bulgaria",code:"+359",flag:"\u{1f1e7}\u{1f1ec}",country:"BG"},{text:"\u{1f1f1}\u{1f1f9} +370 Lithuania",code:"+370",flag:"\u{1f1f1}\u{1f1f9}",country:"LT"},{text:"\u{1f1f1}\u{1f1fb} +371 Latvia",code:"+371",flag:"\u{1f1f1}\u{1f1fb}",country:"LV"},{text:"\u{1f1ea}\u{1f1ea} +372 Estonia",code:"+372",flag:"\u{1f1ea}\u{1f1ea}",country:"EE"},{text:"\u{1f1f2}\u{1f1e9} +373 Moldova",code:"+373",flag:"\u{1f1f2}\u{1f1e9}",country:"MD"},{text:"\u{1f1e6}\u{1f1f2} +374 Armenia",code:"+374",flag:"\u{1f1e6}\u{1f1f2}",country:"AM"},{text:"\u{1f1e7}\u{1f1fe} +375 Belarus",code:"+375",flag:"\u{1f1e7}\u{1f1fe}",country:"BY"},{text:"\u{1f1e6}\u{1f1e9} +376 Andorra",code:"+376",flag:"\u{1f1e6}\u{1f1e9}",country:"AD"},{text:"\u{1f1f2}\u{1f1e8} +377 Monaco",code:"+377",flag:"\u{1f1f2}\u{1f1e8}",country:"MC"},{text:"\u{1f1f8}\u{1f1f2} +378 San Marino",code:"+378",flag:"\u{1f1f8}\u{1f1f2}",country:"SM"},{text:"\u{1f1fa}\u{1f1e6} +380 Ukraine",code:"+380",flag:"\u{1f1fa}\u{1f1e6}",country:"UA"},{text:"\u{1f1f7}\u{1f1f8} +381 Serbia",code:"+381",flag:"\u{1f1f7}\u{1f1f8}",country:"RS"},{text:"\u{1f1f2}\u{1f1ea} +382 Montenegro",code:"+382",flag:"\u{1f1f2}\u{1f1ea}",country:"ME"},{text:"\u{1f1ed}\u{1f1f7} +385 Croatia",code:"+385",flag:"\u{1f1ed}\u{1f1f7}",country:"HR"},{text:"\u{1f1f8}\u{1f1ee} +386 Slovenia",code:"+386",flag:"\u{1f1f8}\u{1f1ee}",country:"SI"},{text:"\u{1f1e7}\u{1f1e6} +387 Bosnia and Herzegovina",code:"+387",flag:"\u{1f1e7}\u{1f1e6}",country:"BA"},{text:"\u{1f1f2}\u{1f1f0} +389 North Macedonia",code:"+389",flag:"\u{1f1f2}\u{1f1f0}",country:"MK"},{text:"\u{1f1e8}\u{1f1ff} +420 Czech Republic",code:"+420",flag:"\u{1f1e8}\u{1f1ff}",country:"CZ"},{text:"\u{1f1f8}\u{1f1f0} +421 Slovakia",code:"+421",flag:"\u{1f1f8}\u{1f1f0}",country:"SK"},{text:"\u{1f1f1}\u{1f1ee} +423 Liechtenstein",code:"+423",flag:"\u{1f1f1}\u{1f1ee}",country:"LI"},{text:"\u{1f1eb}\u{1f1f0} +500 Falkland Islands",code:"+500",flag:"\u{1f1eb}\u{1f1f0}",country:"FK"},{text:"\u{1f1e7}\u{1f1ff} +501 Belize",code:"+501",flag:"\u{1f1e7}\u{1f1ff}",country:"BZ"},{text:"\u{1f1ec}\u{1f1f9} +502 Guatemala",code:"+502",flag:"\u{1f1ec}\u{1f1f9}",country:"GT"},{text:"\u{1f1f8}\u{1f1fb} +503 El Salvador",code:"+503",flag:"\u{1f1f8}\u{1f1fb}",country:"SV"},{text:"\u{1f1ed}\u{1f1f3} +504 Honduras",code:"+504",flag:"\u{1f1ed}\u{1f1f3}",country:"HN"},{text:"\u{1f1f3}\u{1f1ee} +505 Nicaragua",code:"+505",flag:"\u{1f1f3}\u{1f1ee}",country:"NI"},{text:"\u{1f1e8}\u{1f1f7} +506 Costa Rica",code:"+506",flag:"\u{1f1e8}\u{1f1f7}",country:"CR"},{text:"\u{1f1f5}\u{1f1e6} +507 Panama",code:"+507",flag:"\u{1f1f5}\u{1f1e6}",country:"PA"},{text:"\u{1f1f5}\u{1f1f2} +508 Saint Pierre and Miquelon",code:"+508",flag:"\u{1f1f5}\u{1f1f2}",country:"PM"},{text:"\u{1f1ed}\u{1f1f9} +509 Haiti",code:"+509",flag:"\u{1f1ed}\u{1f1f9}",country:"HT"},{text:"\u{1f1ec}\u{1f1f5} +590 Guadeloupe",code:"+590",flag:"\u{1f1ec}\u{1f1f5}",country:"GP"},{text:"\u{1f1e7}\u{1f1f4} +591 Bolivia",code:"+591",flag:"\u{1f1e7}\u{1f1f4}",country:"BO"},{text:"\u{1f1ec}\u{1f1fe} +592 Guyana",code:"+592",flag:"\u{1f1ec}\u{1f1fe}",country:"GY"},{text:"\u{1f1ea}\u{1f1e8} +593 Ecuador",code:"+593",flag:"\u{1f1ea}\u{1f1e8}",country:"EC"},{text:"\u{1f1ec}\u{1f1eb} +594 French Guiana",code:"+594",flag:"\u{1f1ec}\u{1f1eb}",country:"GF"},{text:"\u{1f1f5}\u{1f1fe} +595 Paraguay",code:"+595",flag:"\u{1f1f5}\u{1f1fe}",country:"PY"},{text:"\u{1f1f2}\u{1f1f6} +596 Martinique",code:"+596",flag:"\u{1f1f2}\u{1f1f6}",country:"MQ"},{text:"\u{1f1f8}\u{1f1f7} +597 Suriname",code:"+597",flag:"\u{1f1f8}\u{1f1f7}",country:"SR"},{text:"\u{1f1fa}\u{1f1fe} +598 Uruguay",code:"+598",flag:"\u{1f1fa}\u{1f1fe}",country:"UY"},{text:"\u{1f1e8}\u{1f1fc} +599 Cura\xe7ao",code:"+599",flag:"\u{1f1e8}\u{1f1fc}",country:"CW"},{text:"\u{1f1f9}\u{1f1f1} +670 Timor-Leste",code:"+670",flag:"\u{1f1f9}\u{1f1f1}",country:"TL"},{text:"\u{1f1e6}\u{1f1f6} +672 Antarctica",code:"+672",flag:"\u{1f1e6}\u{1f1f6}",country:"AQ"},{text:"\u{1f1e7}\u{1f1f3} +673 Brunei",code:"+673",flag:"\u{1f1e7}\u{1f1f3}",country:"BN"},{text:"\u{1f1f3}\u{1f1f7} +674 Nauru",code:"+674",flag:"\u{1f1f3}\u{1f1f7}",country:"NR"},{text:"\u{1f1f5}\u{1f1ec} +675 Papua New Guinea",code:"+675",flag:"\u{1f1f5}\u{1f1ec}",country:"PG"},{text:"\u{1f1f9}\u{1f1f4} +676 Tonga",code:"+676",flag:"\u{1f1f9}\u{1f1f4}",country:"TO"},{text:"\u{1f1f8}\u{1f1e7} +677 Solomon Islands",code:"+677",flag:"\u{1f1f8}\u{1f1e7}",country:"SB"},{text:"\u{1f1fb}\u{1f1fa} +678 Vanuatu",code:"+678",flag:"\u{1f1fb}\u{1f1fa}",country:"VU"},{text:"\u{1f1eb}\u{1f1ef} +679 Fiji",code:"+679",flag:"\u{1f1eb}\u{1f1ef}",country:"FJ"},{text:"\u{1f1f5}\u{1f1fc} +680 Palau",code:"+680",flag:"\u{1f1f5}\u{1f1fc}",country:"PW"},{text:"\u{1f1fc}\u{1f1eb} +681 Wallis and Futuna",code:"+681",flag:"\u{1f1fc}\u{1f1eb}",country:"WF"},{text:"\u{1f1e8}\u{1f1f0} +682 Cook Islands",code:"+682",flag:"\u{1f1e8}\u{1f1f0}",country:"CK"},{text:"\u{1f1f3}\u{1f1fa} +683 Niue",code:"+683",flag:"\u{1f1f3}\u{1f1fa}",country:"NU"},{text:"\u{1f1fc}\u{1f1f8} +685 Samoa",code:"+685",flag:"\u{1f1fc}\u{1f1f8}",country:"WS"},{text:"\u{1f1f0}\u{1f1ee} +686 Kiribati",code:"+686",flag:"\u{1f1f0}\u{1f1ee}",country:"KI"},{text:"\u{1f1f3}\u{1f1e8} +687 New Caledonia",code:"+687",flag:"\u{1f1f3}\u{1f1e8}",country:"NC"},{text:"\u{1f1f9}\u{1f1fb} +688 Tuvalu",code:"+688",flag:"\u{1f1f9}\u{1f1fb}",country:"TV"},{text:"\u{1f1f5}\u{1f1eb} +689 French Polynesia",code:"+689",flag:"\u{1f1f5}\u{1f1eb}",country:"PF"},{text:"\u{1f1f9}\u{1f1f0} +690 Tokelau",code:"+690",flag:"\u{1f1f9}\u{1f1f0}",country:"TK"},{text:"\u{1f1eb}\u{1f1f2} +691 Federated States of Micronesia",code:"+691",flag:"\u{1f1eb}\u{1f1f2}",country:"FM"},{text:"\u{1f1f2}\u{1f1ed} +692 Marshall Islands",code:"+692",flag:"\u{1f1f2}\u{1f1ed}",country:"MH"},{text:"\u{1f1f0}\u{1f1f5} +850 North Korea",code:"+850",flag:"\u{1f1f0}\u{1f1f5}",country:"KP"},{text:"\u{1f1ed}\u{1f1f0} +852 Hong Kong",code:"+852",flag:"\u{1f1ed}\u{1f1f0}",country:"HK"},{text:"\u{1f1f2}\u{1f1f4} +853 Macau",code:"+853",flag:"\u{1f1f2}\u{1f1f4}",country:"MO"},{text:"\u{1f1f0}\u{1f1ed} +855 Cambodia",code:"+855",flag:"\u{1f1f0}\u{1f1ed}",country:"KH"},{text:"\u{1f1f1}\u{1f1e6} +856 Laos",code:"+856",flag:"\u{1f1f1}\u{1f1e6}",country:"LA"},{text:"\u{1f1e7}\u{1f1e9} +880 Bangladesh",code:"+880",flag:"\u{1f1e7}\u{1f1e9}",country:"BD"},{text:"\u{1f1f9}\u{1f1fc} +886 Taiwan",code:"+886",flag:"\u{1f1f9}\u{1f1fc}",country:"TW"},{text:"\u{1f1f2}\u{1f1fb} +960 Maldives",code:"+960",flag:"\u{1f1f2}\u{1f1fb}",country:"MV"},{text:"\u{1f1f1}\u{1f1e7} +961 Lebanon",code:"+961",flag:"\u{1f1f1}\u{1f1e7}",country:"LB"},{text:"\u{1f1ef}\u{1f1f4} +962 Jordan",code:"+962",flag:"\u{1f1ef}\u{1f1f4}",country:"JO"},{text:"\u{1f1f8}\u{1f1fe} +963 Syria",code:"+963",flag:"\u{1f1f8}\u{1f1fe}",country:"SY"},{text:"\u{1f1ee}\u{1f1f6} +964 Iraq",code:"+964",flag:"\u{1f1ee}\u{1f1f6}",country:"IQ"},{text:"\u{1f1f0}\u{1f1fc} +965 Kuwait",code:"+965",flag:"\u{1f1f0}\u{1f1fc}",country:"KW"},{text:"\u{1f1f8}\u{1f1e6} +966 Saudi Arabia",code:"+966",flag:"\u{1f1f8}\u{1f1e6}",country:"SA"},{text:"\u{1f1fe}\u{1f1ea} +967 Yemen",code:"+967",flag:"\u{1f1fe}\u{1f1ea}",country:"YE"},{text:"\u{1f1f4}\u{1f1f2} +968 Oman",code:"+968",flag:"\u{1f1f4}\u{1f1f2}",country:"OM"},{text:"\u{1f1f5}\u{1f1f8} +970 Palestine",code:"+970",flag:"\u{1f1f5}\u{1f1f8}",country:"PS"},{text:"\u{1f1e6}\u{1f1ea} +971 United Arab Emirates",code:"+971",flag:"\u{1f1e6}\u{1f1ea}",country:"AE"},{text:"\u{1f1ee}\u{1f1f1} +972 Israel",code:"+972",flag:"\u{1f1ee}\u{1f1f1}",country:"IL"},{text:"\u{1f1e7}\u{1f1ed} +973 Bahrain",code:"+973",flag:"\u{1f1e7}\u{1f1ed}",country:"BH"},{text:"\u{1f1f6}\u{1f1e6} +974 Qatar",code:"+974",flag:"\u{1f1f6}\u{1f1e6}",country:"QA"},{text:"\u{1f1e7}\u{1f1f9} +975 Bhutan",code:"+975",flag:"\u{1f1e7}\u{1f1f9}",country:"BT"},{text:"\u{1f1f2}\u{1f1f3} +976 Mongolia",code:"+976",flag:"\u{1f1f2}\u{1f1f3}",country:"MN"},{text:"\u{1f1f3}\u{1f1f5} +977 Nepal",code:"+977",flag:"\u{1f1f3}\u{1f1f5}",country:"NP"},{text:"\u{1f1f9}\u{1f1ef} +992 Tajikistan",code:"+992",flag:"\u{1f1f9}\u{1f1ef}",country:"TJ"},{text:"\u{1f1f9}\u{1f1f2} +993 Turkmenistan",code:"+993",flag:"\u{1f1f9}\u{1f1f2}",country:"TM"},{text:"\u{1f1e6}\u{1f1ff} +994 Azerbaijan",code:"+994",flag:"\u{1f1e6}\u{1f1ff}",country:"AZ"},{text:"\u{1f1ec}\u{1f1ea} +995 Georgia",code:"+995",flag:"\u{1f1ec}\u{1f1ea}",country:"GE"},{text:"\u{1f1f0}\u{1f1ec} +996 Kyrgyzstan",code:"+996",flag:"\u{1f1f0}\u{1f1ec}",country:"KG"},{text:"\u{1f1fa}\u{1f1ff} +998 Uzbekistan",code:"+998",flag:"\u{1f1fa}\u{1f1ff}",country:"UZ"}],iF=[{name:"Afghanistan",code:"AF"},{name:"\xc5land Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"AndorrA",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, The Democratic Republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:'Cote D"Ivoire',code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Holy See (Vatican City State)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, Islamic Republic Of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:'Korea, Democratic People"S Republic of',code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:'Lao People"S Democratic Republic',code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, The Former Yugoslav Republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, Federated States of",code:"FM"},{name:"Moldova, Republic of",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory, Occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"RWANDA",code:"RW"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia and Montenegro",code:"CS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, U.S.",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}],UQ2={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function Pw1(n,a){n=n.split("-"),a=a.split("-");for(var c=n[0].split("."),t=a[0].split("."),l=0;l<3;l++){var i=Number(c[l]),u=Number(t[l]);if(i>u)return 1;if(u>i)return-1;if(!isNaN(i)&&isNaN(u))return 1;if(isNaN(i)&&!isNaN(u))return-1}return n[1]&&a[1]?n[1]>a[1]?1:n[1]n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.split(""));!(t=c()).done;)a+=IZ2(t.value,a)||"";return a}function IZ2(n,a,c){return"+"===n?a?void("function"==typeof c&&c("end")):"+":function qw1(n){return TZ2[n]}(n)}function Jw1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a);!(l=t()).done;){var i=l.value;n.indexOf(i)<0&&c.push(i)}return c.sort(function(u,C){return u-C})}(i,u.possibleLengths()))}else if(c&&!l)return"INVALID_LENGTH";var C=n.length,b=i[0];return b===C?"IS_POSSIBLE":b>C?"TOO_SHORT":i[i.length-1]=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Zw1(n,a,c){return"IS_POSSIBLE"===Jd1(n,a,c)}function nf(n,a){return n=n||"",new RegExp("^(?:"+a+")$").test(n)}function Kw1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(UZ2);!(i=l()).done;){var u=i.value;if(Zd1(t,u,c))return u}}}}function Zd1(n,a,c){return!(!(a=c.type(a))||!a.pattern()||a.possibleLengths()&&a.possibleLengths().indexOf(n.length)<0)&&nf(n,a.pattern())}var qZ2=new RegExp("(["+Sn+"])");function eS1(n,a){(null==a||a>n.length)&&(a=n.length);for(var c=0,t=Array(a);c=n.length?{done:!0}:{done:!1,value:n[t++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(c);!(i=l()).done;){var u=i.value;if(t.selectNumberingPlan(u),t.leadingDigits()){if(n&&0===n.search(t.leadingDigits()))return u}else if(Qd1({phone:n,country:u},void 0,t.metadata))return u}}(c,{countries:l,metadata:t.metadata}):void 0}function Kd1(n,a,c){var t=function WZ2(n,a){if(n&&a.numberingPlan.nationalPrefixForParsing()){var c=new RegExp("^(?:"+a.numberingPlan.nationalPrefixForParsing()+")"),t=c.exec(n);if(t){var l,i,T,u=t.length-1,C=u>0&&t[u];if(a.nationalPrefixTransformRule()&&C?(l=n.replace(c,a.nationalPrefixTransformRule()),u>1&&(i=t[1])):(l=n.slice(t[0].length),C&&(i=t[1])),C){var W=n.indexOf(t[1]);n.slice(0,W)===a.numberingPlan.nationalPrefix()&&(T=a.numberingPlan.nationalPrefix())}else T=t[0];return{nationalNumber:l,nationalPrefix:T,carrierCode:i}}}return{nationalNumber:n}}(n,c),l=t.carrierCode,i=t.nationalNumber;if(i!==n){if(!function eK2(n,a,c){return!(nf(n,c.nationalNumberPattern())&&!nf(a,c.nationalNumberPattern()))}(n,i,c))return{nationalNumber:n};if(c.numberingPlan.possibleLengths()&&(a||(a=cS1(c.numberingPlan.callingCode(),{nationalNumber:i,metadata:c})),!function cK2(n,a,c){switch(Jd1(n,a,c)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(i,a,c)))return{nationalNumber:n}}return{nationalNumber:i,carrierCode:l}}function tS1(n,a,c,t,l){if(!n)return{};var i;if("+"!==n[0]){var u=function XZ2(n,a,c,t){if(a){var l=new pe(t);l.selectNumberingPlan(a,c);var i=new RegExp(l.IDDPrefix());if(0===n.search(i)){var u=(n=n.slice(n.match(i)[0].length)).match(qZ2);if(!(u&&null!=u[1]&&u[1].length>0&&"0"===u[1]))return n}}}(n,a||c,t,l);if(!u||u===n){if(a||c||t){var C=function tK2(n,a,c,t,l){var i=a||c?JG(a||c,l):t;if(0===n.indexOf(i)){(l=new pe(l)).selectNumberingPlan(a||c,i);var u=n.slice(i.length),b=Kd1(u,a,l).nationalNumber,W=Kd1(n,a,l).nationalNumber;if(!nf(W,l.nationalNumberPattern())&&nf(b,l.nationalNumberPattern())||"TOO_LONG"===Jd1(W,a,l))return{countryCallingCode:i,number:u}}return{number:n}}(n,a,c,t,l),b=C.countryCallingCode;if(b)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:b,number:C.number}}return{number:n}}i=!0,n="+"+u}if("0"===n[1])return{};l=new pe(l);for(var W=2;W-1<=sZ2&&W<=n.length;){var u1=n.slice(1,W);if(l.hasCallingCode(u1))return l.selectNumberingPlan(u1),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u1,number:n.slice(W)};W++}return{}}var lK2=/(\$\d)/;var aK2=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/,sS1={formatExtension:function(a,c,t){return"".concat(a).concat(t.ext()).concat(c)}};function ZG(n,a,c,t,l){var i=function hK2(n,a){return function LK2(n,a){for(var c=0;c0){var t=c.leadingDigitsPatterns()[c.leadingDigitsPatterns().length-1];if(0!==a.search(t))return!1}return nf(a,c.pattern())})}(t.formats(),n);return i?function sK2(n,a,c){var t=c.useInternationalFormat,l=c.withNationalPrefix,C=n.replace(new RegExp(a.pattern()),t?a.internationalFormat():l&&a.nationalPrefixFormattingRule()?a.format().replace(lK2,a.nationalPrefixFormattingRule()):a.format());return t?function nK2(n){return n.replace(new RegExp("[".concat(QG,"]+"),"g")," ").trim()}(C):C}(n,i,{useInternationalFormat:"INTERNATIONAL"===c,withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&l&&!1===l.nationalPrefix),carrierCode:a,metadata:t}):n}function ef1(n,a,c,t){return a?t(n,a,c):n}function QE(n){return(QE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function aS1(n,a){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);a&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),c.push.apply(c,t)}return c}function oS1(n){for(var a=1;a=0}(a,i,c)}):[]}(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function OZ2(n,a,c){if(void 0===a&&(a={}),c=new pe(c),a.v2){if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(n.countryCallingCode)}else{if(!n.phone)return!1;if(n.country){if(!c.hasCountry(n.country))throw new Error("Unknown country: ".concat(n.country));c.selectNumberingPlan(n.country)}else{if(!n.countryCallingCode)throw new Error("Invalid phone number object passed");c.selectNumberingPlan(n.countryCallingCode)}}if(c.possibleLengths())return Zw1(n.phone||n.nationalNumber,n.country,c);if(n.countryCallingCode&&c.isNonGeographicCallingCode(n.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function GZ2(n,a,c){return a=a||{},(c=new pe(c)).selectNumberingPlan(n.country,n.countryCallingCode),c.hasTypes()?void 0!==Qd1(n,a,c.metadata):nf(a.v2?n.nationalNumber:n.phone,c.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new pe(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(c){return this.number===c.number&&this.ext===c.ext}},{key:"getType",value:function(){return Qd1(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(c,t){return function pK2(n,a,c,t){if(c=c?function _K2(){for(var n=1,a=arguments.length,c=new Array(a),t=0;t=n.length)return"";var t=n.indexOf(";",c);return t>=0?n.substring(c,t):n.substring(c)}(n);if(!function jK2(n){return null===n||0!==n.length&&(NK2.test(n)||AK2.test(n))}(t))throw new VL("NOT_A_NUMBER");if(null===t)l=c(n)||"";else{l="",t.charAt(0)===dS1&&(l+=t);var u,i=n.indexOf(uS1);u=i>=0?i+uS1.length:0;var C=n.indexOf(tf1);l+=n.substring(u,C)}var b=l.indexOf(IK2);if(b>0&&(l=l.substring(0,b)),""!==l)return l}(n,{extractFormattedPhoneNumber:function(u){return function HK2(n,a,c){if(n){if(n.length>OK2){if(c)throw new VL("TOO_LONG");return}if(!1===a)return n;var t=n.search(BK2);if(!(t<0))return n.slice(t).replace(VK2,"")}}(u,c,a)}});if(!t)return{};if(!function wZ2(n){return n.length>=Yd1&&kZ2.test(n)}(t))return function SZ2(n){return FZ2.test(n)}(t)?{error:"TOO_SHORT"}:{};var l=function NZ2(n){var a=n.search(Hw1);if(a<0)return{};for(var c=n.slice(0,a),t=n.match(Hw1),l=1;llZ2){if(a.v2)throw new VL("TOO_LONG");return{}}if(a.v2){var T1=new yK2(W,T,c.metadata);return b&&(T1.country=b),a1&&(T1.carrierCode=a1),i&&(T1.ext=i),T1.__countryCallingCodeSource=u1,T1}var Y1=!!(a.extended?c.hasSelectedNumberingPlan():b)&&nf(T,c.nationalNumberPattern());return a.extended?{country:b,countryCallingCode:W,carrierCode:a1,valid:Y1,possible:!!Y1||!(!0!==a.extended||!c.possibleLengths()||!Zw1(T,b,c)),phone:T,ext:i}:Y1?function qK2(n,a,c){var t={country:n,phone:a};return c&&(t.ext=c),t}(b,T,i):{}}function ZE(n){return(ZE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function mS1(n,a){var c=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);a&&(t=t.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),c.push.apply(c,t)}return c}function pS1(n){for(var a=1;an.length)&&(a=n.length);for(var c=0,t=Array(a);ca.code;function u10(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function m10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function p10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function h10(n,a){if(1&n&&(e.j41(0,"option",45),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function g10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function _10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function L10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function C10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function z10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function M10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long")))}function x10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function b10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_larger")))}function y10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._too_long_email")))}function F10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._email_format")))}function v10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function k10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",49),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.BMQ("data-country",c.country),e.R7$(2),e.SpI(" ",c.text," ")}}function w10(n,a){if(1&n&&(e.j41(0,"div",40)(1,"ul",46,0)(3,"li"),e.Z7z(4,k10,3,2,"button",47,f10),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.prefixes)}}function S10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2,"You cannot enter negative numbers."),e.k0s()())}function N10(n,a){1&n&&(e.j41(0,"p",12)(1,"span",44),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"BILLING._mandatory")))}function E10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.createBilling())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.billingForm.valid)("ngClass",c.billingForm.valid?"hover:bg-primary-50 dark:hover:bg-primary-200":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"BILLING._add")," ")}}function D10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateBilling())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.billingForm.valid)("ngClass",c.billingForm.valid?"hover:bg-primary-50 dark:hover:bg-primary-200":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"BILLING._update")," ")}}function T10(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"div",9)(2,"label",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",11),e.DNE(6,m10,4,3,"p",12)(7,p10,4,3,"p",12),e.k0s(),e.j41(8,"div")(9,"label",13),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"select",14),e.DNE(13,h10,2,2,"option",15),e.k0s()(),e.j41(14,"div")(15,"label",16),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",17),e.DNE(19,g10,4,3,"p",12)(20,_10,4,3,"p",12),e.k0s(),e.j41(21,"div")(22,"label",18),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.nrm(25,"input",19),e.DNE(26,L10,4,3,"p",12)(27,C10,4,3,"p",12),e.k0s(),e.j41(28,"div")(29,"label",20),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"input",21),e.DNE(33,z10,4,3,"p",12)(34,M10,4,3,"p",12),e.k0s(),e.j41(35,"div",9)(36,"label",22),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.nrm(39,"textarea",23),e.DNE(40,x10,4,3,"p",12)(41,b10,4,3,"p",12),e.k0s(),e.j41(42,"div",9)(43,"label",24),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.nrm(46,"input",25),e.DNE(47,y10,4,3,"p",12)(48,F10,4,3,"p",12)(49,v10,4,3,"p",12),e.k0s(),e.j41(50,"div",26)(51,"label",27),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"select",28)(55,"option",29),e.EFF(56,"Mobile"),e.k0s(),e.j41(57,"option",30),e.EFF(58,"Landline"),e.k0s(),e.j41(59,"option",31),e.EFF(60,"Office"),e.k0s(),e.j41(61,"option",32),e.EFF(62,"Home"),e.k0s(),e.j41(63,"option",33),e.EFF(64,"Other"),e.k0s()()(),e.j41(65,"div",26)(66,"label",34),e.EFF(67),e.nI1(68,"translate"),e.k0s(),e.j41(69,"div",35)(70,"div",36)(71,"button",37),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(72),e.qSk(),e.j41(73,"svg",38),e.nrm(74,"path",39),e.k0s()(),e.DNE(75,w10,6,0,"div",40),e.joV(),e.nrm(76,"input",41),e.k0s(),e.DNE(77,S10,3,0,"p",12)(78,N10,4,3),e.k0s()(),e.j41(79,"div",42),e.DNE(80,E10,3,5,"button",43)(81,D10,3,5),e.k0s()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1,a1,T1,Y1,f2,M2,G2,N2,a4,B0,K0,r0;const W2=e.XpG();e.Y8G("formGroup",W2.billingForm),e.R7$(3),e.SpI("",e.bMT(4,36,"BILLING._title")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(c=W2.billingForm.get("name"))&&c.touched&&null!=(c=W2.billingForm.get("name"))&&c.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(6,null!=(t=W2.billingForm.get("name"))&&t.touched&&null!=(t=W2.billingForm.get("name"))&&t.hasError("required")?6:-1),e.R7$(),e.vxM(7,null!=(l=W2.billingForm.get("name"))&&l.invalid&&null!=(l=W2.billingForm.get("name"))&&null!=l.errors&&l.errors.maxlength?7:-1),e.R7$(3),e.SpI("",e.bMT(11,38,"BILLING._country")," (*)"),e.R7$(3),e.Y8G("ngForOf",W2.euCountries),e.R7$(3),e.SpI("",e.bMT(17,40,"BILLING._city")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(i=W2.billingForm.get("city"))&&i.touched&&null!=(i=W2.billingForm.get("city"))&&i.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,null!=(u=W2.billingForm.get("city"))&&u.touched&&null!=(u=W2.billingForm.get("city"))&&u.hasError("required")?19:-1),e.R7$(),e.vxM(20,null!=(C=W2.billingForm.get("city"))&&C.invalid&&null!=(C=W2.billingForm.get("city"))&&null!=C.errors&&C.errors.maxlength?20:-1),e.R7$(3),e.SpI("",e.bMT(24,42,"BILLING._state")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(b=W2.billingForm.get("stateOrProvince"))&&b.touched&&null!=(b=W2.billingForm.get("stateOrProvince"))&&b.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(26,null!=(T=W2.billingForm.get("stateOrProvince"))&&T.touched&&null!=(T=W2.billingForm.get("stateOrProvince"))&&T.hasError("required")?26:-1),e.R7$(),e.vxM(27,null!=(W=W2.billingForm.get("stateOrProvince"))&&W.invalid&&null!=(W=W2.billingForm.get("stateOrProvince"))&&null!=W.errors&&W.errors.maxlength?27:-1),e.R7$(3),e.SpI("",e.bMT(31,44,"BILLING._post_code")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(u1=W2.billingForm.get("postCode"))&&u1.touched&&null!=(u1=W2.billingForm.get("postCode"))&&u1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(33,null!=(a1=W2.billingForm.get("postCode"))&&a1.touched&&null!=(a1=W2.billingForm.get("postCode"))&&a1.hasError("required")?33:-1),e.R7$(),e.vxM(34,null!=(T1=W2.billingForm.get("postCode"))&&T1.invalid&&null!=(T1=W2.billingForm.get("postCode"))&&null!=T1.errors&&T1.errors.maxlength?34:-1),e.R7$(3),e.SpI("",e.bMT(38,46,"BILLING._street")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(Y1=W2.billingForm.get("street"))&&Y1.touched&&null!=(Y1=W2.billingForm.get("street"))&&Y1.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(40,null!=(f2=W2.billingForm.get("street"))&&f2.touched&&null!=(f2=W2.billingForm.get("street"))&&f2.hasError("required")?40:-1),e.R7$(),e.vxM(41,null!=(M2=W2.billingForm.get("street"))&&M2.invalid&&null!=(M2=W2.billingForm.get("street"))&&null!=M2.errors&&M2.errors.maxlength?41:-1),e.R7$(3),e.SpI("",e.bMT(45,48,"BILLING._email")," (*)"),e.R7$(2),e.Y8G("ngClass",null!=(G2=W2.billingForm.get("email"))&&G2.touched&&null!=(G2=W2.billingForm.get("email"))&&G2.invalid?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(47,null!=(N2=W2.billingForm.get("email"))&&N2.invalid&&null!=(N2=W2.billingForm.get("email"))&&null!=N2.errors&&N2.errors.maxlength?47:-1),e.R7$(),e.vxM(48,null!=(a4=W2.billingForm.get("email"))&&a4.invalid&&null!=(a4=W2.billingForm.get("email"))&&null!=a4.errors&&a4.errors.pattern?48:-1),e.R7$(),e.vxM(49,null!=(B0=W2.billingForm.get("email"))&&B0.touched&&null!=(B0=W2.billingForm.get("email"))&&B0.hasError("required")?49:-1),e.R7$(3),e.JRh(e.bMT(53,50,"BILLING._phone_type")),e.R7$(15),e.SpI("",e.bMT(68,52,"BILLING._phone")," (*)"),e.R7$(5),e.Lme(" ",W2.phonePrefix.flag," ",W2.phonePrefix.code," "),e.R7$(3),e.vxM(75,1==W2.prefixCheck?75:-1),e.R7$(),e.Y8G("ngClass",null!=(K0=W2.billingForm.get("telephoneNumber"))&&K0.touched&&1==(null==(K0=W2.billingForm.get("telephoneNumber"))?null:K0.invalid)?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(77,null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.invalid&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&null!=r0.errors&&r0.errors.min&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.touched?77:null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.touched&&null!=(r0=W2.billingForm.get("telephoneNumber"))&&r0.hasError("required")?78:-1),e.R7$(3),e.vxM(80,W2.is_create?80:81)}}function R10(n,a){1&n&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_phone")))}function A10(n,a){1&n&&(e.j41(0,"div",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._invalid_email")))}function I10(n,a){if(1&n&&(e.j41(0,"div",2)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,R10,3,3,"div",55)(6,A10,3,3,"div",55),e.k0s(),e.j41(7,"button",56)(8,"span",7),e.EFF(9,"Close"),e.k0s(),e.qSk(),e.j41(10,"svg",57),e.nrm(11,"path",58),e.k0s()()()),2&n){let c,t;const l=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=l.billingForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(t=l.billingForm.get("email"))?null:t.invalid)?6:-1)}}function P10(n,a){if(1&n&&e.nrm(0,"error-message",3),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let nf1=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.cdr=t,this.router=l,this.accountService=i,this.eventMessage=u,this.billingForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),email:new p.MJ("",[p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"),p.k0.maxLength(320)]),country:new p.MJ("AT",[p.k0.required,p.k0.maxLength(250)]),city:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),stateOrProvince:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),postCode:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),street:new p.MJ("",[p.k0.required,p.k0.maxLength(1e3)]),telephoneNumber:new p.MJ("",[p.k0.required,p.k0.min(0)]),telephoneType:new p.MJ("Mobile")}),this.prefixes=[...qG].sort((C,b)=>this.getCountryName(C.text).localeCompare(this.getCountryName(b.text))),this.countries=iF,this.phonePrefix=qG[0],this.prefixCheck=!1,this.toastVisibility=!1,this.partyInfo={id:"",name:"",href:""},this.loading=!1,this.is_create=!1,this.errorMessage="",this.showError=!1,this.selectedCountry="",this.euCountries=[{code:"AT",name:"Austria"},{code:"BE",name:"Belgium"},{code:"BG",name:"Bulgaria"},{code:"HR",name:"Croatia"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"EE",name:"Estonia"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"DE",name:"Germany"},{code:"GR",name:"Greece"},{code:"HU",name:"Hungary"},{code:"IE",name:"Ireland"},{code:"IT",name:"Italy"},{code:"LV",name:"Latvia"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MT",name:"Malta"},{code:"NL",name:"Netherlands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"RO",name:"Romania"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"ES",name:"Spain"},{code:"SE",name:"Sweden"}],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initUserData()})}ngOnInit(){this.is_create=null==this.billAcc,this.initUserData(),0==this.is_create?this.setDefaultValues():this.detectCountry()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initUserData(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId,console.log("init party info"),console.log(c),this.partyInfo={id:this.partyId,name:c.user,href:this.partyId,role:g1.c.SELLER_ROLE};else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,console.log("loggedOrg info"),console.log(t),this.partyInfo={id:this.partyId,name:t.name,href:this.partyId,role:g1.c.SELLER_ROLE}}}setDefaultValues(){if(null!=this.billAcc){const c=Kk(this.billAcc.telephoneNumber);if(c){let t=this.prefixes.filter(l=>l.code==="+"+c.countryCallingCode);t.length>0&&(this.phonePrefix=t[0]),this.billingForm.controls.telephoneNumber.setValue(c.nationalNumber)}this.billingForm.controls.name.setValue(this.billAcc.name),this.billingForm.controls.email.setValue(this.billAcc.email),this.billingForm.controls.country.setValue(this.billAcc.postalAddress.country),this.billingForm.controls.city.setValue(this.billAcc.postalAddress.city),this.billingForm.controls.stateOrProvince.setValue(this.billAcc.postalAddress.stateOrProvince),this.billingForm.controls.street.setValue(this.billAcc.postalAddress.street),this.billingForm.controls.postCode.setValue(this.billAcc.postalAddress.postCode),this.billingForm.controls.telephoneType.setValue(this.billAcc.telephoneType)}this.cdr.detectChanges()}resetBillingForm(){this.billingForm.reset({telephoneType:"Mobile"}),Object.values(this.billingForm.controls).forEach(c=>{c.setErrors(null),c.markAsPristine(),c.markAsUntouched(),c.updateValueAndValidity({onlySelf:!0,emitEvent:!1})})}createBilling(){this.localStorage.getObject("login_items");try{const t=Kk(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(t){if(!t.isValid())return console.log("NUMERO INVALIDO"),this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.billingForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.billingForm.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.loading=!0,this.accountService.postBillingAccount({name:this.billingForm.value.name,contact:[{contactMedium:[{mediumType:"Email",preferred:this.preferred,characteristic:{contactType:"Email",emailAddress:this.billingForm.value.email}},{mediumType:"PostalAddress",preferred:this.preferred,characteristic:{contactType:"PostalAddress",city:this.billingForm.value.city,country:this.billingForm.value.country,postCode:this.billingForm.value.postCode,stateOrProvince:this.billingForm.value.stateOrProvince,street1:this.billingForm.value.street}},{mediumType:"TelephoneNumber",preferred:this.preferred,characteristic:{contactType:this.billingForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.billingForm.value.telephoneNumber}}]}],relatedParty:[this.partyInfo],state:"Defined"}).subscribe({next:l=>{this.eventMessage.emitBillAccChange(!0),this.resetBillingForm(),this.loading=!1},error:l=>{this.loading=!1,console.error("There was an error while creating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while creating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}updateBilling(){this.localStorage.getObject("login_items");try{const t=Kk(this.phonePrefix.code+this.billingForm.value.telephoneNumber);if(t){if(!t.isValid())return console.log("NUMERO INVALIDO"),this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.billingForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.billingForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.billingForm.invalid)return 1==this.billingForm.get("email")?.invalid?this.billingForm.controls.email.setErrors({invalidEmail:!0}):this.billingForm.controls.email.setErrors(null),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);null!=this.billAcc&&this.accountService.updateBillingAccount(this.billAcc.id,{name:this.billingForm.value.name,contact:[{contactMedium:[{mediumType:"Email",preferred:this.billAcc.selected,characteristic:{contactType:"Email",emailAddress:this.billingForm.value.email}},{mediumType:"PostalAddress",preferred:this.billAcc.selected,characteristic:{contactType:"PostalAddress",city:this.billingForm.value.city,country:this.billingForm.value.country,postCode:this.billingForm.value.postCode,stateOrProvince:this.billingForm.value.stateOrProvince,street1:this.billingForm.value.street}},{mediumType:"TelephoneNumber",preferred:this.billAcc.selected,characteristic:{contactType:this.billingForm.value.telephoneType,phoneNumber:this.phonePrefix.code+this.billingForm.value.telephoneNumber}}]}],relatedParty:[this.partyInfo],state:"Defined"}).subscribe({next:l=>{this.eventMessage.emitBillAccChange(!1),this.resetBillingForm()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}getCountryName(c){const t=c.match(/\+\d+\s+(.+)$/);return t?t[1]:c}onKeydown(c){if(!this.prefixCheck)return;const t=c.key.toLowerCase();if(!/^[a-z]$/.test(t))return;const l=this.prefixes.find(u=>this.getCountryName(u.text).toLowerCase().startsWith(t));if(!l||!this.prefixListRef)return;const i=this.prefixListRef.nativeElement.querySelector(`[data-country="${l.country}"]`);i&&i.scrollIntoView({block:"nearest"})}selectPrefix(c){console.log(c),this.prefixCheck=!1,this.phonePrefix=c}detectCountry(){let i=function cZ2(){return function GQ2(n,a){var c=Array.prototype.slice.call(a);return c.push(UQ2),n.apply(this,c)}(JG,arguments)}(navigator.language.split("-")[1].toUpperCase());if(i){let u=this.prefixes.filter(C=>C.code==="+"+i);u.length>0&&(this.phonePrefix=u[0])}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-billing-account-form"]],viewQuery:function(t,l){if(1&t&&e.GBs(d10,5),2&t){let i;e.mGM(i=e.lsd())&&(l.prefixListRef=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("keydown",function(u){return l.onKeydown(u)})},inputs:{billAcc:"billAcc",preferred:"preferred"},decls:4,vars:3,consts:[["prefixList",""],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-4"],["id","toast-warning","role","alert",1,"flex","m-2","items-center","w-fit","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],["novalidate","",1,"grid","h-full","grid-cols-2","gap-5","m-4",3,"formGroup"],[1,"col-span-2"],["for","title",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingTitle","id","title","formControlName","name","name","title","type","text",1,"mb-2","bg-gray-50","border","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["for","address.country",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingCountry","id","country","formControlName","country",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["for","address.city",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingCity","id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.state",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingState","id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.zip",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingZip","id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.street_address",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingAddress","id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","email",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","billingEmail","id","email","formControlName","email","name","email",1,"mb-2","bg-gray-50","border","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"col-span-2","lg:col-span-1"],["for","phoneType",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","phoneType","formControlName","telephoneType",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Mobile"],["value","Landline"],["value","Office"],["value","Home"],["value","Other"],["for","phoneNumber",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],[1,"w-full"],[1,"relative","flex","items-center"],["data-cy","billingPhoneCountry","type","button",1,"mb-2","flex-shrink-0","z-10","inline-flex","items-center","py-2.5","px-4","text-sm","font-medium","text-center","text-gray-900","bg-gray-100","border","border-gray-300","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-s-lg","hover:bg-gray-200","dark:hover:bg-primary-200","focus:ring-4","focus:outline-none","focus:ring-gray-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-2.5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"absolute","bottom-12","right-0","z-20","max-h-48","w-full","bg-white","divide-y","divide-gray-100","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","shadow","overflow-y-auto"],["data-cy","billingPhone","id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],[1,"flex","w-full","justify-end","col-span-2"],["data-cy","addBilling","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"disabled","ngClass"],[1,"font-medium"],[3,"value"],["aria-labelledby","dropdown-phone-button",1,"py-2","text-sm","text-gray-700"],["data-cy","phoneCountries","type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200"],["data-cy","phoneCountries","type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200",3,"click"],[1,"inline-flex","items-center"],["data-cy","addBilling","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"inline-flex","items-center","justify-center","flex-shrink-0","w-8","h-8","bg-red-700","text-red-200","rounded-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"],[1,"block","ms-3","text-sm","font-normal"],["type","button","data-dismiss-target","#toast-warning","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"]],template:function(t,l){1&t&&e.DNE(0,u10,6,0,"div",1)(1,T10,82,54)(2,I10,12,2,"div",2)(3,P10,1,1,"error-message",3),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.toastVisibility?2:-1),e.R7$(),e.vxM(3,l.showError?3:-1))},dependencies:[_.YU,_.Sq,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const j10=(n,a)=>({"break-all":n,"break-words":a});function $10(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"div",23),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",24)(3,"h2",25),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",26),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editBill=!1)}),e.qSk(),e.j41(7,"svg",27),e.nrm(8,"path",16),e.k0s(),e.joV(),e.j41(9,"span",6),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",28),e.nrm(13,"app-billing-account-form",29),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.editBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._edit")," "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("billAcc",c.data)}}function O10(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"div",30),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",31)(3,"button",32),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",33),e.nrm(5,"path",34),e.k0s(),e.joV(),e.j41(6,"span",6),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",35),e.nrm(10,"path",36),e.k0s(),e.joV(),e.j41(11,"p",37),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"p",38)(15,"b"),e.EFF(16),e.k0s(),e.EFF(17),e.k0s(),e.j41(18,"div",39)(19,"button",40),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onDeletedBill(l.data))}),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.deleteBill?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,9,"BILLING._close_modal")),e.R7$(5),e.JRh(e.bMT(13,11,"BILLING._confirm_delete")),e.R7$(4),e.JRh(c.data.name),e.R7$(),e.E5c(": ",c.data.postalAddress.street,", ",c.data.postalAddress.city,", ",c.data.postalAddress.country,"."),e.R7$(3),e.SpI(" ",e.bMT(21,13,"BILLING._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(24,15,"BILLING._delete")," ")}}let _S1=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.accountService=t,this.eventMessage=l,this.position=0,this.data={id:"",href:"",name:"",email:"",postalAddress:{city:"",country:"",postCode:"",stateOrProvince:"",street:""},telephoneNumber:"",telephoneType:"",selected:!1},this.selectedEvent=new e.bkB,this.deletedEvent=new e.bkB,this.destroy$=new S.B,this.editBill=!1,this.deleteBill=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{0==i.value&&(this.editBill=!1)})}onClick(){1==this.editBill&&(this.editBill=!1),1==this.deleteBill&&(this.deleteBill=!1)}selectBillingAddress(c){this.selectedEvent.emit(this.data),this.data.selected=!0}deleteBAddr(){console.log("deleting "+this.data.id),this.deletedEvent.emit(this.data)}onDeletedBill(c){console.log("--- DELETE BILLING ADDRESS ---"),this.deleteBill=!1}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-billing-address"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{position:"position",data:"data"},outputs:{selectedEvent:"selectedEvent",deletedEvent:"deletedEvent"},decls:33,vars:23,consts:[["role","radio","aria-checked","true","tabindex","0"],[1,"group","relative","cursor-pointer","rounded","border","p-4","hover:border-primary-50","border-primary-100","shadow-sm",3,"click","ngClass"],[1,"mb-3","text-sm","font-semibold","capitalize","text-heading","dark:text-white","line-clamp-4","text-wrap","break-words",3,"ngClass"],[1,"text-sm","text-sub-heading","dark:text-gray-200","line-clamp-8","text-wrap","break-words"],[1,"absolute","top-4","flex","space-x-2","opacity-0","group-hover:opacity-100","right-4"],[1,"flex","h-5","w-5","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-50","dark:text-white",3,"click"],[1,"sr-only"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","fill","currentColor",1,"h-3","w-3"],["d","M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"],["id","edit-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],["id","delete-bill-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],["tabindex","-1",1,"hidden","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full"],[1,"relative","p-4","w-full","max-w-md","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-700"],["type","button","data-modal-hide","popup-modal",1,"absolute","top-3","end-2.5","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"p-4","md:p-5","text-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"mx-auto","mb-4","text-gray-400","w-12","h-12","dark:text-gray-200"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11V6m0 8h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],[1,"mb-5","text-lg","font-normal","text-gray-500","dark:text-gray-400"],["type","button",1,"text-white","bg-red-600","hover:bg-red-800","focus:ring-4","focus:outline-none","focus:ring-red-300","dark:focus:ring-red-800","font-medium","rounded-lg","text-sm","inline-flex","items-center","px-5","py-2.5","text-center",3,"click"],["type","button",1,"py-2.5","px-5","ms-3","text-sm","font-medium","text-gray-900","focus:outline-none","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","hover:text-secondary-400","focus:z-10","focus:ring-4","focus:ring-gray-100","dark:focus:ring-gray-700","dark:bg-gray-800","dark:text-gray-400","dark:border-gray-600","dark:hover:text-white","dark:hover:bg-gray-700"],[1,"w-full","max-w-2xl","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","relative",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"max-h-[80vh]","overflow-y-auto","p-4"],[3,"billAcc"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","dark:bg-secondary-100","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-white"],[1,"mb-4","text-gray-500","dark:text-white","text-wrap","break-words"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","rounded-lg","border","border-gray-200","dark:border-secondary-300","hover:bg-gray-100","dark:hover:bg-secondary-200","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-800","hover:bg-red-900","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-red-300",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.bIt("click",function(u){return l.selectBillingAddress(u)}),e.j41(2,"p",2),e.EFF(3),e.k0s(),e.j41(4,"p",3),e.EFF(5),e.k0s(),e.j41(6,"div",4)(7,"button",5),e.bIt("click",function(u){return l.editBill=!0,u.stopPropagation()}),e.j41(8,"span",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.qSk(),e.j41(11,"svg",7),e.nrm(12,"path",8),e.k0s()()()()(),e.DNE(13,$10,14,8,"div",9)(14,O10,25,17,"div",10),e.joV(),e.j41(15,"div",11)(16,"div",12)(17,"div",13)(18,"button",14),e.qSk(),e.j41(19,"svg",15),e.nrm(20,"path",16),e.k0s(),e.joV(),e.j41(21,"span",6),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"div",17),e.qSk(),e.j41(25,"svg",18),e.nrm(26,"path",19),e.k0s(),e.joV(),e.j41(27,"h3",20),e.EFF(28),e.k0s(),e.j41(29,"button",21),e.bIt("click",function(){return l.deleteBAddr()}),e.EFF(30," Yes, I'm sure "),e.k0s(),e.j41(31,"button",22),e.EFF(32,"No, cancel"),e.k0s()()()()()),2&t&&(e.R7$(),e.Y8G("ngClass",l.data.selected?"bg-primary-50/50 dark:bg-primary-100":"bg-gray-100 dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(20,j10,l.hasLongWord(l.data.name,20),!l.hasLongWord(l.data.name,20))),e.R7$(),e.JRh(l.data.name),e.R7$(2),e.SjE("",l.data.postalAddress.street,", ",l.data.postalAddress.postCode,", ",l.data.postalAddress.city,", ",l.data.postalAddress.stateOrProvince,", ",l.data.postalAddress.country,""),e.R7$(4),e.JRh(e.bMT(10,16,"BILLING._edit")),e.R7$(4),e.vxM(13,l.editBill?13:-1),e.R7$(),e.vxM(14,l.deleteBill?14:-1),e.R7$(),e.BMQ("id","popup-modal_"+l.position),e.R7$(7),e.JRh(e.bMT(23,18,"BILLING._close_modal")),e.R7$(6),e.SpI("Are you sure you want to delete the billing address called ",l.data.name,"?"),e.R7$(),e.BMQ("data-modal-hide","popup-modal_"+l.position),e.R7$(2),e.BMQ("data-modal-hide","popup-modal_"+l.position))},dependencies:[_.YU,nf1,s1.D9]})}}return n})();const LS1=(n,a)=>a.id,B10=(n,a)=>({"break-all":n,"break-words":a});function V10(n,a){1&n&&(e.j41(0,"div",0)(1,"div",30)(2,"span",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.qSk(),e.j41(5,"svg",32),e.nrm(6,"circle",33)(7,"path",34),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,1,"SHOPPING_CART._loading_purchase")))}function U10(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",35),e.bIt("click",function(l){return e.eBV(c),e.XpG().addBill=!0,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",36),e.nrm(2,"path",37),e.k0s(),e.EFF(3," Add "),e.k0s()}}function G10(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-billing-address",39),e.bIt("selectedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onSelected(l))})("deletedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onDeleted(l))}),e.k0s()}if(2&n){const t=a.$index;e.Y8G("data",a.$implicit)("position",t)}}function H10(n,a){if(1&n&&(e.j41(0,"div",18),e.Z7z(1,G10,1,2,"app-billing-address",38,LS1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.billingAddresses)}}function Y10(n,a){1&n&&e.nrm(0,"app-billing-account-form",40),2&n&&e.Y8G("preferred",!0)}function q10(n,a){1&n&&(e.j41(0,"div",25),e.qSk(),e.j41(1,"svg",41),e.nrm(2,"path",42)(3,"path",43),e.k0s(),e.joV(),e.j41(4,"span",44),e.EFF(5,"Loading..."),e.k0s()())}function X10(n,a){if(1&n&&e.nrm(0,"img",49),2&n){const c=e.XpG().$implicit;e.FS9("src",c.image,e.B4B)}}function W10(n,a){1&n&&e.nrm(0,"img",58)}function J10(n,a){1&n&&e.EFF(0," Estimated price: ")}function Q10(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function Z10(n,a){if(1&n&&(e.j41(0,"div",59)(1,"span",60),e.EFF(2),e.k0s(),e.j41(3,"span",61),e.DNE(4,J10,1,0),e.EFF(5),e.DNE(6,Q10,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.vxM(4,"usage"==c.priceType?4:-1),e.R7$(),e.Lme(" ",c.price.taxIncludedAmount.value," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(6,t.hasKey(c,"recurringChargePeriod")?6:-1)}}function K10(n,a){if(1&n&&(e.j41(0,"div",54),e.Z7z(1,Z10,7,5,"div",59,e.fX1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Dyx(c.options.pricing)}}function e20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",45)(1,"div",46)(2,"div",47)(3,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToProdDetails(l))}),e.DNE(4,X10,1,1,"img",49)(5,W10,1,0),e.k0s(),e.j41(6,"div",50)(7,"p",51),e.EFF(8),e.k0s()()(),e.j41(9,"div",52)(10,"div",53),e.DNE(11,K10,3,0,"div",54),e.k0s()()(),e.j41(12,"div",52)(13,"button",55),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.deleteProduct(l))}),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",57),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(4),e.vxM(4,c.image?4:5),e.R7$(3),e.Y8G("ngClass",e.l_i(4,B10,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.vxM(11,c.options.pricing?11:-1)}}function c20(n,a){if(1&n&&e.Z7z(0,e20,16,7,"div",45,LS1),2&n){const c=e.XpG();e.Dyx(c.items)}}function t20(n,a){1&n&&(e.j41(0,"div",26),e.qSk(),e.j41(1,"svg",62),e.nrm(2,"path",63),e.k0s(),e.joV(),e.j41(3,"span",44),e.EFF(4,"Info"),e.k0s(),e.j41(5,"p",64),e.EFF(6," You need to create at least one valid billing address. "),e.k0s()())}function n20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",28)(1,"div",65),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",66)(3,"h2",67),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addBill=!1)}),e.qSk(),e.j41(7,"svg",69),e.nrm(8,"path",57),e.k0s(),e.joV(),e.j41(9,"span",44),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",70),e.nrm(13,"app-billing-account-form",40),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.addBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._add"),": "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function l20(n,a){if(1&n&&e.nrm(0,"error-message",29),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}class eD{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c,t,l,i,u,C,b,T,W,u1){var a1=this;this.localStorage=a,this.account=c,this.orderService=t,this.eventMessage=l,this.priceService=i,this.cartService=u,this.paymentService=C,this.api=b,this.cdr=T,this.router=W,this.route=u1,this.faCartShopping=TL,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.TAX_RATE=g1.c.TAX_RATE,this.items=[],this.showBackDrop=!0,this.billingAddresses=[],this.loading=!1,this.loading_baddrs=!1,this.addBill=!1,this.relatedParty="",this.contact={email:"",username:""},this.preferred=!1,this.loading_purchase=!1,this.check_custom=!1,this.validBillAddr=!0,this.errorMessage="",this.showError=!1,this.providerId=null,this.loadingItems=!1,this.orderNote="",this.destroy$=new S.B,this.orderProduct=this.orderProduct.bind(this),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(function(){var T1=(0,C1.A)(function*(Y1){"BillAccChanged"===Y1.type&&a1.getBilling(),1==Y1.value&&(a1.addBill=!1),"ChangedSession"===Y1.type&&(console.log("changing session..."),yield a1.initCheckoutData()),"AddedCartItem"===Y1.type&&(a1.loadingItems=!0,console.log("Elemento a\xf1adido"),a1.cartService.getShoppingCart().then(function(){var f2=(0,C1.A)(function*(M2){console.log("---CARRITO API---"),console.log(M2),a1.items=M2,a1.providerId&&(yield a1.getProviderInfo(),a1.groupItemsByOwner(a1.providerId)),a1.cdr.detectChanges(),a1.getTotalPrice(),a1.loadingItems=!1,console.log("------------------")});return function(M2){return f2.apply(this,arguments)}}())),"RemovedCartItem"===Y1.type&&(a1.loadingItems=!0,a1.cartService.getShoppingCart().then(function(){var f2=(0,C1.A)(function*(M2){console.log("---CARRITO API---"),console.log(M2),a1.items=M2,a1.providerId&&(yield a1.getProviderInfo(),a1.groupItemsByOwner(a1.providerId)),a1.cdr.detectChanges(),a1.getTotalPrice(),a1.loadingItems=!1,console.log("------------------")});return function(M2){return f2.apply(this,arguments)}}()))});return function(Y1){return T1.apply(this,arguments)}}())}onClick(){1==this.addBill&&(this.addBill=!1,this.cdr.detectChanges())}hasKey(a,c){return c in a}getPrice(a){return null!=a.options.pricing?"custom"==a.options.pricing.priceType?(this.check_custom=!0,null):{priceType:a.options.pricing.priceType,price:a.options.pricing.price?.value,unit:a.options.pricing.price?.unit,text:a.options.pricing.priceType?.toLocaleLowerCase()==vn.PRICE.RECURRING?a.options.pricing.recurringChargePeriodType:a.options.pricing.priceType?.toLocaleLowerCase()==vn.PRICE.USAGE?"/ "+a.options.pricing?.unitOfMeasure?.units:""}:null}getTotalPrice(){this.totalPrice=[];let a=!1;this.check_custom=!1,this.cdr.detectChanges();let c={};for(let t=0;tt.options.pricing).map(t=>a.createProductPayload(t));console.log("Productos creados:",c);try{const t=a.createProductOrder(c);console.log("--- order ---"),console.log(t);const l=yield(0,t5._)(a.orderService.postProductOrder(t)),i=l.headers.get("X-Redirect-URL");console.log(l.headers),console.log(i),console.log("PROD ORDER DONE"),i?(console.log("redirectURL"),window.location.href=i):(console.log("non-redirectURL"),yield a.emptyShoppingCart(),a.goToInventory())}catch(t){a.handleError(t,"There was an error during purchase!")}finally{a.loading_purchase=!1,a.cdr.detectChanges()}})()}createProductPayload(a){let c=[];return a.options.pricing.length>0&&(c=[{productOfferingPrice:{id:a.options.pricing[0].id,href:a.options.pricing[0].id}}]),{id:a.id,action:"add",productOffering:{id:a.id,href:a.id},itemTotalPrice:c,product:{productCharacteristic:a.options.characteristics}}}createProductOrder(a){let c={productOrderItem:a,relatedParty:[{id:this.relatedParty,href:this.relatedParty,role:g1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBillingAddress.id,href:this.selectedBillingAddress.id},notificationContact:this.selectedBillingAddress.email};if(""!=this.orderNote){const t={text:this.orderNote,id:`urn:ngsi-ld:note:${L4()}`,author:this.relatedParty,date:(new Date).toISOString()};c.note=[t]}return c}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){try{const c=yield a.cartService.emptyShoppingCart();console.log(c),console.log("EMPTY")}catch(c){a.handleError(c,"There was an error while emptying the cart!")}})()}handleError(a,c){console.error(c,a),this.errorMessage=a?.error?.error?`Error: ${a.error.error}`:c,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}ngOnInit(){this.loadingItems=!0,this.formatter=new Intl.NumberFormat("es-ES",{style:"currency",currency:"EUR"}),console.log("--- Query Params ---"),console.log(this.route.snapshot.queryParams);const a=this.route.snapshot.queryParams;if(a.client&&a.action&&a.ref){let c={...a};if(c.ref.includes("?jwt")){let t=c.ref.split("?jwt");c.ref=t[0],c.jwt=t[1]}this.loading_purchase=!0,(0,t5._)(this.paymentService.completePayment(c)).then(t=>{this.loading_purchase=!1,console.log("--- Payment Response ---"),console.log(t),"accept"==a.action&&200==t.status?this.emptyShoppingCart().then(()=>this.goToInventory()):this.initCheckoutData()}).catch(t=>{this.loading_purchase=!0,console.log("--- Payment Error ---"),console.log(t),this.initCheckoutData()})}else this.initCheckoutData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initCheckoutData(){var a=this;return(0,C1.A)(function*(){a.providerId=a.route.snapshot.paramMap.get("id");let c=a.localStorage.getObject("login_items");if(c&&(a.contact.email=c.email,a.contact.username=c.username),c.logged_as==c.id)a.relatedParty=c.partyId;else{let l=c.organizations.find(i=>i.id==c.logged_as);a.relatedParty=l.partyId}console.log("--- Login Info ---"),console.log(c);let t=yield a.cartService.getShoppingCart();console.log("---CARRITO API---"),console.log(t),a.items=t,a.providerId&&(yield a.getProviderInfo(),a.groupItemsByOwner(a.providerId),a.loadingItems=!1),a.cdr.detectChanges(),a.getTotalPrice(),console.log("------------------"),console.log("--- ITEMS ---"),console.log(a.items),a.loading_baddrs=!0,yield a.getBilling()})()}getProviderInfo(){var a=this;return(0,C1.A)(function*(){for(let c=0;ct.relatedParty?.find(i=>i.role===g1.c.SELLER_ROLE)?.id===a);console.log(c),this.items=c}getBilling(){var a=this;return(0,C1.A)(function*(){a.selectedBillingAddress=null;let c=!1;a.billingAddresses=[];let t=yield a.account.getBillingAccount();for(let l=0;l0),a.validBillAddr=!!a.selectedBillingAddress?.id,a.cdr.detectChanges()})()}onSelected(a){var c=this;return(0,C1.A)(function*(){try{c.validBillAddr=!0;for(let l of c.billingAddresses)l.selected=!1;c.selectedBillingAddress=a,console.log("billing addr selected...."),console.log(c.selectedBillingAddress);const t=JSON.parse(JSON.stringify(c.items));for(const l of t){console.log("---- cart item ----"),console.log(l);let u=(yield(0,e0.s)(c.priceService.calculatePrice({productOrder:{id:L4(),productOrderItem:[{action:"add",id:l.id,itemTotalPrice:0==l.options.pricing.length?[]:[{productOfferingPrice:{id:l.options.pricing[0].id,href:l.options.pricing[0].id,name:""}}],product:{productCharacteristic:l.options.characteristics},productOffering:{id:l.id,href:l.id},quantity:"1"}],billingAccount:{id:c.selectedBillingAddress.id,href:c.selectedBillingAddress.id}},usage:yield c.buildUsageFromCartItem(l)}))).orderTotalPrice;u=u.map(C=>({...C,id:l.options.pricing[0].id})),l.options.pricing=u}yield c.emptyShoppingCart(),c.items=t;for(const l of c.items)yield c.cartService.addItemShoppingCart(l);c.getTotalPrice(),c.cdr.detectChanges()}catch(t){c.validBillAddr=!1,c.cdr.detectChanges(),c.handleError(t,"Invalid biling address")}})()}buildUsageFromCartItem(a){var c=this;return(0,C1.A)(function*(){if(!a.options.pricing||0===a.options.pricing.length)return[];let t=[];const l=yield c.api.getOfferingPrice(a.options.pricing[0].id);if(l.isBundle)for(const i of l.bundledPopRelationship){const u=yield c.api.getOfferingPrice(i.id);u.usageSpecId&&u.unitOfMeasure&&t.push({usageSpecification:{id:u.usageSpecId},usageCharacteristic:[{name:u.unitOfMeasure.units,value:1}]})}else t.push(l);return t})()}onDeleted(a){console.log("Deleting billing account")}deleteProduct(a){var c=this;return(0,C1.A)(function*(){yield c.cartService.removeItemShoppingCart(a.id),console.log("deleted"),c.eventMessage.emitRemovedCartItem(a),c.cartService.getShoppingCart().then(function(){var t=(0,C1.A)(function*(l){console.log("---CARRITO API---"),console.log(l),c.items=l,c.providerId&&(yield c.getProviderInfo(),c.groupItemsByOwner(c.providerId),c.loadingItems=!1),c.cdr.detectChanges(),c.getTotalPrice(),console.log("------------------")});return function(l){return t.apply(this,arguments)}}())})()}goToProdDetails(a){this.router.navigate(["/search/",a.id])}hasLongWord(a,c=20){return!!a&&a.split(/\s+/).some(t=>t.length>c)}static{this.\u0275fac=function(c){return new(c||eD)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(D8),e.rXU(U2),e.rXU(X8),e.rXU(d8),e.rXU(oF),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(E2.nX))}}static{this.\u0275cmp=e.VBU({type:eD,selectors:[["app-checkout"]],hostBindings:function(c,t){1&c&&e.bIt("click",function(){return t.onClick()},!1,e.EBC)},decls:65,vars:36,consts:[[1,"absolute","bg-white","dark:bg-gray-400","dark:bg-opacity-60","bg-opacity-60","z-10","h-full","w-full","flex","items-center","justify-center"],[1,"container","mx-auto","px-4","py-8","lg:py-10","lg:px-8","xl:py-14","xl:px-16","2xl:px-20"],[1,"mb-4","pb-2","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"m-auto","flex","w-full","flex-col","items-center","rtl:space-x-reverse","lg:flex-row","lg:items-start","lg:space-x-8"],[1,"w-full","space-y-6"],[1,"bg-secondary-50","dark:bg-secondary-100","p-5","shadow-700","md:p-8","rounded","rounded-lg"],[1,"mb-5","flex","items-center","justify-between","md:mb-8"],[1,"flex","items-center","space-x-3","rtl:space-x-reverse","md:space-x-4"],[1,"flex","h-8","w-8","items-center","justify-center","rounded-full","bg-primary-100","text-base","text-white","lg:text-xl"],[1,"text-lg","capitalize","text-heading","lg:text-xl","dark:text-white"],[1,"w-full"],[1,""],[1,"special-label","dark:text-white"],[1,"text-lg","text-heading","lg:text-xl","dark:text-white"],["data-cy","orderAddBill",1,"flex","items-center","text-sm","font-semibold","text-accent","dark:text-white","transition-colors","duration-200","hover:text-accent-hover","focus:text-accent-hover","focus:outline-0"],["id","billing-addresses","role","radiogroup","aria-labelledby","billing-addresses"],["id","billing-addresses-label","role","none",1,"sr-only"],["role","none",1,"grid","grid-cols-1","gap-4","sm:grid-cols-2","md:grid-cols-3"],[1,"block"],["id","large-input","name","orderNote","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false","rows","4",1,"flex","w-full","min-h-fit","dark:text-white","dark:bg-secondary-300","dark:border-secondary-200","dark:focus:border-primary-100","items-center","rounded","px-4","py-3","text-sm","text-heading","transition","duration-300","ease-in-out","focus:outline-0","focus:ring-0","border","border-border-base","focus:border-accent",3,"ngModelChange","ngModel"],[1,"w-full","lg:w-3/4","rounded","rounded-lg","bg-secondary-50","dark:bg-secondary-100","p-4","mt-8","lg:mt-0"],[1,"mb-4","flex","flex-col","items-center","space-x-4","rtl:space-x-reverse"],[1,"text-2xl","text-start","font-bold","dark:text-white"],[1,"flex","flex-col","border-b","border-border-200","py-3"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["role","alert",1,"flex","items-center","p-4","text-sm","text-primary-50"],["data-cy","checkout",1,"inline-flex","items-center","justify-center","shrink-0","font-semibold","leading-none","rounded","outline-none","transition","duration-300","ease-in-out","focus:outline-0","focus:shadow","focus:ring-1","focus:ring-accent-700","bg-primary-50","dark:bg-primary-100","text-white","border","border-transparent","hover:bg-secondary-100","dark:hover:bg-primary-50","px-5","py-0","h-12","mt-5","w-full",3,"click","disabled","ngClass"],["id","add-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","items-center"],[1,"text-3xl","text-bold","mr-4","text-primary-100"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"animate-spin","h-8","w-8","text-primary-100"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],["data-cy","orderAddBill",1,"flex","items-center","text-sm","font-semibold","text-accent","dark:text-white","transition-colors","duration-200","hover:text-accent-hover","focus:text-accent-hover","focus:outline-0",3,"click"],["fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"h-4","w-4","stroke-2","ltr:mr-0.5","rtl:ml-0.5"],["stroke-linecap","round","stroke-linejoin","round","d","M12 6v6m0 0v6m0-6h6m-6 0H6"],[3,"data","position"],[3,"selectedEvent","deletedEvent","data","position"],[3,"preferred"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],["data-cy","checkoutOffering",1,"flex","justify-between","w-full","mt-2","mb-2","rounded-lg","bg-white","border-secondary-50","dark:bg-primary-100","dark:border-secondary-200","border","shadow-lg"],[1,"flex","flex-col","w-full"],[1,"flex","justify-between","w-full"],["type","button",1,"flex","p-2","box-decoration-clone",3,"click"],["alt","",1,"rounded-lg","w-fit","h-[100px]",3,"src"],[1,"p-2","flex","items-center","w-2/3"],[1,"text-lg","text-gray-700","dark:text-gray-200","line-clamp-4","text-wrap","break-words",3,"ngClass"],[1,"p-2","flex","items-center"],[1,"p-2","flex","items-center","flex-row"],[1,"items-center","text-sm","text-white"],["type","button",1,"h-fit","text-gray-700","dark:text-white","hover:bg-gray-300","hover:text-white","dark:hover:text-secondary-400","focus:ring-4","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-[12px]","h-[12px]"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],["src","https://placehold.co/600x400/svg","alt","",1,"rounded-lg","w-fit","h-[100px]"],[1,"flex","place-content-center","flex-col"],[1,"font-bold","text-gray-900","dark:text-primary-50","mr-3"],[1,"text-xs","text-gray-900","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-center"],[1,"w-full","max-w-2xl","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","relative",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"max-h-[80vh]","overflow-y-auto","p-4"]],template:function(c,t){1&c&&(e.DNE(0,V10,8,3,"div",0),e.j41(1,"div",1)(2,"h1",2)(3,"span",3),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"div",8)(11,"span",9),e.EFF(12,"1"),e.k0s(),e.j41(13,"p",10),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"div",11)(17,"div",12)(18,"div",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"p",14),e.EFF(22),e.k0s()()()(),e.j41(23,"div",6)(24,"div",7)(25,"div",8)(26,"span",9),e.EFF(27,"2"),e.k0s(),e.j41(28,"p",10),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.DNE(31,U10,4,0,"button",15),e.k0s(),e.j41(32,"div",16)(33,"label",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.DNE(36,H10,3,0,"div",18)(37,Y10,1,1),e.k0s()(),e.j41(38,"div",6)(39,"div",7)(40,"div",8)(41,"span",9),e.EFF(42,"3"),e.k0s(),e.j41(43,"p",10),e.EFF(44),e.nI1(45,"translate"),e.k0s()()(),e.j41(46,"div",19)(47,"div")(48,"textarea",20),e.mxI("ngModelChange",function(i){return e.DH7(t.orderNote,i)||(t.orderNote=i),i}),e.EFF(49," "),e.k0s()()()()(),e.j41(50,"div",21)(51,"div",11)(52,"div",22)(53,"span",23),e.EFF(54),e.nI1(55,"translate"),e.k0s()(),e.j41(56,"div",24),e.DNE(57,q10,6,0,"div",25)(58,c20,2,0),e.k0s(),e.DNE(59,t20,7,0,"div",26),e.j41(60,"button",27),e.bIt("click",function(){return t.orderProduct()}),e.EFF(61),e.nI1(62,"translate"),e.k0s()()()()(),e.DNE(63,n20,14,8,"div",28)(64,l20,1,1,"error-message",29)),2&c&&(e.vxM(0,t.loading_purchase?0:-1),e.R7$(4),e.JRh(e.bMT(5,20,"SHOPPING_CART._checkout")),e.R7$(10),e.JRh(e.bMT(15,22,"SHOPPING_CART._contact")),e.R7$(5),e.JRh(e.bMT(20,24,"SHOPPING_CART._contact_person")),e.R7$(3),e.Lme("",t.contact.username," ",t.contact.email,""),e.R7$(7),e.JRh(e.bMT(30,26,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(31,t.billingAddresses.length>0?31:-1),e.R7$(3),e.JRh(e.bMT(35,28,"SHOPPING_CART._billingAddress")),e.R7$(2),e.vxM(36,t.billingAddresses.length>0?36:37),e.R7$(8),e.JRh(e.bMT(45,30,"SHOPPING_CART._order_note")),e.R7$(4),e.R50("ngModel",t.orderNote),e.R7$(6),e.JRh(e.bMT(55,32,"SHOPPING_CART._your_order")),e.R7$(3),e.vxM(57,t.loadingItems?57:58),e.R7$(2),e.vxM(59,t.validBillAddr?-1:59),e.R7$(),e.Y8G("disabled",0==t.items.length||!t.validBillAddr)("ngClass",0!=t.items.length&&t.validBillAddr?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(62,34,"SHOPPING_CART._checkout")," "),e.R7$(2),e.vxM(63,t.addBill?63:-1),e.R7$(),e.vxM(64,t.showError?64:-1))},dependencies:[_.YU,p.me,p.BC,p.vS,_S1,nf1,E0,s1.D9]})}}let s20=(()=>{class n{constructor(c){this.http=c,this.BASE_URL=g1.c.BASE_URL}sendEmail(c){return this.http.post(`${this.BASE_URL}/contact-us`,c)}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function a20(n,a){if(1&n&&(e.j41(0,"option",20),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.SpI(" ",e.bMT(2,2,"ContactUs.fields.supportType.options."+c)," ")}}function o20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function i20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function r20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function d20(n,a){if(1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",null!=c.f.email.errors&&c.f.email.errors.email?e.bMT(2,1,"ContactUs.validation.email"):e.bMT(3,3,"ContactUs.validation.required")," ")}}function f20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function u20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function m20(n,a){1&n&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.required")," "))}function p20(n,a){1&n&&(e.j41(0,"span",33),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"ContactUs.validation.privacyRequired")," "))}function h20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"div",11)(2,"h3",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",13),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"form",14),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(9,"div",15)(10,"label",16),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",17)(14,"select",18)(15,"option",19),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.Z7z(18,a20,3,4,"option",20,e.fX1),e.k0s()(),e.DNE(20,o20,3,3,"span",21),e.k0s(),e.j41(21,"div",22)(22,"div",15)(23,"label",16),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.nrm(26,"input",23),e.nI1(27,"translate"),e.DNE(28,i20,3,3,"span",21),e.k0s(),e.j41(29,"div",15)(30,"label",16),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"input",24),e.nI1(34,"translate"),e.DNE(35,r20,3,3,"span",21),e.k0s()(),e.j41(36,"div",15)(37,"label",16),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.nrm(40,"input",25),e.nI1(41,"translate"),e.DNE(42,d20,4,5,"span",21),e.k0s(),e.j41(43,"div",22)(44,"div",15)(45,"label",16),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.nrm(48,"input",26),e.nI1(49,"translate"),e.DNE(50,f20,3,3,"span",21),e.k0s(),e.j41(51,"div",15)(52,"label",16),e.EFF(53),e.nI1(54,"translate"),e.k0s(),e.nrm(55,"input",27),e.nI1(56,"translate"),e.DNE(57,u20,3,3,"span",21),e.k0s()(),e.j41(58,"div",15)(59,"label",16),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.nrm(62,"textarea",28),e.nI1(63,"translate"),e.DNE(64,m20,3,3,"span",21),e.k0s(),e.j41(65,"label",29),e.nrm(66,"input",30),e.j41(67,"span"),e.EFF(68),e.nI1(69,"translate"),e.j41(70,"a",31),e.EFF(71),e.nI1(72,"translate"),e.k0s(),e.EFF(73),e.nI1(74,"translate"),e.j41(75,"a",32),e.EFF(76),e.nI1(77,"translate"),e.k0s(),e.EFF(78),e.nI1(79,"translate"),e.k0s()(),e.DNE(80,p20,3,3,"span",33),e.j41(81,"label",34),e.nrm(82,"input",35),e.j41(83,"span"),e.EFF(84),e.nI1(85,"translate"),e.k0s()(),e.j41(86,"button",36),e.EFF(87),e.nI1(88,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,48,"ContactUs.form.title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,50,"ContactUs.form.subtitle")," "),e.R7$(2),e.Y8G("formGroup",c.form),e.R7$(3),e.SpI(" ",e.bMT(12,52,"ContactUs.fields.supportType.label")," "),e.R7$(3),e.AVh("contact-input-error",c.hasError("supportType"))("contact-select-placeholder",!c.f.supportType.value),e.R7$(2),e.SpI(" ",e.bMT(17,54,"ContactUs.fields.supportType.placeholder")," "),e.R7$(2),e.Dyx(c.supportOptions),e.R7$(2),e.vxM(20,c.hasError("supportType")?20:-1),e.R7$(4),e.SpI(" ",e.bMT(25,56,"ContactUs.fields.firstName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("firstName")),e.Y8G("placeholder",e.bMT(27,58,"ContactUs.fields.firstName.placeholder")),e.R7$(2),e.vxM(28,c.hasError("firstName")?28:-1),e.R7$(3),e.SpI(" ",e.bMT(32,60,"ContactUs.fields.lastName.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("lastName")),e.Y8G("placeholder",e.bMT(34,62,"ContactUs.fields.lastName.placeholder")),e.R7$(2),e.vxM(35,c.hasError("lastName")?35:-1),e.R7$(3),e.SpI(" ",e.bMT(39,64,"ContactUs.fields.email.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("email")),e.Y8G("placeholder",e.bMT(41,66,"ContactUs.fields.email.placeholder")),e.R7$(2),e.vxM(42,c.hasError("email")?42:-1),e.R7$(4),e.SpI(" ",e.bMT(47,68,"ContactUs.fields.organization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("organization")),e.Y8G("placeholder",e.bMT(49,70,"ContactUs.fields.organization.placeholder")),e.R7$(2),e.vxM(50,c.hasError("organization")?50:-1),e.R7$(3),e.SpI(" ",e.bMT(54,72,"ContactUs.fields.roleInOrganization.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("roleInOrganization")),e.Y8G("placeholder",e.bMT(56,74,"ContactUs.fields.roleInOrganization.placeholder")),e.R7$(2),e.vxM(57,c.hasError("roleInOrganization")?57:-1),e.R7$(3),e.SpI(" ",e.bMT(61,76,"ContactUs.fields.message.label")," "),e.R7$(2),e.AVh("contact-input-error",c.hasError("message")),e.Y8G("placeholder",e.bMT(63,78,"ContactUs.fields.message.placeholder")),e.R7$(2),e.vxM(64,c.hasError("message")?64:-1),e.R7$(4),e.SpI(" ",e.bMT(69,80,"ContactUs.checkboxes.privacy.prefix")," "),e.R7$(3),e.SpI(" ",e.bMT(72,82,"ContactUs.checkboxes.privacy.privacyPolicy")," "),e.R7$(2),e.SpI(" ",e.bMT(74,84,"ContactUs.checkboxes.privacy.middle")," "),e.R7$(3),e.SpI(" ",e.bMT(77,86,"ContactUs.checkboxes.privacy.termsOfService")," "),e.R7$(2),e.SpI(" ",e.bMT(79,88,"ContactUs.checkboxes.privacy.suffix")," "),e.R7$(2),e.vxM(80,c.hasError("privacyAccepted")?80:-1),e.R7$(4),e.SpI(" ",e.bMT(85,90,"ContactUs.checkboxes.marketing")," "),e.R7$(3),e.SpI(" ",e.bMT(88,92,"ContactUs.cta.submit")," ")}}function g20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",40),e.nrm(4,"fa-icon",41),e.k0s()(),e.j41(5,"h3",42),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",43),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",44)(12,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onContinueBrowsing())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.Y8G("icon",c.faThumbsUp),e.R7$(2),e.SpI(" ",e.bMT(7,4,"ContactUs.success.title")," "),e.R7$(3),e.SpI(" ",e.bMT(10,6,"ContactUs.success.description")," "),e.R7$(4),e.SpI(" ",e.bMT(14,8,"ContactUs.success.cta")," ")}}let _20=(()=>{class n{constructor(){this.fb=(0,e.WQX)(p.ok),this.router=(0,e.WQX)(E2.Ix),this.contactUsService=(0,e.WQX)(s20),this.faThumbsUp=kv1,this.unsub=new S.B,this.submitted=!1,this.submittedSuccessfully=!1,this.supportOptions=Rw1,this.form=this.fb.nonNullable.group({supportType:["",[p.k0.required]],firstName:["",[p.k0.required]],lastName:["",[p.k0.required]],email:["",[p.k0.required,p.k0.email]],organization:["",[p.k0.required]],roleInOrganization:["",[p.k0.required]],message:["",[p.k0.required]],privacyAccepted:[!1,[p.k0.requiredTrue]],marketingAccepted:[!1]})}get f(){return this.form.controls}hasError(c){const t=this.form.controls[c];return!!t&&t.invalid&&(t.touched||this.submitted)}onSubmit(){if(this.submitted=!0,this.form.markAllAsTouched(),this.form.invalid)return;const c=this.form.getRawValue();this.contactUsService.sendEmail(c).pipe((0,O1.Q)(this.unsub)).subscribe({next:()=>{this.submittedSuccessfully=!0}})}onContinueBrowsing(){this.submittedSuccessfully=!1,this.submitted=!1,this.form.reset({supportType:"",firstName:"",lastName:"",email:"",organization:"",roleInOrganization:"",message:"",privacyAccepted:!1,marketingAccepted:!1}),this.router.navigate(["/dashboard"])}ngOnDestroy(){this.unsub.next(),this.unsub.complete()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-contact-us"]],standalone:!0,features:[e.aNF],decls:18,vars:10,consts:[[1,"contact-section","relative","isolate","overflow-hidden","font-[Blinker]"],[1,"contact-glow","contact-glow-1"],[1,"contact-glow","contact-glow-2"],[1,"contact-glow","contact-glow-3"],[1,"contact-glow","contact-glow-4"],[1,"relative","z-10","mx-auto","flex","min-h-[887px]","w-full","max-w-[1440px]","flex-col","justify-center","gap-12","px-6","py-12","sm:px-8","md:px-10","md:py-16","lg:flex-row","lg:items-center","lg:justify-between","lg:px-16","xl:px-[160px]"],[1,"contact-copy","w-full","max-w-[453px]"],[1,"flex","flex-wrap","items-end","text-[clamp(2.75rem,2.1rem+2.1vw,3.75rem)]","font-extrabold","leading-[0.95]","tracking-[0.02em]","text-[#0B1528]"],[1,"ml-3","text-[#3D71CC]"],[1,"mt-6","max-w-[453px]","text-[clamp(1rem,0.92rem+0.35vw,1.25rem)]","leading-[1.6]","text-[#4C5A6B]"],[1,"contact-card","w-full","max-w-[572px]","rounded-[16px]","bg-[#F7F9FD]","p-6","lg:p-[24px_32px]"],[1,"pb-3"],[1,"text-[24px]","font-bold","text-[#14274A]"],[1,"mt-1","text-[14px]","text-[#5A7AAA]"],["novalidate","",1,"flex","flex-col","gap-6",3,"ngSubmit","formGroup"],[1,"contact-field"],[1,"contact-label"],[1,"contact-select-wrap"],["formControlName","supportType",1,"contact-select"],["value","","disabled",""],[3,"value"],[1,"contact-error"],[1,"grid","grid-cols-1","gap-4","sm:grid-cols-2"],["type","text","formControlName","firstName",1,"contact-input",3,"placeholder"],["type","text","formControlName","lastName",1,"contact-input",3,"placeholder"],["type","email","formControlName","email",1,"contact-input",3,"placeholder"],["type","text","formControlName","organization",1,"contact-input",3,"placeholder"],["type","text","formControlName","roleInOrganization",1,"contact-input",3,"placeholder"],["rows","6","formControlName","message",1,"contact-textarea",3,"placeholder"],[1,"contact-checkbox"],["type","checkbox","formControlName","privacyAccepted"],["href","assets/documents/privacy.pdf","target","_blank",1,"contact-link"],["href","assets/documents/terms.pdf","target","_blank",1,"contact-link"],[1,"contact-error","-mt-4"],[1,"contact-checkbox","contact-checkbox-top"],["type","checkbox","formControlName","marketingAccepted"],["type","submit",1,"contact-submit"],[1,"contact-card","contact-card-success","w-full","max-w-[572px]","rounded-[16px]","bg-[#F7F9FD]","p-6","lg:p-[24px_32px]"],[1,"contact-success-content"],[1,"contact-success-icon-wrap"],[1,"contact-success-icon"],[3,"icon"],[1,"contact-success-title"],[1,"contact-success-description"],[1,"contact-success-cta"],["type","button",1,"contact-submit",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),e.j41(5,"div",5)(6,"div",6)(7,"h2",7),e.EFF(8),e.nI1(9,"translate"),e.j41(10,"span",8),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"p",9),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.DNE(16,h20,89,94,"div",10)(17,g20,15,10),e.k0s()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,4,"ContactUs.hero.titleStart")," "),e.R7$(3),e.SpI(" ",e.bMT(12,6,"ContactUs.hero.titleAccent")," "),e.R7$(3),e.SpI(" ",e.bMT(15,8,"ContactUs.hero.description")," "),e.R7$(2),e.vxM(16,l.submittedSuccessfully?17:16))},dependencies:[_.MD,p.X1,p.qT,p.xH,p.y7,p.me,p.Zm,p.wz,p.BC,p.cb,p.j4,p.JD,s1.h,s1.D9,J2.dX,J2.aY],styles:['.contact-section[_ngcontent-%COMP%]{width:100%;background:#dde6f6;box-shadow:0 16px 24px #00000026;position:relative}.contact-copy[_ngcontent-%COMP%]{position:relative;z-index:4}.contact-card[_ngcontent-%COMP%]{position:relative;z-index:5;min-height:739px;border-radius:16px}.contact-card-success[_ngcontent-%COMP%]{min-height:340px;display:flex;flex-direction:column;justify-content:center;gap:16px}.contact-glow[_ngcontent-%COMP%]{position:absolute;border-radius:9999px;filter:blur(50px);pointer-events:none}.contact-glow-1[_ngcontent-%COMP%]{width:440px;height:440px;left:min(61.875vw,891px);top:-17.5px;background:#3d71cc;opacity:.2;z-index:0}.contact-glow-2[_ngcontent-%COMP%]{width:440px;height:440px;left:min(39.653vw,571px);top:349.5px;background:#668ed6;opacity:.2;z-index:1}.contact-glow-3[_ngcontent-%COMP%]{width:440px;height:440px;left:min(67.083vw,966px);top:349.5px;background:#8eace1;opacity:.2;z-index:2}.contact-glow-4[_ngcontent-%COMP%]{width:566px;height:566px;left:min(34.653vw,499px);top:-33.5px;background:#9eeeff;opacity:.2;z-index:3}.contact-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.contact-label[_ngcontent-%COMP%]{font-size:14px;line-height:16px;font-weight:600;letter-spacing:.5px;color:#4c5a6b}.contact-input[_ngcontent-%COMP%], .contact-textarea[_ngcontent-%COMP%]{width:100%;border:1px solid #bcbfc7;background:#fff;color:#131b25;outline:none;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.contact-input[_ngcontent-%COMP%]{height:40px;border-radius:6px;padding:8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px}.contact-textarea[_ngcontent-%COMP%]{min-height:126px;resize:vertical;border-radius:6px;padding:8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px}.contact-input[_ngcontent-%COMP%]::placeholder, .contact-textarea[_ngcontent-%COMP%]::placeholder{color:#858b99}.contact-select-wrap[_ngcontent-%COMP%]{position:relative;width:100%}.contact-select[_ngcontent-%COMP%]{width:100%;height:40px;border:1px solid #bcbfc7;border-radius:6px;background:#fff;color:#131b25;padding:8px 40px 8px 12px;font-size:clamp(.95rem,.92rem + .1vw,1rem);line-height:24px;outline:none;cursor:pointer;appearance:none;-webkit-appearance:none;-moz-appearance:none;transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.contact-select-placeholder[_ngcontent-%COMP%]{color:#858b99}.contact-select[_ngcontent-%COMP%]:hover{border-color:#9da6b2}.contact-select[_ngcontent-%COMP%]:focus{border-color:#3d71cc;box-shadow:0 0 0 3px #3d71cc24}.contact-select-wrap[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;right:14px;width:10px;height:10px;transform:translateY(-70%) rotate(45deg);border-right:2px solid #4c5a6b;border-bottom:2px solid #4c5a6b;pointer-events:none}.contact-input[_ngcontent-%COMP%]:hover, .contact-textarea[_ngcontent-%COMP%]:hover{border-color:#9da6b2}.contact-input[_ngcontent-%COMP%]:focus, .contact-textarea[_ngcontent-%COMP%]:focus{border-color:#3d71cc;box-shadow:0 0 0 3px #3d71cc24}.contact-input-error[_ngcontent-%COMP%]{border-color:#d14343;box-shadow:0 0 0 3px #d1434314}.contact-error[_ngcontent-%COMP%]{font-size:12px;line-height:14px;color:#d14343}.contact-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;font-size:clamp(.95rem,.92rem + .08vw,1rem);line-height:24px;color:#4c5a6b}.contact-checkbox-top[_ngcontent-%COMP%]{align-items:flex-start}.contact-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;width:20px;height:20px;min-width:20px;border:1px solid #bcbfc7;border-radius:4px;accent-color:#2d58a7;cursor:pointer}.contact-link[_ngcontent-%COMP%]{font-weight:600;color:#2d58a7;text-decoration:none}.contact-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.contact-submit[_ngcontent-%COMP%]{display:inline-flex;width:100%;min-height:56px;align-items:center;justify-content:center;border:0;border-radius:8px;background:#2d58a7;padding:16px 24px;color:#fff;font-size:clamp(1rem,.95rem + .18vw,1.125rem);font-weight:600;line-height:22px;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease,opacity .2s ease}.contact-submit[_ngcontent-%COMP%]:hover{background:#244a8d;box-shadow:0 10px 24px #2d58a738}.contact-submit[_ngcontent-%COMP%]:active{transform:translateY(1px)}.contact-submit[_ngcontent-%COMP%]:disabled{opacity:.7;cursor:not-allowed}.contact-success-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%}.contact-success-icon-wrap[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%}.contact-success-icon[_ngcontent-%COMP%]{width:72px;height:72px;border-radius:9999px;background:#dde6f6;display:flex;align-items:center;justify-content:center;color:#2d58a7;font-size:34px;line-height:1}.contact-success-title[_ngcontent-%COMP%]{width:100%;margin:0;text-align:center;color:#111827;font-size:clamp(2rem,1.85rem + .35vw,2.125rem);line-height:1.2;font-weight:700}.contact-success-description[_ngcontent-%COMP%]{width:100%;max-width:508px;margin:0;text-align:center;color:#4c5a6b;font-size:clamp(1.0625rem,.98rem + .2vw,1.25rem);line-height:1.6}.contact-success-cta[_ngcontent-%COMP%]{width:100%;padding-top:16px}@media (max-width: 1279px){.contact-card[_ngcontent-%COMP%]{min-height:auto}.contact-glow-1[_ngcontent-%COMP%]{left:auto;right:-60px;top:-40px}.contact-glow-2[_ngcontent-%COMP%]{left:42%;top:38%}.contact-glow-3[_ngcontent-%COMP%]{right:-90px;left:auto;top:48%}.contact-glow-4[_ngcontent-%COMP%]{left:28%;top:-60px}}@media (max-width: 1023px){.contact-section[_ngcontent-%COMP%]{box-shadow:none}.contact-glow[_ngcontent-%COMP%]{filter:blur(65px);transform:scale(.8)}}@media (max-width: 767px){.contact-glow-1[_ngcontent-%COMP%]{width:280px;height:280px;right:-60px;top:-20px}.contact-glow-2[_ngcontent-%COMP%]{width:260px;height:260px;left:-40px;top:44%}.contact-glow-3[_ngcontent-%COMP%]{width:240px;height:240px;right:-50px;top:72%}.contact-glow-4[_ngcontent-%COMP%]{width:320px;height:320px;left:18%;top:-40px}.contact-checkbox[_ngcontent-%COMP%]{align-items:flex-start}.contact-success-title[_ngcontent-%COMP%]{font-size:2rem;line-height:1.2}.contact-success-description[_ngcontent-%COMP%]{font-size:1.125rem;line-height:1.55}}']})}}return n})();const L20=(n,a)=>a.id;function C20(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"a",5)(4,"h5",6),e.EFF(5),e.k0s()(),e.j41(6,"markdown",7),e.EFF(7),e.k0s(),e.j41(8,"div",8)(9,"button",9),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.searchByCategory(l))}),e.qSk(),e.j41(10,"svg",10)(11,"g",11),e.nrm(12,"path",12)(13,"path",13),e.k0s()(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()()}if(2&n){const c=a.$implicit;e.R7$(5),e.JRh(c.name),e.R7$(2),e.SpI(" ",null==c?null:c.description," "),e.R7$(7),e.SpI(" ",e.bMT(15,3,"DASHBOARD._view_serv")," ")}}let z20=(()=>{class n{constructor(c,t,l,i){this.eventMessage=c,this.localStorage=t,this.router=l,this.api=i,this.categories=[]}ngOnInit(){this.api.getDefaultCategories().then(c=>{for(let t=0;t{class n{constructor(){this.customerLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.customers._cards.access.title",hoverText:"DASHBOARD.customers._cards.access.desc",icon:af1},{html:"DASHBOARD.customers._cards.discovery.title",hoverText:"DASHBOARD.customers._cards.discovery.desc",icon:mN1},{html:"DASHBOARD.customers._cards.procurement.title",hoverText:"DASHBOARD.customers._cards.procurement.desc",icon:ew.b6I},{html:"DASHBOARD.customers._cards.ecosystem.title",hoverText:"DASHBOARD.customers._cards.ecosystem.desc",icon:ew.sOt}],this.steps=[{num:"01",title:"DASHBOARD.customers._steps.register.title",desc:"DASHBOARD.customers._steps.register.desc"},{num:"02",title:"DASHBOARD.customers._steps.search.title",desc:"DASHBOARD.customers._steps.search.desc"},{num:"03",title:"DASHBOARD.customers._steps.connect.title",desc:"DASHBOARD.customers._steps.connect.desc"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-customers"]],inputs:{customerLink:[e.Mj6.SignalBased,"customerLink"]},standalone:!0,features:[e.aNF],decls:23,vars:12,consts:[[1,"dc-wrap","font-[Blinker]"],["aria-hidden","true",1,"dc-bg"],[1,"dc-ellipse","dc-e1"],[1,"dc-ellipse","dc-e2"],[1,"dc-ellipse","dc-e3"],[1,"dc-ellipse","dc-e4"],[1,"dc-blur"],[1,"dc-content","mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-6","py-[44px]","sm:py-[56px]","lg:py-[64px]"],[1,"text-[clamp(34px,4.4vw,54px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-[#0b1220]"],[1,"mt-8","sm:mt-10","grid","grid-cols-1","lg:grid-cols-2","gap-5","sm:gap-6","items-stretch"],[1,"h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"dc-howcard","h-full"],[1,"dc-howcard__inner"],[1,"dc-howcard__title"],[1,"dc-steps"],["target","_blank",1,"dc-howcard__cta",3,"href"],[1,"dc-feature-card","cursor-pointer"],[1,"dc-feature-card__icon",3,"icon"],[1,"dc-feature-card__base"],[1,"dc-feature-card__content"],[1,"dc-feature-card__title",3,"innerHTML"],[1,"dc-feature-card__hover"],[1,"dc-feature-card__hover-text"],[1,"dc-step"],[1,"dc-step__num"],[1,"dc-step__text"],[1,"dc-step__title"],[1,"dc-step__desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),e.k0s(),e.j41(7,"div",7)(8,"h2",8),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",9)(12,"div",10),e.DNE(13,w30,3,0,"div",11),e.k0s(),e.j41(14,"div",12)(15,"div",13)(16,"h3",14),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,N30,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,6,"DASHBOARD.customers._sectitle")," "),e.R7$(4),e.vxM(13,l.featureCards.length?13:-1),e.R7$(4),e.SpI(" ",e.bMT(18,8,"DASHBOARD.customers._howItWorksTitle")," "),e.R7$(2),e.vxM(19,l.steps.length?19:-1),e.R7$(),e.Y8G("href",l.customerLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(22,10,"DASHBOARD.customers._cta")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:[".dc-wrap[_ngcontent-%COMP%]{position:relative;width:100%;isolation:isolate}.dc-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#f3f6ff}.dc-content[_ngcontent-%COMP%]{position:relative;z-index:1}.dc-ellipse[_ngcontent-%COMP%]{position:absolute;width:720px;height:720px;border-radius:9999px;transform:rotate(180deg);opacity:1;background:radial-gradient(circle at 35% 35%,#b6caecf2,#b6caeca6 38%,#b6caec00 72%);filter:blur(10px)}.dc-e1[_ngcontent-%COMP%]{left:-220px;top:-190px}.dc-e2[_ngcontent-%COMP%]{right:-260px;top:60px}.dc-e3[_ngcontent-%COMP%]{left:50%;top:-240px;transform:translate(-50%) rotate(180deg)}.dc-e4[_ngcontent-%COMP%]{left:140px;bottom:-360px}.dc-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f22e 25.7%,#fffafa47 94.73%);backdrop-filter:blur(90px);-webkit-backdrop-filter:blur(90px);transform:rotate(180deg)}.dc-feature-card[_ngcontent-%COMP%]{position:relative;min-height:240px;border-radius:8px;overflow:hidden;background:#f7f9fd;isolation:isolate;transition:background-color .45s ease,transform .45s ease,box-shadow .45s ease}.dc-feature-card[_ngcontent-%COMP%]:hover{background:#e2e9f5;transform:translateY(-2px);box-shadow:0 16px 38px #0d214a1f}.dc-feature-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:240px;transition:opacity .45s ease}.dc-feature-card__content[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:24px;gap:12px;position:relative;z-index:1}.dc-feature-card__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-size:30px;font-weight:700;line-height:36px;color:#2d58a7;display:flex;align-items:flex-end}.dc-feature-card__icon[_ngcontent-%COMP%]{position:absolute;right:-2.52px;bottom:-2.52px;width:120px;height:120px;font-size:120px;line-height:1;color:#dde6f6;transform:rotate(-15deg);transform-origin:center;z-index:0;transition:transform .5s ease,color .45s ease}.dc-feature-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:24px;background:transparent;opacity:0;transition:opacity .45s ease 60ms;pointer-events:none}.dc-feature-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;font-family:Blinker,sans-serif;font-size:18px;line-height:28px;font-weight:400;color:#0b1528}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__base[_ngcontent-%COMP%]{opacity:0}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__icon[_ngcontent-%COMP%]{transform:rotate(-15deg) scale(1.5);color:#c4d3ec}.dc-feature-card[_ngcontent-%COMP%]:hover .dc-feature-card__hover[_ngcontent-%COMP%]{opacity:1}.dc-howcard[_ngcontent-%COMP%]{border-radius:8px;background:#ffffffb3;border:2px solid #FFFFFF;backdrop-filter:blur(50px);-webkit-backdrop-filter:blur(50px);min-height:504px}.dc-howcard__inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:flex-end;padding:40px 40px 24px;gap:32px;font-family:Blinker,sans-serif}.dc-howcard__title[_ngcontent-%COMP%]{align-self:stretch;font-family:Blinker,sans-serif;font-weight:700;font-size:36px;line-height:43px;color:#111827}.dc-steps[_ngcontent-%COMP%]{align-self:stretch;flex:1 1 auto;display:flex;flex-direction:column;gap:24px}.dc-step[_ngcontent-%COMP%]{align-self:stretch;display:flex;flex-direction:row;align-items:flex-start;gap:16px}.dc-step__num[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:700;font-size:18px;line-height:22px;color:#2d58a7;flex:none}.dc-step__text[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px}.dc-step__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:600;font-size:20px;line-height:24px;color:#111827}.dc-step__desc[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:28px;color:#4c5a6b}.dc-howcard__cta[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:8px;height:40px;background:#2d58a7;border-radius:6px;font-family:Blinker,sans-serif;font-weight:600;font-size:14px;line-height:16px;letter-spacing:.5px;color:#fff;text-decoration:none;transition:filter .2s ease}.dc-howcard__cta[_ngcontent-%COMP%]:hover{filter:brightness(1.08)}@media (max-width: 1024px){.dc-howcard[_ngcontent-%COMP%]{min-height:0}.dc-howcard__inner[_ngcontent-%COMP%]{padding:32px 32px 24px;gap:24px}.dc-howcard__title[_ngcontent-%COMP%]{font-size:30px;line-height:1.2}}@media (max-width: 640px){.dc-howcard__inner[_ngcontent-%COMP%]{padding:24px;gap:20px}.dc-howcard__title[_ngcontent-%COMP%]{font-size:26px}.dc-step__title[_ngcontent-%COMP%]{font-size:18px}.dc-step__desc[_ngcontent-%COMP%]{font-size:16px;line-height:1.55}}@media (max-width: 1024px){.dc-ellipse[_ngcontent-%COMP%]{width:620px;height:620px;filter:blur(9px)}.dc-e2[_ngcontent-%COMP%]{right:-300px}}@media (max-width: 640px){.dc-ellipse[_ngcontent-%COMP%]{width:520px;height:520px;filter:blur(8px)}.dc-e1[_ngcontent-%COMP%]{left:-280px;top:-230px}.dc-e2[_ngcontent-%COMP%]{right:-320px;top:10px}.dc-e4[_ngcontent-%COMP%]{left:40px;bottom:-380px}.dc-feature-card[_ngcontent-%COMP%], .dc-feature-card__base[_ngcontent-%COMP%]{min-height:200px}.dc-feature-card__title[_ngcontent-%COMP%]{font-size:26px}.dc-feature-card__hover[_ngcontent-%COMP%]{padding:20px}.dc-feature-card__hover-text[_ngcontent-%COMP%]{font-size:16px;line-height:1.65}.dc-feature-card__hover-icon[_ngcontent-%COMP%]{font-size:104px}}"]})}}return n})();function D30(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",22),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",23),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n){const c=a.$implicit;e.R7$(),e.AVh("text-[#2B5BB8]",c.active)("text-[#526179]",!c.active),e.R7$(),e.SpI(" ",e.bMT(3,6,c.title)," "),e.R7$(3),e.SpI(" ",e.bMT(6,8,c.desc)," ")}}function T30(n,a){if(1&n&&(e.j41(0,"div",14),e.Z7z(1,D30,7,10,"div",21,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.milestones)}}let R30=(()=>{class n{constructor(){this.milestones=[{title:"DASHBOARD.ecosystem._milestones._live._title",desc:"DASHBOARD.ecosystem._milestones._live._desc",active:!0},{title:"DASHBOARD.ecosystem._milestones._tools._title",desc:"DASHBOARD.ecosystem._milestones._tools._desc",active:!1},{title:"DASHBOARD.ecosystem._milestones._federation._title",desc:"DASHBOARD.ecosystem._milestones._federation._desc",active:!1}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-ecosystem"]],standalone:!0,features:[e.aNF],decls:43,vars:31,consts:[[1,"w-full","font-[Blinker]"],[1,"mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-10","py-[54px]","sm:py-[68px]"],[1,"text-center","text-[clamp(34px,4.2vw,56px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-[#0b1220]"],[1,"mx-auto","mt-4","max-w-[860px]","text-center","text-[16px]","sm:text-[18px]","leading-[1.6]","text-[#526179]"],[1,"relative","mt-10","sm:mt-12","rounded-[16px]","border","border-[#E6ECF6]","bg-white","px-6","sm:px-10","lg:px-12","py-10","sm:py-12","shadow-[0_22px_60px_rgba(11,18,32,0.08)]"],[1,"grid","grid-cols-3","text-center","text-[16px]","sm:text-[18px]","font-medium","text-[#526179]"],[1,"relative","mt-7","sm:mt-8"],[1,"absolute","left-0","right-0","top-[12px]","z-0","h-[2px]","bg-[#DCE5F3]"],[1,"absolute","left-0","top-[12px]","z-0","h-[2px]","w-[calc(16.6667%_-_15px)]","bg-[#2B5BB8]"],[1,"absolute","left-0","top-[12px]","z-0","h-[2px]","w-[calc(16.6667%_-_15px)]","bg-gradient-to-l","from-[#2B5BB8]","to-transparent","opacity-60","blur-[1px]"],[1,"relative","z-10","grid","grid-cols-3"],[1,"flex","justify-center"],[1,"h-[18px]","w-[18px]","rounded-full","bg-[#2B5BB8]","ring-[6px]","ring-white","shadow-[0_10px_18px_rgba(43,91,184,0.25)]"],[1,"h-[18px]","w-[18px]","rounded-full","bg-[#DCE5F3]","ring-[6px]","ring-white"],[1,"mt-8","sm:mt-9","grid","grid-cols-1","md:grid-cols-3","gap-8","md:gap-10"],[1,"mt-14","sm:mt-16","rounded-[18px]","overflow-hidden","shadow-[0_30px_80px_rgba(7,18,38,0.35)]",2,"background","radial-gradient(900px 520px at 35% 25%, rgba(60, 110, 220, 0.35) 0%, rgba(60, 110, 220, 0) 60%),\n radial-gradient(900px 520px at 85% 35%, rgba(30, 220, 255, 0.10) 0%, rgba(30, 220, 255, 0) 60%),\n #071226"],[1,"px-6","sm:px-10","lg:px-14","py-12","sm:py-14","lg:py-16"],[1,"mx-auto","max-w-[980px]","text-center","text-[clamp(26px,3.2vw,44px)]","leading-[1.15]","tracking-[-0.02em]","font-extrabold","text-white"],[1,"mt-8","sm:mt-10","flex","flex-col","sm:flex-row","items-center","justify-center","gap-4","sm:gap-6"],["routerLink","/landing-page/customers",1,"inline-flex","items-center","justify-center","h-[44px]","w-full","sm:w-[270px]","rounded-[10px]","bg-[#2B5BB8]","text-white","text-[14px]","font-semibold","shadow-[0_18px_28px_rgba(0,0,0,0.35)]","hover:brightness-110","active:brightness-95","transition"],["routerLink","/landing-page/providers",1,"inline-flex","items-center","justify-center","h-[44px]","w-full","sm:w-[270px]","rounded-[10px]","bg-transparent","text-white","text-[14px]","font-semibold","border","border-white/25","hover:border-white/40","hover:bg-white/5","active:bg-white/10","transition"],[1,"text-center"],[1,"text-[18px]","sm:text-[20px]","font-extrabold","tracking-[0.08em]","uppercase"],[1,"mt-4","text-[14px]","sm:text-[15px]","leading-[1.7]","text-[#526179]"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"h2",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",3),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",4)(9,"div",5)(10,"div"),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div"),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",6),e.nrm(20,"div",7)(21,"div",8)(22,"div",9),e.j41(23,"div",10)(24,"div",11),e.nrm(25,"div",12),e.k0s(),e.j41(26,"div",11),e.nrm(27,"div",13),e.k0s(),e.j41(28,"div",11),e.nrm(29,"div",13),e.k0s()()(),e.DNE(30,T30,3,0,"div",14),e.k0s(),e.j41(31,"div",15)(32,"div",16)(33,"h3",17),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"div",18)(37,"a",19),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"a",20),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(3),e.SpI(" ",e.bMT(4,15,"DASHBOARD.ecosystem._title")," "),e.R7$(3),e.SpI(" ",e.bMT(7,17,"DASHBOARD.ecosystem._subtitle")," "),e.R7$(4),e.AVh("text-[#2B5BB8]",l.milestones[0].active),e.R7$(),e.SpI(" ",e.bMT(12,19,"DASHBOARD.ecosystem._nowLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[1].active),e.R7$(),e.SpI(" ",e.bMT(15,21,"DASHBOARD.ecosystem._nextLabel")," "),e.R7$(2),e.AVh("text-[#2B5BB8]",l.milestones[2].active),e.R7$(),e.SpI(" ",e.bMT(18,23,"DASHBOARD.ecosystem._beyondLabel")," "),e.R7$(13),e.vxM(30,l.milestones.length?30:-1),e.R7$(4),e.SpI(" ",e.bMT(35,25,"DASHBOARD.ecosystem._ctaTitle")," "),e.R7$(4),e.SpI(" ",e.bMT(39,27,"DASHBOARD.ecosystem._ctaCustomers")," "),e.R7$(3),e.SpI(" ",e.bMT(42,29,"DASHBOARD.ecosystem._ctaProviders")," "))},dependencies:[s1.h,s1.D9,E2.Wk],encapsulation:2})}}return n})();const GN1=(n,a)=>a.name;function A30(n,a){if(1&n&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.xc7("--logo-h",c.height,"px"),e.Y8G("src","assets/hero-logos/"+c.file,e.B4B)("alt",c.name)}}function I30(n,a){if(1&n&&(e.j41(0,"li",18),e.nrm(1,"img",20),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.xc7("--logo-h",c.height,"px"),e.Y8G("src","assets/hero-logos/"+c.file,e.B4B)("alt","")}}let P30=(()=>{class n{constructor(){this.heroLogos=[{name:"Team Dev",file:"Team Dev.svg",height:52},{name:"Elliot Cloud",file:"Elliot Cloud.svg",height:27},{name:"Beia",file:"Beia.svg",height:48},{name:"E-group",file:"E-group.svg",height:54},{name:"Madison MK",file:"Madison MK.svg",height:40},{name:"Libelium",file:"Libelium.svg",height:32},{name:"CSI",file:"CSI.svg",height:39},{name:"Ionos",file:"Ionos.svg",height:31},{name:"Eht",file:"Eht.svg",height:31},{name:"Top ix",file:"Top ix.svg",height:39},{name:"BS Outscale",file:"BS Outscale.svg",height:31},{name:"Altia",file:"Altia.svg",height:36},{name:"CloudFerro",file:"CloudFerro.svg",height:32},{name:"Digitanimal",file:"Digitanimal.svg",height:36},{name:"Digitel TS",file:"Digitel TS.svg",height:40},{name:"Eng",file:"Eng.svg",height:32},{name:"European Dynamics",file:"European Dynamics.svg",height:36},{name:"Golem.at",file:"Golem.at.svg",height:36},{name:"Idom",file:"Idom.svg",height:32},{name:"Inno Focus",file:"Inno Focus.svg",height:36},{name:"Orange Business",file:"Orange Business.svg",height:32},{name:"Portel",file:"Portel.svg",height:36}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-hero"]],standalone:!0,features:[e.aNF],decls:40,vars:24,consts:[[1,"hero-shell","relative","isolate","w-full","overflow-hidden","font-[Blinker]"],[1,"hero-bg","absolute","inset-0"],["aria-hidden","true",1,"hero-blur","hero-blur-main"],["aria-hidden","true",1,"hero-blur","hero-blur-core"],["aria-hidden","true",1,"earth-wrapper"],["src","assets/images/dashboard/hero.png","alt",""],[1,"relative","z-[5]","mx-auto","flex","h-full","w-full","max-w-[1440px]","flex-col","items-center","px-5","pt-[96px]","pb-[80px]","text-center","sm:px-8","lg:px-20"],[1,"hero-title","text-white"],[1,"block"],[1,"hero-accent"],[1,"hero-sub","mt-8"],[1,"hidden","sm:block"],[1,"hero-actions","mt-8","flex","w-full","max-w-[548px]","flex-col","gap-4","sm:flex-row","sm:gap-6"],["routerLink","/landing-page/customers",1,"hero-btn","hero-btn--primary"],["routerLink","/landing-page/providers",1,"hero-btn","hero-btn--secondary"],["aria-label","Partner logos",1,"hero-marquee","mt-auto","pt-8"],[1,"hero-marquee__track"],["role","list",1,"hero-marquee__list"],[1,"hero-marquee__item"],["role","list","aria-hidden","true",1,"hero-marquee__list"],[3,"src","alt"]],template:function(t,l){1&t&&(e.j41(0,"section",0),e.nrm(1,"div",1)(2,"div",2)(3,"div",3),e.j41(4,"div",4),e.nrm(5,"img",5),e.k0s(),e.j41(6,"div",6)(7,"h1",7)(8,"span",8),e.EFF(9),e.nI1(10,"translate"),e.j41(11,"span",9),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"span",8),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"p",10),e.EFF(20),e.nI1(21,"translate"),e.nrm(22,"br",11),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"div",12)(26,"a",13),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"a",14),e.EFF(30),e.nI1(31,"translate"),e.k0s()(),e.j41(32,"div",15)(33,"div",16)(34,"ul",17),e.Z7z(35,A30,2,4,"li",18,GN1),e.k0s(),e.j41(37,"ul",19),e.Z7z(38,I30,2,4,"li",18,GN1),e.k0s()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,8,"DASHBOARD.hero._titleLine1Part1")," "),e.R7$(3),e.JRh(e.bMT(13,10,"DASHBOARD.hero._titleLine1Accent")),e.R7$(2),e.SpI(" ",e.bMT(15,12,"DASHBOARD.hero._titleLine1Part2")," "),e.R7$(3),e.JRh(e.bMT(18,14,"DASHBOARD.hero._titleLine2")),e.R7$(3),e.SpI(" ",e.bMT(21,16,"DASHBOARD.hero._subtitleLine1")," "),e.R7$(3),e.SpI(" ",e.bMT(24,18,"DASHBOARD.hero._subtitleLine2")," "),e.R7$(4),e.SpI(" ",e.bMT(28,20,"DASHBOARD.hero._customerCta")," "),e.R7$(3),e.SpI(" ",e.bMT(31,22,"DASHBOARD.hero._providerCta")," "),e.R7$(5),e.Dyx(l.heroLogos),e.R7$(3),e.Dyx(l.heroLogos))},dependencies:[s1.h,s1.D9,E2.Wk],styles:["[_nghost-%COMP%]{display:block}.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px;background:linear-gradient(180deg,#0b1528,rgb(var(--theme-secondary-100)))}.hero-bg[_ngcontent-%COMP%]{background:linear-gradient(180deg,#0b1528,rgb(var(--theme-secondary-100)))}.hero-blur[_ngcontent-%COMP%]{position:absolute;left:50%;transform:translate(-50%);pointer-events:none;border-radius:9999px}.hero-blur-main[_ngcontent-%COMP%]{bottom:-4.5vw;width:55.5vw;height:21vw;background:linear-gradient(180deg,#1a3360,#0b1528);filter:blur(8.7vw);z-index:1}.hero-blur-core[_ngcontent-%COMP%]{bottom:2vw;width:19.7vw;height:5.3vw;background:#ffffffe6;filter:blur(3.5vw);z-index:2}.hero-title[_ngcontent-%COMP%]{width:100%;max-width:none;margin:0;font-weight:800;font-size:70px;line-height:84px;letter-spacing:1px;text-align:center;color:#fff;white-space:nowrap}.hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{white-space:nowrap}.hero-accent[_ngcontent-%COMP%]{color:#00b7e8}.hero-sub[_ngcontent-%COMP%]{width:100%;max-width:738px;margin-inline:auto;font-weight:400;font-size:20px;line-height:32px;text-align:center;color:#fff;opacity:.6}.hero-actions[_ngcontent-%COMP%]{height:48px}.hero-btn[_ngcontent-%COMP%]{flex:1 1 0;min-height:48px;padding:12px 20px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-weight:600;font-size:16px;line-height:24px;letter-spacing:.5px;text-decoration:none;transition:all .2s ease}.hero-btn--primary[_ngcontent-%COMP%]{background:rgb(var(--theme-primary-100));color:#fff;border:2px solid rgb(var(--theme-primary-100))}.hero-btn--primary[_ngcontent-%COMP%]:hover{background:#3565be;border-color:#3565be}.hero-btn--secondary[_ngcontent-%COMP%]{background:transparent;color:#fff;border:2px solid rgb(var(--theme-primary-100))}.hero-btn--secondary[_ngcontent-%COMP%]:hover{background:#2d58a71f}.hero-marquee[_ngcontent-%COMP%]{position:relative;z-index:6;flex:none;width:100%;max-width:1050px;margin-inline:auto;margin-bottom:64px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}.hero-marquee__track[_ngcontent-%COMP%]{display:flex;width:max-content;animation:_ngcontent-%COMP%_hero-marquee-scroll 60s linear infinite}.hero-marquee__list[_ngcontent-%COMP%]{display:flex;align-items:center;gap:72px;padding:0 36px 0 0;margin:0;list-style:none}.hero-marquee__item[_ngcontent-%COMP%]{flex:none;display:flex;align-items:center;height:56px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;height:var(--logo-h, 40px);width:auto;object-fit:contain;filter:brightness(0) invert(1);opacity:.92}@keyframes _ngcontent-%COMP%_hero-marquee-scroll{0%{transform:translate(0)}to{transform:translate(-50%)}}@media (prefers-reduced-motion: reduce){.hero-marquee__track[_ngcontent-%COMP%]{animation:none}}.earth-wrapper[_ngcontent-%COMP%]{position:absolute;left:50%;bottom:0;width:120vw;height:6.8vw;transform:translate(-50%);z-index:3;pointer-events:none;overflow:hidden}.earth-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto}@media (max-width: 1279px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{font-size:58px;line-height:70px;white-space:normal}.earth-wrapper[_ngcontent-%COMP%]{width:160vw;height:9vw}.hero-blur-core[_ngcontent-%COMP%]{bottom:3vw;width:28vw;height:8vw;filter:blur(5vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-6vw;width:75vw;height:28vw;filter:blur(11vw)}}@media (max-width: 1023px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:700px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{max-width:700px;font-size:48px;line-height:58px;letter-spacing:.4px;white-space:normal}.hero-sub[_ngcontent-%COMP%]{font-size:18px;line-height:30px;max-width:680px}.hero-actions[_ngcontent-%COMP%]{height:auto}.hero-marquee__list[_ngcontent-%COMP%]{gap:52px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:calc(var(--logo-h, 40px) * .78)}.earth-wrapper[_ngcontent-%COMP%]{width:200vw;height:11vw}.hero-blur-core[_ngcontent-%COMP%]{bottom:5vw;width:35vw;height:10vw;filter:blur(7vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-7vw;width:95vw;height:33vw;filter:blur(13vw)}}@media (max-width: 767px){.hero-shell[_ngcontent-%COMP%]{height:calc(100vh - 88px);min-height:640px}.hero-title[_ngcontent-%COMP%], .hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{max-width:100%;font-size:40px;line-height:48px;letter-spacing:0;text-wrap:balance}.hero-title[_ngcontent-%COMP%] .block[_ngcontent-%COMP%]{display:inline}.earth-wrapper[_ngcontent-%COMP%]{width:320vw;height:18vw;bottom:0}.hero-blur-core[_ngcontent-%COMP%]{bottom:14vw;width:50vw;height:14vw;filter:blur(10vw)}.hero-blur-main[_ngcontent-%COMP%]{bottom:-10vw;width:130vw;height:45vw;filter:blur(18vw)}.hero-actions[_ngcontent-%COMP%]{margin-top:56px}.hero-sub[_ngcontent-%COMP%]{max-width:100%;font-size:18px;line-height:28px}.hero-btn[_ngcontent-%COMP%]{width:100%}.hero-actions[_ngcontent-%COMP%]{order:1}.hero-marquee[_ngcontent-%COMP%]{margin-top:32px!important;margin-bottom:0}.hero-marquee__list[_ngcontent-%COMP%]{gap:48px}.hero-marquee__item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:32px}.hero-marquee__track[_ngcontent-%COMP%]{animation-duration:45s}}"],changeDetection:0})}}return n})();function j30(n,a){if(1&n&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"div",19)(3,"div",20),e.nrm(4,"div",21),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",22)(7,"div",23),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("icon",c.icon),e.R7$(3),e.Y8G("innerHTML",e.bMT(5,3,c.html),e.npT),e.R7$(4),e.SpI(" ",e.bMT(9,5,c.hoverText)," ")}}function $30(n,a){if(1&n&&(e.j41(0,"div",11),e.Z7z(1,j30,10,7,"div",17,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.featureCards)}}function O30(n,a){if(1&n&&(e.j41(0,"div",24)(1,"div",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"div",27),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",28),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.num),e.R7$(3),e.SpI(" ",e.bMT(6,3,c.title)," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,c.desc)," ")}}function B30(n,a){if(1&n&&(e.j41(0,"div",15),e.Z7z(1,O30,10,7,"div",24,e.Vm6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.steps)}}let V30=(()=>{class n{constructor(){this.providersLink=e.hFB.required(),this.featureCards=[{html:"DASHBOARD.providers.features.market.title",hoverText:"DASHBOARD.providers.features.market.desc",icon:ew.YSf},{html:"DASHBOARD.providers.features.trust.title",hoverText:"DASHBOARD.providers.features.trust.desc",icon:ew.Z8x},{html:"DASHBOARD.providers.features.tools.title",hoverText:"DASHBOARD.providers.features.tools.desc",icon:ew.f2_},{html:"DASHBOARD.providers.features.portfolio.title",hoverText:"DASHBOARD.providers.features.portfolio.desc",icon:ew.qIE}],this.steps=[{num:"01",title:"DASHBOARD.providers.steps.onboard.title",desc:"DASHBOARD.providers.steps.onboard.desc"},{num:"02",title:"DASHBOARD.providers.steps.verify.title",desc:"DASHBOARD.providers.steps.verify.desc"},{num:"03",title:"DASHBOARD.providers.steps.publish.title",desc:"DASHBOARD.providers.steps.publish.desc"}]}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-providers"]],inputs:{providersLink:[e.Mj6.SignalBased,"providersLink"]},standalone:!0,features:[e.aNF],decls:23,vars:12,consts:[[1,"dp-wrap","font-[Blinker]"],["aria-hidden","true",1,"dp-bg"],[1,"dp-ellipse","dp-e1"],[1,"dp-ellipse","dp-e2"],[1,"dp-ellipse","dp-e3"],[1,"dp-ellipse","dp-e4"],[1,"dp-blur"],[1,"mx-auto","w-full","max-w-[1180px]","px-5","sm:px-8","lg:px-6","py-[44px]","sm:py-[56px]","lg:py-[64px]"],[1,"text-[clamp(34px,4.4vw,56px)]","leading-[1.05]","tracking-[-0.02em]","font-extrabold","text-white"],[1,"mt-8","sm:mt-10","grid","grid-cols-1","lg:grid-cols-2","gap-5","sm:gap-6","items-stretch"],[1,"h-full"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-5","sm:gap-6","h-full","auto-rows-fr"],[1,"dp-howcard","h-full"],[1,"dp-howcard__inner"],[1,"dp-howcard__title"],[1,"dp-steps"],["target","_blank",1,"dp-howcard__cta",3,"href"],[1,"dp-feature-card","cursor-pointer"],[1,"dp-feature-card__icon",3,"icon"],[1,"dp-feature-card__base"],[1,"dp-feature-card__content"],[1,"dp-feature-card__title",3,"innerHTML"],[1,"dp-feature-card__hover"],[1,"dp-feature-card__hover-text"],[1,"dp-step"],[1,"dp-step__num"],[1,"dp-step__text"],[1,"dp-step__title"],[1,"dp-step__desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"span",2)(3,"span",3)(4,"span",4)(5,"span",5)(6,"span",6),e.k0s(),e.j41(7,"div",7)(8,"h2",8),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",9)(12,"div",10),e.DNE(13,$30,3,0,"div",11),e.k0s(),e.j41(14,"div",12)(15,"div",13)(16,"h3",14),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.DNE(19,B30,3,0,"div",15),e.j41(20,"a",16),e.EFF(21),e.nI1(22,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(9),e.SpI(" ",e.bMT(10,6,"DASHBOARD.providers._title")," "),e.R7$(4),e.vxM(13,l.featureCards.length?13:-1),e.R7$(4),e.SpI(" ",e.bMT(18,8,"DASHBOARD.providers._howDomeWorks")," "),e.R7$(2),e.vxM(19,l.steps.length?19:-1),e.R7$(),e.Y8G("href",l.providersLink(),e.B4B),e.R7$(),e.SpI(" ",e.bMT(22,10,"DASHBOARD.providers._cta")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:[".dp-wrap[_ngcontent-%COMP%]{position:relative;width:100%;overflow:hidden;isolation:isolate;background:#0f1b33}.dp-bg[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.dp-wrap[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.dp-bg){position:relative;z-index:2}.dp-ellipse[_ngcontent-%COMP%]{position:absolute;border-radius:9999px;background:#14274a;transform:rotate(180deg);filter:blur(70px);opacity:.95}.dp-e1[_ngcontent-%COMP%]{inset:-9.75px 868.5px 136.25px -111.75px}.dp-e2[_ngcontent-%COMP%]{inset:114.75px -225px 244.25px 1215px}.dp-e3[_ngcontent-%COMP%]{inset:0 469.5px 308px}.dp-e4[_ngcontent-%COMP%]{inset:407.25px 892.5px 46.25px 192px}.dp-blur[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f208 25.7%,#fffafa12 94.73%);opacity:1}.dp-feature-card[_ngcontent-%COMP%]{position:relative;min-height:240px;border-radius:8px;overflow:hidden;background:#111827;border:.75px solid rgba(255,255,255,.07);box-shadow:0 22px 60px #00000073;isolation:isolate;transition:background-color .45s ease,transform .45s ease,box-shadow .45s ease}.dp-feature-card[_ngcontent-%COMP%]:hover{background:#18233b;transform:translateY(-2px)}.dp-feature-card__base[_ngcontent-%COMP%]{position:relative;z-index:1;height:100%;min-height:240px;transition:opacity .45s ease}.dp-feature-card__content[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:24px;gap:12px;position:relative;z-index:1}.dp-feature-card__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-size:30px;font-weight:700;line-height:36px;color:#fff;display:flex;align-items:flex-end}.dp-feature-card__icon[_ngcontent-%COMP%]{position:absolute;right:-2.52px;bottom:-2.52px;width:120px;height:120px;font-size:120px;line-height:1;color:#2d58a7;opacity:.3;transform:rotate(-15deg);transform-origin:center;z-index:0;transition:transform .5s ease,opacity .45s ease}.dp-feature-card__hover[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:2;padding:24px;background:transparent;opacity:0;transition:opacity .45s ease 60ms;pointer-events:none}.dp-feature-card__hover-text[_ngcontent-%COMP%]{position:relative;z-index:2;font-family:Blinker,sans-serif;font-size:18px;line-height:28px;font-weight:400;color:#ffffffe0}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__base[_ngcontent-%COMP%]{opacity:0}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__icon[_ngcontent-%COMP%]{transform:rotate(-15deg) scale(1.5);opacity:.5}.dp-feature-card[_ngcontent-%COMP%]:hover .dp-feature-card__hover[_ngcontent-%COMP%]{opacity:1}.dp-howcard[_ngcontent-%COMP%]{border-radius:8px;background:#11182780;border:1px solid #111827;box-shadow:0 26px 70px #00000073;min-height:504px}.dp-howcard__inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;align-items:flex-end;padding:40px 40px 24px;gap:32px;font-family:Blinker,sans-serif}.dp-howcard__title[_ngcontent-%COMP%]{align-self:stretch;font-family:Blinker,sans-serif;font-weight:700;font-size:36px;line-height:43px;color:#fff}.dp-steps[_ngcontent-%COMP%]{align-self:stretch;flex:1 1 auto;display:flex;flex-direction:column;gap:24px}.dp-step[_ngcontent-%COMP%]{align-self:stretch;display:flex;flex-direction:row;align-items:flex-start;gap:16px}.dp-step__num[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:700;font-size:24px;line-height:29px;color:#06b6d4;flex:none}.dp-step__text[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:4px}.dp-step__title[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:600;font-size:20px;line-height:24px;color:#fff}.dp-step__desc[_ngcontent-%COMP%]{font-family:Blinker,sans-serif;font-weight:400;font-size:18px;line-height:28px;color:#bcbfc7}.dp-howcard__cta[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;align-items:center;padding:12px 16px;gap:8px;height:40px;background:#2d58a7;border-radius:6px;font-family:Blinker,sans-serif;font-weight:600;font-size:14px;line-height:16px;letter-spacing:.5px;color:#fff;text-decoration:none;transition:filter .2s ease}.dp-howcard__cta[_ngcontent-%COMP%]:hover{filter:brightness(1.1)}@media (max-width: 1024px){.dp-e2[_ngcontent-%COMP%]{inset:110px -180px auto auto;width:360px;height:360px}.dp-e3[_ngcontent-%COMP%]{inset:0 auto auto 50%;width:260px;height:260px;transform:translate(-50%) rotate(180deg)}.dp-howcard[_ngcontent-%COMP%]{min-height:0}.dp-howcard__inner[_ngcontent-%COMP%]{padding:32px 32px 24px;gap:24px}.dp-howcard__title[_ngcontent-%COMP%]{font-size:30px;line-height:1.2}}@media (max-width: 640px){.dp-e1[_ngcontent-%COMP%]{inset:-30px auto auto -180px;width:320px;height:320px}.dp-e2[_ngcontent-%COMP%]{right:-160px;top:80px;width:300px;height:300px}.dp-e3[_ngcontent-%COMP%]{width:220px;height:220px;top:-10px}.dp-e4[_ngcontent-%COMP%]{inset:auto auto -120px 20px;width:260px;height:260px}.dp-feature-card[_ngcontent-%COMP%], .dp-feature-card__base[_ngcontent-%COMP%]{min-height:200px}.dp-feature-card__title[_ngcontent-%COMP%]{font-size:26px}.dp-howcard__inner[_ngcontent-%COMP%]{padding:24px;gap:20px}.dp-howcard__title[_ngcontent-%COMP%]{font-size:26px}.dp-step__title[_ngcontent-%COMP%]{font-size:18px}.dp-step__desc[_ngcontent-%COMP%]{font-size:16px;line-height:1.55}}"]})}}return n})();var U30=y(8338);const G30=(n,a)=>a.id,H30=n=>["/search",n];function Y30(n,a){if(1&n&&(e.j41(0,"div",9)(1,"div",10)(2,"div",11)(3,"div",12),e.nrm(4,"div",13)(5,"img",14),e.k0s()(),e.j41(6,"div",15)(7,"h3",16),e.EFF(8),e.k0s(),e.j41(9,"div",17),e.nrm(10,"p",18),e.k0s(),e.j41(11,"a",19),e.EFF(12),e.nI1(13,"translate"),e.k0s()()()()),2&n){const c=a.$implicit,t=e.XpG();e.xc7("width",100/t.visibleItems,"%"),e.R7$(4),e.xc7("background-image","url("+t.getProductImage(c)+")"),e.R7$(),e.Y8G("src",t.getProductImage(c),e.B4B),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(2),e.Y8G("innerHTML",c.description,e.npT),e.R7$(),e.Y8G("routerLink",e.eq3(11,H30,c.id)),e.R7$(),e.SpI(" ",e.bMT(13,9,"DASHBOARD.marketplace.viewService")," ")}}let q30=(()=>{class n{constructor(c){this.cdr=c,this.faArrowRight=YL1,this.productOfferings=e.hFB.required(),this.visibleItems=3}ngOnInit(){this.updateVisibleItems()}onResize(){this.updateVisibleItems()}updateVisibleItems(){const c=window.innerWidth;this.visibleItems=c<768?1:c<1024?2:3,this.cdr.markForCheck()}getProductImage(c){let t=[];if(c?.attachment){const l=c.attachment.filter(i=>"Profile Picture"===i.name)??[];t=c.attachment.filter(i=>"Picture"===i.attachmentType)??[],0!==l.length&&(t=l)}return t.length>0?t.at(0)?.url:"https://placehold.co/600x400/svg"}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-services"]],hostBindings:function(t,l){1&t&&e.bIt("resize",function(){return l.onResize()},!1,e.tSv)},inputs:{productOfferings:[e.Mj6.SignalBased,"productOfferings"]},standalone:!0,features:[e.aNF],decls:17,vars:13,consts:[[1,"bg-[#f5f7fb]","py-24"],[1,"max-w-[1180px]","mx-auto","px-6"],[1,"flex","flex-col","gap-6","mb-16","md:flex-row","md:items-start","md:justify-between"],[1,"text-[32px]","md:text-[38px]","lg:text-[42px]","font-extrabold","text-[#0f172a]","leading-tight"],[1,"mt-4","text-base","md:text-lg","text-slate-600"],["href","/search",1,"flex","items-center","gap-2","text-blue-700","font-semibold"],[3,"icon"],[3,"items","visible","loop"],[1,"shrink-0","px-3","md:px-4",3,"width"],[1,"shrink-0","px-3","md:px-4"],[1,"flex","flex-col","w-full","h-[460px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","font-[Blinker]"],[1,"px-2","pt-2"],[1,"relative","h-[180px]","w-full","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"flex-1","flex","flex-col","px-4","pt-4","pb-4","min-h-0"],[1,"text-[20px]","font-bold","leading-tight","line-clamp-2","text-[#14274A]","mb-2","break-words"],[1,"flex-1","min-h-0","overflow-hidden"],[1,"text-[14px]","font-normal","leading-[22px]","text-[#0B1528]","line-clamp-3",3,"innerHTML"],[1,"mt-4","border-2","border-blue-700","text-blue-700","rounded-lg","py-2.5","font-semibold","flex","items-center","justify-center","gap-2","hover:bg-blue-700","hover:text-white","transition-all",3,"routerLink"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",4),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"a",5),e.EFF(11),e.nI1(12,"translate"),e.nrm(13,"fa-icon",6),e.k0s()(),e.j41(14,"app-carousel",7),e.Z7z(15,Y30,14,13,"div",8,G30),e.k0s()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,7,"DASHBOARD.marketplace.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,9,"DASHBOARD.marketplace.subtitle")," "),e.R7$(3),e.SpI(" ",e.bMT(12,11,"DASHBOARD.marketplace.browseFullCatalog")," "),e.R7$(2),e.Y8G("icon",l.faArrowRight),e.R7$(),e.Y8G("items",l.productOfferings())("visible",l.visibleItems)("loop",!0),e.R7$(),e.Dyx(l.productOfferings()))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9,U30.g,E2.Wk],changeDetection:0})}}return n})(),X30=(()=>{class n{constructor(){this.stats=e.hFB.required()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-stats"]],inputs:{stats:[e.Mj6.SignalBased,"stats"]},standalone:!0,features:[e.aNF],decls:29,vars:17,consts:[[1,"stats-section","w-full","font-[Blinker]"],[1,"stats-shell","mx-auto","w-full","max-w-[1440px]"],[1,"stats-inner","mx-auto","flex","w-full","max-w-[1120px]","flex-col","items-center","gap-6"],[1,"stats-heading","flex","w-full","flex-col","items-center","gap-4","pb-10","text-center"],[1,"stats-title","m-0"],[1,"stats-subtitle","m-0"],[1,"stats-grid","grid","w-full","grid-cols-1","gap-6","md:grid-cols-3"],[1,"stats-card"],[1,"stats-number"],[1,"stats-text","m-0"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"p",5),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",6)(11,"article",7)(12,"div",8),e.EFF(13),e.k0s(),e.j41(14,"p",9),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.j41(17,"article",7)(18,"div",8),e.EFF(19," 10+ "),e.k0s(),e.j41(20,"p",9),e.EFF(21),e.nI1(22,"translate"),e.k0s()(),e.j41(23,"article",7)(24,"div",8),e.EFF(25),e.k0s(),e.j41(26,"p",9),e.EFF(27),e.nI1(28,"translate"),e.k0s()()()()()()),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,7,"DASHBOARD.stats.title")," "),e.R7$(3),e.SpI(" ",e.bMT(9,9,"DASHBOARD.stats.subtitle")," "),e.R7$(5),e.SpI(" ",l.stats().services," "),e.R7$(2),e.SpI(" ",e.bMT(16,11,"DASHBOARD.stats.services")," "),e.R7$(6),e.SpI(" ",e.bMT(22,13,"DASHBOARD.stats.sectors")," "),e.R7$(4),e.SpI(" ",l.stats().providers," "),e.R7$(2),e.SpI(" ",e.bMT(28,15,"DASHBOARD.stats.providers")," "))},dependencies:[s1.h,s1.D9],styles:['[_nghost-%COMP%]{display:block}.stats-section[_ngcontent-%COMP%]{background:#fff}.stats-shell[_ngcontent-%COMP%]{padding:80px 160px}.stats-inner[_ngcontent-%COMP%]{gap:24px}.stats-heading[_ngcontent-%COMP%]{padding-bottom:40px}.stats-title[_ngcontent-%COMP%]{max-width:735px;margin:0;font-family:Blinker,sans-serif;font-weight:700;font-size:56px;line-height:67px;letter-spacing:0;color:#111827}.stats-subtitle[_ngcontent-%COMP%]{width:100%;max-width:1120px;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:24px;line-height:29px;text-align:center;color:#324153}.stats-grid[_ngcontent-%COMP%]{gap:24px}.stats-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-height:182px;padding:24px 24px 16px;gap:8px;background:#f7f9fd;border-radius:16px;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease}.stats-card[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#2d58a7,#6f8fc9);opacity:0;transition:opacity .35s ease;z-index:0}.stats-card[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{position:relative;z-index:1}.stats-card[_ngcontent-%COMP%]:hover:before{opacity:1}.stats-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 40px #2d58a740}.stats-number[_ngcontent-%COMP%]{width:100%;min-height:96px;display:flex;align-items:flex-end;font-family:Blinker,sans-serif;font-weight:700;font-size:80px;line-height:96px;letter-spacing:1px;color:#2d58a7;transition:color .3s ease}.stats-text[_ngcontent-%COMP%]{width:100%;margin:0;font-family:Blinker,sans-serif;font-weight:400;font-size:16px;line-height:19px;color:#324153;transition:color .3s ease}.stats-card[_ngcontent-%COMP%]:hover .stats-number[_ngcontent-%COMP%], .stats-card[_ngcontent-%COMP%]:hover .stats-text[_ngcontent-%COMP%]{color:#fff}@media (max-width: 1279px){.stats-shell[_ngcontent-%COMP%]{padding:72px 64px}.stats-title[_ngcontent-%COMP%]{font-size:48px;line-height:58px;max-width:680px}.stats-subtitle[_ngcontent-%COMP%]{font-size:22px;line-height:28px}.stats-number[_ngcontent-%COMP%]{font-size:72px;line-height:88px;min-height:88px}}@media (max-width: 1023px){.stats-shell[_ngcontent-%COMP%]{padding:64px 32px}.stats-heading[_ngcontent-%COMP%]{padding-bottom:32px}.stats-title[_ngcontent-%COMP%]{max-width:100%;font-size:42px;line-height:50px}.stats-subtitle[_ngcontent-%COMP%]{font-size:20px;line-height:26px}.stats-card[_ngcontent-%COMP%]{min-height:170px}.stats-number[_ngcontent-%COMP%]{font-size:68px;line-height:80px;min-height:80px}}@media (max-width: 767px){.stats-shell[_ngcontent-%COMP%]{padding:56px 20px}.stats-inner[_ngcontent-%COMP%]{gap:20px}.stats-heading[_ngcontent-%COMP%]{gap:12px;padding-bottom:24px}.stats-title[_ngcontent-%COMP%]{font-size:34px;line-height:42px}.stats-subtitle[_ngcontent-%COMP%]{font-size:18px;line-height:24px}.stats-grid[_ngcontent-%COMP%]{gap:16px}.stats-card[_ngcontent-%COMP%]{min-height:auto;padding:20px 20px 16px;border-radius:14px}.stats-number[_ngcontent-%COMP%]{min-height:auto;font-size:56px;line-height:64px;letter-spacing:.5px}.stats-text[_ngcontent-%COMP%]{font-size:15px;line-height:20px}}'],changeDetection:0})}}return n})(),W30=(()=>{class n{constructor(){this.faShieldCheck=A2.R1H,this.faEye=A2.pS3,this.faPuzzle=A2._Xl,this.faClipboard=xC1}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard-whatsdome"]],standalone:!0,features:[e.aNF],decls:60,vars:34,consts:[[1,"relative","overflow-x-hidden","overflow-y-hidden","font-[Blinker]"],[1,"absolute","inset-0","z-0","min-h-full"],[1,"ellipse","effect1"],[1,"ellipse","effect2"],[1,"ellipse","effect3"],[1,"ellipse","effect4"],["src","assets/logos/DOME_Icon_White.svg","alt","","aria-hidden","true",1,"dome-watermark","hidden","md:block"],[1,"blur-overlay"],[1,"relative","z-10","grid","min-h-[100svh]","w-full","place-items-center","py-10","md:py-0"],[1,"w-full","max-w-[1180px]","px-5","sm:px-8","md:px-10","lg:px-12"],[1,"grid","grid-cols-1","items-center","gap-10","md:gap-12","lg:grid-cols-12","lg:gap-10"],[1,"lg:col-span-5"],[1,"text-[clamp(2rem,1.2rem+2.6vw,3.5rem)]","font-extrabold","leading-[1.05]","tracking-[-0.03em]","text-slate-900"],[1,"mt-6","max-w-[420px]","text-[clamp(0.95rem,0.82rem+0.35vw,1.125rem)]","leading-[1.7]","text-slate-600","sm:mt-8"],[1,"lg:col-span-7"],[1,"flex","flex-col","gap-6","sm:gap-8","lg:gap-10"],[1,"hover-card","flex","items-center","gap-4","sm:gap-5","lg:gap-6"],[1,"icon-badge"],[3,"icon"],[1,"feature-title"],[1,"feature-desc"]],template:function(t,l){1&t&&(e.j41(0,"section",0)(1,"div",1),e.nrm(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"img",6)(7,"div",7),e.k0s(),e.j41(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",11)(12,"h1",12),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"p",13),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.j41(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17),e.nrm(22,"fa-icon",18),e.k0s(),e.j41(23,"div")(24,"h3",19),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"p",20),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"div",16)(31,"div",17),e.nrm(32,"fa-icon",18),e.k0s(),e.j41(33,"div")(34,"h3",19),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"p",20),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div",16)(41,"div",17),e.nrm(42,"fa-icon",18),e.k0s(),e.j41(43,"div")(44,"h3",19),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"p",20),e.EFF(48),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"div",16)(51,"div",17),e.nrm(52,"fa-icon",18),e.k0s(),e.j41(53,"div")(54,"h3",19),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.j41(57,"p",20),e.EFF(58),e.nI1(59,"translate"),e.k0s()()()()()()()()()),2&t&&(e.R7$(13),e.SpI(" ",e.bMT(14,14,"DASHBOARD.whatsdome._title")," "),e.R7$(3),e.SpI(" ",e.bMT(17,16,"DASHBOARD.whatsdome._desc")," "),e.R7$(6),e.Y8G("icon",l.faShieldCheck),e.R7$(3),e.SpI(" ",e.bMT(26,18,"DASHBOARD.whatsdome.features.trusted.title")," "),e.R7$(3),e.SpI(" ",e.bMT(29,20,"DASHBOARD.whatsdome.features.trusted.desc")," "),e.R7$(4),e.Y8G("icon",l.faEye),e.R7$(3),e.SpI(" ",e.bMT(36,22,"DASHBOARD.whatsdome.features.transparency.title")," "),e.R7$(3),e.SpI(" ",e.bMT(39,24,"DASHBOARD.whatsdome.features.transparency.desc")," "),e.R7$(4),e.Y8G("icon",l.faPuzzle),e.R7$(3),e.SpI(" ",e.bMT(46,26,"DASHBOARD.whatsdome.features.interoperability.title")," "),e.R7$(3),e.SpI(" ",e.bMT(49,28,"DASHBOARD.whatsdome.features.interoperability.desc")," "),e.R7$(4),e.Y8G("icon",l.faClipboard),e.R7$(3),e.SpI(" ",e.bMT(56,30,"DASHBOARD.whatsdome.features.fairAccess.title")," "),e.R7$(3),e.SpI(" ",e.bMT(59,32,"DASHBOARD.whatsdome.features.fairAccess.desc")," "))},dependencies:[J2.dX,J2.aY,s1.h,s1.D9],styles:["[_nghost-%COMP%]{--primary-100: #b6caec}.ellipse[_ngcontent-%COMP%]{position:absolute;background:var(--primary-100);border-radius:9999px;transform:rotate(180deg)}.effect1[_ngcontent-%COMP%]{left:-7.76%;top:-1.15%;width:47.43%;height:85.08%}.effect2[_ngcontent-%COMP%]{left:84.37%;top:13.53%;width:31.25%;height:57.66%}.effect3[_ngcontent-%COMP%]{left:32.6%;top:0%;width:34.79%;height:63.67%}.effect4[_ngcontent-%COMP%]{left:13.33%;top:48.02%;width:24.68%;height:46.51%}.blur-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:linear-gradient(226.59deg,#fff2f208 25.7%,#fffafa12 94.73%);backdrop-filter:blur(187.5px);-webkit-backdrop-filter:blur(187.5px);transform:rotate(180deg)}.icon-badge[_ngcontent-%COMP%]{width:clamp(52px,4vw,60px);height:clamp(52px,4vw,60px);min-width:clamp(52px,4vw,60px);flex-shrink:0;aspect-ratio:1 / 1;border-radius:9999px;background:#fff;box-shadow:0 8px 24px #0f172a14;display:flex;align-items:center;justify-content:center;transition:all .35s ease}.icon-badge[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:clamp(22px,1.8vw,28px);color:#1f5bb5}.feature-title[_ngcontent-%COMP%]{font-weight:700;font-size:clamp(1rem,.85rem + .6vw,1.25rem);line-height:1.2;color:#0f172a}.feature-desc[_ngcontent-%COMP%]{margin-top:6px;font-size:clamp(.875rem,.8rem + .25vw,1rem);line-height:1.6;color:#111827}.dome-watermark[_ngcontent-%COMP%]{position:absolute;left:-157px;bottom:-138px;width:652px;height:auto;opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none;filter:blur(.2px);z-index:1}.hover-card[_ngcontent-%COMP%]{padding:clamp(16px,2vw,22px) clamp(18px,2.2vw,26px);border-radius:clamp(20px,2vw,28px);transition:background .35s ease,box-shadow .35s ease,transform .35s ease}.hover-card[_ngcontent-%COMP%]:hover{background:#ffffffbf;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transform:translateY(-4px);box-shadow:0 20px 40px #0f172a14,0 4px 10px #0f172a0d}.hover-card[_ngcontent-%COMP%]:hover .icon-badge[_ngcontent-%COMP%]{background:var(--primary-100);transform:scale(1.05)}@media (max-width: 1024px){.dome-watermark[_ngcontent-%COMP%]{width:340px;left:-95px;bottom:-120px;opacity:.8}}@media (max-width: 640px){.dome-watermark[_ngcontent-%COMP%]{width:260px;left:-80px;bottom:-95px;opacity:.8}.hover-card[_ngcontent-%COMP%]{align-items:flex-start;gap:14px}.feature-desc[_ngcontent-%COMP%]{margin-top:4px}}"],changeDetection:0})}}return n})();class cw{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c){this.http=a,this.localStorage=c}getStats(){return(0,e0.s)(this.http.get(`${cw.BASE_URL}/stats`))}static{this.\u0275fac=function(c){return new(c||cw)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:cw,factory:cw.\u0275fac,providedIn:"root"})}}function J30(n,a){if(1&n&&e.nrm(0,"app-dashboard-stats",1),2&n){const c=e.XpG(2);e.Y8G("stats",c.stats)}}function Q30(n,a){if(1&n&&e.nrm(0,"app-dashboard-services",2),2&n){const c=e.XpG(2);e.Y8G("productOfferings",c.productOfferings)}}function Z30(n,a){if(1&n&&(e.j41(0,"div",0),e.nrm(1,"app-dashboard-hero"),e.DNE(2,J30,1,1,"app-dashboard-stats",1),e.nrm(3,"app-dashboard-whatsdome"),e.DNE(4,Q30,1,1,"app-dashboard-services",2),e.nrm(5,"app-dashboard-customers",3)(6,"app-dashboard-providers",4)(7,"app-dashboard-ecosystem"),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.stats?2:-1),e.R7$(2),e.vxM(4,c.productOfferings?4:-1),e.R7$(),e.Y8G("customerLink",c.customersLink),e.R7$(),e.Y8G("providersLink",c.providersLink)}}function K30(n,a){if(1&n&&(e.j41(0,"a",24),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",t.hasLongWord(c,20))("break-words",!t.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function e60(n,a){if(1&n&&e.DNE(0,K30,2,11,"a",23),2&n){const c=a.$index,t=e.XpG(2);e.vxM(0,t.currentIndexServ===c?0:-1)}}function c60(n,a){if(1&n&&(e.j41(0,"a",26),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.xc7("display","-webkit-box")("webkit-box-orient","vertical")("webkit-line-clamp","2"),e.AVh("break-all",t.hasLongWord(c,20))("break-words",!t.hasLongWord(c,20)),e.R7$(),e.SpI(" ",c," ")}}function t60(n,a){if(1&n&&e.DNE(0,c60,2,11,"a",25),2&n){const c=a.$index,t=e.XpG(2);e.vxM(0,t.currentIndexPub===c?0:-1)}}function n60(n,a){if(1&n){const c=e.RV6();e.j41(0,"section",21)(1,"form",27)(2,"div",28)(3,"div",29)(4,"input",30),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.filterSearch(l))}),e.k0s(),e.j41(6,"button",31),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.filterSearch(l))}),e.qSk(),e.j41(7,"svg",32),e.nrm(8,"path",33),e.k0s(),e.joV(),e.j41(9,"span",34),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()()()}if(2&n){const c=e.XpG(2);e.Y8G("ngClass",c.isFilterPanelShown?"sticky top-[118px] backdrop-blur-sm z-20":"sticky top-[72px] backdrop-blur-sm z-20"),e.R7$(4),e.FS9("placeholder",e.bMT(5,4,"DASHBOARD._search_ph")),e.Y8G("formControl",c.searchField),e.R7$(6),e.JRh(e.bMT(11,6,"DASHBOARD._search"))}}function l60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"section",6)(2,"div",7)(3,"div",8)(4,"div",9)(5,"h1",10),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"p",11),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToSearch())}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.joV(),e.j41(16,"div",15)(17,"div",16)(18,"div",17)(19,"p",18),e.EFF(20),e.k0s(),e.Z7z(21,e60,1,1,null,null,e.fX1),e.k0s(),e.j41(23,"div",17)(24,"p",19),e.EFF(25),e.k0s(),e.Z7z(26,t60,1,1,null,null,e.fX1),e.k0s(),e.j41(28,"a",20),e.qSk(),e.j41(29,"svg",13),e.nrm(30,"path",14),e.k0s(),e.EFF(31),e.nI1(32,"translate"),e.k0s()()()()()(),e.DNE(33,n60,12,8,"section",21),e.joV(),e.nrm(34,"bae-off-featured",22),e.k0s()}if(2&n){const c=e.XpG();e.R7$(2),e.xc7("background-image","url("+(null==c.currentTheme||null==c.currentTheme.assets?null:c.currentTheme.assets.jumboBgUrl)+")"),e.R7$(4),e.JRh(e.bMT(7,10,"DASHBOARD._header")),e.R7$(3),e.JRh(e.bMT(10,12,"DASHBOARD._subheader")),e.R7$(5),e.SpI(" ",e.bMT(15,14,"DASHBOARD._browse_serv")," "),e.R7$(6),e.SpI(" ",c.services.length," verified services"),e.R7$(),e.Dyx(c.services),e.R7$(4),e.SpI(" ",c.publishers.length," registered providers"),e.R7$(),e.Dyx(c.publishers),e.R7$(2),e.FS9("href",c.domeRegister,e.B4B),e.R7$(3),e.SpI(" ",e.bMT(32,16,"HEADER._register_here")," "),e.R7$(2),e.vxM(33,c.searchEnabled?33:-1)}}let s60=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.productService=c,this.domSanitizer=t,this.route=l,this.loginService=i,this.localStorage=u,this.eventMessage=C,this.cdr=b,this.router=T,this.statsService=W,this.themeService=u1,this.customersLink=g1.c.DOME_CUSTOMER_REGISTER_LINK,this.providersLink=g1.c.DOME_REGISTER_LINK,this.unSub=new S.B,this.MAX_CATEGORIES_PER_PRODUCT_OFFERING=3,this.providerThemeName=g1.c.providerThemeName,this.currentTheme=null,this.isFilterPanelShown=!1,this.searchField=new p.MJ,this.searchEnabled=g1.c.SEARCH_ENABLED,this.domeRegister=g1.c.DOME_REGISTER_LINK,this.services=[],this.publishers=[],this.currentIndexServ=0,this.currentIndexPub=0,this.delay=2e3}ngOnInit(){this.themeService.currentTheme$.pipe((0,O1.Q)(this.unSub)).subscribe(c=>{this.currentTheme=c}),this.getFirstThreeRandomProductOfferings(),this.checkRouteForToken(),this.getStats()}startTagTransition(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.rotationIntervalId=setInterval(()=>{this.services.length>0&&(this.currentIndexServ=(this.currentIndexServ+1)%this.services.length),this.publishers.length>0&&(this.currentIndexPub=(this.currentIndexPub+1)%this.publishers.length)},this.delay)}getStats(){this.statsService.getStats().then(c=>{this.services=c?.services||[],this.publishers=c?.organizations||[],this.stats={services:this.services.length,providers:this.publishers.length},this.startTagTransition()})}checkRouteForToken(){if(null!=this.route.snapshot.queryParamMap.get("token"))this.loginService.getLogin(this.route.snapshot.queryParamMap.get("token")).then(c=>{const t={id:c.id,user:c.username,email:c.email,token:c.accessToken,expire:c.expire,partyId:c.partyId,roles:c.roles,organizations:c.organizations,logged_as:c.id};null!=t.organizations&&t.organizations.length>0&&(t.logged_as=t.organizations[0].id),this.localStorage.addLoginInfo(t),this.eventMessage.emitLogin(t),D2()}),this.router.navigate(["/dashboard"]);else{const c=this.localStorage.getObject("login_items");"{}"!=JSON.stringify(c)&&(console.log(c),console.log("moment"),console.log(c.expire),console.log($2()().unix()),console.log(c.expire-$2()().unix()),console.log(c.expire-$2()().unix()<=5))}this.cdr.detectChanges(),console.log("----")}getFirstThreeRandomProductOfferings(){this.productService.getAllProducts().pipe((0,P2.T)(c=>c.map(t=>({...t,description:t.description?this.domSanitizer.sanitize(e.WPN.HTML,t.description)??void 0:t.description}))),(0,P2.T)(c=>{const t=new Set,l=Math.min(15,c.length);for(;t.sizec[i])}),(0,O1.Q)(this.unSub)).subscribe(c=>{this.productService.getProductsDetails(c).then(t=>{this.productOfferings=t.filter(l=>l.attachment?.some(i=>"Picture"===i.attachmentType||"Profile Picture"===i.name))})})}goToSearch(){this.router.navigate(["/search"])}filterSearch(c){c.preventDefault(),this.router.navigate(""!=this.searchField.value&&null!=this.searchField.value?["/search",{keywords:this.searchField.value}]:["/search"])}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}ngOnDestroy(){this.rotationIntervalId&&clearInterval(this.rotationIntervalId),this.unSub.next(),this.unSub.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(m.up),e.rXU(E2.nX),e.rXU(kn),e.rXU(z2.s),e.rXU(U2),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(cw),e.rXU(cF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-dashboard"]],standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"page"],[3,"stats"],[3,"productOfferings"],[3,"customerLink"],[3,"providersLink"],[1,"dark:bg-tertiary-50"],["id","jumbo",1,"w-full"],[1,"pt-8","pb-8","px-4","w-full","text-left","lg:pt-16","lg:px-12","bg-cover","bg-right-bottom","items-center","justify-between"],[1,"flex","flex-col","md:flex-row","justify-between","px-4","mx-auto","max-w-screen-xl"],["data-cy","mainText"],[1,"mb-4","text-left","text-4xl","font-extrabold","tracking-tight","md:text-5xl","lg:text-6xl","text-secondary-50"],[1,"text-left","mb-8","text-lg","font-normal","lg:text-xl","text-secondary-50"],["data-cy","browseServicesDashboard","id","browseServices",1,"inline-flex","justify-left","items-center","border","border-1","border-white","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","hover:bg-primary-50",3,"click"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"mr-2","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],[1,"mt-4","md:mt-0","bg-secondary-300","bg-opacity-50","rounded-lg","w-full","md:w-1/4","h-[300px]"],[1,"w-full","p-8","rounded-lg","shadow-lg","h-[300px]","flex","flex-col","justify-between"],[1,"flex","flex-col"],["data-cy","vServices",1,"mb-2","text-left","text-lg","font-normal","lg:text-xl","text-secondary-50","h-fit"],["data-cy","rPublishers",1,"mb-2","text-left","text-lg","font-normal","lg:text-xl","text-secondary-50"],["data-cy","publishOff","id","registerHere","target","_blank",1,"flex","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"href"],[1,"content","mx-auto","pt-8","pb-5","px-4","mx-auto","max-w-screen-xl","lg:pb-5","lg:pt-16","w-full","flex","items-center",3,"ngClass"],["data-cy","offFeatured"],["data-cy","nameServices",1,"text-md","text-wrap","line-clamp-2","mb-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in",3,"display","webkitBoxOrient","webkitLineClamp","break-all","break-words"],["data-cy","nameServices",1,"text-md","text-wrap","line-clamp-2","mb-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in"],["data-cy","nameOrgs",1,"text-md","text-wrap","line-clamp-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in",3,"display","webkitBoxOrient","webkitLineClamp","break-all","break-words"],["data-cy","nameOrgs",1,"text-md","text-wrap","line-clamp-2","font-medium","block","items-center","px-2.5","py-0.5","rounded-md","text-primary-100","bg-secondary-50","w-fit","animate-in"],[1,"mx-5","w-full"],[1,"flex"],[1,"relative","w-full"],["type","search","id","dashboardSearchBar","required","",1,"block","p-2.5","w-full","z-20","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-secondary-500","dark:border-s-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:border-blue-500",3,"keydown.enter","formControl","placeholder"],["type","submit","id","dashboardSearchButton",1,"absolute","top-0","end-0","p-2.5","text-sm","font-medium","h-full","text-white","bg-primary-100","rounded-e-lg","border","border-secondary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","dark:border-secondary-400",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"],[1,"sr-only"]],template:function(t,l){1&t&&e.DNE(0,Z30,8,4,"div",0)(1,l60,35,18),2&t&&e.vxM(0,"DOME"===l.providerThemeName?0:1)},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.me,p.BC,p.cb,p.YS,p.l_,z20,_.YU,W30,P30,X30,q30,E30,V30,R30],styles:["[_nghost-%COMP%]{display:block;--dome-dashboard-blue-900: #0a1a45;--dome-dashboard-blue-700: #153a8a;--dome-dashboard-blue-600: #1c4dd8;--dome-dashboard-blue-500: #2a63ff;--dome-dashboard-blue-100: #e8efff;--dome-dashboard-gray-900: #1a1a1a;--dome-dashboard-gray-700: #4a4f5c;--dome-dashboard-gray-500: #7c8191;--dome-dashboard-gray-300: #cfd5e5;--dome-dashboard-gray-200: #e3e6ef;--dome-dashboard-gray-100: #f6f8fc;--dome-dashboard-radius-card: 14px;--dome-dashboard-radius-section: 18px;--dome-dashboard-max-w: 1240px;--dome-dashboard-shadow-soft: 0 4px 20px rgba(0, 0, 0, .04)}.page[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box}.page[_ngcontent-%COMP%]{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;background:var(--dome-dashboard-gray-100);color:var(--dome-dashboard-gray-900);line-height:1.6}.page[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .page[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .page[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:600;letter-spacing:-.02em}.page[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%}.page[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{padding:5rem 0}.section-inner[_ngcontent-%COMP%]{max-width:var(--dome-dashboard-max-w);margin:0 auto;padding:0 1.5rem}.section-header[_ngcontent-%COMP%]{text-align:center;max-width:760px;margin:0 auto 3rem}.section-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.8rem;font-size:2rem}.section-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--dome-dashboard-gray-700);font-size:1.05rem}.hero[_ngcontent-%COMP%]{background:linear-gradient(135deg,var(--dome-dashboard-blue-900),var(--dome-dashboard-blue-600));padding:6rem 0;color:#fff}.hero-inner[_ngcontent-%COMP%]{max-width:var(--dome-dashboard-max-w);margin:0 auto;padding:0 1.5rem;display:grid;grid-template-columns:1.4fr 1fr;gap:3rem;align-items:center}.hero-eyebrow[_ngcontent-%COMP%]{text-transform:uppercase;font-size:.75rem;opacity:.85;letter-spacing:.15em;margin-bottom:1rem}.hero-title[_ngcontent-%COMP%]{font-size:clamp(2.4rem,5vw,3.2rem);margin:0 0 1.2rem;line-height:1.2}.hero-subtitle[_ngcontent-%COMP%]{font-size:1.15rem;max-width:560px;opacity:.95;margin-bottom:1.8rem}.hero-ctas[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap}.hero-aside[_ngcontent-%COMP%]{background:#ffffff1a;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:1.5rem;border-radius:var(--dome-dashboard-radius-card);border:1px solid rgba(255,255,255,.2)}.hero-aside[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;font-size:1.15rem}.hero-aside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding-left:1.1rem;margin-bottom:1rem}.dd-btn-outline-inverse[_ngcontent-%COMP%]{border-color:#fff;color:#fff}.dd-btn-outline-inverse[_ngcontent-%COMP%]:hover{background:#ffffff1f}.dd-mt-1r[_ngcontent-%COMP%]{margin-top:1rem}.dd-mt-15r[_ngcontent-%COMP%]{margin-top:1.5rem}.dd-mt-auto[_ngcontent-%COMP%]{margin-top:auto}.dd-bg-white[_ngcontent-%COMP%]{background:#fff}.dd-hero-browse-link[_ngcontent-%COMP%]{color:#fff;text-decoration:underline}.dd-hero-browse-link[_ngcontent-%COMP%]:hover{opacity:.9}.card-grid-4[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:1.7rem}.card-grid-2[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:1.7rem}.card[_ngcontent-%COMP%]{background:#fff;border-radius:var(--dome-dashboard-radius-card);padding:1.6rem;border:1px solid var(--dome-dashboard-gray-200);box-shadow:var(--dome-dashboard-shadow-soft);transition:.2s ease}.card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 6px 26px #0000000f}.card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-top:0;font-size:1.1rem;margin-bottom:.4rem;color:var(--dome-dashboard-blue-700)}.card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--dome-dashboard-gray-700);font-size:.95rem;margin:0}.dd-marketplace-search[_ngcontent-%COMP%]{width:100%;padding:.9rem 1.2rem;border-radius:10px;border:1px solid var(--dome-dashboard-gray-300);font-size:1rem}.service-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:2rem}.service-card[_ngcontent-%COMP%]{border-radius:var(--dome-dashboard-radius-card);border:1px solid var(--dome-dashboard-gray-200);background:#fff;padding:1.7rem;display:flex;flex-direction:column;gap:.9rem;box-shadow:var(--dome-dashboard-shadow-soft);transition:.2s}.service-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 8px 26px #00000012}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--dome-dashboard-blue-100);color:var(--dome-dashboard-blue-600);padding:.2rem .6rem;border-radius:6px;font-size:.85rem;font-weight:600}.tag-list[_ngcontent-%COMP%]{display:flex;gap:.4rem;flex-wrap:wrap}.tag[_ngcontent-%COMP%]{background:var(--dome-dashboard-gray-100);border:1px solid var(--dome-dashboard-gray-200);border-radius:6px;padding:.25rem .6rem;font-size:.8rem;color:var(--dome-dashboard-gray-700)}.dd-marketplace-catalog-link[_ngcontent-%COMP%]{color:var(--dome-dashboard-blue-700);text-decoration:underline}.dd-marketplace-catalog-link[_ngcontent-%COMP%]:hover{color:var(--dome-dashboard-blue-600)}.split-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:4rem}.column-title[_ngcontent-%COMP%]{font-size:2.2rem;color:var(--dome-dashboard-blue-900);margin-bottom:2rem;text-align:center;border-bottom:2px solid var(--dome-dashboard-blue-600);display:inline-block;width:100%;padding-bottom:.5rem}.sub-section-title[_ngcontent-%COMP%]{margin:0 0 1rem;font-size:1.25rem}.why-use[_ngcontent-%COMP%]{margin-bottom:2.5rem}.how-works[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-height:360px}.how-works[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:0;padding-left:1.2rem}.how-works[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.9rem;color:var(--dome-dashboard-gray-700)}.roadmap-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;color:var(--dome-dashboard-blue-600);margin-bottom:.3rem;letter-spacing:.05em}.final-cta[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1.5rem}.dd-final-cta-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}@media (max-width: 992px){.hero-inner[_ngcontent-%COMP%]{grid-template-columns:1fr}.split-container[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:3rem}.how-works[_ngcontent-%COMP%]{min-height:auto}.service-grid[_ngcontent-%COMP%], .roadmap[_ngcontent-%COMP%], .card-grid-4[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 700px){.service-grid[_ngcontent-%COMP%], .roadmap[_ngcontent-%COMP%], .card-grid-4[_ngcontent-%COMP%], .card-grid-2[_ngcontent-%COMP%]{grid-template-columns:1fr}}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1.2rem;border-radius:8px;font-weight:500;font-size:.95rem;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap}.btn-primary[_ngcontent-%COMP%]{background:var(--dome-dashboard-blue-600);color:#fff;border:1px solid var(--dome-dashboard-blue-600)}.btn-primary[_ngcontent-%COMP%]:hover{background:var(--dome-dashboard-blue-700);border-color:var(--dome-dashboard-blue-700);box-shadow:0 4px 14px #1c4dd840}.btn-outline[_ngcontent-%COMP%]{background:transparent;color:var(--dome-dashboard-blue-700);border:1px solid var(--dome-dashboard-blue-600)}.btn-outline[_ngcontent-%COMP%]:hover{background:var(--dome-dashboard-blue-100);color:var(--dome-dashboard-blue-700);box-shadow:0 3px 10px #1c4dd826}.btn-outline-inverse[_ngcontent-%COMP%]{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.9)}.btn-outline-inverse[_ngcontent-%COMP%]:hover{background:#ffffff26;color:#fff;border-color:#fff}.roadmap[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}.roadmap-item[_ngcontent-%COMP%]{background:#fff;padding:1.8rem;border-radius:var(--dome-dashboard-radius-card);border:1px solid var(--dome-dashboard-gray-200);box-shadow:var(--dome-dashboard-shadow-soft)}.roadmap-label[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;color:var(--dome-dashboard-blue-600);margin-bottom:.35rem;letter-spacing:.05em}.roadmap-item[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 .6rem;color:var(--dome-dashboard-gray-900)}.roadmap-item[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;color:var(--dome-dashboard-gray-700)}.final-cta[_ngcontent-%COMP%]{background:var(--dome-dashboard-blue-900);color:#fff;text-align:center;padding:4rem 0}.final-cta[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;margin:0 0 1.5rem;padding:0 1.5rem}.final-cta-actions[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;padding:0 1.5rem}@media (max-width: 992px){.roadmap[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media (max-width: 700px){.roadmap[_ngcontent-%COMP%]{grid-template-columns:1fr}}.text-truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:6;line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.disc[_ngcontent-%COMP%]{list-style-type:disc}.description-wrapper[_ngcontent-%COMP%]{height:10rem}.c-color[_ngcontent-%COMP%]{color:#324153!important}"]})}}return n})();const ff1=(n,a)=>({"break-all":n,"break-words":a});function a60(n,a){if(1&n&&(e.j41(0,"a",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.Mz_("href","mailto: ",c.characteristic.emailAddress,"",e.B4B),e.R7$(),e.SpI(" ",c.characteristic.emailAddress," ")}}function o60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.LHq(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince," ")}}function i60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function r60(n,a){if(1&n&&(e.j41(0,"tr",34)(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",36),e.EFF(4),e.k0s(),e.j41(5,"td",37),e.DNE(6,a60,2,3,"a",38)(7,o60,1,4)(8,i60,1,1),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.SpI(" ",(null==c.characteristic?null:c.characteristic.contactType)||c.mediumType," "),e.R7$(2),e.vxM(6,"Email"==c.mediumType?6:"PostalAddress"==c.mediumType?7:8)}}function d60(n,a){1&n&&(e.j41(0,"div",35)(1,"div",39),e.qSk(),e.j41(2,"svg",40),e.nrm(3,"path",41),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}let f60=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.cdr=c,this.route=t,this.router=l,this.elementRef=i,this.localStorage=u,this.eventMessage=C,this.accService=b,this.location=T,this.logo="https://placehold.co/600x400/svg",this.description=void 0}ngOnInit(){this.id=this.route.snapshot.paramMap.get("id"),console.log("--- Details ID:"),console.log(this.id),this.accService.getOrgInfo(this.id).then(c=>{this.orgInfo=c,console.log(this.orgInfo);for(let t=0;tl.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2),e.rXU(x0.O),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-organization-details"]],decls:57,vars:43,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","lg:grid","lg:grid-cols-60/40"],[1,"flex","lg:hidden","overflow-hidden","justify-center","items-center","bg-white","rounded-t-lg","w-full"],["alt","Organization profile image",1,"rounded-t-lg","object-contain","dark:text-white",3,"src"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white","line-clamp-3","text-wrap","break-words",3,"ngClass"],[1,"pt-2","line-clamp-5","h-fit"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline","line-clamp-2","text-wrap","break-words",3,"href","ngClass"],[1,"hidden","lg:block","overflow-hidden","rounded-r-lg"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Organization profile image",1,"object-contain","max-h-[300px]","z-10","p-8","dark:text-white",3,"src"],[1,"w-full","h-full","bg-secondary-50","rounded-lg","p-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-b"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-4","lg:p-12"],[1,"text-2xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg","bg-gray-200","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200","border","dark:border-gray-700","border-gray-300"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white","border-b","border-gray-300","dark:border-gray-700"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","border-gray-300","dark:border-gray-700"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"href"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"button",5),e.bIt("click",function(){return l.back()}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",13)(18,"div",14),e.nrm(19,"img",15),e.k0s(),e.j41(20,"div",16)(21,"div",17)(22,"h5",18),e.EFF(23),e.k0s()(),e.j41(24,"div",19)(25,"a",20),e.EFF(26),e.k0s()()(),e.j41(27,"div",21)(28,"div",22),e.nrm(29,"div",23)(30,"img",24),e.k0s()()(),e.j41(31,"div",25)(32,"div",26)(33,"h2",27),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.nrm(36,"markdown",28),e.j41(37,"h2",27),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"div",29)(41,"table",30)(42,"thead",31)(43,"tr")(44,"th",32),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"th",32),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"th",33),e.EFF(51),e.nI1(52,"translate"),e.k0s()()(),e.j41(53,"tbody"),e.Z7z(54,r60,9,3,"tr",34,e.fX1,!1,d60,7,3,"div",35),e.k0s()()()()()()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,20,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,22,"ORGANIZATION._details")),e.R7$(4),e.FS9("src",l.logo,e.B4B),e.R7$(3),e.Y8G("ngClass",e.l_i(34,ff1,l.hasLongWord(null==l.orgInfo?null:l.orgInfo.tradingName,20),!l.hasLongWord(null==l.orgInfo?null:l.orgInfo.tradingName,20))),e.R7$(),e.JRh(null==l.orgInfo?null:l.orgInfo.tradingName),e.R7$(2),e.FS9("href",l.website,e.B4B),e.Y8G("ngClass",e.l_i(37,ff1,l.hasLongWord(l.website,20),!l.hasLongWord(l.website,20))),e.R7$(),e.JRh(l.website),e.R7$(3),e.muq("background-image: url(",l.logo,");filter: blur(20px);"),e.R7$(),e.FS9("src",l.logo,e.B4B),e.R7$(4),e.JRh(e.bMT(35,24,"ORGANIZATION._details")),e.R7$(2),e.Y8G("ngClass",e.l_i(40,ff1,l.hasLongWord(l.description,20),!l.hasLongWord(l.description,20)))("data",l.description),e.R7$(2),e.JRh(e.bMT(39,26,"PROFILE._contact_info")),e.R7$(7),e.SpI(" ",e.bMT(46,28,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(49,30,"PROFILE._contact_title")," "),e.R7$(3),e.SpI(" ",e.bMT(52,32,"PROFILE._info")," "),e.R7$(3),e.Dyx(null==l.orgInfo?null:l.orgInfo.contactMedium))},dependencies:[_.YU,N0,s1.D9]})}}return n})();const R5=[{id:1,name:"SecNumCloud",mandatory:!1,domesupported:!0},{id:2,name:"BSI-C5",mandatory:!1,domesupported:!0},{id:3,name:"CISPE",mandatory:!1,domesupported:!0},{id:4,name:"EU Cloud CoC",mandatory:!1,domesupported:!0},{id:5,name:"CSA CCM",mandatory:!1,domesupported:!0},{id:6,name:"ISO/IEC 27001",mandatory:!1,domesupported:!0},{id:7,name:"TISAX",mandatory:!1,domesupported:!0},{id:8,name:"SWIPO",mandatory:!1,domesupported:!0}],u60=(n,a)=>({"break-all":n,"break-words":a});function m60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"label",4)(2,"input",5),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.k0s(),e.nrm(3,"div",6),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(2),e.Y8G("formControl",c.control)}}function p60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"input",8),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.k0s(),e.j41(2,"span",9),e.EFF(3),e.k0s()()}if(2&n){let c,t;const l=e.XpG(3);e.R7$(),e.Y8G("min",null==(c=l.getSliderRange())?null:c.min)("max",null==(t=l.getSliderRange())?null:t.max)("formControl",l.control),e.R7$(2),e.Lme("",l.control.value," ",l.getUnit(),"")}}function h60(n,a){if(1&n&&(e.j41(0,"option",12),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(4);e.Y8G("ngValue",c.value),e.R7$(),e.Lme(" ",c.value," ",t.getUnit()," ")}}function g60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"select",10),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onControlCommit())}),e.DNE(2,h60,2,3,"option",11),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("formControl",c.control),e.R7$(),e.Y8G("ngForOf",c.characteristic.productSpecCharacteristicValue)}}function _60(n,a){if(1&n&&e.DNE(0,m60,4,1,"div",3)(1,p60,4,5)(2,g60,3,2),2&n){const c=e.XpG(2);e.vxM(0,c.isBoolean()?0:c.isSlider()?1:2)}}function L60(n,a){if(1&n&&(e.j41(0,"div",0)(1,"h4",1),e.EFF(2),e.k0s(),e.nrm(3,"markdown",2),e.k0s(),e.DNE(4,_60,3,1)),2&n){const c=e.XpG();e.R7$(2),e.JRh(c.characteristic.name),e.R7$(),e.Y8G("ngClass",e.l_i(4,u60,c.hasLongWord(c.characteristic.description,20),!c.hasLongWord(c.characteristic.description,20)))("data",c.characteristic.description),e.R7$(),e.vxM(4,c.isDisabled?-1:4)}}function C60(n,a){if(1&n&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.k0s(),e.j41(3,"span",15),e.EFF(4),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(2),e.Lme("",c.control.value," ",c.getUnit(),"")}}let HN1=(()=>{class n{constructor(){this.readOnly=!1,this.isDisabled=!1,this.canBeDisabled=!1,this.valueChange=new e.bkB,this.control=new p.MJ}ngOnInit(){const c=this.characteristic.productSpecCharacteristicValue?.find(l=>l.isDefault),t=c?.value??c?.valueFrom;console.log("defaultValue: ",t),void 0!==t&&(this.control=new p.MJ({value:t,disabled:this.readOnly}))}onControlCommit(){this.readOnly||this.valueChange.emit({characteristicId:this.characteristic.id,selectedValue:this.control.value})}isSlider(){return this.characteristic.productSpecCharacteristicValue?.some(t=>void 0!==t.valueFrom&&void 0!==t.valueTo)||!1}isBoolean(){const c=this.characteristic.productSpecCharacteristicValue;return!(!c||0===c.length)&&c.every(t=>"boolean"==typeof t.value)}getSliderRange(){const c=this.characteristic.productSpecCharacteristicValue?.find(t=>void 0!==t.valueFrom&&void 0!==t.valueTo);return c?{min:c.valueFrom,max:c.valueTo}:null}getUnit(){return this.characteristic.productSpecCharacteristicValue?.[0].unitOfMeasure}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-characteristic"]],inputs:{characteristic:"characteristic",readOnly:"readOnly",isDisabled:"isDisabled",canBeDisabled:"canBeDisabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[e.aNF],decls:2,vars:1,consts:[[1,"my-2"],[1,"text-lg","font-semibold","text-primary-100","dark:text-gray-300"],[1,"text-gray-500","dark:text-gray-400","text-wrap","break-words",3,"ngClass","data"],[1,"flex","items-center"],[1,"inline-flex","items-center","cursor-pointer"],["type","checkbox",1,"sr-only","peer",3,"change","formControl"],[1,"relative","w-9","h-5","bg-gray-300","border","border-gray-400","peer-focus:outline-none","peer-focus:ring-4","peer-focus:ring-blue-300","dark:peer-focus:ring-blue-800","rounded-full","peer","dark:bg-gray-600","dark:border-gray-500","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-[1px]","after:start-[1px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-4","after:w-4","after:transition-all","dark:after:border-gray-500","peer-checked:bg-blue-600","dark:peer-checked:bg-blue-600"],[1,"flex","items-center","space-x-2"],["type","range",1,"w-full","h-2","bg-gray-300","border","border-gray-300","rounded-lg","appearance-none","cursor-pointer","dark:bg-gray-600","dark:border-gray-500",3,"change","min","max","formControl"],[1,"min-w-24","flex","justify-center","text-sm","text-gray-600","dark:text-gray-400"],[1,"block","w-full","px-3","py-2","border","border-gray-300","rounded-lg","text-sm","shadow-sm","focus:outline-none","focus:ring-2","focus:ring-blue-300","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-600",3,"change","formControl"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[1,"grid","grid-cols-2","items-center"],[1,"text-base","font-semibold","text-primary-100","dark:text-gray-400","flex","justify-between","content-center"],[1,"pl-4","min-w-24","flex","text-sm","text-gray-600","dark:text-gray-400"]],template:function(t,l){1&t&&e.DNE(0,L60,5,7)(1,C60,5,3),2&t&&e.vxM(0,l.readOnly?1:0)},dependencies:[_.Sq,_.YU,p.X1,p.xH,p.y7,p.me,p.MR,p.Zm,p.wz,p.BC,p.l_,N0]})}}return n})(),z60=(()=>{class n{constructor(c){this.api=c,this.usagePriceComponentsCache=new Map}getAppliedMetrics(c,t){var l=this;return(0,C1.A)(function*(){const i=yield l.getUsagePriceComponents(c);if(0===i.length)return[];const u=new Map;for(const C of t||[])C?.id&&u.set(C.id,C.value);return i.filter(C=>l.isPriceComponentApplied(C,u)).map(C=>({priceId:C?.id,usageSpecId:C?.usageSpecId,unitOfMeasure:l.getMetricName(C?.unitOfMeasure),value:0}))})()}clearCache(c){c?this.usagePriceComponentsCache.delete(c):this.usagePriceComponentsCache.clear()}getUsagePriceComponents(c){var t=this;return(0,C1.A)(function*(){if(!c)return[];const l=c?.id?String(c.id):"";if(l&&t.usagePriceComponentsCache.has(l))return t.usagePriceComponentsCache.get(l)||[];const u=(yield t.resolvePriceComponents(c)).filter(C=>t.isUsagePriceComponent(C));return l&&t.usagePriceComponentsCache.set(l,u),u})()}resolvePriceComponents(c){var t=this;return(0,C1.A)(function*(){if(!c)return[];const l=Array.isArray(c?.bundledPopRelationship)?c.bundledPopRelationship:[];if(0===l.length)return[c];const i=[];for(const u of l)if(u?.id)try{const C=yield t.api.getOfferingPrice(u.id);C&&i.push(C)}catch(C){console.error("Error loading price component for applied metrics evaluation",C)}return i})()}isUsagePriceComponent(c){return"usage"===String(c?.priceType||"").toLowerCase()&&!!c?.usageSpecId&&!!this.getMetricName(c?.unitOfMeasure)}isPriceComponentApplied(c,t){const l=Array.isArray(c?.prodSpecCharValueUse)?c.prodSpecCharValueUse:[];return 0===l.length||l.every(i=>this.matchesCharacteristicUse(i,t))}matchesCharacteristicUse(c,t){const l=c?.id;if(!l||!t.has(l))return!1;const i=t.get(l),u=Array.isArray(c?.productSpecCharacteristicValue)?c.productSpecCharacteristicValue:[];return 0===u.length||u.some(C=>this.matchesRequiredValue(i,C))}matchesRequiredValue(c,t){if(void 0!==t?.valueFrom||void 0!==t?.valueTo){const u=Number(c);if(Number.isNaN(u))return!1;const C=void 0!==t?.valueFrom,b=void 0!==t?.valueTo;return!(C&&uNumber(t.valueTo))}if(void 0===t?.value)return!1;const i=t.value;if("boolean"==typeof i){const u=this.normalizeBoolean(c);return null!==u&&u===i}if("number"==typeof i){const u=Number(c);return!Number.isNaN(u)&&u===i}return String(c)===String(i)}normalizeBoolean(c){if("boolean"==typeof c)return c;if("string"==typeof c){const t=c.toLowerCase();if("true"===t)return!0;if("false"===t)return!1}return null}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(o0.F))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const M60=(n,a)=>a.name,cD=(n,a)=>a.id,x60=(n,a)=>a.unitOfMeasure,eH=(n,a)=>({"break-all":n,"break-words":a}),b60=(n,a)=>({"border-primary-100 text-wrap border":n,"border-transparent outline outline-2 outline-teal-500 bg-teal-50 dark:bg-teal-900/40 ring-1 ring-teal-500":a}),y60=()=>[];function F60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",17),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onClose())}),e.k0s()}}function v60(n,a){if(1&n&&(e.j41(0,"div",20)(1,"span",21),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.SpI(" ",c.value," ")}}function k60(n,a){if(1&n&&(e.j41(0,"div",10)(1,"h6",18),e.EFF(2,"Current characteristics:"),e.k0s(),e.j41(3,"div",19),e.Z7z(4,v60,4,2,"div",20,M60),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.Dyx(c.existingCharacteristics)}}function w60(n,a){1&n&&(e.qSk(),e.j41(0,"svg",27),e.nrm(1,"path",30),e.k0s())}function S60(n,a){1&n&&(e.j41(0,"span",28),e.EFF(1,"PROFILE"),e.k0s())}function N60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",24),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.onPricePlanSelected(l))}),e.j41(1,"div",25)(2,"span",26),e.DNE(3,w60,2,0,":svg:svg",27),e.EFF(4),e.k0s(),e.DNE(5,S60,2,0,"span",28),e.k0s(),e.nrm(6,"markdown",29),e.k0s()}if(2&n){let c,t;const l=a.$implicit,i=e.XpG(2);e.Y8G("ngClass",e.l_i(7,b60,l.id!==(null==(c=i.form.get("selectedPricePlan"))||null==c.value?null:c.value.id),l.id===(null==(c=i.form.get("selectedPricePlan"))||null==c.value?null:c.value.id))),e.BMQ("data-cy","pricePlan-"+l.name),e.R7$(3),e.vxM(3,l.id===(null==(t=i.form.get("selectedPricePlan"))||null==t.value?null:t.value.id)?3:-1),e.R7$(),e.SpI(" ",l.name," "),e.R7$(),e.vxM(5,l.prodSpecCharValueUse?5:-1),e.R7$(),e.Y8G("ngClass",e.l_i(10,eH,i.hasLongWord(l.description,20),!i.hasLongWord(l.description,20)))("data",l.description)}}function E60(n,a){1&n&&(e.j41(0,"div"),e.EFF(1,"The offering is free"),e.k0s())}function D60(n,a){if(1&n&&(e.j41(0,"p",22),e.EFF(1),e.j41(2,"b"),e.EFF(3),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"p",22),e.EFF(6,"Please, select the price plan:"),e.k0s(),e.Z7z(7,N60,7,13,"div",23,cD,!1,E60,2,0,"div")),2&n){const c=e.XpG();e.R7$(),e.SpI("","modify"===c.mode?"Select the new price model and characteristics for":"In order to add"," "),e.R7$(2),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(),e.JRh("modify"===c.mode?".":" to your cart you have to select the price model and the set of characteristics you prefer."),e.R7$(3),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice)}}function T60(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-characteristic",34),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.Y8G("characteristic",c)("readOnly",!0)}}function R60(n,a){if(1&n&&e.DNE(0,T60,1,2,"app-characteristic",33),2&n){const c=a.$implicit;e.vxM(0,null!=c.name&&c.name.endsWith("- enabled")?-1:0)}}function A60(n,a){if(1&n&&(e.j41(0,"p",31),e.EFF(1,"This price plan has an associate profile. That means that the following characteristics are already set for you."),e.k0s(),e.j41(2,"div",32),e.Z7z(3,R60,1,1,null,null,cD),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Dyx(c.filteredCharacteristics)}}function I60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39)(1,"div",40)(2,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function P60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Boolean toggles"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,I60,3,4,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.booleanCharacteristics)}}function j60(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",42)(1,"input",43),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(4);return e.Njj(u.onToggleChange(l,i.name))}),e.k0s(),e.nrm(2,"div",44),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("checked",!t.disabledCharacteristics.includes(c.id))}}function $60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39),e.DNE(1,j60,3,1,"label",42),e.j41(2,"div",40)(3,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.vxM(1,t.canBeDisabledChars.includes(c.id)&&!t.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function O60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Choices"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,$60,4,5,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.choiceCharacteristics)}}function B60(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",42)(1,"input",43),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(4);return e.Njj(u.onToggleChange(l,i.name))}),e.k0s(),e.nrm(2,"div",44),e.k0s()}if(2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("checked",!t.disabledCharacteristics.includes(c.id))}}function V60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39),e.DNE(1,B60,3,1,"label",42),e.j41(2,"div",40)(3,"app-characteristic",41),e.bIt("valueChange",function(l){e.eBV(c);const i=e.XpG(4);return e.Njj(i.onValueChange(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.vxM(1,t.canBeDisabledChars.includes(c.id)&&!t.isBooleanCharacteristic(c)?1:-1),e.R7$(2),e.Y8G("characteristic",c)("readOnly",!1)("isDisabled",t.disabledCharacteristics.includes(c.id))("canBeDisabled",t.canBeDisabledChars.includes(c.id))}}function U60(n,a){if(1&n&&(e.j41(0,"div",36)(1,"p",37),e.EFF(2,"Ranges"),e.k0s(),e.j41(3,"div",38),e.Z7z(4,V60,4,5,"div",39,cD),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(4),e.Dyx(c.rangeCharacteristics)}}function G60(n,a){if(1&n&&(e.j41(0,"p",31),e.EFF(1,"Please select the characteristics you need to suit this offer to you."),e.k0s(),e.j41(2,"div",35),e.DNE(3,P60,6,0,"div",36)(4,O60,6,0,"div",36)(5,U60,6,0,"div",36),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.vxM(3,c.booleanCharacteristics.length>0?3:-1),e.R7$(),e.vxM(4,c.choiceCharacteristics.length>0?4:-1),e.R7$(),e.vxM(5,c.rangeCharacteristics.length>0?5:-1)}}function H60(n,a){if(1&n&&e.DNE(0,A60,5,0)(1,G60,6,3),2&n){const c=e.XpG();e.vxM(0,c.hasProfile?0:c.filteredCharacteristics.length>0?1:-1)}}function Y60(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",47)(1,"h5",48),e.EFF(2),e.k0s(),e.j41(3,"input",49),e.bIt("input",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2);return e.Njj(u.onMetricChange(l,i))}),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,eH,t.hasLongWord(c.unitOfMeasure,20),!t.hasLongWord(c.unitOfMeasure,20))),e.R7$(),e.JRh(c.unitOfMeasure),e.R7$(),e.FS9("placeholder",c.value)}}function q60(n,a){if(1&n&&(e.j41(0,"p",45),e.EFF(1,"You can change the metric values to simulate final prices"),e.k0s(),e.j41(2,"div",46),e.Z7z(3,Y60,4,6,"div",47,x60),e.k0s()),2&n){const c=e.XpG();e.R7$(3),e.Dyx(c.metrics||e.lJ4(0,y60))}}function X60(n,a){if(1&n&&(e.j41(0,"div",11)(1,"h5",50),e.EFF(2,"Terms and conditions:"),e.k0s(),e.j41(3,"div",51),e.nrm(4,"markdown",52),e.k0s(),e.j41(5,"div",53),e.nrm(6,"input",54),e.j41(7,"label",55),e.EFF(8,"I accept the terms and conditions"),e.k0s()()()),2&n){const c=e.XpG();e.R7$(4),e.Y8G("ngClass",e.l_i(2,eH,c.hasLongWord(c.tsAndCs.description,20),!c.hasLongWord(c.tsAndCs.description,20)))("data",c.tsAndCs.description)}}function W60(n,a){1&n&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",56),e.nrm(2,"path",57)(3,"path",58),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading price..."),e.k0s()())}function J60(n,a){1&n&&(e.j41(0,"div",59)(1,"p"),e.EFF(2,"This offer includes a custom price plan. This implies that the service price plan has been created externally to the DOME Marketplace and is entirely determined by the service provider. The final price will be calculated after the product order is submitted to the service provider."),e.k0s()())}function Q60(n,a){1&n&&(e.j41(0,"div",59)(1,"p"),e.EFF(2,"This offer is free"),e.k0s()())}function Z60(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" / ",c.recurringChargePeriod," ")}}function K60(n,a){if(1&n&&(e.j41(0,"div",60)(1,"span",61),e.EFF(2),e.k0s(),e.j41(3,"span",62),e.EFF(4),e.DNE(5,Z60,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI("",c.priceType,":"),e.R7$(2),e.Lme("",t.formatPrice(c.price.taxIncludedAmount.value)," ",c.price.taxIncludedAmount.unit," "),e.R7$(),e.vxM(5,t.hasKey(c,"recurringChargePeriod")?5:-1)}}function e80(n,a){if(1&n&&(e.j41(0,"div",59),e.Z7z(1,K60,6,4,"div",60,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.price)}}function c80(n,a){1&n&&(e.j41(0,"p",63),e.EFF(1,"Please, select a price plan to get its price"),e.k0s())}let cH=(()=>{class n{handleEscape(c){"Escape"===c.key&&this.isOpen&&this.onClose()}constructor(c,t,l,i,u,C){this.fb=c,this.priceService=t,this.cartService=l,this.eventMessage=i,this.cdr=u,this.pricePlanMetricsService=C,this.drawerId="drawer-default",this.prodSpec={},this.isOpen=!1,this.width="w-80",this.mode="cart",this.inventoryProductId=null,this.existingCharacteristics=[],this.closeDrawer=new e.bkB,this.modifySubmit=new e.bkB,this.selectedPricePlan=null,this.isLoading=!1,this.price=[],this.hasProfile=!1,this.isCustom=!1,this.isFree=!1,this.images=[],this.toastVisibility=!1,this.orderChars=[],this.selectedPriceComponents=[],this.selectedUsageSpecId=null,this.selectedUnitOfMeasure=null,this.metrics=[],this.groupedMetrics={},this.characteristics=[],this.filteredCharacteristics=[],this.booleanCharacteristics=[],this.choiceCharacteristics=[],this.rangeCharacteristics=[],this.disabledCharacteristics=[],this.canBeDisabledChars=[],this.boundHandleEscape=b=>this.handleEscape(b),this.form=this.fb.group({selectedPricePlan:[null,p.k0.required],characteristics:this.fb.group({}),tsAccepted:[!1,p.k0.requiredTrue]})}ngOnInit(){document.addEventListener("keydown",this.boundHandleEscape),this.toggleBodyScroll(this.isOpen),this.tsAndCs={description:""},console.log("---- producto"),console.log(this.productOff),this.productOff?.productOfferingTerm?.forEach(t=>{console.log(t.name),console.log("----"),"procurement"!=t.name&&(console.log("---- Setting the term"),this.tsAndCs=t)}),this.isFree=0===this.productOff?.productOfferingPrice?.length,this.isFree&&(this.form.get("selectedPricePlan")?.setValue({}),this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics()),""==this.tsAndCs.description&&(this.form.controls.tsAccepted.setValue(!0),this.cdr.detectChanges()),console.log(this.tsAndCs);let c=this.productOff?.attachment?.filter(t=>"Profile Picture"===t.name)??[];console.log("profile..."),console.log(c),this.images=0==c.length?this.productOff?.attachment?.filter(t=>"Picture"===t.attachmentType)??[]:c}ngOnChanges(c){if(c.isOpen&&this.toggleBodyScroll(!!c.isOpen.currentValue),c.prodSpec&&this.isFree&&(this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics(),this.updateOrderChars()),!0===c.isOpen?.currentValue){this.tsAndCs={description:""};const t=this.productOff?.productOfferingTerm?.find(l=>"License"===l.name);t&&(this.tsAndCs={description:t.description}),""==this.tsAndCs.description?(this.form.controls.tsAccepted.setValue(!0),this.cdr.detectChanges()):(this.form.controls.tsAccepted.setValue(!1),this.cdr.detectChanges()),console.log(this.tsAndCs)}if(c.productOff&&c.productOff.currentValue){console.log("Changes..."),console.log(this.productOff),this.isFree=0===this.productOff?.productOfferingPrice?.length,this.isFree&&(this.form.get("selectedPricePlan")?.setValue({}),this.characteristics=this.prodSpec.productSpecCharacteristic||[],this.filterCharacteristics());let t=this.productOff?.attachment?.filter(l=>"Profile Picture"===l.name)??[];this.images=0==t.length?this.productOff?.attachment?.filter(l=>"Picture"===l.attachmentType)??[]:t}}ngOnDestroy(){document.removeEventListener("keydown",this.boundHandleEscape),this.toggleBodyScroll(!1)}onClose(){this.isOpen=!1,this.toggleBodyScroll(!1),this.closeDrawer.emit()}toggleBodyScroll(c){document.body.style.overflow=c?"hidden":"",document.documentElement.style.overflow=c?"hidden":""}disableChars(){}filterCharacteristics(){this.filteredCharacteristics=[],this.booleanCharacteristics=[],this.choiceCharacteristics=[],this.rangeCharacteristics=[],this.disabledCharacteristics=[],this.canBeDisabledChars=[],this.characteristics.filter(l=>l.name?.endsWith(" - enabled")).filter(l=>{const i=l.productSpecCharacteristicValue?.[0]?.value;return"false"===String(i).toLowerCase()}).map(l=>l.name?.replace(/ - enabled$/,"").trim()),this.filteredCharacteristics=this.characteristics.filter(l=>{const i=R5.some(T=>T.name===l.name),u="credentialsConfiguration"===l.valueType,C="authorizationPolicy"===l.valueType,b=l?.name?.startsWith("Compliance:");return!(i||b||u||C)});const t=this.fb.group({});this.filteredCharacteristics.forEach(l=>{if(null!=l.id){const i=l.productSpecCharacteristicValue?.find(u=>u.isDefault)?.value??l.productSpecCharacteristicValue?.find(u=>u.isDefault)?.valueFrom;if(t.addControl(l.id,this.fb.control(i??null,p.k0.required)),!l.name?.endsWith("- enabled")&&this.filteredCharacteristics.some(u=>u.name===l.name+" - enabled")){this.canBeDisabledChars.push(l.id);const C=this.filteredCharacteristics.find(b=>b.name===l.name+" - enabled")?.productSpecCharacteristicValue?.find(b=>b.isDefault);C?"false"===String(C.value).toLowerCase()&&this.disabledCharacteristics.push(l.id):this.disabledCharacteristics.push(l.id)}}}),this.form.setControl("characteristics",t),this.groupCharacteristics()}isBooleanCharacteristic(c){const t=c.productSpecCharacteristicValue;return!(!t||0===t.length)&&t.every(l=>"boolean"==typeof l?.value)}isRangeCharacteristic(c){return c.productSpecCharacteristicValue?.some(t=>void 0!==t?.valueFrom&&void 0!==t?.valueTo)??!1}isEnabledCharacteristic(c){return c.name?.endsWith("- enabled")??!1}groupCharacteristics(){const c=this.filteredCharacteristics.filter(t=>!this.isEnabledCharacteristic(t));this.booleanCharacteristics=c.filter(t=>this.isBooleanCharacteristic(t)),this.rangeCharacteristics=c.filter(t=>!this.isBooleanCharacteristic(t)&&this.isRangeCharacteristic(t)),this.choiceCharacteristics=c.filter(t=>!this.isBooleanCharacteristic(t)&&!this.isRangeCharacteristic(t))}onToggleChange(c,t){var l=this;return(0,C1.A)(function*(){const u=c.target.checked;let C=l.filteredCharacteristics.find(u1=>u1.name==t+" - enabled");const b=l.form.get("characteristics");C&&C.id&&b.get(C.id)?.setValue(u);const T=C?.name?.replace(/- enabled$/,"").trim(),W=l.filteredCharacteristics.find(u1=>u1.name===T);W&&(u?l.disabledCharacteristics=l.disabledCharacteristics.filter(u1=>u1!==W.id):l.disabledCharacteristics.includes(W.id)||l.disabledCharacteristics.push(W.id)),yield l.refreshAppliedMetrics(),yield l.calculatePrice()})()}onPricePlanSelected(c){var t=this;return(0,C1.A)(function*(){t.metrics=[],console.log("precio"),console.log(c),t.form.get("selectedPricePlan")?.setValue(c),t.isCustom="custom"===c.priceType,c.prodSpecCharValueUse?(t.characteristics=c.prodSpecCharValueUse,t.hasProfile=!0):(t.characteristics=t.prodSpec.productSpecCharacteristic||[],t.hasProfile=!1),t.filterCharacteristics(),t.selectedPricePlan=c,yield t.refreshAppliedMetrics(),console.log(t.selectedPricePlan),yield t.calculatePrice()})()}onUsageSpecChange(c){this.selectedUsageSpecId=c.target.value,this.selectedUnitOfMeasure=null}onMetricChange(c,t){t.value=c.target.valueAsNumber,console.log("Metric changed:",t.unitOfMeasure,"Value:",t.value),console.log(this.metrics),this.calculatePrice()}get usageSpecIds(){return Object.keys(this.groupedMetrics)}onValueChange(c){var t=this;return(0,C1.A)(function*(){t.form.get("characteristics").get(c.characteristicId)?.setValue(c.selectedValue),yield t.refreshAppliedMetrics(),yield t.calculatePrice()})()}metricKey(c){return c?.usageSpecId&&c?.unitOfMeasure?`${c.usageSpecId}:${c.unitOfMeasure}`:""}getSelectedCharacteristicsForMetrics(){const c=this.form.get("characteristics")?.value||{},t=[];for(const l of this.getKeys(c))this.disabledCharacteristics.includes(l)||t.push({id:l,value:c[l]});return t}refreshAppliedMetrics(){var c=this;return(0,C1.A)(function*(){if(!c.selectedPricePlan)return void(c.metrics=[]);const t=c.getSelectedCharacteristicsForMetrics(),l=new Map;for(const i of c.metrics){const u=c.metricKey(i);u&&l.set(u,i.value??0)}try{const i=yield c.pricePlanMetricsService.getAppliedMetrics(c.selectedPricePlan,t);c.metrics=(Array.isArray(i)?i:[]).map(u=>{const C=c.metricKey(u);return C?{...u,value:l.has(C)?l.get(C):u.value??0}:u})}catch(i){console.error("Error refreshing applied metrics",i)}})()}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}isFormValid(){return this.form.valid}get objectKeys(){return Object.keys}hasKey(c,t){return t in c}getKeys(c){return Object.keys(c)}getValues(c){return Object.values(c)}formatPrice(c){const t=("number"==typeof c?c.toString():(c??"").toString()).trim(),l=parseFloat(t);return isNaN(l)?String(c??""):(Math.round(+(t+"e2"))/100).toFixed(2)}updateOrderChars(){const c=this.form.get("characteristics")?.value;console.log("chars...."),console.log(c),console.log("general chars..."),console.log(this.filteredCharacteristics),console.log("keys of selected chars..."),console.log(this.getKeys(c)),this.orderChars=[];for(let t=0;ti.id===this.getKeys(c)[t]);if(console.log(this.filteredCharacteristics[l]),!this.disabledCharacteristics.includes(this.filteredCharacteristics[l].id)){let i=this.getValues(c)[t];const u=this.filteredCharacteristics[l];if(u.productSpecCharacteristicValue?.some(T=>"boolean"==typeof T?.value)&&"string"==typeof i){const T=i.toLowerCase();("true"===T||"false"===T)&&(i="true"===T)}let b=u.valueType;b||"boolean"!=typeof i?b||isNaN(Number(i))?b||(b="string"):b="number":b="boolean",null==i&&"number"==b&&(i=0),u.name?.endsWith("- enabled")||this.orderChars.push({name:u.name,value:i,valueType:b})}}console.log("Calculating the price with..."),console.log(this.orderChars)}calculatePrice(){var c=this;return(0,C1.A)(function*(t=!1){if(c.updateOrderChars(),c.isFree&&(c.price=[],c.isLoading=!1),c.isCustom||c.isFree)return;const l=c.form.get("selectedPricePlan")?.value;let i={id:c.productOff?.id,action:"modify"===c.mode?"modify":"add",quantity:"1",productOffering:{id:c.productOff?.id,href:c.productOff?.id},itemTotalPrice:[{productOfferingPrice:{id:l.id,href:l.href,name:l.name}}],product:{productCharacteristic:c.orderChars}};"modify"===c.mode&&c.inventoryProductId&&(i.product.id=c.inventoryProductId);let u=[];c.metrics.length>0&&(u=c.metrics.map(W=>({usageSpecification:{id:W.usageSpecId},usageCharacteristic:[{name:W.unitOfMeasure,value:t?1:W.value}]})));let C=[];C.push(i);const T={productOrder:{id:L4(),productOrderItem:C},usage:u};if(l){console.log("--- prod ---"),console.log(i),console.log("--- prod ---"),c.isLoading=!0;try{const W=yield(0,e0.s)(c.priceService.calculatePrice(T));return console.log("calculate price..."),console.log(W.orderTotalPrice),c.price=W.orderTotalPrice,c.price=c.price.map(u1=>({...u1,id:c.selectedPricePlan.id})),void(c.isLoading=!1)}catch{return c.isLoading=!1,void console.error("Error al calcular el precio")}}}).apply(this,arguments)}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}createOrder(){var c=this;return(0,C1.A)(function*(){if(c.form.invalid)return void console.error("Form is invalid");const t=c.form.value,l={productId:c.productOff?.id,pricePlan:t.selectedPricePlan,characteristics:c.orderChars,tsAccepted:t.tsAccepted,priceSummary:c.price};try{yield c.calculatePrice(!0)}catch(u){return void console.error("Error calculating price:",u)}if("modify"===c.mode){const u=t.selectedPricePlan;return c.modifySubmit.emit({id:c.productOff?.id,action:"modify",quantity:"1",productOffering:{id:c.productOff?.id,href:c.productOff?.id},itemTotalPrice:[{productOfferingPrice:{id:u.id,href:u.href,name:u.name}}],product:{id:c.inventoryProductId,productCharacteristic:c.orderChars}}),void c.onClose()}const i=c.buildProdOptions(t.tsAccepted);c.isCustom&&(i.options.pricing=[{id:l.pricePlan.id}]);try{yield c.cartService.addItemShoppingCart(i),console.log("Update successful"),c.eventMessage.emitAddedCartItem(i),console.log("Order Payload:",l)}catch(u){console.error("There was an error while updating the cart:",u)}c.onClose()})()}buildProdOptions(c){return{id:this.productOff?.id,name:this.productOff?.name,image:this.getProductImage(),href:this.productOff?.href,options:{characteristics:this.orderChars,pricing:this.price},termsAccepted:c}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(X8),e.rXU(d8),e.rXU(U2),e.rXU(e.gRc),e.rXU(z60))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plan-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscape(u)},!1,e.EBC)},inputs:{drawerId:"drawerId",productOff:"productOff",prodSpec:"prodSpec",isOpen:"isOpen",width:"width",mode:"mode",inventoryProductId:"inventoryProductId",existingCharacteristics:"existingCharacteristics"},outputs:{closeDrawer:"closeDrawer",modifySubmit:"modifySubmit"},standalone:!0,features:[e.OA$,e.aNF],decls:27,vars:27,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","z-30"],["data-cy","toCartDrawer","tabindex","-1","aria-labelledby","drawer-add-to-cart-label",1,"fixed","top-[75px]","bottom-0","right-0","z-40","overflow-clip","transition-transform","translate-x-full","bg-secondary-50","dark:bg-gray-800","flex","flex-col",3,"id","ngClass"],[1,"flex-1","min-h-0","p-4","overflow-y-auto",3,"formGroup"],["id","drawer-right-label",1,"inline-flex","items-center","text-wrap","break-words","mb-4","text-base","font-semibold","text-primary-100","dark:text-gray-400",3,"ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4","me-2.5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","inline-flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"mb-4","rounded-lg","border","border-gray-200","bg-gray-50","dark:bg-gray-700","dark:border-gray-600","p-3"],[1,"mb-6","text-sm","text-gray-500","dark:text-gray-400"],["data-cy","bottom-banner",1,"shrink-0","p-4","w-full","grid","grid-cols-1","gap-4","bg-primary-100","text-white","overflow-hidden","transition-all","duration-300","ease-in-out"],["role","status"],["data-cy","addToCart","type","button",1,"flex","items-center","justify-center","gap-x-2","px-4","py-2","text-sm","font-medium","text-center","text-white","bg-green-400","hover:bg-green-500","rounded-lg","focus:ring-4","focus:ring-blue-300","dark:bg-blue-600","dark:hover:bg-blue-700","focus:outline-none","dark:focus:ring-blue-800",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2","mr-2","ml-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-30",3,"click"],[1,"text-sm","font-semibold","text-gray-700","dark:text-gray-300","mb-2"],[1,"grid","grid-cols-2","gap-1"],[1,"text-xs","text-gray-600","dark:text-gray-400"],[1,"font-medium"],[1,"mb-6","text-sm","text-gray-500","dark:text-gray-400","text-wrap","break-words"],[1,"price-plan","flex","flex-col","rounded-lg","border","border-dashed","border-primary-100","bg-white","dark:bg-gray-800","p-2","m-2","gap-1","cursor-pointer","hover:bg-sky-50","transition-all","duration-200",3,"ngClass"],[1,"price-plan","flex","flex-col","rounded-lg","border","border-dashed","border-primary-100","bg-white","dark:bg-gray-800","p-2","m-2","gap-1","cursor-pointer","hover:bg-sky-50","transition-all","duration-200",3,"click","ngClass"],[1,"text-base","font-semibold","text-primary-100","dark:text-gray-400","flex","justify-between","content-center","text-wrap","break-words"],[1,"flex","items-center","gap-1.5"],["viewBox","0 0 20 20","fill","currentColor","aria-hidden","true",1,"w-4","h-4","text-teal-600","dark:text-teal-400","shrink-0"],[1,"bg-indigo-100","text-indigo-800","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded-full","dark:bg-indigo-900","dark:text-indigo-300"],[1,"text-gray-500","dark:text-gray-400","text-wrap",3,"ngClass","data"],["fill-rule","evenodd","d","M16.704 5.29a1 1 0 010 1.42l-7.5 7.5a1 1 0 01-1.42 0l-3.5-3.5a1 1 0 011.42-1.42l2.79 2.79 6.79-6.79a1 1 0 011.42 0z","clip-rule","evenodd"],[1,"mt-6","text-sm","text-gray-500","dark:text-gray-400"],[1,"rounded-lg","border","border-dashed","border-primary-100","bg-white","p-2","m-2","dark:bg-gray-800"],[3,"characteristic","readOnly"],[3,"valueChange","characteristic","readOnly"],["data-cy","prdSpecMetrics",1,"rounded-lg","border","border-dashed","border-primary-100","bg-white","p-3","m-2","dark:bg-gray-800","space-y-4","mb-4"],[1,"space-y-2"],[1,"text-xs","font-semibold","uppercase","tracking-wide","text-primary-100","dark:text-gray-300"],[1,"grid","grid-cols-1","md:grid-cols-2","xl:grid-cols-3","gap-2"],["data-cy","offerChar",1,"flex","w-full","items-start","gap-2","rounded-lg","border","border-gray-200","bg-white","dark:bg-gray-800/80","dark:border-gray-700","p-2"],[1,"flex-1","min-w-0"],[3,"valueChange","characteristic","readOnly","isDisabled","canBeDisabled"],[1,"inline-flex","items-center","cursor-pointer","w-fit","justify-start","items-start","mt-1"],["type","checkbox",1,"sr-only","peer",3,"change","checked"],[1,"relative","w-9","h-5","bg-gray-300","border","border-gray-400","peer-focus:outline-none","peer-focus:ring-4","peer-focus:ring-blue-300","dark:peer-focus:ring-blue-800","rounded-full","peer","dark:bg-gray-600","dark:border-gray-500","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-[1px]","after:start-[1px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-4","after:w-4","after:transition-all","dark:after:border-gray-500","peer-checked:bg-blue-600","dark:peer-checked:bg-blue-600"],[1,"mt-4","text-sm","text-gray-500","dark:text-gray-400"],[1,"grid","grid-cols-4","gap-2","mb-4"],["data-cy","offerMetric",1,"flex","flex-col"],[1,"text-wrap","break-words","text-base","text-primary-100","dark:text-gray-400",3,"ngClass"],["type","number",1,"mt-1","block","w-full","rounded-md","border-gray-300","shadow-sm","focus:border-blue-500","focus:ring-blue-500","sm:text-sm","dark:bg-secondary-300","dark:text-white",3,"input","placeholder"],[1,"text-wrap","break-words","text-base","font-semibold","text-primary-100","dark:text-gray-400"],[1,"max-h-[300px]","overflow-y-auto","mb-2"],[1,"text-gray-500","dark:text-gray-400","text-wrap","break-words",3,"ngClass","data"],[1,"flex","items-center"],["type","checkbox","id","tsAccepted","data-cy","acceptTermsCheckbox","formControlName","tsAccepted",1,"mr-2"],["for","tsAccepted",1,"text-sm"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","mr-2","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08163 50.5908C9.08163 74.0305 26.5603 91.5092 50 91.5092C73.4397 91.5092 90.9184 74.0305 90.9184 50.5908C90.9184 27.1511 73.4397 9.67243 50 9.67243C26.5603 9.67243 9.08163 27.1511 9.08163 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5531C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7236 75.2124 7.41289C69.5422 4.10218 63.2754 1.94025 56.7226 1.0519C51.7666 0.367443 46.7392 0.44645 41.8357 1.27873C39.367 1.69499 37.845 4.19778 38.4821 6.62326C39.1192 9.04873 41.5723 10.4813 44.0609 10.1066C47.851 9.53687 51.7191 9.47254 55.5402 10.0039C60.864 10.7506 65.9921 12.6349 70.6331 15.5398C75.274 18.4447 79.3324 22.3039 82.5849 26.8796C85.1253 30.4771 87.1292 34.4217 88.5286 38.585C89.2857 40.9124 91.5428 41.8781 93.9676 41.0409Z","fill","currentFill"],[1,"text-sm","text-white"],["data-cy","previewPrices",1,"flex","justify-between","mb-2"],[1,"font-medium","capitalize"],[1,"font-bold"],[1,"text-sm","text-white","dark:text-gray-400"]],template:function(t,l){if(1&t&&(e.DNE(0,F60,1,0,"div",0),e.j41(1,"div",1)(2,"form",2)(3,"h5",3),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.EFF(6),e.k0s(),e.joV(),e.j41(7,"button",6),e.bIt("click",function(){return l.onClose()}),e.qSk(),e.j41(8,"svg",7),e.nrm(9,"path",8),e.k0s(),e.joV(),e.j41(10,"span",9),e.EFF(11,"Close menu"),e.k0s()(),e.DNE(12,k60,6,0,"div",10)(13,D60,10,4)(14,H60,2,1)(15,q60,5,1)(16,X60,9,5,"div",11),e.k0s(),e.j41(17,"div",12),e.DNE(18,W60,6,0,"div",13)(19,J60,3,0)(20,Q60,3,0)(21,e80,3,0)(22,c80,2,0),e.j41(23,"button",14),e.bIt("click",function(){return l.createOrder()}),e.EFF(24),e.qSk(),e.j41(25,"svg",15),e.nrm(26,"path",16),e.k0s()()()()),2&t){let i,u;e.vxM(0,l.isOpen?0:-1),e.R7$(),e.AVh("translate-x-0",l.isOpen)("translate-x-full",!l.isOpen),e.Y8G("id",l.drawerId)("ngClass",l.width),e.R7$(),e.Y8G("formGroup",l.form),e.R7$(),e.Y8G("ngClass",e.l_i(24,eH,l.hasLongWord(null==l.productOff?null:l.productOff.name,20),!l.hasLongWord(null==l.productOff?null:l.productOff.name,20))),e.R7$(3),e.E5c("","modify"===l.mode?"Modifying":"Adding"," ",null==l.productOff?null:l.productOff.name," ","modify"===l.mode?"":"to cart",""),e.R7$(6),e.vxM(12,"modify"===l.mode&&l.existingCharacteristics.length>0?12:-1),e.R7$(),e.vxM(13,l.isFree?-1:13),e.R7$(),e.vxM(14,null!=(i=l.form.get("selectedPricePlan"))&&i.value?14:-1),e.R7$(),e.vxM(15,l.metrics.length>0?15:-1),e.R7$(),e.vxM(16,null!=(u=l.form.get("selectedPricePlan"))&&u.value&&null!=(u=l.form.get("characteristics"))&&u.valid&&""!=l.tsAndCs.description?16:-1),e.R7$(2),e.vxM(18,l.isLoading?18:l.isCustom?19:l.isFree?20:l.price?21:22),e.R7$(5),e.AVh("opacity-50",!l.isFormValid())("cursor-not-allowed",!l.isFormValid()),e.Y8G("disabled",!l.isFormValid()),e.R7$(),e.SpI(" ","modify"===l.mode?"Modify Characteristics":"Add to cart"," ")}},dependencies:[HN1,N0,_.YU,p.X1,p.qT,p.Zm,p.BC,p.cb,p.j4,p.JD,p.YN],styles:[".transition-transform[_ngcontent-%COMP%]{transition:transform .3s ease-in-out}"]})}}return n})();const YN1=(n,a)=>a.id,t80=(n,a)=>a.value,n80=(n,a)=>a.name,tD=(n,a)=>({"break-all":n,"break-words":a});function l80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",38)(4,"div",39)(5,"h5",40),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function s80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",38)(4,"div",44)(5,"h5",45),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(3),e.Y8G("ngClass",e.l_i(6,tD,i.hasLongWord(t.name,20),!i.hasLongWord(t.name,20))),e.R7$(),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(9,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function a80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",43),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",46)(4,"div",47)(5,"h2",48),e.EFF(6),e.k0s()(),e.nrm(7,"markdown",49),e.k0s()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function o80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"input",36),e.bIt("change",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.onPriceChange(l))}),e.k0s(),e.j41(2,"label",37)(3,"div",50)(4,"div",51)(5,"h5",52),e.EFF(6),e.k0s()(),e.j41(7,"div",41),e.nrm(8,"markdown",42),e.k0s()()()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG(2);e.R7$(),e.Y8G("id","price-radio-"+l),e.R7$(),e.Y8G("for","price-radio-"+l),e.R7$(4),e.JRh(t.name),e.R7$(2),e.Y8G("ngClass",e.l_i(5,tD,i.hasLongWord(null==t?null:t.description,20),!i.hasLongWord(null==t?null:t.description,20)))("data",null==t?null:t.description)}}function i80(n,a){if(1&n&&e.DNE(0,l80,9,8,"div",35)(1,s80,9,12)(2,a80,8,8)(3,o80,9,8),2&n){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:"custom"===c.priceType?2:3)}}function r80(n,a){if(1&n&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34),e.Z7z(4,i80,4,1,null,null,YN1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_price"),":"),e.R7$(3),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice)}}function d80(n,a){1&n&&(e.j41(0,"div",53)(1,"div",38)(2,"div",51)(3,"h5",52),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",54),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function f80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"input",59),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),i=l.$implicit,u=l.$index,C=e.XpG().$index,b=e.XpG(2);return e.Njj(b.onCharChange(C,u,i))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+i+l)("name","char-radio-"+i),e.R7$(),e.Y8G("for","char-radio-"+i+l),e.R7$(),e.JRh(t.value)}}function u80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",58)(1,"input",61),e.bIt("change",function(){e.eBV(c);const l=e.XpG(),i=l.$implicit,u=l.$index,C=e.XpG().$index,b=e.XpG(2);return e.Njj(b.onCharChange(C,u,i))}),e.k0s(),e.j41(2,"label",60),e.EFF(3),e.k0s()()}if(2&n){const c=e.XpG(),t=c.$implicit,l=c.$index,i=e.XpG().$index;e.R7$(),e.Y8G("id","char-radio-"+i+l)("name","char-radio-"+i),e.R7$(),e.Y8G("for","char-radio-"+i+l),e.R7$(),e.JRh(t.value)}}function m80(n,a){if(1&n&&(e.j41(0,"div",57),e.DNE(1,f80,4,4,"div",58)(2,u80,4,4),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.vxM(1,1==(null==c?null:c.isDefault)?1:2)}}function p80(n,a){if(1&n&&(e.j41(0,"div",55)(1,"h5",56),e.EFF(2),e.k0s(),e.Z7z(3,m80,3,1,"div",57,t80),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(),e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function h80(n,a){if(1&n&&(e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,p80,5,1,"div",55,YN1)),2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,1,"CARD._select_char"),":"),e.R7$(2),e.Dyx(c.prodSpec.productSpecCharacteristic)}}function g80(n,a){1&n&&(e.j41(0,"div",62)(1,"div",63),e.qSk(),e.j41(2,"svg",64),e.nrm(3,"path",65),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"CARD._no_chars")," "))}function _80(n,a){if(1&n&&(e.j41(0,"p",69)(1,"span",70),e.EFF(2),e.k0s()(),e.j41(3,"div",71),e.nrm(4,"markdown",72),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.name,":"),e.R7$(2),e.Y8G("data",c.description)}}function L80(n,a){if(1&n){const c=e.RV6();e.j41(0,"h5",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.Z7z(3,_80,5,2,null,null,n80),e.j41(5,"div",58)(6,"input",66),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.selected_terms=!l.selected_terms)}),e.k0s(),e.j41(7,"label",67),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",26)(11,"button",68),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addProductToCart(l.productOff,!0))}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",28),e.nrm(15,"path",29),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(),e.SpI("",e.bMT(2,5,"CARD._terms"),":"),e.R7$(2),e.Dyx(null==c.productOff?null:c.productOff.productOfferingTerm),e.R7$(5),e.JRh(e.bMT(9,7,"CARD._accept_terms")),e.R7$(3),e.Y8G("disabled",!c.selected_terms)("ngClass",c.selected_terms?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"CARD._checkout")," ")}}function C80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",62)(1,"div",63),e.qSk(),e.j41(2,"svg",64),e.nrm(3,"path",65),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",26)(8,"button",73),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addProductToCart(l.productOff,!0))}),e.EFF(9),e.nI1(10,"translate"),e.qSk(),e.j41(11,"svg",28),e.nrm(12,"path",29),e.k0s()()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,2,"CARD._no_terms")," "),e.R7$(4),e.SpI(" ",e.bMT(10,4,"CARD._checkout")," "))}function z80(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let qN1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.cartService=T,this.eventMessage=W,this.images=[],this.cartSelection=!0,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.formattedPrices=[],this.errorMessage="",this.showError=!1}onClick(){this.hideCartSelection()}ngOnInit(){this.toggleCartSelection()}toggleCartSelection(){if(console.log("Add to cart..."),console.log(this.productOff),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):1==this.productOff?.productOfferingPrice.length&&(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[0]),this.cdr.detectChanges()),null!=this.productOff?.productOfferingTerm&&(console.log("terms"),console.log(this.productOff?.productOfferingTerm),this.check_terms=!0,this.cdr.detectChanges()),null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;lthis.showError=!1,3e3)}resetSelections(){this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}hideCartSelection(){this.eventMessage.emitCloseCartCard(void 0),this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.formattedPrices=[],this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}onPriceChange(c){this.selected_price=c,console.log("change price"),console.log(this.selected_price)}onCharChange(c,t,l){this.selected_chars[c].value={isDefault:!0,value:l.value};let u=this.selected_chars[c].characteristic.productSpecCharacteristicValue;if(null!=u)for(let C=0;Cl.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(d8),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["cart-card"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpec:"prodSpec",images:"images",cartSelection:"cartSelection"},decls:58,vars:23,consts:[["id","cart-selection-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],[1,"relative","w-full","max-w-7xl","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-secondary-100","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","pr-2","pt-2","rounded-t","dark:border-gray-600"],["type","button","data-modal-hide","cart-selection-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","h-full","p-8","justify-center"],[1,"flex","flex-col","w-full","justify-center"],[1,"flex","items-center","w-full"],["id","step-chars",1,"flex","w-full","cursor-pointer","items-center","text-white","after:content-['']","after:w-full","after:h-1","after:border-b","after:border-primary-100","after:border-4","after:inline-block",3,"click"],["id","circle-chars",1,"flex","items-center","justify-center","w-12","h-12","bg-primary-100","rounded-full","shrink-0"],["id","step-price",1,"flex","w-full","cursor-pointer","items-center","text-gray-400","dark:text-white","after:content-['']","after:w-full","after:h-1","after:border-b","after:border-gray-400","after:border-4","after:inline-block",3,"click"],["id","circle-price",1,"flex","items-center","justify-center","w-12","h-12","bg-white","dark:bg-secondary-100","border-2","border-gray-400","rounded-full","shrink-0"],["id","step-terms",1,"flex","items-center","w-fit","text-gray-400","dark:text-white","cursor-pointer",3,"click"],["id","circle-terms",1,"flex","items-center","justify-center","w-12","h-12","bg-white","dark:bg-secondary-100","border-2","border-gray-400","rounded-full","shrink-0"],[1,"flex","w-full","mt-2","justify-between"],[1,"flex","items-center","w-1/3","justify-start"],["id","text-chars",1,"flex","w-fit","text-primary-100","justify-start"],[1,"flex","items-center","w-1/3","justify-center"],["id","text-price",1,"flex","w-fit","text-gray-400","justify-center"],[1,"flex","items-center","w-1/3","justify-end"],["id","text-terms",1,"flex","w-fit","text-gray-400","justify-end"],[1,"border","border-gray-300","bg-secondary-50/95","rounded-lg","mt-4"],["id","price",1,"hidden","pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],[1,"flex","justify-end"],["type","button",1,"flex","w-1/3","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["id","char",1,"pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],["id","terms",1,"hidden","pl-4","md:pl-8","pt-2","md:pt-4","pb-2","md:pb-4"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"text-3xl","font-semibold","tracking-tight","text-primary-100"],[1,"grid","grid-flow-row","lg:grid-flow-col","gap-8","p-4"],[1,"flex","items-center"],["checked","","type","radio","value","","name","price-radio",1,"hidden","peer","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id"],[1,"inline-flex","items-center","justify-center","w-full","p-5","peer-checked:border","rounded-lg","cursor-pointer","peer-checked:border-primary-100",3,"for"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full"],[1,"pl-4","pr-4"],[1,"w-full","p-4","text-wrap","break-words",3,"ngClass","data"],["checked","","type","radio","value","","name","price-radio",1,"hidden","peer","items-center","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"mx-auto","bg-white","border","border-gray-200","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","text-3xl","font-extrabold","mb-2"],[1,"w-full","text-wrap","break-words","p-4",3,"ngClass","data"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full","justify-center"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700"],[1,"min-h-19","pb-2"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100"],[1,"flex"],[1,"flex","items-center","mb-4"],["checked","","type","radio","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id","name"],[1,"ms-2","text-sm","font-medium","text-gray-900","text-wrap","break-all",3,"for"],["type","radio","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","focus:ring-blue-500",3,"change","id","name"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-2/3","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],["id","terms-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"change"],["for","terms-checkbox",1,"ms-2","text-sm","font-medium","text-gray-900"],["type","button",1,"flex","w-1/2","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click","disabled","ngClass"],[1,"text-gray-900","text-bold"],[1,"font-bold"],[1,"max-h-[300px]","overflow-y-auto","mb-4"],[1,"text-lg","font-normal",3,"data"],["type","button",1,"flex","w-1/2","md:w-1/4","mt-2","items-center","justify-center","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(3,"div",3)(4,"button",4),e.bIt("click",function(){return l.hideCartSelection()}),e.qSk(),e.j41(5,"svg",5),e.nrm(6,"path",6),e.k0s(),e.joV(),e.j41(7,"span",7),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9)(12,"ol",10)(13,"li",11),e.bIt("click",function(){return l.clickShowChar(!0)}),e.j41(14,"span",12),e.EFF(15," 1 "),e.k0s()(),e.j41(16,"li",13),e.bIt("click",function(){return l.clickShowPrice(!0)}),e.j41(17,"span",14),e.EFF(18," 2 "),e.k0s()(),e.j41(19,"li",15),e.bIt("click",function(){return l.clickShowTerms(!0)}),e.j41(20,"span",16),e.EFF(21," 3 "),e.k0s()()(),e.j41(22,"ol",17)(23,"li",18)(24,"span",19),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"li",20)(28,"span",21),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"li",22)(32,"span",23),e.EFF(33),e.nI1(34,"translate"),e.k0s()()()(),e.j41(35,"div",24)(36,"div",25),e.DNE(37,r80,6,3)(38,d80,9,6),e.j41(39,"div",26)(40,"button",27),e.bIt("click",function(){return l.clickShowTerms(!1)}),e.EFF(41),e.nI1(42,"translate"),e.qSk(),e.j41(43,"svg",28),e.nrm(44,"path",29),e.k0s()()()(),e.joV(),e.j41(45,"div",30),e.DNE(46,h80,5,3)(47,g80,7,3),e.j41(48,"div",26)(49,"button",27),e.bIt("click",function(){return l.clickShowPrice(!1)}),e.EFF(50),e.nI1(51,"translate"),e.qSk(),e.j41(52,"svg",28),e.nrm(53,"path",29),e.k0s()()()(),e.joV(),e.j41(54,"div",31),e.DNE(55,L80,16,11)(56,C80,13,6),e.k0s()()()()()(),e.DNE(57,z80,1,1,"error-message",32)),2&t&&(e.Y8G("ngClass",l.cartSelection?"backdrop-blur-sm":""),e.R7$(8),e.JRh(e.bMT(9,11,"CARD._close")),e.R7$(17),e.SpI(" ",e.bMT(26,13,"CARD._chars")," "),e.R7$(4),e.SpI(" ",e.bMT(30,15,"CARD._price_plan")," "),e.R7$(4),e.SpI(" ",e.bMT(34,17,"CARD._terms")," "),e.R7$(4),e.vxM(37,l.check_prices?37:38),e.R7$(4),e.SpI(" ",e.bMT(42,19,"CARD._next")," "),e.R7$(5),e.vxM(46,l.check_char?46:47),e.R7$(4),e.SpI(" ",e.bMT(51,21,"CARD._next")," "),e.R7$(5),e.vxM(55,1==l.check_terms?55:56),e.R7$(2),e.vxM(57,l.showError?57:-1))},dependencies:[_.YU,N0,E0,s1.D9]})}}return n})();const M80=["relationshipsContent"],x80=["detailsContent"],b80=["charsContent"],y80=["attachContent"],F80=["agreementsContent"],v80=["textDiv"],k80=["termsText"],w80=["descriptionText"],S80=["agreementsScrollAnchor"],N80=["relScrollAnchor"],E80=["attachScrollAnchor"],D80=["charsScrollAnchor"],T80=["detailsScrollAnchor"],Nn=(n,a)=>a.id,R80=(n,a)=>a.value,n5=(n,a)=>({"break-all":n,"break-words":a});function A80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",36),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openDescriptionModal())}),e.EFF(1," Read more "),e.k0s()}}function I80(n,a){if(1&n&&(e.j41(0,"div",41),e.qSk(),e.j41(1,"svg",42),e.nrm(2,"path",43),e.k0s(),e.joV(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(4),e.JRh(null==c.characteristic?null:c.characteristic.emailAddress)}}function P80(n,a){1&n&&e.DNE(0,I80,5,1,"div",41),2&n&&e.vxM(0,"Email"===a.$implicit.mediumType?0:-1)}function j80(n,a){if(1&n&&e.Z7z(0,P80,1,1,null,null,e.fX1),2&n){const c=e.XpG(2);e.Dyx(c.orgInfo.contactMedium)}}function $80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",16),e.DNE(1,j80,2,0),e.j41(2,"div",37),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",39),e.k0s(),e.joV(),e.j41(5,"a",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(6),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.orgInfo.contactMedium?1:-1),e.R7$(5),e.JRh(c.orgInfo.tradingName)}}function O80(n,a){if(1&n&&(e.j41(0,"span",18),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.JRh(c.name)}}function B80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-[#163b99]"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function V80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(l){return e.eBV(c),e.XpG(2).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function U80(n,a){if(1&n&&e.DNE(0,B80,5,5,"button",44)(1,V80,3,3),2&n){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function G80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",46),e.nrm(2,"path",47),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-[#163b99]"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function H80(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(l){return e.eBV(c),e.XpG(2).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function Y80(n,a){if(1&n&&e.DNE(0,G80,5,5,"button",49)(1,H80,3,3),2&n){const c=e.XpG();e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function q80(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",64),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Identification number"),e.k0s(),e.j41(7,"span",59),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.prodSpec.productNumber)}}function X80(n,a){if(1&n&&(e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",65),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Brand"),e.k0s(),e.j41(7,"span",59),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.prodSpec.brand)}}function W80(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",39),e.k0s()(),e.joV(),e.j41(4,"div")(5,"span",58),e.EFF(6,"Owner"),e.k0s(),e.j41(7,"a",66),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(8),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(8),e.JRh(c.orgInfo.tradingName)}}function J80(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"How does it work?"),e.k0s(),e.nrm(3,"markdown",14),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("ngClass",e.l_i(2,n5,c.hasLongWord(c.prodSpec.description,20),!c.hasLongWord(c.prodSpec.description,20)))("data",c.prodSpec.description)}}function Q80(n,a){if(1&n&&(e.j41(0,"div",69)(1,"span",70),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",71),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function Z80(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h3",68),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,Q80,5,2,"div",69,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._service_spec")),e.R7$(2),e.Dyx(c.serviceSpecs)}}function K80(n,a){if(1&n&&(e.j41(0,"div",69)(1,"span",70),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",71),e.k0s()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("data",c.description)}}function ee0(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h3",68),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,K80,5,2,"div",69,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,1,"PRODUCT_DETAILS._resource_spec")),e.R7$(2),e.Dyx(c.resourceSpecs)}}function ce0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faArrowProgress)}}function te0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faArrowRightArrowLeft)}}function ne0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faObjectExclude)}}function le0(n,a){if(1&n&&e.nrm(0,"fa-icon",77),2&n){const c=e.XpG(4);e.Y8G("icon",c.faSwap)}}function se0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",74),e.EFF(2),e.k0s(),e.j41(3,"div",75)(4,"p",76),e.EFF(5),e.k0s(),e.DNE(6,ce0,1,1,"fa-icon",77)(7,te0,1,1)(8,ne0,1,1)(9,le0,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(3),e.JRh(c.relationshipType),e.R7$(),e.vxM(6,"dependency"==c.relationshipType?6:"migration"==c.relationshipType?7:"exclusivity"==c.relationshipType?8:"substitution"==c.relationshipType?9:-1)}}function ae0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",72),e.Z7z(4,se0,10,7,"div",73,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_DETAILS._product_rels")),e.R7$(3),e.Dyx(c.prodSpec.productSpecificationRelationship)}}function oe0(n,a){if(1&n&&(e.j41(0,"div",28)(1,"div",52)(2,"div",53)(3,"div",54)(4,"div",55),e.qSk(),e.j41(5,"svg",56),e.nrm(6,"path",57),e.k0s()(),e.joV(),e.j41(7,"div")(8,"span",58),e.EFF(9,"Offer version"),e.k0s(),e.j41(10,"span",59),e.EFF(11),e.k0s()()(),e.j41(12,"div",54)(13,"div",55),e.qSk(),e.j41(14,"svg",56),e.nrm(15,"path",60),e.k0s()(),e.joV(),e.j41(16,"div")(17,"span",58),e.EFF(18,"Last update"),e.k0s(),e.j41(19,"span",59),e.EFF(20),e.nI1(21,"date"),e.k0s()()(),e.j41(22,"div",54)(23,"div",55),e.qSk(),e.j41(24,"svg",56),e.nrm(25,"path",61),e.k0s()(),e.joV(),e.j41(26,"div")(27,"span",58),e.EFF(28,"Product name"),e.k0s(),e.j41(29,"span",59),e.EFF(30),e.k0s()()(),e.DNE(31,q80,9,1,"div",54)(32,X80,9,1,"div",54)(33,W80,9,1,"div",54),e.k0s()(),e.DNE(34,J80,4,5,"div",62)(35,Z80,6,3,"div",63)(36,ee0,6,3,"div",63)(37,ae0,6,3),e.k0s()),2&n){const c=e.XpG();e.R7$(11),e.SpI("v",(null==c.productOff?null:c.productOff.version)||"1.0",""),e.R7$(9),e.JRh(e.i5U(21,10,null==c.productOff?null:c.productOff.lastUpdate,"dd/MM/yy, HH:mm")),e.R7$(10),e.JRh(c.prodSpec.name),e.R7$(),e.vxM(31,c.prodSpec.productNumber?31:-1),e.R7$(),e.vxM(32,c.prodSpec.brand?32:-1),e.R7$(),e.vxM(33,null!=c.orgInfo?33:-1),e.R7$(),e.vxM(34,c.prodSpec.description?34:-1),e.R7$(),e.vxM(35,c.serviceSpecs.length>0?35:-1),e.R7$(),e.vxM(36,c.resourceSpecs.length>0?36:-1),e.R7$(),e.vxM(37,null!=c.prodSpec.productSpecificationRelationship&&c.prodSpec.productSpecificationRelationship.length>0?37:-1)}}function ie0(n,a){if(1&n&&e.nrm(0,"markdown",82),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(2,n5,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function re0(n,a){1&n&&(e.j41(0,"span",83),e.EFF(1,"Optional"),e.k0s())}function de0(n,a){if(1&n&&(e.j41(0,"div",85)(1,"span",86),e.EFF(2,"Default"),e.k0s(),e.j41(3,"span",87),e.EFF(4),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.R7$(3),e.Y8G("ngClass",t.getBooleanDefaultValue(c)?"bg-green-100 text-green-700":"bg-gray-200 text-gray-700"),e.R7$(),e.SpI(" ",t.getBooleanDefaultValue(c)?"Enabled":"Disabled"," ")}}function fe0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",90),e.nrm(1,"path",92),e.k0s())}function ue0(n,a){if(1&n&&(e.j41(0,"span",91),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.Y8G("title",t.getCharacteristicValueLabel(c)),e.R7$(),e.JRh(t.getCharacteristicValuePreview(c))}}function me0(n,a){if(1&n&&(e.j41(0,"span",91),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.Y8G("title",t.getCharacteristicRangeLabel(c)),e.R7$(),e.JRh(t.getCharacteristicRangePreview(c))}}function pe0(n,a){if(1&n&&(e.j41(0,"div",88)(1,"div",89),e.DNE(2,fe0,2,0,":svg:svg",90),e.k0s(),e.DNE(3,ue0,2,2,"span",91)(4,me0,2,2),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("ngClass",null!=c&&c.isDefault?"bg-[#1f4fbf] border-[#1f4fbf]":"border-gray-300 bg-white"),e.R7$(),e.vxM(2,null!=c&&c.isDefault?2:-1),e.R7$(),e.vxM(3,null!=c.value?3:4)}}function he0(n,a){if(1&n&&e.Z7z(0,pe0,5,3,"div",88,R80),2&n){const c=e.XpG().$implicit;e.Dyx(null==c?null:c.productSpecCharacteristicValue)}}function ge0(n,a){if(1&n&&(e.j41(0,"div",79)(1,"h3",81),e.EFF(2),e.k0s(),e.DNE(3,ie0,1,5,"markdown",82)(4,re0,2,0,"span",83),e.j41(5,"div",84),e.DNE(6,de0,5,2,"div",85)(7,he0,2,0),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(5,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.vxM(3,c.description?3:-1),e.R7$(),e.vxM(4,t.isOptionalCharacteristic(c)?4:-1),e.R7$(2),e.vxM(6,t.isBooleanCharacteristic(c)?6:7)}}function _e0(n,a){1&n&&(e.j41(0,"div",80),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PRODUCT_DETAILS._no_chars")," "))}function Le0(n,a){if(1&n&&(e.j41(0,"div",78)(1,"h2",67),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",72),e.Z7z(5,ge0,8,8,"div",79,Nn,!1,_e0,3,3,"div",80),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"PRODUCT_DETAILS._product_chars")),e.R7$(3),e.Dyx(c.prodChars)}}function Ce0(n,a){1&n&&(e.j41(0,"div",93),e.EFF(1," No features available for this product. "),e.k0s())}function ze0(n,a){if(1&n&&e.DNE(0,Le0,8,4,"div",78)(1,Ce0,2,0),2&n){const c=e.XpG();e.vxM(0,null!=c.prodSpec.productSpecCharacteristic&&c.prodChars.length>0?0:1)}}function Me0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",97),e.EFF(2),e.k0s(),e.nrm(3,"markdown",98),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,n5,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function xe0(n,a){1&n&&e.DNE(0,Me0,4,10,"div",73),2&n&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function be0(n,a){1&n&&(e.j41(0,"div",96)(1,"h3",99),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",76),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(6,4,"SHOPPING_CART._free_desc")))}function ye0(n,a){if(1&n&&(e.j41(0,"div",95),e.Z7z(1,xe0,1,1,null,null,Nn),e.DNE(3,be0,7,6,"div",96),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function Fe0(n,a){if(1&n&&(e.j41(0,"div",100)(1,"div",101)(2,"h3",102),e.EFF(3),e.k0s()(),e.j41(4,"div",103),e.nrm(5,"markdown",98),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass","recurring"==c.priceType?"bg-green-500":"usage"==c.priceType?"bg-yellow-300":"bg-[#1f4fbf]"),e.R7$(),e.Y8G("ngClass",e.l_i(5,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(8,n5,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function ve0(n,a){1&n&&(e.j41(0,"div",100)(1,"div",104)(2,"h3",105),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",106),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(7,4,"SHOPPING_CART._free_desc")))}function ke0(n,a){if(1&n&&(e.j41(0,"div",95),e.Z7z(1,Fe0,6,11,"div",100,Nn),e.DNE(3,ve0,8,6,"div",100),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function we0(n,a){if(1&n&&e.DNE(0,ye0,4,1,"div",95)(1,ke0,4,1),2&n){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function Se0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"h3",74),e.EFF(2),e.k0s(),e.nrm(3,"markdown",98),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,n5,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function Ne0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1,"Usage metrics"),e.k0s(),e.j41(2,"div",72),e.Z7z(3,Se0,4,10,"div",73,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Dyx(c.usageMetrics)}}function Ee0(n,a){if(1&n&&(e.j41(0,"h2",94),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,we0,2,1)(4,Ne0,5,0)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"PRODUCT_DETAILS._product_pricing")),e.R7$(2),e.vxM(3,null!=(null==c.productOff?null:c.productOff.productOfferingPrice)?3:-1),e.R7$(),e.vxM(4,c.usageMetrics.length>0?4:-1)}}function De0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"No level"),e.k0s())}function Te0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Baseline"),e.k0s())}function Re0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Professional"),e.k0s())}function Ae0(n,a){1&n&&(e.j41(0,"h3",110),e.EFF(1,"Professional+"),e.k0s())}function Ie0(n,a){if(1&n&&(e.j41(0,"a",111),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("href",c.selfAtt,e.B4B),e.R7$(),e.SpI(" ",e.bMT(2,2,"PRODUCT_DETAILS._self_attestation")," ")}}function Pe0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",114),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToLink(l.href))}),e.j41(1,"div",115),e.nrm(2,"fa-icon",116),e.k0s(),e.j41(3,"h3",117),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.Y8G("icon",t.faAtom),e.R7$(2),e.JRh(c.name)}}function je0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Key Capabilities"),e.k0s(),e.j41(3,"div",112),e.Z7z(4,Pe0,5,2,"div",113,Nn),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.complianceProf)}}function $e0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",114),e.bIt("click",function(){let l;const i=e.eBV(c).$implicit,u=e.XpG(3);return e.Njj(u.goToLink(null==i.productSpecCharacteristicValue||null==(l=i.productSpecCharacteristicValue.at(0))?null:l.value))}),e.j41(1,"div",115),e.nrm(2,"fa-icon",116),e.k0s(),e.j41(3,"h3",117),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.Y8G("icon",t.faAtom),e.R7$(2),e.JRh(t.normalizeName(c.name))}}function Oe0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Additional certifications"),e.k0s(),e.j41(3,"div",112),e.Z7z(4,$e0,5,2,"div",113,Nn),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.Dyx(c.additionalCerts)}}function Be0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.toggleTermsReadMore())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.SpI(" ",c.showTermsMore?"Read less":"Read more"," ")}}function Ve0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",118)(4,"div",119),e.nrm(5,"fa-icon",120),e.k0s(),e.j41(6,"div",121,1),e.nrm(8,"markdown",122),e.k0s(),e.DNE(9,Be0,2,1,"button",123),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,7,"PRODUCT_DETAILS._license")),e.R7$(4),e.Y8G("icon",c.faScaleBalanced),e.R7$(),e.AVh("line-clamp-5",!c.showTermsMore),e.R7$(2),e.Y8G("ngClass",e.l_i(9,n5,c.hasLongWord(null==c.licenseTerm?null:c.licenseTerm.description,20),!c.hasLongWord(null==c.licenseTerm?null:c.licenseTerm.description,20)))("data",null==c.licenseTerm?null:c.licenseTerm.description),e.R7$(),e.vxM(9,c.showReadMoreButton?9:-1)}}function Ue0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"p",125),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"PRODUCT_DETAILS._sla")),e.R7$(3),e.SpI("",null==c.productOff||null==c.productOff.serviceLevelAgreement?null:c.productOff.serviceLevelAgreement.name,".")}}function Ge0(n,a){if(1&n&&e.DNE(0,Ve0,10,12)(1,Ue0,5,4),2&n){const c=e.XpG(2);e.vxM(0,c.licenseTerm&&""!=(null==c.licenseTerm?null:c.licenseTerm.description)?0:-1),e.R7$(),e.vxM(1,null!=c.productOff&&c.productOff.serviceLevelAgreement?1:-1)}}function He0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",126)(1,"h3",127),e.EFF(2),e.k0s(),e.j41(3,"button",128),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToLink(l.url))}),e.nrm(4,"fa-icon",129),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,n5,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("icon",t.faDownload)}}function Ye0(n,a){if(1&n&&(e.j41(0,"h2",67),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",72),e.Z7z(4,He0,5,6,"div",126,Nn),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_DETAILS._product_att")),e.R7$(3),e.Dyx(c.attatchments)}}function qe0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"h2",67),e.EFF(2,"Certification"),e.k0s(),e.j41(3,"div",107)(4,"div",54)(5,"div",108),e.qSk(),e.j41(6,"svg",109),e.nrm(7,"path",92),e.k0s()(),e.joV(),e.j41(8,"div"),e.DNE(9,De0,2,0,"h3",110)(10,Te0,2,0)(11,Re0,2,0)(12,Ae0,2,0),e.j41(13,"p",76),e.EFF(14),e.k0s()()(),e.DNE(15,Ie0,3,4,"a",111),e.k0s()(),e.DNE(16,je0,6,0,"div",62)(17,Oe0,6,0,"div",62)(18,Ge0,2,2)(19,Ye0,6,3)),2&n){const c=e.XpG();e.R7$(9),e.vxM(9,"NL"==c.complianceLevel?9:"BL"==c.complianceLevel?10:"P"==c.complianceLevel?11:12),e.R7$(5),e.JRh(c.complianceDescription),e.R7$(),e.vxM(15,c.selfAtt?15:-1),e.R7$(),e.vxM(16,c.complianceProf.length>0?16:-1),e.R7$(),e.vxM(17,c.additionalCerts.length>0?17:-1),e.R7$(),e.vxM(18,c.licenseTerm||null!=c.productOff&&c.productOff.serviceLevelAgreement?18:-1),e.R7$(),e.vxM(19,c.attatchments.length>0?19:-1)}}function Xe0(n,a){if(1&n&&(e.j41(0,"div",29)(1,"h2",130),e.EFF(2,"Ready to get started?"),e.k0s(),e.j41(3,"p",131),e.EFF(4),e.k0s(),e.j41(5,"a",132),e.EFF(6," Join DOME Marketplace "),e.k0s()()),2&n){const c=e.XpG();e.R7$(4),e.SpI("Join thousands of companies using ",null==c.productOff?null:c.productOff.name,""),e.R7$(),e.Y8G("href",c.customersLink,e.B4B)}}function We0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",30)(1,"div",133),e.qSk(),e.j41(2,"svg",134),e.nrm(3,"path",135),e.k0s(),e.joV(),e.j41(4,"div",136),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",137)(8,"button",138),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deleteProduct(l.lastAddedProd))}),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",139),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",140),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",141),e.nrm(16,"path",142),e.k0s()()()(),e.joV(),e.j41(17,"div",143),e.nrm(18,"div",144),e.k0s()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,3,"CARD._added_card"),". "),e.R7$(4),e.JRh(e.bMT(10,5,"CARD._undo")),e.R7$(4),e.JRh(e.bMT(14,7,"CARD._close_toast")))}function Je0(n,a){if(1&n&&e.nrm(0,"cart-card",31),2&n){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function Qe0(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Ze0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-quote-request-modal",145),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showQuoteModal?"backdrop-blur-sm":"")("productOff",c.productOff)("prodSpec",c.prodSpec)("orgInfo",c.orgInfo)("customerId",c.customerId)("isOpen",c.showQuoteModal)}}function Ke0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDescriptionModal())}),e.j41(1,"div",147),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",148)(3,"h3",149),e.EFF(4),e.k0s(),e.j41(5,"button",150),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDescriptionModal())}),e.qSk(),e.j41(6,"svg",151),e.nrm(7,"path",142),e.k0s()()(),e.joV(),e.j41(8,"div",152),e.nrm(9,"markdown",14),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(5),e.Y8G("ngClass",e.l_i(3,n5,c.hasLongWord(null==c.productOff?null:c.productOff.description,20),!c.hasLongWord(null==c.productOff?null:c.productOff.description,20)))("data",null==c.productOff?null:c.productOff.description)}}let e50=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1,T1){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.cartService=T,this.eventMessage=W,this.accService=u1,this.usageService=a1,this.location=T1,this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.category="none",this.categories=[],this.price="",this.images=[],this.attatchments=[],this.prodSpec={},this.complianceProf=[],this.additionalCerts=[],this.complianceLevel="NL",this.complianceDescription="No level. This product hasnt reached any compliance level yet.",this.serviceSpecs=[],this.resourceSpecs=[],this.check_logged=!1,this.customersLink=g1.c.DOME_CUSTOMER_REGISTER_LINK,this.cartSelection=!1,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.toastVisibility=!1,this.checkCustom=!1,this.prodChars=[],this.usageMetrics=[],this.selfAtt="",this.errorMessage="",this.showError=!1,this.showTermsMore=!1,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.showReadMoreButton=!1,this.showDescriptionReadMore=!1,this.showDescriptionModal=!1,this.customerId="",this.orgInfo=void 0,this.showQuoteModal=!1,this.productAlreadyInCart=!1,this.activeTab="overview",this.faScaleBalanced=A2.iRu,this.faArrowProgress=A2.SZt,this.faArrowRightArrowLeft=A2.tNR,this.faObjectExclude=A2.tP3,this.faSwap=A2.FJA,this.faGlobe=A2.Bwz,this.faBook=A2.LBj,this.faShieldHalved=A2.fLc,this.faAtom=A2.RSf,this.faDownload=A2.cbP,this.stepsElements=["step-chars","step-price","step-terms","step-checkout"],this.stepsText=["text-chars","text-price","text-terms","text-checkout"],this.stepsCircles=["circle-chars","circle-price","circle-terms","circle-checkout"],this.licenseTerm=void 0,this.isLoaded=!1,this.isManualScroll=!1,this.destroy$=new S.B,this.isDrawerOpen=!1,this.showTermsMore=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(Y1=>{if("CloseCartCard"===Y1.type){if(this.hideCartSelection(),null!=Y1.value){this.lastAddedProd=Y1.value,this.toastVisibility=!0,this.cdr.detectChanges();let f2=document.getElementById("progress-bar"),M2=document.getElementById("toast-add-cart");null!=f2&&null!=M2&&(f2.style.width="0%",f2.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}else"CloseQuoteRequest"===Y1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==Y1.type||"AddedCartItem"==Y1.type)&&this.cartService.getShoppingCart().then(f2=>{this.productAlreadyInCart=!!f2.some(G2=>G2.id===this.productOff?.id)})})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),document.body.style.overflow=""}ngOnInit(){var c=this;return(0,C1.A)(function*(){D2();let t=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0)if(c.check_logged=!0,c.cdr.detectChanges(),t.logged_as==t.id)c.customerId=t.partyId;else{let T=t.organizations.find(W=>W.id==t.logged_as);c.customerId=T.partyId}else c.check_logged=!1,c.cdr.detectChanges();window.scrollTo(0,0),c.id=c.route.snapshot.paramMap.get("id"),console.log("--- Details ID:"),console.log(c.id);let l=yield c.api.getProductById(c.id),i=yield c.api.getProductSpecification(l.productSpecification.id);c.prodSpec=i,c.getOwner();let u=l.productOfferingPrice,C=[];if(void 0!==u&&(C=yield c.api.getProductPrices(u.map(T=>T.id)),C.some(T=>"custom"==T?.priceType)&&(c.checkCustom=!0)),yield c.loadUsageMetrics(C),null!=c.prodSpec.productSpecCharacteristic){c.prodChars=c.prodSpec.productSpecCharacteristic.filter(W=>!W.name.startsWith("Compliance:")&&!W.name?.endsWith(" - enabled")),c.additionalCerts=c.prodSpec.productSpecCharacteristic.filter(W=>{const u1=W.name.replace("Compliance:","").trim();return W.name.startsWith("Compliance:")&&!R5.some(a1=>a1.name===u1)&&"Compliance:SelfAtt"!=W.name}),console.log("--- additional"),console.log(c.additionalCerts);const T=W=>W?.replace(/compliance:/i,"").trim()??"";for(let W=0;WT(T1.name)===R5[W].name);if(u1){let T1=R5[W];T1.href=u1.productSpecCharacteristicValue?.at(0)?.value,c.complianceProf.push(T1)}const a1=c.prodChars.findIndex(T1=>T(T1.name)===R5[W].name);-1!==a1&&c.prodChars.splice(a1,1)}console.log(c.complianceProf)}if(null!=c.prodSpec.serviceSpecification)for(let T=0;T"Profile Picture"===T.name)??[];if(console.log("profile..."),console.log(b),0==b.length?(c.images=c.productOff?.attachment?.filter(T=>"Picture"===T.attachmentType)??[],c.attatchments=c.productOff?.attachment?.filter(T=>"Picture"!=T.attachmentType)??[]):(c.images=b,c.attatchments=c.productOff?.attachment?.filter(T=>"Profile Picture"!=T.name)??[]),c.licenseTerm=c.productOff?.productOfferingTerm?.find(T=>"License"===T.name),null!=c.prodSpec.productSpecCharacteristic){let T=c.prodSpec.productSpecCharacteristic.find(W=>"Compliance:SelfAtt"===W.name);T&&(c.selfAtt=T.productSpecCharacteristicValue?.at(0)?.value)}if(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec),c.complianceDescription=c.getComplianceDescription(),c.check_logged){const W=(yield c.cartService.getShoppingCart()).some(u1=>u1.id===c.productOff?.id);c.productAlreadyInCart=W,c.cdr.detectChanges()}})()}loadUsageMetrics(c){var t=this;return(0,C1.A)(function*(){if(!c||0===c.length)return void(t.usageMetrics=[]);const l=new Map,i=new Map,u=Array.from(new Set(c.flatMap(T=>(Array.isArray(T?.bundledPopRelationship)?T.bundledPopRelationship:[]).map(W=>W?.id).filter(W=>null!=W))));let C=[];if(u.length>0)try{C=yield t.api.getProductPrices(u)}catch(T){console.error("Error loading linked product offering prices",T)}const b=new Map(C.map(T=>[T.id,T]));for(const T of c)yield t.collectUsageMetricsFromPrice(T,l,i,b);t.usageMetrics=Array.from(l.values())})()}collectUsageMetricsFromPrice(c,t,l,i){var u=this;return(0,C1.A)(function*(){if(!c)return;const C=Array.isArray(c.bundledPopRelationship)?c.bundledPopRelationship:[];if(C.length>0)for(const b of C){if(!b?.id)continue;const T=i.get(b.id);T&&(yield u.addMetricFromPrice(T,t,l))}else yield u.addMetricFromPrice(c,t,l)})()}addMetricFromPrice(c,t,l){var i=this;return(0,C1.A)(function*(){const u=c?.usageSpecId,C=i.getMetricName(c?.unitOfMeasure);if(!u||!C)return;const b=`${u}:${C}`;if(t.has(b))return;let T=l.get(u);if(void 0===T){try{T=yield i.usageService.getUsageSpec(u)}catch{T=null}l.set(u,T)}t.set(b,{id:b,usageSpecId:u,name:C,description:T?.description||c?.description||"No description available."})})()}getMetricName(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}toggleQuoteModal(){this.showQuoteModal=!0}getComplianceDescription(){switch(this.complianceLevel){case"NL":return"No level. This product hasn't reached any compliance level yet.";case"BL":return'Basic level. Reached when the provider signs the "self attestation" document (attached below).';case"P":return'Professional level. The provider has signed the "self attestation" document (attached below) and the product includes the following certifications: BSI-C5, CISPE, EU Cloud CoC, CSA CCM, ISO/IEC 27001, TISAX and SWIPO.';case"PP":return'Professional level. The provider has signed the "self attestation" document (attached below) and the product includes the following certifications: BSI-C5, CISPE, EU Cloud CoC, CSA CCM, ISO/IEC 27001, TISAX, SWIPO and CNDCP (Climate Neutral Data Centre Pact).';default:return""}}isVerified(c){return 1==c.verified}isCustom(){return this.checkCustom}ngAfterViewChecked(){this.termsTextRef&&!this.showReadMoreButton&&setTimeout(()=>this.checkOverflow(),0),this.descriptionTextRef&&!this.showDescriptionReadMore&&setTimeout(()=>this.checkDescriptionOverflow(),0)}checkOverflow(){const c=this.termsTextRef?.nativeElement;c&&(this.showReadMoreButton=c.scrollHeight>c.clientHeight)}checkDescriptionOverflow(){const c=this.descriptionTextRef?.nativeElement;if(c){const t=c.scrollHeight>c.clientHeight+1;t!==this.showDescriptionReadMore&&(this.showDescriptionReadMore=t,this.cdr.detectChanges())}}openDescriptionModal(){this.showDescriptionModal=!0,document.body.style.overflow="hidden"}closeDescriptionModal(){this.showDescriptionModal=!1,document.body.style.overflow=""}setImageHeight(){this.textDivHeight=this.textDiv.nativeElement.offsetHeight}toggleCartSelection(){if(console.log("Add to cart..."),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):this.selected_price=this.productOff?.productOfferingPrice[0],this.cdr.detectChanges()),null!=this.productOff?.productOfferingTerm&&(this.licenseTerm=this.productOff.productOfferingTerm.find(c=>"License"===c.name),this.check_terms=!!this.licenseTerm),null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;l{this.toastVisibility=!1},3500))}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}resetSelections(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}deleteProduct(c){var t=this;return(0,C1.A)(function*(){void 0!==c&&(yield t.cartService.removeItemShoppingCart(c.id),console.log("removed"),t.eventMessage.emitRemovedCartItem(c)),t.toastVisibility=!1})()}hideCartSelection(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}goTo(c){this.router.navigate([c])}back(){this.location.back()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}goToDetails(){this.activeTab="overview"}goToChars(){this.activeTab="features"}goToAttach(){this.activeTab="overview"}goToAgreements(){this.activeTab="compliance"}goToRelationships(){this.activeTab="overview"}tabClass(c){return this.activeTab===c?"bg-white text-[#14274A] font-semibold":"text-[#526179] font-medium hover:text-[#14274A] hover:bg-white/50"}toggleTermsReadMore(){this.showTermsMore=!this.showTermsMore;const c=this.termsTextRef.nativeElement;this.showTermsMore?c.classList.remove("line-clamp-5"):c.classList.add("line-clamp-5")}goToLink(c){window.open(c,"_blank")}getOwner(){let c=this.prodSpec?.relatedParty;if(c)for(let t=0;t{this.orgInfo=l,console.log(this.orgInfo)})}goToOrgDetails(c){this.router.navigate(["/org-details",c])}openDrawer(){this.isDrawerOpen=!0}closeDrawer(){this.isDrawerOpen=!1}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getCharacteristicValueLabel(c){const t=this.formatCharacteristicScalar(c?.value),l=this.getUnitLabel(c?.unitOfMeasure);return l?`${t} (${l})`:t}getCharacteristicValuePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicValueLabel(c))}getCharacteristicRangeLabel(c){const t=this.formatCharacteristicScalar(c?.valueFrom),l=this.formatCharacteristicScalar(c?.valueTo),i=this.getUnitLabel(c?.unitOfMeasure),u=`${t} - ${l}`;return i?`${u} (${i})`:u}getCharacteristicRangePreview(c){return this.truncateCharacteristicLabel(this.getCharacteristicRangeLabel(c))}isOptionalCharacteristic(c){const t=(c?.name??"").toString().trim();if(!t||!this.prodSpec?.productSpecCharacteristic)return!1;const l=`${t} - enabled`.toLowerCase();return this.prodSpec.productSpecCharacteristic.some(i=>(i?.name??"").toString().trim().toLowerCase()===l)}isBooleanCharacteristic(c){const t=c?.productSpecCharacteristicValue;return!(!Array.isArray(t)||0===t.length)&&t.every(l=>"boolean"==typeof l?.value)}getBooleanDefaultValue(c){const t=c?.productSpecCharacteristicValue;return!(!Array.isArray(t)||0===t.length)&&!0===(t.find(i=>!0===i?.isDefault)??t[0])?.value}formatCharacteristicScalar(c){if(null==c)return"";if("object"==typeof c)try{return JSON.stringify(c)}catch{return String(c)}return String(c)}getUnitLabel(c){return c?"string"==typeof c?c:"string"==typeof c?.units?c.units:"":""}truncateCharacteristicLabel(c,t=120){return c?c.length>t?`${c.slice(0,t)}...`:c:""}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(d8),e.rXU(U2),e.rXU(x0.O),e.rXU(c5),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-details"]],viewQuery:function(t,l){if(1&t&&(e.GBs(M80,5),e.GBs(x80,5),e.GBs(b80,5),e.GBs(y80,5),e.GBs(F80,5),e.GBs(v80,5),e.GBs(k80,5),e.GBs(w80,5),e.GBs(S80,5),e.GBs(N80,5),e.GBs(E80,5),e.GBs(D80,5),e.GBs(T80,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.relationshipsContent=i.first),e.mGM(i=e.lsd())&&(l.detailsContent=i.first),e.mGM(i=e.lsd())&&(l.charsContent=i.first),e.mGM(i=e.lsd())&&(l.attachContent=i.first),e.mGM(i=e.lsd())&&(l.agreementsContent=i.first),e.mGM(i=e.lsd())&&(l.textDiv=i.first),e.mGM(i=e.lsd())&&(l.termsTextRef=i.first),e.mGM(i=e.lsd())&&(l.descriptionTextRef=i.first),e.mGM(i=e.lsd())&&(l.agreementsScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.relScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.attachScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.charsScrollAnchor=i.first),e.mGM(i=e.lsd())&&(l.detailsScrollAnchor=i.first)}},decls:54,vars:42,consts:[["descriptionText",""],["termsText",""],[1,"min-h-screen","bg-white","font-[Blinker]"],[1,"mx-auto","max-w-[1200px]","px-8"],[1,"flex","items-center","gap-2","pt-4","pb-6","text-[16px]","text-[#526179]"],[1,"cursor-pointer","hover:text-[#1f4fbf]","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","d","m8.25 4.5 7.5 7.5-7.5 7.5"],[1,"font-medium","text-[#1f4fbf]"],[1,"grid","grid-cols-1","lg:grid-cols-[1fr_500px]","gap-8","pb-8"],[1,"flex","flex-col"],[1,"text-[32px]","font-bold","leading-tight","text-[#14274A]","mb-4",3,"ngClass"],[1,"mb-5"],[1,"line-clamp-5","overflow-hidden"],[1,"text-[16px]","leading-[26px]","text-[#0B1528]",3,"ngClass","data"],[1,"mt-2","text-[14px]","font-medium","text-[#1f4fbf]","hover:underline"],[1,"flex","flex-col","gap-2","mb-5"],[1,"flex","items-center","flex-wrap","gap-2"],[1,"inline-flex","items-center","px-3","py-1","rounded-full","text-[13px]","font-medium","border","border-[#8EACE1]","text-[#14274A]","bg-[#8EACE1]/10"],[1,"relative","hidden","lg:block","rounded-2xl","bg-[#EBECEE]","aspect-[2/1]","overflow-hidden"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"relative","lg:hidden","rounded-2xl","bg-[#EBECEE]","aspect-[2/1]","overflow-hidden"],["id","tabs-container",1,"sticky","top-[88px]","z-20","bg-white","pt-2","shadow-[0_4px_8px_-4px_rgba(11,18,32,0.08)]"],[1,"flex","items-center","justify-between","rounded-[16px]","bg-[#EBECEE]","p-1","overflow-hidden"],[1,"flex","w-full","gap-1"],[1,"flex-1","py-1","px-2","text-[16px]","leading-[24px]","tracking-[0.5px]","text-center","rounded-[12px]","transition-colors",3,"click","ngClass"],[1,"pt-6","pb-8"],["id","details-container"],[1,"rounded-2xl","bg-[#14274A]","px-8","py-16","text-center","mt-8"],["id","toast-add-cart","role","alert",1,"flex","grid","grid-flow-row","mr-2","items-center","w-auto","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[3,"productOff","prodSpec","images","cartSelection"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/50","backdrop-blur-sm","p-4"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],[1,"mt-2","text-[14px]","font-medium","text-[#1f4fbf]","hover:underline",3,"click"],[1,"flex","items-center","gap-2","text-[15px]","text-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","d","M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"],[1,"cursor-pointer","hover:underline",3,"click"],[1,"flex","items-center","gap-2","text-[15px]","text-[#526179]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"],["data-cy","openAddToCartDrawer","type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"disabled","ngClass"],["data-cy","openAddToCartDrawer","type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 18 21",1,"w-4","h-4"],["d","M15 12a1 1 0 0 0 .962-.726l2-7A1 1 0 0 0 17 3H3.77L3.175.745A1 1 0 0 0 2.208 0H1a1 1 0 0 0 0 2h.438l.6 2.255v.019l2 7 .746 2.986A3 3 0 1 0 9 17a2.966 2.966 0 0 0-.184-1h2.368c-.118.32-.18.659-.184 1a3 3 0 1 0 3-3H6.78l-.5-2H15Z"],["type","button",1,"hidden","md:flex","shrink-0","mx-3","items-center","gap-2","text-white","bg-[#1f4fbf]","hover:bg-[#163b99]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click"],["data-cy","openAddToCartDrawer","type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"disabled","ngClass"],["data-cy","openAddToCartDrawer","type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click","disabled","ngClass"],["type","button",1,"flex","md:hidden","mt-3","w-fit","items-center","gap-2","text-white","bg-[#1f4fbf]","hover:bg-[#163b99]","font-medium","rounded-lg","text-sm","px-5","py-2.5","transition-colors",3,"click"],[1,"rounded-[16px]","bg-[#F7F9FD]","border","border-[#DDE6F6]","py-4","px-6","mb-8"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"flex","items-center","gap-4"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-full","bg-[#eef2fb]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6","text-[#1f4fbf]"],["stroke-linecap","round","stroke-linejoin","round","d","M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"],[1,"text-[14px]","text-[#8896A8]","block"],[1,"text-[16px]","font-semibold","text-[#14274A]"],["stroke-linecap","round","stroke-linejoin","round","d","M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"],["stroke-linecap","round","stroke-linejoin","round","d","m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"],[1,"mb-8"],[1,"mb-6"],["stroke-linecap","round","stroke-linejoin","round","d","M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"],[1,"text-[16px]","font-semibold","text-[#1f4fbf]","cursor-pointer","hover:underline",3,"click"],[1,"text-[24px]","font-bold","text-[#14274A]","mb-4"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-3"],[1,"mb-2"],[1,"font-semibold","text-[#14274A]"],[1,"text-[16px]","text-[#0B1528]","inline",3,"data"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-4","mb-8"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-2","break-words",3,"ngClass"],[1,"flex","items-center","justify-between"],[1,"text-[14px]","text-[#526179]"],[1,"text-xl","text-[#1f4fbf]",3,"icon"],["id","chars-container"],[1,"relative","rounded-2xl","bg-white","border","border-[#EBECEE]","p-6"],[1,"col-span-3","text-center","py-8","text-[#526179]"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-2","break-words","pr-20",3,"ngClass"],[1,"text-[13px]","text-[#526179]","mb-3",3,"ngClass","data"],[1,"absolute","top-4","right-4","inline-flex","items-center","rounded-md","bg-[#eef2fb]","px-2","py-1","text-xs","font-medium","text-[#1f4fbf]"],[1,"mt-3"],[1,"flex","items-center","gap-2"],[1,"text-sm","font-medium","text-[#526179]"],[1,"inline-flex","items-center","rounded-md","px-2","py-1","text-xs","font-medium",3,"ngClass"],[1,"flex","items-center","gap-2","mb-1"],[1,"h-4","w-4","shrink-0","rounded-full","border",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-4","w-4","text-white"],[1,"text-sm","text-[#526179]","break-all",3,"title"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],[1,"text-center","py-12","text-[#526179]"],["data-cy","pricePlanTitle",1,"text-[24px]","font-bold","text-[#14274A]","mb-4"],[1,"grid","gap-4","mb-8","grid-cols-1","md:grid-cols-2","lg:grid-cols-3"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","text-center"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-2","break-words",3,"ngClass"],[1,"text-[14px]","text-[#526179]",3,"ngClass","data"],[1,"text-[20px]","font-bold","text-[#14274A]","mb-2"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","overflow-hidden"],[1,"px-6","py-4",3,"ngClass"],[1,"text-[18px]","font-bold","text-white","text-center","break-words",3,"ngClass"],[1,"p-6"],[1,"bg-[#1f4fbf]","px-6","py-4"],[1,"text-[18px]","font-bold","text-white","text-center"],[1,"p-6","text-[14px]","text-[#526179]","text-center"],[1,"rounded-2xl","bg-[#eef2fb]","border","border-[#D8DADE]","p-6"],[1,"flex","h-10","w-10","shrink-0","items-center","justify-center","rounded-full","bg-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-5","w-5","text-white"],[1,"text-[18px]","font-bold","text-[#14274A]"],["target","_blank",1,"inline-block","mt-3","font-medium","text-[#1f4fbf]","hover:underline","text-[14px]",3,"href"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-4"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","cursor-pointer","hover:shadow-md","transition-shadow"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","cursor-pointer","hover:shadow-md","transition-shadow",3,"click"],[1,"flex","h-12","w-12","items-center","justify-center","rounded-xl","bg-[#eef2fb]","mb-4"],[1,"text-[#1f4fbf]","text-xl",3,"icon"],[1,"text-[18px]","font-bold","text-[#14274A]","mb-1"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-8","mb-8"],[1,"flex","justify-end","mb-4"],[1,"text-2xl","text-[#1f4fbf]",3,"icon"],[1,"overflow-hidden"],[1,"text-[16px]","text-[#526179]","break-words",3,"ngClass","data"],[1,"mt-4","text-[#1f4fbf]","font-medium","text-[14px]","hover:underline"],[1,"mt-4","text-[#1f4fbf]","font-medium","text-[14px]","hover:underline",3,"click"],[1,"text-[16px]","text-[#526179]","mb-8"],[1,"rounded-2xl","bg-white","border","border-[#EBECEE]","p-6","flex","items-center","justify-between"],[1,"text-[18px]","font-bold","text-[#14274A]","break-words",3,"ngClass"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","bg-[#eef2fb]","hover:bg-[#dde6f6]","transition-colors","text-[#1f4fbf]","shrink-0","ml-4",3,"click"],[1,"text-lg",3,"icon"],[1,"text-[32px]","font-bold","text-white","mb-3"],[1,"text-[16px]","text-gray-300","mb-6"],["target","_blank","rel","noopener noreferrer",1,"inline-flex","items-center","px-8","py-3.5","rounded-lg","bg-[#1f4fbf]","text-white","text-[16px]","font-medium","hover:bg-[#163b99]","transition-colors",3,"href"],[1,"flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 18 20",1,"w-[18px]","h-[18px]","text-gray-800","dark:text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 15a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 0h8m-8 0-1-4m9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-9-4h10l2-7H3m2 7L3 4m0 0-.792-3H1"],[1,"text-sm","font-normal"],[1,"flex","items-center","ms-auto","space-x-2","rtl:space-x-reverse","p-1.5"],["type","button",1,"px-3","py-2","text-xs","font-medium","text-center","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","dark:bg-gray-800","dark:text-white","dark:border-gray-600","dark:hover:bg-gray-700","dark:hover:border-gray-600","dark:focus:ring-gray-700",3,"click"],["type","button","data-dismiss-target","#toast-add-cart","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700",3,"click"],[1,"sr-only"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"flex","w-full","mt-2","rounded-full","h-2.5","dark:bg-gray-700"],["id","progress-bar",1,"flex","bg-green-600","h-2.5","rounded-full","dark:bg-green-500","transition-width","delay-200","duration-3000","ease-out",2,"width","0px"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"click","ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/50","backdrop-blur-sm","p-4",3,"click"],[1,"relative","w-full","max-w-2xl","max-h-[80vh]","bg-white","rounded-2xl","shadow-2xl","flex","flex-col",3,"click"],[1,"flex","items-center","justify-between","px-6","py-4","border-b","border-[#EBECEE]"],[1,"text-[20px]","font-bold","text-[#14274A]","break-words","pr-8"],[1,"flex","items-center","justify-center","h-8","w-8","rounded-full","text-gray-400","hover:bg-gray-100","hover:text-gray-900","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],[1,"px-6","py-4","overflow-y-auto"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"nav",4)(3,"a",5),e.bIt("click",function(){return e.eBV(i),e.Njj(l.back())}),e.EFF(4,"All categories"),e.k0s(),e.qSk(),e.j41(5,"svg",6),e.nrm(6,"path",7),e.k0s(),e.joV(),e.j41(7,"span",8),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",9)(11,"div",10)(12,"h1",11),e.EFF(13),e.k0s(),e.j41(14,"div",12)(15,"div",13,0),e.nrm(17,"markdown",14),e.k0s(),e.DNE(18,A80,2,0,"button",15),e.k0s(),e.DNE(19,$80,7,2,"div",16),e.j41(20,"div",17),e.Z7z(21,O80,2,1,"span",18,Nn),e.k0s()(),e.j41(23,"div",19),e.nrm(24,"div",20)(25,"img",21),e.k0s(),e.j41(26,"div",22),e.nrm(27,"div",20)(28,"img",21),e.k0s()(),e.j41(29,"div",23)(30,"div",24)(31,"div",25)(32,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="overview")}),e.EFF(33," Overview "),e.k0s(),e.j41(34,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="features")}),e.EFF(35," Features "),e.k0s(),e.j41(36,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="pricing")}),e.EFF(37," Pricing "),e.k0s(),e.j41(38,"button",26),e.bIt("click",function(){return e.eBV(i),e.Njj(l.activeTab="compliance")}),e.EFF(39," Compliance "),e.k0s()(),e.DNE(40,U80,2,1),e.k0s(),e.DNE(41,Y80,2,1),e.k0s(),e.j41(42,"div",27),e.DNE(43,oe0,38,13,"div",28)(44,ze0,2,1)(45,Ee0,5,5)(46,qe0,20,7)(47,Xe0,7,2,"div",29),e.k0s()()(),e.DNE(48,We0,19,9,"div",30)(49,Je0,1,4,"cart-card",31)(50,Qe0,1,1,"error-message",32)(51,Ze0,1,6,"app-quote-request-modal",33)(52,Ke0,10,6,"div",34),e.j41(53,"app-price-plan-drawer",35),e.bIt("closeDrawer",function(){return e.eBV(i),e.Njj(l.closeDrawer())}),e.k0s()}2&t&&(e.R7$(8),e.JRh(e.bMT(9,34,"PRODUCT_DETAILS._details")),e.R7$(4),e.Y8G("ngClass",e.l_i(36,n5,l.hasLongWord(null==l.productOff?null:l.productOff.name,20),!l.hasLongWord(null==l.productOff?null:l.productOff.name,20))),e.R7$(),e.JRh(null==l.productOff?null:l.productOff.name),e.R7$(4),e.Y8G("ngClass",e.l_i(39,n5,l.hasLongWord(null==l.productOff?null:l.productOff.description,20),!l.hasLongWord(null==l.productOff?null:l.productOff.description,20)))("data",null==l.productOff?null:l.productOff.description),e.R7$(),e.vxM(18,l.showDescriptionReadMore?18:-1),e.R7$(),e.vxM(19,null!=l.orgInfo?19:-1),e.R7$(2),e.Dyx(l.categories),e.R7$(3),e.xc7("background-image","url("+l.getProductImage()+")"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(2),e.xc7("background-image","url("+l.getProductImage()+")"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(4),e.Y8G("ngClass",l.tabClass("overview")),e.R7$(2),e.Y8G("ngClass",l.tabClass("features")),e.R7$(2),e.Y8G("ngClass",l.tabClass("pricing")),e.R7$(2),e.Y8G("ngClass",l.tabClass("compliance")),e.R7$(2),e.vxM(40,l.check_logged?40:-1),e.R7$(),e.vxM(41,l.check_logged?41:-1),e.R7$(2),e.vxM(43,"overview"===l.activeTab?43:-1),e.R7$(),e.vxM(44,"features"===l.activeTab?44:-1),e.R7$(),e.vxM(45,"pricing"===l.activeTab?45:-1),e.R7$(),e.vxM(46,"compliance"===l.activeTab?46:-1),e.R7$(),e.vxM(47,l.check_logged?-1:47),e.R7$(),e.vxM(48,l.toastVisibility?48:-1),e.R7$(),e.vxM(49,l.cartSelection?49:-1),e.R7$(),e.vxM(50,l.showError?50:-1),e.R7$(),e.vxM(51,l.showQuoteModal?51:-1),e.R7$(),e.vxM(52,l.showDescriptionModal?52:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"))},dependencies:[_.YU,J2.aY,Vd1,N0,cH,E0,qN1,_.vh,s1.D9],styles:[".container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;background-size:cover;background-repeat:no-repeat;background-position:center}"]})}}return n})();const uf1=(n,a)=>a.id,nD=(n,a)=>({"break-all":n,"break-words":a});function c50(n,a){if(1&n&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,nD,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function t50(n,a){if(1&n&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,c50,5,6,"p",36,uf1),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,1,"PRODUCT_DETAILS._service_spec"),":"),e.R7$(2),e.Dyx(c.serviceSpecs)}}function n50(n,a){if(1&n&&(e.j41(0,"p",36)(1,"b"),e.EFF(2),e.k0s(),e.EFF(3,": "),e.nrm(4,"markdown",37),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(3,nD,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20)))("data",c.description)}}function l50(n,a){if(1&n&&(e.j41(0,"div",31)(1,"h5",35),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.Z7z(4,n50,5,6,"p",36,uf1),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,1,"PRODUCT_DETAILS._resource_spec"),":"),e.R7$(2),e.Dyx(c.resourceSpecs)}}function s50(n,a){1&n&&(e.j41(0,"div",38)(1,"div",39)(2,"div",40)(3,"h5",41),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",42),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function a50(n,a){if(1&n&&(e.j41(0,"div",43)(1,"div",44)(2,"h2",45),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",46),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(null==c.pricePlan?null:c.pricePlan.name),e.R7$(),e.Y8G("ngClass",e.l_i(3,nD,c.hasLongWord(null==c.pricePlan?null:c.pricePlan.description,20),!c.hasLongWord(null==c.pricePlan?null:c.pricePlan.description,20)))("data",null==c.pricePlan?null:c.pricePlan.description)}}function o50(n,a){if(1&n&&(e.j41(0,"div",33),e.DNE(1,s50,9,6,"div",38)(2,a50,5,6),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0==(null==c.prod||null==c.prod.productPrice?null:c.prod.productPrice.length)?1:2)}}function i50(n,a){if(1&n&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function r50(n,a){if(1&n&&(e.j41(0,"label",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function d50(n,a){if(1&n&&(e.j41(0,"div",50)(1,"div",52)(2,"h3",53),e.EFF(3),e.k0s(),e.j41(4,"div",54),e.nrm(5,"input",55),e.DNE(6,i50,2,2,"label",56)(7,r50,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function f50(n,a){1&n&&(e.j41(0,"div",51)(1,"div",57),e.qSk(),e.j41(2,"svg",58),e.nrm(3,"path",59),e.k0s(),e.joV(),e.j41(4,"span",60),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",61),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function u50(n,a){if(1&n&&(e.j41(0,"div",34,1)(2,"h2",47),e.EFF(3,"Configuration options"),e.k0s(),e.j41(4,"div",48)(5,"div",49),e.Z7z(6,d50,8,2,"div",50,uf1,!1,f50,9,3,"div",51),e.k0s()()()),2&n){const c=e.XpG();e.R7$(6),e.Dyx(c.prod.productCharacteristic)}}let m50=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.cdr=c,this.route=t,this.api=l,this.priceService=i,this.router=u,this.elementRef=C,this.localStorage=b,this.eventMessage=T,this.inventoryServ=W,this.location=u1,this.check_logged=!1,this.images=[],this.attatchments=[],this.serviceSpecs=[],this.resourceSpecs=[],this.prod={},this.prodSpec={},this.checkCustom=!1,this.faScaleBalanced=A2.iRu,this.faArrowProgress=A2.SZt,this.faArrowRightArrowLeft=A2.tNR,this.faObjectExclude=A2.tP3,this.faSwap=A2.FJA,this.faGlobe=A2.Bwz,this.faBook=A2.LBj,this.faShieldHalved=A2.fLc,this.faAtom=A2.RSf,this.faDownload=A2.cbP}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(D2(),c.handleLoginState(),c.id=c.route.snapshot.paramMap.get("id"),c.id)try{c.prod=yield c.inventoryServ.getProduct(c.id),c.checkCustom=c.prod?.productPrice?.some(l=>"custom"===l.priceType)??!1;const t=yield c.api.getProductById(c.prod.productOffering.id);c.prodSpec=yield c.api.getProductSpecification(t.productSpecification.id),c.prod.productPrice.length>0&&(c.pricePlan=yield c.loadPricePlan(c.prod.productPrice[0].productOfferingPrice.id)),c.productOff={id:t.id,name:t.name,category:t.category,description:t.description,lastUpdate:t.lastUpdate,attachment:c.prodSpec?.attachment??[],productOfferingPrice:c.prod.productPrice,productSpecification:t.productSpecification,productOfferingTerm:t.productOfferingTerm,serviceLevelAgreement:t.serviceLevelAgreement,version:t.version},console.log(c.productOff),c.organizeAttachments(),c.completeCharacteristics(),yield c.fetchSpecifications(),c.cdr.detectChanges()}catch(t){console.error("Error fetching product details:",t)}})()}completeCharacteristics(){this.prod.productCharacteristic=this.prod?.productCharacteristic?.map(c=>(this.prodSpec?.productSpecCharacteristic?.forEach(t=>{c.name===t.name&&t.productSpecCharacteristicValue&&t.productSpecCharacteristicValue.length>0&&t.productSpecCharacteristicValue[0].unitOfMeasure&&(c.unitOfMeasure=t.productSpecCharacteristicValue[0].unitOfMeasure)}),c))}handleLoginState(){const c=this.localStorage.getObject("login_items"),t=c&&Object.keys(c).length>0&&c.expire-$2()().unix()-4>0;this.check_logged=t,this.cdr.detectChanges()}organizeAttachments(){const c=this.productOff?.attachment?.filter(t=>"Profile Picture"===t.name)??[];0===c.length?(this.images=this.productOff?.attachment?.filter(t=>"Picture"===t.attachmentType)??[],this.attatchments=this.productOff?.attachment?.filter(t=>"Picture"!==t.attachmentType)??[]):(this.images=c,this.attatchments=this.productOff?.attachment?.filter(t=>"Profile Picture"!==t.name)??[])}fetchSpecifications(){var c=this;return(0,C1.A)(function*(){const t=c.prodSpec?.serviceSpecification?.map(C=>c.api.getServiceSpec(C.id))??[],l=c.prodSpec?.resourceSpecification?.map(C=>c.api.getResourceSpec(C.id))??[],[i,u]=yield Promise.all([Promise.all(t),Promise.all(l)]);c.serviceSpecs=i,c.resourceSpecs=u})()}loadPricePlan(c){var t=this;return(0,C1.A)(function*(){return yield t.api.getOfferingPrice(c)})()}back(){this.location.back()}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(o0.F),e.rXU(X8),e.rXU(E2.Ix),e.rXU(e.aKT),e.rXU(z2.s),e.rXU(U2),e.rXU(f8),e.rXU(_.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-inv-detail"]],decls:45,vars:27,consts:[["detailsContent",""],["charsContent",""],[1,"container","mx-auto","pt-2","pb-8"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","lg:grid","lg:grid-cols-60/40"],[1,"flex","lg:hidden","overflow-hidden","justify-center","items-center","bg-white","rounded-t-lg","w-full"],["alt","Product image",1,"rounded-t-lg","h-5/6","w-5/6","object-contain","dark:text-white",3,"src"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"pt-2","line-clamp-5","h-fit"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"hidden","lg:block","overflow-hidden","rounded-r-lg"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"object-contain","h-5/6","w-5/6","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],[1,"w-full","h-full","bg-secondary-50","rounded-b-lg","p-4","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border-b"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-8","lg:p-12"],["id","details-container"],[1,"text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"pb-2"],[1,"text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-8","pt-12"],[1,"grid","grid-flow-row","gap-4","lg:grid-cols-2","lg:auto-cols-auto","justify-items-center","p-2"],["id","chars-container"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50"],[1,"pl-4","dark:text-gray-200"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"flex","justify-center","mb-2","p-4","font-normal","text-gray-700"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","dark:text-white","text-3xl","font-extrabold","mb-2"],[1,"dark:text-gray-200","w-full","p-4","text-wrap","break-words",3,"ngClass","data"],[1,"text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12","dark:text-primary-50"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"text-center"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return e.eBV(i),e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"div",16),e.nrm(19,"img",17),e.k0s(),e.j41(20,"div",18)(21,"div",19)(22,"h5",20),e.EFF(23),e.k0s()(),e.j41(24,"div",21),e.nrm(25,"markdown",22),e.k0s(),e.j41(26,"div",21),e.EFF(27),e.k0s()(),e.j41(28,"div",23)(29,"div",24),e.nrm(30,"div",25)(31,"img",26),e.k0s()()(),e.j41(32,"div",27)(33,"div",28)(34,"div",29)(35,"h2",30,0),e.EFF(37,"Description"),e.k0s(),e.nrm(38,"markdown",22),e.DNE(39,t50,6,3,"div",31)(40,l50,6,3,"div",31),e.j41(41,"h2",32),e.EFF(42,"Price Plan"),e.k0s(),e.DNE(43,o50,3,1,"div",33),e.k0s(),e.DNE(44,u50,9,1,"div",34),e.k0s()()()}2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,17,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,19,"PRODUCT_DETAILS._details")),e.R7$(4),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(4),e.JRh(null==l.productOff?null:l.productOff.name),e.R7$(2),e.Y8G("ngClass",e.l_i(21,nD,l.hasLongWord(null==l.productOff?null:l.productOff.description,20),!l.hasLongWord(null==l.productOff?null:l.productOff.description,20)))("data",null==l.productOff?null:l.productOff.description),e.R7$(2),e.SpI(" Start Date: ",l.prod.startDate," "),e.R7$(3),e.muq("background-image: url(",l.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(),e.B4B),e.R7$(7),e.Y8G("ngClass",e.l_i(24,nD,l.hasLongWord(l.prodSpec.description,20),!l.hasLongWord(l.prodSpec.description,20)))("data",l.prodSpec.description),e.R7$(),e.vxM(39,l.serviceSpecs.length>0?39:-1),e.R7$(),e.vxM(40,l.resourceSpecs.length>0?40:-1),e.R7$(3),e.vxM(43,null!=(null==l.prod?null:l.prod.productPrice)?43:-1),e.R7$(),e.vxM(44,null!=l.prod.productCharacteristic&&l.prod.productCharacteristic.length>0?44:-1))},dependencies:[_.YU,N0,s1.D9]})}}return n})(),XN1=(()=>{class n{constructor(){this.category={name:"Default"},this.faAddressCard=mc,this.faCloud=A2.jBL}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-badge"]],inputs:{category:"category"},decls:4,vars:2,consts:[[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2","max-w-full"],[1,"text-primary-50","mr-2",3,"icon"],[1,"truncate"]],template:function(t,l){1&t&&(e.j41(0,"a",0),e.nrm(1,"fa-icon",1),e.j41(2,"p",2),e.EFF(3),e.k0s()()),2&t&&(e.R7$(),e.Y8G("icon",l.faCloud),e.R7$(2),e.SpI(" ",l.category.name," "))},dependencies:[J2.aY],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]})}}return n})();const UL=(n,a)=>a.id,p50=()=>[],En=(n,a)=>({"break-all":n,"break-words":a});function h50(n,a){1&n&&(e.j41(0,"div",31),e.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Loading..."),e.k0s()())}function g50(n,a){1&n&&e.nrm(0,"bae-badge",46),2&n&&e.Y8G("category",a.$implicit)}function _50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",55),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(3).openModifyFromCard(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",58),e.EFF(8),e.nI1(9,"translate"),e.nrm(10,"div",59),e.k0s(),e.j41(11,"button",60),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(3).showUnsubscribeModal(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(12,"svg",61),e.nrm(13,"path",62),e.k0s(),e.joV(),e.j41(14,"span",35),e.EFF(15,"Unsubscribe"),e.k0s()(),e.j41(16,"div",58),e.EFF(17),e.nI1(18,"translate"),e.nrm(19,"div",59),e.k0s()()}if(2&n){const c=e.XpG().$index;e.R7$(),e.BMQ("data-tooltip-target","modify-default-"+c),e.R7$(4),e.JRh(e.bMT(6,7,"PRODUCT_INVENTORY._modify_chars")),e.R7$(2),e.BMQ("id","modify-default-"+c),e.R7$(),e.SpI(" ",e.bMT(9,9,"PRODUCT_INVENTORY._modify_chars")," "),e.R7$(3),e.BMQ("data-tooltip-target","unsubscribe-default-"+c),e.R7$(5),e.BMQ("id","unsubscribe-default-"+c),e.R7$(),e.SpI(" ",e.bMT(18,11,"PRODUCT_INVENTORY._unsubscribe")," ")}}function L50(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function C50(n,a){if(1&n&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function z50(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function M50(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.status)}}function x50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",39),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectProduct(l))}),e.j41(2,"div",40),e.nrm(3,"div",41)(4,"img",42),e.k0s()(),e.j41(5,"div",43)(6,"div",44)(7,"div",45),e.Z7z(8,g50,1,1,"bae-badge",46,UL),e.k0s(),e.j41(10,"div",47)(11,"a",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.goToProductDetails(l.product))}),e.j41(12,"h5",49),e.EFF(13),e.k0s()(),e.DNE(14,_50,20,13,"div",50),e.k0s(),e.nrm(15,"markdown",51),e.j41(16,"div",52)(17,"div"),e.EFF(18),e.k0s(),e.j41(19,"div",53),e.DNE(20,L50,2,1,"span",54)(21,C50,2,1)(22,z50,2,1)(23,M50,2,1),e.k0s()()()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(3);e.R7$(3),e.muq("background-image: url(",l.getProductImage(c.product),");filter: blur(20px);"),e.R7$(),e.FS9("src",l.getProductImage(c.product),e.B4B),e.Y8G("id","img-"+t),e.R7$(4),e.Dyx(null==c.product?null:c.product.category),e.R7$(5),e.JRh(null==c.product?null:c.product.name),e.R7$(),e.vxM(14,"active"==c.status?14:-1),e.R7$(),e.Y8G("data",null==c.product?null:c.product.description),e.R7$(3),e.SpI("V: ",(null==c.product?null:c.product.version)||"latest",""),e.R7$(2),e.vxM(20,"active"==c.status?20:"created"==c.status?21:"suspended"==c.status?22:"terminated"==c.status?23:-1)}}function b50(n,a){1&n&&(e.j41(0,"div",38),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PRODUCT_INVENTORY._not_found")))}function y50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",66)(1,"button",67),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",68),e.nrm(4,"path",69),e.k0s()()()}}function F50(n,a){if(1&n&&e.DNE(0,y50,5,0,"div",66),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function v50(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Loading..."),e.k0s()())}function k50(n,a){if(1&n&&(e.j41(0,"div",36),e.Z7z(1,x50,24,10,"div",37,UL,!1,b50,3,3,"div",38),e.k0s(),e.DNE(4,F50,1,1)(5,v50,6,0)),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.inventory),e.R7$(3),e.vxM(4,c.loading_more?5:4)}}function w50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"h2",10),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",11)(7,"div",12)(8,"div",13),e.nrm(9,"fa-icon",14),e.j41(10,"h2",15),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",16),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",17),e.nrm(17,"path",18),e.k0s()(),e.joV(),e.j41(18,"div",19)(19,"h6",20),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",21)(23,"li",22)(24,"input",23),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("created"))}),e.k0s(),e.j41(25,"label",24),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",22)(29,"input",25),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("active"))}),e.k0s(),e.j41(30,"label",26),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",22)(34,"input",27),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("suspended"))}),e.k0s(),e.j41(35,"label",28),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",22)(39,"input",29),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("terminated"))}),e.k0s(),e.j41(40,"label",30),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()()()(),e.DNE(43,h50,6,0,"div",31)(44,k50,6,2)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,10,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,12,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,14,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,16,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,18,"PRODUCT_INVENTORY._created")," "),e.R7$(5),e.SpI(" ",e.bMT(32,20,"PRODUCT_INVENTORY._active")," "),e.R7$(5),e.SpI(" ",e.bMT(37,22,"PRODUCT_INVENTORY._suspended")," "),e.R7$(5),e.SpI(" ",e.bMT(42,24,"PRODUCT_INVENTORY._terminated")," "),e.R7$(2),e.vxM(43,c.loading?43:44)}}function S50(n,a){if(1&n&&(e.j41(0,"div",107)(1,"div",108)(2,"h2",109),e.EFF(3),e.k0s()(),e.nrm(4,"markdown",110),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function N50(n,a){1&n&&e.DNE(0,S50,5,10,"div",107),2&n&&e.vxM(0,"custom"==a.$implicit.priceType?0:-1)}function E50(n,a){1&n&&(e.j41(0,"div",106)(1,"div",111)(2,"div",112)(3,"h5",113),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"p",114),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(4),e.JRh(e.bMT(5,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(8,4,"SHOPPING_CART._free_desc")))}function D50(n,a){if(1&n&&(e.j41(0,"div",105),e.Z7z(1,N50,1,1,null,null,UL),e.DNE(3,E50,9,6,"div",106),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function T50(n,a){if(1&n&&(e.j41(0,"div",116)(1,"div",117)(2,"h5",118),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function R50(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",120)(2,"h5",121),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function A50(n,a){if(1&n&&(e.j41(0,"div",115)(1,"div",112)(2,"h5",122),e.EFF(3),e.k0s()(),e.j41(4,"div",119),e.nrm(5,"markdown",110),e.k0s()()),2&n){const c=e.XpG().$implicit,t=e.XpG(4);e.R7$(2),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",e.l_i(7,En,t.hasLongWord(null==c?null:c.description,20),!t.hasLongWord(null==c?null:c.description,20)))("data",null==c?null:c.description)}}function I50(n,a){if(1&n&&e.DNE(0,T50,6,10,"div",116)(1,R50,6,10)(2,A50,6,10),2&n){const c=a.$implicit;e.vxM(0,"recurring"==c.priceType?0:"usage"==c.priceType?1:2)}}function P50(n,a){1&n&&(e.j41(0,"div",115)(1,"div",112)(2,"h5",113),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"p",123),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,2,"SHOPPING_CART._free")),e.R7$(3),e.JRh(e.bMT(7,4,"SHOPPING_CART._free_desc")))}function j50(n,a){if(1&n&&(e.j41(0,"div",105),e.Z7z(1,I50,3,1,null,null,UL),e.DNE(3,P50,8,6,"div",115),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Dyx(null==c.productOff?null:c.productOff.productOfferingPrice),e.R7$(2),e.vxM(3,0==(null==c.productOff||null==c.productOff.productOfferingPrice?null:c.productOff.productOfferingPrice.length)?3:-1)}}function $50(n,a){if(1&n&&e.DNE(0,D50,4,1,"div",105)(1,j50,4,1),2&n){const c=e.XpG(2);e.vxM(0,c.checkCustom?0:1)}}function O50(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",102)(1,"td",124)(2,"a",125),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectService(l.id))}),e.EFF(3),e.k0s()(),e.j41(4,"td",126),e.EFF(5),e.k0s(),e.j41(6,"td",127),e.EFF(7),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function B50(n,a){1&n&&(e.j41(0,"div",103)(1,"div",128),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function V50(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",102)(1,"td",124)(2,"a",125),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectResource(l.id))}),e.EFF(3),e.k0s()(),e.j41(4,"td",126),e.EFF(5),e.k0s(),e.j41(6,"td",127),e.EFF(7),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(4,En,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.lifecycleStatus," ")}}function U50(n,a){1&n&&(e.j41(0,"div",103)(1,"div",128),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function G50(n,a){if(1&n&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function H50(n,a){if(1&n&&(e.j41(0,"label",140),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function Y50(n,a){if(1&n&&(e.j41(0,"div",134)(1,"div",136)(2,"h3",137),e.EFF(3),e.k0s(),e.j41(4,"div",138),e.nrm(5,"input",139),e.DNE(6,G50,2,2,"label",140)(7,H50,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function q50(n,a){1&n&&(e.j41(0,"div",135)(1,"div",141),e.qSk(),e.j41(2,"svg",129),e.nrm(3,"path",130),e.k0s(),e.joV(),e.j41(4,"span",35),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",142),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function X50(n,a){if(1&n&&(e.j41(0,"div",104,1)(2,"h2",131),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",132)(6,"div",133),e.Z7z(7,Y50,8,2,"div",134,UL,!1,q50,9,3,"div",135),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._chars")),e.R7$(4),e.Dyx(c.selectedProduct.productCharacteristic)}}function W50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",71)(2,"nav",72)(3,"ol",73)(4,"li",74)(5,"button",75),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",76),e.nrm(7,"path",77),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",78)(11,"div",22),e.qSk(),e.j41(12,"svg",79),e.nrm(13,"path",80),e.k0s(),e.joV(),e.j41(14,"span",81),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",82)(18,"div",83)(19,"div",84)(20,"h5",85),e.EFF(21),e.k0s()()(),e.j41(22,"div",86)(23,"div",87),e.nrm(24,"div",88)(25,"img",89),e.k0s()()(),e.j41(26,"div",90)(27,"div",91)(28,"div",92)(29,"h2",93,0),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"markdown",94),e.j41(34,"h2",95),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.DNE(37,$50,2,1),e.k0s(),e.j41(38,"div")(39,"h2",95),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"div",96)(43,"div",97)(44,"table",98)(45,"thead",99)(46,"tr")(47,"th",100),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"th",100),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"th",101),e.EFF(54),e.nI1(55,"translate"),e.k0s()()(),e.j41(56,"tbody"),e.Z7z(57,O50,8,7,"tr",102,UL,!1,B50,7,3,"div",103),e.k0s()()()()(),e.j41(60,"div")(61,"h2",95),e.EFF(62),e.nI1(63,"translate"),e.k0s(),e.j41(64,"div",96)(65,"div",97)(66,"table",98)(67,"thead",99)(68,"tr")(69,"th",100),e.EFF(70),e.nI1(71,"translate"),e.k0s(),e.j41(72,"th",100),e.EFF(73),e.nI1(74,"translate"),e.k0s(),e.j41(75,"th",101),e.EFF(76),e.nI1(77,"translate"),e.k0s()()(),e.j41(78,"tbody"),e.Z7z(79,V50,8,7,"tr",102,UL,!1,U50,7,3,"div",103),e.k0s()()()()(),e.DNE(82,X50,10,4,"div",104),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,23,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,25,"PRODUCT_INVENTORY._prod_details")),e.R7$(6),e.JRh(null==c.selectedProduct.product?null:c.selectedProduct.product.name),e.R7$(3),e.muq("background-image: url(",c.getProductImage(c.selectedProduct.product),");filter: blur(20px);"),e.R7$(),e.FS9("src",c.getProductImage(c.selectedProduct.product),e.B4B),e.R7$(6),e.JRh(e.bMT(32,27,"PRODUCT_INVENTORY._description")),e.R7$(2),e.Y8G("ngClass",e.l_i(47,En,c.hasLongWord(null==c.selectedProduct.product?null:c.selectedProduct.product.description,20),!c.hasLongWord(null==c.selectedProduct.product?null:c.selectedProduct.product.description,20)))("data",null==c.selectedProduct.product?null:c.selectedProduct.product.description),e.R7$(2),e.JRh(e.bMT(36,29,"PRODUCT_INVENTORY._pricing")),e.R7$(2),e.vxM(37,null!=(null==c.productOff?null:c.productOff.productOfferingPrice)?37:-1),e.R7$(3),e.JRh(e.bMT(41,31,"PRODUCT_INVENTORY._services")),e.R7$(8),e.SpI(" ",e.bMT(49,33,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(52,35,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(55,37,"OFFERINGS._status")," "),e.R7$(3),e.Dyx(c.selectedServices),e.R7$(5),e.JRh(e.bMT(63,39,"PRODUCT_INVENTORY._resources")),e.R7$(8),e.SpI(" ",e.bMT(71,41,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(74,43,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(77,45,"OFFERINGS._status")," "),e.R7$(3),e.Dyx(c.selectedResources),e.R7$(3),e.vxM(82,null!=c.selectedProduct.productCharacteristic&&c.selectedProduct.productCharacteristic.length>0?82:-1)}}function J50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",143),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",144)(3,"button",145),e.bIt("click",function(l){return e.eBV(c),e.XpG().unsubscribeModal=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s(),e.joV(),e.j41(6,"span",35),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",148),e.nrm(10,"path",149),e.k0s(),e.joV(),e.j41(11,"p",150),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",151)(15,"button",152),e.bIt("click",function(l){return e.eBV(c),e.XpG().unsubscribeModal=!1,e.Njj(l.stopPropagation())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.unsubscribeProduct())}),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.unsubscribeModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,6,"PRODUCT_INVENTORY._close_modal")),e.R7$(5),e.Lme("",e.bMT(13,8,"PRODUCT_INVENTORY._cancel_sub")," (",c.prodToUnsubscribe.product.name,")"),e.R7$(4),e.SpI(" ",e.bMT(17,10,"PRODUCT_INVENTORY._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(20,12,"PRODUCT_INVENTORY._yes_sure")," ")}}function Q50(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",143),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",144)(3,"button",145),e.bIt("click",function(l){return e.eBV(c),e.XpG().renewModal=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s(),e.joV(),e.j41(6,"span",35),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.qSk(),e.j41(9,"svg",148),e.nrm(10,"path",154),e.k0s(),e.joV(),e.j41(11,"p",150),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",151)(15,"button",152),e.bIt("click",function(l){return e.eBV(c),e.XpG().renewModal=!1,e.Njj(l.stopPropagation())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.renewProduct(l.prodToRenew.id))}),e.EFF(19),e.nI1(20,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.renewModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,6,"PRODUCT_INVENTORY._close_modal")),e.R7$(5),e.Lme("",e.bMT(13,8,"PRODUCT_INVENTORY._renew_sub")," (",c.prodToRenew.product.name,")"),e.R7$(4),e.SpI(" ",e.bMT(17,10,"PRODUCT_INVENTORY._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(20,12,"PRODUCT_INVENTORY._yes_sure")," ")}}function Z50(n,a){if(1&n&&e.nrm(0,"error-message",4),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function K50(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-billing-address",165),e.bIt("selectedEvent",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onBillingSelected(l))}),e.k0s()}if(2&n){const t=a.$index;e.Y8G("data",a.$implicit)("position",t)}}function ec0(n,a){1&n&&(e.j41(0,"p",161),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"BILLING._no_billing")))}function cc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",6)(1,"div",156),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",157)(3,"button",145),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showBillingSelector=!1)}),e.qSk(),e.j41(4,"svg",146),e.nrm(5,"path",147),e.k0s()(),e.joV(),e.j41(6,"h3",158),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",159),e.Z7z(10,K50,1,2,"app-billing-address",160,UL,!1,ec0,3,3,"p",161),e.k0s(),e.j41(13,"div",162)(14,"button",163),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showBillingSelector=!1)}),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"button",164),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmModify())}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(7),e.JRh(e.bMT(8,9,"PRODUCT_INVENTORY._select_billing")),e.R7$(3),e.Dyx(c.billingAddresses),e.R7$(5),e.SpI(" ",e.bMT(16,11,"PRODUCT_INVENTORY._cancel")," "),e.R7$(2),e.AVh("opacity-50",!c.selectedBillingAddress)("cursor-not-allowed",!c.selectedBillingAddress),e.Y8G("disabled",!c.selectedBillingAddress),e.R7$(),e.SpI(" ",e.bMT(19,13,"PRODUCT_INVENTORY._confirm_modify")," ")}}let tc0=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.priceService=u,this.router=C,this.orderService=b,this.eventMessage=T,this.paginationService=W,this.accountService=u1,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.prodId=void 0,this.inventory=[],this.nextInventory=[],this.partyId="",this.loading=!1,this.bgColor=[],this.products=[],this.unsubscribeModal=!1,this.renewModal=!1,this.prices=[],this.filters=["active","created"],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_LIMIT,this.searchField=new p.MJ,this.keywordFilter=void 0,this.selectedResources=[],this.selectedServices=[],this.errorMessage="",this.showError=!1,this.showDetails=!1,this.checkCustom=!1,this.checkFrom=!0,this.destroy$=new S.B,this.isModifyDrawerOpen=!1,this.billingAddresses=[],this.selectedBillingAddress=null,this.showBillingSelector=!1,this.pendingModifyPayload=null,this.searchInputListener=a1=>{console.log("Input updated"),""==this.searchField.value&&(this.keywordFilter=void 0,this.getInventory(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{"ChangedSession"===a1.type&&this.initInventory()})}ngOnInit(){null==this.prodId&&(this.checkFrom=!1),this.initInventory();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}onClick(){1==this.unsubscribeModal&&(this.unsubscribeModal=!1,this.cdr.detectChanges()),1==this.prodToRenew&&(this.prodToRenew=!1,this.cdr.detectChanges())}getProductImage(c){let t=[];if(c?.attachment){let l=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[];t=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[],0!=l.length&&(t=l)}return t.length>0?t?.at(0)?.url:"https://placehold.co/600x400/svg"}goToProductDetails(c){document.querySelector("body > div[modal-backdrop]")?.remove(),console.log("info"),console.log(c),this.router.navigate(["product-inventory",c?.id])}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.keywordFilter,filters:t.filters,partyId:t.partyId};yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.inventory,t.nextInventory,l,t.paginationService.getInventory.bind(t.paginationService)).then(i=>{if(t.page_check=i.page_check,t.inventory=i.items,t.nextInventory=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1,D2(),null!=t.prodId&&t.checkFrom){let u=t.inventory.findIndex(C=>C.id==t.prodId);t.selectProduct(t.inventory[u]),t.checkFrom=!1}})})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),console.log(this.filters),this.filters.push(c)),this.getInventory(!1)}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0;try{yield c.getInventory(!0)}finally{c.loading_more=!1}})()}filterInventoryByKeywords(){this.keywordFilter=this.searchField.value,this.getInventory(!1)}unsubscribeProduct(){var c=this;return(0,C1.A)(function*(){const t=c.prodToUnsubscribe,l={id:t.productOffering.id,action:"delete",productOffering:{id:t.productOffering.id,href:t.productOffering.id},product:{id:t.id,productCharacteristic:[]}};c.unsubscribeModal=!1,yield c.onModifySubmit(l)})()}showUnsubscribeModal(c){this.unsubscribeModal=!0,this.prodToUnsubscribe=c}showRenewModal(c){this.renewModal=!0,this.prodToRenew=c}renewProduct(c){console.log(c)}selectProduct(c){var t=this;return(0,C1.A)(function*(){t.selectedProduct=c,console.log("selecting prod"),console.log(t.selectedProduct),t.selectedResources=[],t.selectedServices=[],console.log("is prod spec undefined?"),console.log(t.selectedProduct.product);let l=yield t.api.getProductSpecification(t.selectedProduct.product.productSpecification.id);if(t.selectedProdSpec=l,null!=l.serviceSpecification)for(let b=0;bl.length>t)}openModifyFromCard(c){var t=this;return(0,C1.A)(function*(){yield t.selectProduct(c),t.showDetails=!1,t.isModifyDrawerOpen=!0})()}onModifySubmit(c){var t=this;return(0,C1.A)(function*(){t.pendingModifyPayload=c,yield t.getBilling(),t.showBillingSelector=!0})()}getBilling(){var c=this;return(0,C1.A)(function*(){c.selectedBillingAddress=null,c.billingAddresses=[];let t=yield c.accountService.getBillingAccount();for(let l=0;l{c.showError=!1},3e3)}c.showBillingSelector=!1})()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(X8),e.rXU(E2.Ix),e.rXU(D8),e.rXU(U2),e.rXU(w6),e.rXU(x0.O))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-products"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prodId:"prodId"},decls:8,vars:13,consts:[["detailsContent",""],["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],["tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[3,"closeDrawer","modifySubmit","mode","productOff","prodSpec","isOpen","inventoryProductId","existingCharacteristics","width"],[1,"backdrop-blur-sm","fixed","inset-0","z-50","flex","justify-center","items-center"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","created","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","created",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","suspended","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","suspended",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","terminated","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-600","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-primary-100",3,"change"],["for","terminated",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"grid","grid-cols-1","place-items-center","sm:grid-cols-2","lg:grid-cols-3","gap-4"],["data-cy","productInventory",1,"w-full","h-full","bg-secondary-50","dark:bg-secondary-100","dark:border-secondary-100","rounded-lg","border-secondary-50","border"],[1,"min-h-19","dark:text-gray-600","text-center","dark:text-gray-400"],[1,"rounded","overflow-hidden","cursor-pointer",3,"click"],[1,"relative","h-48","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"h-5/6","w-5/6","object-contain","z-10","dark:text-white",3,"id","src"],[1,"bg-cover","bg-right-bottom","bg-opacity-25","rounded-lg",2,"background-image","url(assets/logos/dome-logo-element-colour.png)"],[1,"px-5","py-5","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg"],[1,"h-[30px]","overflow-y-hidden","overflow-x-hidden"],[1,"ml-2",3,"category"],[1,"flex","flex-row","justify-between"],[1,"flex","cursor-pointer",3,"click"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"flex","gap-1"],[1,"min-h-19","h-19","line-clamp-2","text-gray-600","dark:text-gray-400",3,"data"],[1,"flex","w-full","justify-between","mt-2.5","mb-5","text-gray-500","font-mono"],[1,"flex","items-center","justify-center","rounded-lg"],[1,"bg-blue-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","modifyInvProduct","type","button",1,"flex","h-fit","text-primary-100","border","border-primary-100","hover:bg-primary-100","hover:text-white","focus:ring-4","focus:outline-none","focus:ring-blue-400","font-medium","rounded-full","text-sm","p-2","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m14.304 4.844 2.852 2.852M7 7H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-4.5m2.409-9.91a2.017 2.017 0 0 1 0 2.853l-6.844 6.844L8 14l.713-3.565 6.844-6.844a2.015 2.015 0 0 1 2.852 0Z"],["role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","rounded-lg","shadow-sm","opacity-0","tooltip","bg-primary-100"],["data-popper-arrow","",1,"tooltip-arrow"],["data-cy","terminateInvProduct","type","button",1,"flex","h-fit","text-red-600","border","border-red-600","hover:bg-red-600","hover:text-white","focus:ring-4","focus:outline-none","focus:ring-red-400","font-medium","rounded-full","text-sm","p-2","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],[1,"bg-blue-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-6","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"w-full","lg:h-fit","bg-secondary-50","rounded-lg","dark:bg-secondary-100","lg:grid","lg:grid-cols-80/20"],[1,"grid","grid-rows-auto","p-4","md:p-8","h-fit"],[1,"mt-2","h-fit"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-white"],[1,"hidden","lg:block","overflow-hidden","rounded-lg","mr-4"],[1,"hidden","lg:flex","relative","justify-center","items-center","w-full","h-full"],[1,"object-contain","overflow-hidden","absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"object-contain","max-h-[350px]","z-10","p-8","dark:text-white",3,"src"],[1,"p-4"],["id","desc-container",1,"w-full","bg-secondary-50/95","dark:bg-secondary-100/95","rounded-lg","p-8","lg:p-12"],["id","details-container"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-4"],[1,"dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","dark:text-primary-50","text-center","pb-8","pt-12"],[1,"bg-secondary-50","dark:bg-secondary-100","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["id","chars-container"],[1,"grid","gap-4","p-2","justify-center","justify-items-center","[grid-template-columns:repeat(auto-fit,minmax(250px,max-content))]"],[1,"inline-flex","items-center","justify-center","w-full"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full","p-4"],[1,"flex","justify-start","mb-2"],[1,"text-gray-900","dark:text-white","text-3xl","font-extrabold","mb-2","break-words",3,"ngClass"],[1,"dark:text-gray-200","w-full","p-4","text-wrap","break-words",3,"ngClass","data"],[1,"mx-auto","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"flex","justify-center","mb-2","p-4","font-normal","text-gray-700"],[1,"mx-auto","bg-white","border","border-gray-200","dark:bg-secondary-200","dark:border-gray-800","rounded-lg","shadow","w-full"],[1,"mx-auto","bg-white","dark:bg-secondary-200","dark:border-gray-800","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full","text-wrap"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full","break-words",3,"ngClass"],[1,"pl-4","pr-4"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"flex","justify-center","mb-4","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","text-wrap","break-words",3,"ngClass"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700","dark:text-white"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-2xl","md:text-3xl","lg:text-4xl","font-extrabold","text-primary-100","text-center","pb-8","pt-12","dark:text-primary-50"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-white","rounded-lg","shadow","dark:bg-gray-800","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","dark:text-gray-500","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-gray-300"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:text-white","dark:hover:bg-gray-600","dark:focus:ring-gray-600",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-600","rounded-lg","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","dark:bg-red-500","dark:hover:bg-red-600","dark:focus:ring-red-900",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m16 10 3-3m0 0-3-3m3 3H5v3m3 4-3 3m0 0 3 3m-3-3h14v-3"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-blue-600","rounded-lg","hover:bg-blue-700","focus:ring-4","focus:outline-none","focus:ring-blue-300","dark:bg-blue-500","dark:hover:bg-blue-600","dark:focus:ring-blue-900",3,"click"],[1,"relative","p-4","w-full","max-w-2xl","max-h-[80vh]","overflow-y-auto",3,"click"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-800","p-6"],[1,"text-xl","font-semibold","text-primary-100","dark:text-white","mb-4"],[1,"grid","grid-cols-1","gap-4","mb-6"],[3,"data","position"],[1,"text-gray-500","dark:text-gray-400","text-center"],[1,"flex","justify-end","gap-4"],["type","button",1,"py-2","px-4","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:text-white","dark:hover:bg-gray-600",3,"click"],["type","button",1,"py-2","px-4","text-sm","font-medium","text-white","bg-green-500","rounded-lg","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300",3,"click","disabled"],[3,"selectedEvent","data","position"]],template:function(t,l){1&t&&(e.j41(0,"div",2),e.DNE(1,w50,45,26)(2,W50,83,50)(3,J50,21,14,"div",3)(4,Q50,21,14,"div",3)(5,Z50,1,1,"error-message",4),e.j41(6,"app-price-plan-drawer",5),e.bIt("closeDrawer",function(){return l.isModifyDrawerOpen=!1})("modifySubmit",function(u){return l.onModifySubmit(u)}),e.k0s(),e.DNE(7,cc0,20,15,"div",6),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1),e.R7$(2),e.vxM(3,l.unsubscribeModal?3:-1),e.R7$(),e.vxM(4,l.renewModal?4:-1),e.R7$(),e.vxM(5,l.showError?5:-1),e.R7$(),e.Y8G("mode","modify")("productOff",l.productOff)("prodSpec",l.selectedProdSpec)("isOpen",l.isModifyDrawerOpen)("inventoryProductId",null==l.selectedProduct?null:l.selectedProduct.id)("existingCharacteristics",(null==l.selectedProduct?null:l.selectedProduct.productCharacteristic)||e.lJ4(12,p50))("width","w-2/3"),e.R7$(),e.vxM(7,l.showBillingSelector?7:-1))},dependencies:[_.YU,J2.aY,N0,cH,XN1,_S1,E0,s1.D9]})}}return n})();const WN1=(n,a)=>a.id,JN1=(n,a)=>({"break-all":n,"break-words":a});function nc0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function lc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43)(2,"a",44),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectResource(l))}),e.EFF(3),e.k0s()(),e.j41(4,"td",45),e.EFF(5),e.k0s(),e.j41(6,"td",46),e.EFF(7),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.nI1(10,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,JN1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.resourceStatus," "),e.R7$(2),e.SpI(" ",e.i5U(10,5,c.startOperatingDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function sc0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",47),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_resources")," "))}function ac0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",52),e.nrm(4,"path",53),e.k0s()()()}}function oc0(n,a){if(1&n&&e.DNE(0,ac0,5,0,"div",50),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function ic0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function rc0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",40),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,lc0,11,11,"tr",41,WN1,!1,sc0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,oc0,1,1)(23,ic0,6,0),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,6,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"PRODUCT_INVENTORY._start_date")," "),e.R7$(3),e.Dyx(c.resources),e.R7$(4),e.vxM(22,c.loading_more?23:22)}}function dc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",6)(7,"div",7)(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"h2",10),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",11),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",12),e.nrm(17,"path",13),e.k0s()(),e.joV(),e.j41(18,"div",14)(19,"h6",15),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",16)(23,"li",17)(24,"input",18),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("standby"))}),e.k0s(),e.j41(25,"label",19),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",17)(29,"input",20),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("alarm"))}),e.k0s(),e.j41(30,"label",21),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",17)(34,"input",22),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("available"))}),e.k0s(),e.j41(35,"label",23),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",17)(39,"input",24),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("reserved"))}),e.k0s(),e.j41(40,"label",25),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"li",17)(44,"input",26),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("suspended"))}),e.k0s(),e.j41(45,"label",27),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.j41(48,"li",17)(49,"input",28),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("unknown"))}),e.k0s(),e.j41(50,"label",29),e.EFF(51),e.nI1(52,"translate"),e.k0s()()()()()()(),e.DNE(53,nc0,6,0,"div",30)(54,rc0,24,14)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,12,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,14,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,16,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,18,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,20,"PRODUCT_INVENTORY._standby")," "),e.R7$(5),e.SpI(" ",e.bMT(32,22,"PRODUCT_INVENTORY._alarm")," "),e.R7$(5),e.SpI(" ",e.bMT(37,24,"PRODUCT_INVENTORY._available")," "),e.R7$(5),e.SpI(" ",e.bMT(42,26,"PRODUCT_INVENTORY._reserved")," "),e.R7$(5),e.SpI(" ",e.bMT(47,28,"PRODUCT_INVENTORY._suspended")," "),e.R7$(5),e.SpI(" ",e.bMT(52,30,"PRODUCT_INVENTORY._unknown")," "),e.R7$(2),e.vxM(53,c.loading?53:54)}}function fc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function uc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function mc0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"div",75)(2,"h3",76),e.EFF(3),e.k0s(),e.j41(4,"div",77),e.nrm(5,"input",78),e.DNE(6,fc0,2,2,"label",79)(7,uc0,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function pc0(n,a){1&n&&(e.j41(0,"div",74)(1,"div",80),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",81),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function hc0(n,a){if(1&n&&(e.j41(0,"div",69,0)(2,"h2",70),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",71)(6,"div",72),e.Z7z(7,mc0,8,2,"div",73,WN1,!1,pc0,9,3,"div",74),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._res_details")),e.R7$(4),e.Dyx(c.selectedRes.resourceCharacteristic)}}function gc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",55)(2,"nav",56)(3,"ol",57)(4,"li",58)(5,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",60),e.nrm(7,"path",61),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",62)(11,"div",17),e.qSk(),e.j41(12,"svg",63),e.nrm(13,"path",64),e.k0s(),e.joV(),e.j41(14,"span",65),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",66)(18,"h2",67),e.EFF(19),e.k0s(),e.nrm(20,"markdown",68),e.nI1(21,"translate"),e.DNE(22,hc0,10,4,"div",69),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,6,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"PRODUCT_INVENTORY._res_details")),e.R7$(4),e.JRh(c.selectedRes.name),e.R7$(),e.Y8G("ngClass",e.l_i(12,JN1,c.hasLongWord(c.selectedRes.description,20),!c.hasLongWord(c.selectedRes.description,20)))("data",c.selectedRes.description?c.selectedRes.description:e.bMT(21,10,"CATALOGS._no_desc")),e.R7$(2),e.vxM(22,null!=c.selectedRes.resourceCharacteristic&&c.selectedRes.resourceCharacteristic.length>0?22:-1)}}let _c0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.router=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.resourceId=void 0,this.prodId=void 0,this.partyId="",this.loading=!1,this.resources=[],this.nextResources=[],this.status=[],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_RES_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initInventory()})}ngOnInit(){null!=this.resourceId&&this.api.getResourceSpec(this.resourceId).then(c=>{this.selectResource(c),console.log("entre"),console.log(c)}),this.initInventory()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={partyId:t.partyId,filters:t.status};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.resources,t.nextResources,l,t.inventoryService.getResourceInventory.bind(t.inventoryService));t.page_check=i.page_check,t.resources=i.items,t.nextResources=i.nextItems,t.page=i.page,console.log(t.resources)}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getInventory(!0)})()}selectResource(c){this.selectedRes=c,this.showDetails=!0}back(){null!=this.prodId?(this.eventMessage.emitOpenProductInvDetails(this.prodId),this.showDetails=!1):this.showDetails=!1}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getInventory(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-resources"]],inputs:{resourceId:"resourceId",prodId:"prodId"},decls:3,vars:1,consts:[["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","standby","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","standby",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","alarm","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","alarm",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","available","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","available",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","reserved","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","reserved",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","suspended","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","suspended",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","unknown","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","unknown",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-4","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"p-4"],[1,"text-2xl","font-extrabold","text-primary-100","text-center","dark:text-primary-50","pb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900","pb-4","text-center",3,"ngClass","data"],["id","chars-container"],[1,"text-xl","font-bold","dark:text-white","pb-4","px-4"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"]],template:function(t,l){1&t&&(e.j41(0,"div",1),e.DNE(1,dc0,55,32)(2,gc0,23,15),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[_.YU,J2.aY,N0,_.vh,s1.D9]})}}return n})();const QN1=(n,a)=>a.id,ZN1=(n,a)=>({"break-all":n,"break-words":a});function Lc0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Cc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43)(2,"a",44),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.selectService(l))}),e.EFF(3),e.k0s()(),e.j41(4,"td",45),e.EFF(5),e.k0s(),e.j41(6,"td",46),e.EFF(7),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.nI1(10,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(3),e.JRh(c.id),e.R7$(),e.Y8G("ngClass",e.l_i(8,ZN1,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.state," "),e.R7$(2),e.SpI(" ",e.i5U(10,5,c.startDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function zc0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",47),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PRODUCT_INVENTORY._no_services")," "))}function Mc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",50)(1,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",52),e.nrm(4,"path",53),e.k0s()()()}}function xc0(n,a){if(1&n&&e.DNE(0,Mc0,5,0,"div",50),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function bc0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function yc0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",40),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,Cc0,11,11,"tr",41,QN1,!1,zc0,7,3,"div",42),e.k0s()()(),e.j41(21,"div"),e.DNE(22,xc0,1,1)(23,bc0,6,0),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,6,"PRODUCT_INVENTORY._id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"PRODUCT_INVENTORY._start_date")," "),e.R7$(3),e.Dyx(c.services),e.R7$(4),e.vxM(22,c.loading_more?23:22)}}function Fc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),e.EFF(4),e.nI1(5,"translate"),e.k0s()()(),e.j41(6,"div",6)(7,"div",7)(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"h2",10),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"button",11),e.EFF(14),e.nI1(15,"translate"),e.qSk(),e.j41(16,"svg",12),e.nrm(17,"path",13),e.k0s()(),e.joV(),e.j41(18,"div",14)(19,"h6",15),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"ul",16)(23,"li",17)(24,"input",18),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("feasibilityChecked"))}),e.k0s(),e.j41(25,"label",19),e.EFF(26),e.nI1(27,"translate"),e.k0s()(),e.j41(28,"li",17)(29,"input",20),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("designed"))}),e.k0s(),e.j41(30,"label",21),e.EFF(31),e.nI1(32,"translate"),e.k0s()(),e.j41(33,"li",17)(34,"input",22),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("reserved"))}),e.k0s(),e.j41(35,"label",23),e.EFF(36),e.nI1(37,"translate"),e.k0s()(),e.j41(38,"li",17)(39,"input",24),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("inactive"))}),e.k0s(),e.j41(40,"label",25),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"li",17)(44,"input",26),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("active"))}),e.k0s(),e.j41(45,"label",27),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.j41(48,"li",17)(49,"input",28),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onStateFilterChange("terminated"))}),e.k0s(),e.j41(50,"label",29),e.EFF(51),e.nI1(52,"translate"),e.k0s()()()()()()(),e.DNE(53,Lc0,6,0,"div",30)(54,yc0,24,14)}if(2&n){const c=e.XpG();e.R7$(4),e.JRh(e.bMT(5,12,"PRODUCT_INVENTORY._search_criteria")),e.R7$(5),e.Y8G("icon",c.faSwatchbook),e.R7$(2),e.JRh(e.bMT(12,14,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(15,16,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(21,18,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(27,20,"PRODUCT_INVENTORY._feasibility")," "),e.R7$(5),e.SpI(" ",e.bMT(32,22,"PRODUCT_INVENTORY._designed")," "),e.R7$(5),e.SpI(" ",e.bMT(37,24,"PRODUCT_INVENTORY._reserved")," "),e.R7$(5),e.SpI(" ",e.bMT(42,26,"PRODUCT_INVENTORY._inactive")," "),e.R7$(5),e.SpI(" ",e.bMT(47,28,"PRODUCT_INVENTORY._active")," "),e.R7$(5),e.SpI(" ",e.bMT(52,30,"PRODUCT_INVENTORY._terminated")," "),e.R7$(2),e.vxM(53,c.loading?53:54)}}function vc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function kc0(n,a){if(1&n&&(e.j41(0,"label",79),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.E5c("",c.valueFrom," - ",c.valueTo," (",null==c?null:c.unitOfMeasure,")")}}function wc0(n,a){if(1&n&&(e.j41(0,"div",73)(1,"div",75)(2,"h3",76),e.EFF(3),e.k0s(),e.j41(4,"div",77),e.nrm(5,"input",78),e.DNE(6,vc0,2,2,"label",79)(7,kc0,2,3),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(3),e.JRh(c.name),e.R7$(3),e.vxM(6,c.value?6:7)}}function Sc0(n,a){1&n&&(e.j41(0,"div",74)(1,"div",80),e.qSk(),e.j41(2,"svg",48),e.nrm(3,"path",49),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Info"),e.k0s(),e.j41(6,"p",81),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"PRODUCT_DETAILS._no_chars")," "))}function Nc0(n,a){if(1&n&&(e.j41(0,"div",69,0)(2,"h2",70),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",71)(6,"div",72),e.Z7z(7,wc0,8,2,"div",73,QN1,!1,Sc0,9,3,"div",74),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,2,"PRODUCT_INVENTORY._serv_chars")),e.R7$(4),e.Dyx(c.selectedServ.serviceCharacteristic)}}function Ec0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",55)(2,"nav",56)(3,"ol",57)(4,"li",58)(5,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.back())}),e.qSk(),e.j41(6,"svg",60),e.nrm(7,"path",61),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",62)(11,"div",17),e.qSk(),e.j41(12,"svg",63),e.nrm(13,"path",64),e.k0s(),e.joV(),e.j41(14,"span",65),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",66)(18,"h2",67),e.EFF(19),e.k0s(),e.nrm(20,"markdown",68),e.nI1(21,"translate"),e.DNE(22,Nc0,10,4,"div",69),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",e.bMT(9,6,"PRODUCT_DETAILS._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"PRODUCT_INVENTORY._serv_details")),e.R7$(4),e.JRh(c.selectedServ.name),e.R7$(),e.Y8G("ngClass",e.l_i(12,ZN1,c.hasLongWord(c.selectedServ.description,20),!c.hasLongWord(c.selectedServ.description,20)))("data",c.selectedServ.description?c.selectedServ.description:e.bMT(21,10,"CATALOGS._no_desc")),e.R7$(2),e.vxM(22,null!=c.selectedServ.serviceCharacteristic&&c.selectedServ.serviceCharacteristic.length>0?22:-1)}}let Dc0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.inventoryService=c,this.localStorage=t,this.api=l,this.cdr=i,this.router=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.serviceId=void 0,this.prodId=void 0,this.partyId="",this.loading=!1,this.services=[],this.nextServices=[],this.status=[],this.loading_more=!1,this.page_check=!0,this.page=0,this.INVENTORY_LIMIT=g1.c.INVENTORY_SERV_LIMIT,this.showDetails=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initInventory()})}ngOnInit(){null!=this.serviceId&&this.api.getServiceSpec(this.serviceId).then(c=>{this.selectService(c)}),this.initInventory()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initInventory(){this.loading=!0;let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getInventory(!1)}D2()}getInventory(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={partyId:t.partyId,filters:t.status};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.INVENTORY_LIMIT,c,t.services,t.nextServices,l,t.inventoryService.getServiceInventory.bind(t.inventoryService));t.page_check=i.page_check,t.services=i.items,t.nextServices=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getInventory(!0)})()}selectService(c){this.selectedServ=c,this.showDetails=!0}back(){null!=this.prodId?(this.eventMessage.emitOpenProductInvDetails(this.prodId),this.showDetails=!1):this.showDetails=!1}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getInventory(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(f8),e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["inventory-services"]],inputs:{serviceId:"serviceId",prodId:"prodId"},decls:3,vars:1,consts:[["charsContent",""],[1,"flex","flex-col","p-4","justify-end"],[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-xl","font-bold","dark:text-white"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","feasibilityChecked","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","feasibilityChecked",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","designed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","designed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","reserved","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","reserved",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","inactive","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","inactive",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","active","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","terminated","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100",3,"change"],["for","terminated",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-all","w-1/2","md:w-1/4"],[1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"px-6","py-4","text-wrap","break-words","w-1/2","md:w-1/4",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","md:w-1/4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-4","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"p-4"],[1,"text-2xl","font-extrabold","text-primary-100","text-center","dark:text-primary-50","pb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900","pb-4","text-center",3,"ngClass","data"],["id","chars-container"],[1,"text-xl","font-bold","dark:text-white","pb-4","px-4"],[1,"container","mx-auto","px-4"],[1,"flex","flex-wrap","-mx-4"],[1,"w-full","md:w-1/2","lg:w-1/3","px-4","mb-8"],[1,"flex","justify-center","items-center","w-full"],[1,"border","border-gray-200","rounded-lg","shadow","bg-white","dark:bg-secondary-200","dark:border-gray-800","shadow-md","p-8","h-full"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","items-center","pl-4"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","dark:bg-gray-600","dark:border-gray-800","rounded-full","focus:ring-blue-500","focus:ring-2"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-gray-200","dark:bg-secondary-200","dark:border-gray-800","text-wrap","break-all"],["role","alert",1,"flex","items-center","w-1/2","p-4","mb-4","text-sm","text-primary-100","rounded-lg","bg-white","border","border-gray-200","shadow-md","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-center"]],template:function(t,l){1&t&&(e.j41(0,"div",1),e.DNE(1,Fc0,55,32)(2,Ec0,23,15),e.k0s()),2&t&&(e.R7$(),e.vxM(1,l.showDetails?2:1))},dependencies:[_.YU,J2.aY,N0,_.vh,s1.D9]})}}return n})();function Tc0(n,a){if(1&n&&e.nrm(0,"inventory-products",19),2&n){const c=e.XpG();e.Y8G("prodId",c.openProdId)}}function Rc0(n,a){if(1&n&&e.nrm(0,"inventory-services",20),2&n){const c=e.XpG();e.Y8G("serviceId",c.openServiceId)("prodId",c.openProdId)}}function Ac0(n,a){if(1&n&&e.nrm(0,"inventory-resources",21),2&n){const c=e.XpG();e.Y8G("resourceId",c.openResourceId)("prodId",c.openProdId)}}let Ic0=(()=>{class n{constructor(c,t){this.cdr=c,this.eventMessage=t,this.show_prods=!0,this.show_serv=!1,this.show_res=!1,this.show_orders=!1,this.openServiceId=void 0,this.openResourceId=void 0,this.openProdId=void 0,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(l=>{"OpenServiceDetails"===l.type&&(this.openServiceId=l.value?.serviceId,this.openProdId=l.value?.prodId,this.getServices()),"OpenResourceDetails"===l.type&&(this.openResourceId=l.value?.resourceId,this.openProdId=l.value?.prodId,this.getResources()),"OpenProductInvDetails"===l.type&&(this.openProdId=l.value,this.goToOffers())})}ngOnInit(){D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){D2()}goToOffers(){D2(),this.selectProd(),this.show_serv=!1,this.show_res=!1,this.show_orders=!1,this.show_prods=!0}getServices(){this.selectServ(),this.show_orders=!1,this.show_prods=!1,this.show_res=!1,this.show_serv=!0,this.cdr.detectChanges(),D2()}getResources(){this.selectRes(),this.show_orders=!1,this.show_prods=!1,this.show_serv=!1,this.show_res=!0,this.cdr.detectChanges(),D2()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectProd(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectServ(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectRes(){let c=document.getElementById("prod-button"),t=document.getElementById("serv-button"),l=document.getElementById("res-button"),i=document.getElementById("order-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-product-inventory"]],decls:44,vars:24,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],["data-cy","inventoryProducts",1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["data-cy","inventoryProducts","id","prod-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","inventoryServices","id","serv-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","inventoryResources","id","res-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"prodId"],[3,"serviceId","prodId"],[3,"resourceId","prodId"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3,"My inventory"),e.k0s()(),e.j41(4,"div",3)(5,"h1",4)(6,"span",2),e.EFF(7,"My inventory"),e.k0s()(),e.j41(8,"div",5)(9,"button",6),e.qSk(),e.j41(10,"svg",7),e.nrm(11,"path",8),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.joV(),e.j41(14,"div",9)(15,"ul",10)(16,"li")(17,"a",11),e.bIt("click",function(){return l.goToOffers()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"li")(21,"a",12),e.bIt("click",function(){return l.getServices()}),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"li")(25,"a",12),e.bIt("click",function(){return l.getResources()}),e.EFF(26),e.nI1(27,"translate"),e.k0s()()()(),e.j41(28,"div",13)(29,"div",14)(30,"div",15)(31,"button",16),e.bIt("click",function(){return l.goToOffers()}),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"button",17),e.bIt("click",function(){return l.getServices()}),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.j41(37,"button",18),e.bIt("click",function(){return l.getResources()}),e.EFF(38),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div"),e.DNE(41,Tc0,1,1,"inventory-products",19)(42,Rc0,1,2,"inventory-services",20)(43,Ac0,1,2,"inventory-resources",21),e.k0s()()()),2&t&&(e.R7$(12),e.SpI(" ",e.bMT(13,10,"PRODUCT_INVENTORY._inventory")," "),e.R7$(6),e.JRh(e.bMT(19,12,"PRODUCT_INVENTORY._products")),e.R7$(4),e.JRh(e.bMT(23,14,"PRODUCT_INVENTORY._services")),e.R7$(4),e.JRh(e.bMT(27,16,"PRODUCT_INVENTORY._resources")),e.R7$(6),e.SpI(" ",e.bMT(33,18,"PRODUCT_INVENTORY._products")," "),e.R7$(3),e.SpI(" ",e.bMT(36,20,"PRODUCT_INVENTORY._services")," "),e.R7$(3),e.SpI(" ",e.bMT(39,22,"PRODUCT_INVENTORY._resources")," "),e.R7$(3),e.vxM(41,l.show_prods?41:-1),e.R7$(),e.vxM(42,l.show_serv?42:-1),e.R7$(),e.vxM(43,l.show_res?43:-1))},dependencies:[tc0,_c0,Dc0,s1.D9]})}}return n})();const Pc0=["confirmModal"],jc0=["noteContainer"],KN1=(n,a)=>a.id,$c0=n=>({"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50 group":n}),Oc0=(n,a)=>({"translate-x-0":n,"translate-x-full":a}),Bc0=(n,a)=>({"justify-end":n,"justify-start":a}),Vc0=(n,a)=>({"bg-blue-200 text-blue-900":n,"bg-gray-200 text-gray-800":a});function Uc0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",4)(1,"a",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onRoleChange(l.sellerRole))}),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",60),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,$c0,c.role==c.sellerRole)),e.R7$(),e.Y8G("ngClass",c.role!==c.sellerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 dark:text-primary-50"),e.R7$(2),e.SpI(" ",e.bMT(5,3,"PRODUCT_ORDERS._as_provider")," ")}}function Gc0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.actionFilters.join(", ")," ")}}function Hc0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_action")," ")}function Yc0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.filters.join(", ")," ")}}function qc0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"PRODUCT_ORDERS._filter_state")," ")}function Xc0(n,a){1&n&&(e.j41(0,"div",44),e.qSk(),e.j41(1,"svg",61),e.nrm(2,"path",62)(3,"path",63),e.k0s(),e.joV(),e.j41(4,"span",64),e.EFF(5,"Loading..."),e.k0s()())}function Wc0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Jc0(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Qc0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Zc0(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Kc0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function e70(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function c70(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function t70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function n70(n,a){1&n&&(e.qSk(),e.j41(0,"svg",84),e.nrm(1,"path",90),e.k0s())}function l70(n,a){1&n&&(e.qSk(),e.j41(0,"svg",91),e.nrm(1,"path",92),e.k0s())}function s70(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",72)(1,"td",74)(2,"span",75),e.EFF(3),e.k0s()(),e.j41(4,"td",76),e.DNE(5,Wc0,2,1,"span",77)(6,Jc0,2,1)(7,Qc0,2,1)(8,Zc0,2,1)(9,Kc0,2,1)(10,e70,2,1)(11,c70,2,1)(12,t70,2,0),e.k0s(),e.j41(13,"td",74),e.EFF(14),e.k0s(),e.j41(15,"td",76),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"td",76)(19,"button",78),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(20,"svg",79)(21,"g",80),e.nrm(22,"path",81)(23,"path",82),e.k0s()()(),e.joV(),e.j41(24,"button",83),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleDrawer(i),e.Njj(l.stopPropagation())}),e.DNE(25,n70,2,0,":svg:svg",84)(26,l70,2,0),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("title",c.id),e.R7$(),e.SpI("...",c.id.slice(-6),""),e.R7$(2),e.vxM(5,"inProgress"==c.state?5:"completed"===c.state?6:"partial"===c.state?7:"failed"===c.state?8:"pending"===c.state?9:"acknowledged"===c.state?10:"cancelled"===c.state||"cancelled"===c.state?11:12),e.R7$(9),e.SpI(" ",c.billingAccount.name," "),e.R7$(2),e.SpI(" ",e.i5U(17,6,null==c?null:c.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(9),e.vxM(25,t.hasNotes(c)?25:26)}}function a70(n,a){1&n&&(e.j41(0,"div",73)(1,"span",93),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function o70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",94)(1,"button",95),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",96),e.nrm(4,"path",97),e.k0s()()()}}function i70(n,a){if(1&n&&e.DNE(0,o70,5,0,"div",94),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function r70(n,a){1&n&&(e.j41(0,"div",98),e.qSk(),e.j41(1,"svg",61),e.nrm(2,"path",62)(3,"path",63),e.k0s(),e.joV(),e.j41(4,"span",64),e.EFF(5,"Loading..."),e.k0s()())}function d70(n,a){if(1&n&&(e.j41(0,"div",65)(1,"div",66)(2,"table",67)(3,"thead",68)(4,"tr")(5,"th",69),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",70),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",69),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",70),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",71),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody"),e.Z7z(21,s70,27,9,"tr",72,KN1),e.k0s()(),e.DNE(23,a70,4,3,"div",73),e.k0s(),e.DNE(24,i70,1,1)(25,r70,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"PRODUCT_INVENTORY._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"PRODUCT_INVENTORY._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"PRODUCT_ORDERS._date")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"PRODUCT_ORDERS._actions")," "),e.R7$(3),e.Dyx(c.orders),e.R7$(2),e.vxM(23,0==c.orders.length?23:-1),e.R7$(),e.vxM(24,c.loading_more?25:24)}}function f70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function u70(n,a){if(1&n&&(e.j41(0,"span",120),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function m70(n,a){if(1&n&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function p70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function h70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function g70(n,a){if(1&n&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function _70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function L70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function C70(n,a){if(1&n&&(e.j41(0,"td",76),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2).$implicit;e.R7$(),e.SpI(" ",null!==(c=t.productOfferingPrice.name)&&void 0!==c?c:"Custom"," ")}}function z70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" Bundled price plan: ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.name," ")}}function M70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.unitOfMeasure?null:c.productOfferingPrice.unitOfMeasure.units," ")}}function x70(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(4).$implicit;e.SpI(" / ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.recurringChargePeriodType," ")}}function b70(n,a){if(1&n&&(e.EFF(0),e.DNE(1,M70,1,1)(2,x70,1,1)),2&n){const c=e.XpG(3).$implicit;e.Lme(" ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.price?null:c.productOfferingPrice.price.value," ",null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.price?null:c.productOfferingPrice.price.unit," "),e.R7$(),e.vxM(1,null!=c&&null!=c.productOfferingPrice&&c.productOfferingPrice.unitOfMeasure?1:-1),e.R7$(),e.vxM(2,null!=c&&null!=c.productOfferingPrice&&c.productOfferingPrice.recurringChargePeriodType?2:-1)}}function y70(n,a){if(1&n&&(e.j41(0,"td",76),e.DNE(1,z70,1,1)(2,b70,3,4),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.vxM(1,(null==c||null==c.productOfferingPrice||null==c.productOfferingPrice.bundledPopRelationship?null:c.productOfferingPrice.bundledPopRelationship.length)>1?1:2)}}function F70(n,a){if(1&n&&e.DNE(0,C70,2,1,"td",76)(1,y70,3,1),2&n){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function v70(n,a){1&n&&(e.j41(0,"td",76),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function k70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function w70(n,a){if(1&n&&(e.j41(0,"span",121),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function S70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function N70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function E70(n,a){if(1&n&&(e.j41(0,"span",124),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function D70(n,a){if(1&n&&(e.j41(0,"span",122),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.state)}}function T70(n,a){1&n&&(e.j41(0,"span",89),e.EFF(1,"Unchecked"),e.k0s())}function R70(n,a){if(1&n&&(e.j41(0,"span",111),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function A70(n,a){if(1&n&&(e.j41(0,"span",128),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function I70(n,a){if(1&n&&(e.j41(0,"span",123),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productOrderItem.action)}}function P70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.openModal("acknowledged",l))}),e.qSk(),e.j41(1,"svg",130),e.nrm(2,"path",131),e.k0s()(),e.joV(),e.j41(3,"button",132),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.openModal("cancelled",l))}),e.qSk(),e.j41(4,"svg",133),e.nrm(5,"path",134),e.k0s()()}}function j70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",136),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("inProgress",l))}),e.qSk(),e.j41(1,"svg",137),e.nrm(2,"path",138)(3,"path",139),e.k0s()()}}function $70(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("completed",l))}),e.qSk(),e.j41(1,"svg",141),e.nrm(2,"path",142),e.k0s()(),e.joV(),e.j41(3,"button",143),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4).$implicit,i=e.XpG(2);return e.Njj(i.openModal("failed",l))}),e.qSk(),e.j41(4,"svg",141),e.nrm(5,"path",144),e.k0s()()}}function O70(n,a){if(1&n&&e.DNE(0,j70,4,0,"button",135)(1,$70,6,0),2&n){const c=e.XpG(3).$implicit;e.vxM(0,"acknowledged"===c.productOrderItem.state?0:"inProgress"===c.productOrderItem.state?1:-1)}}function B70(n,a){1&n&&(e.j41(0,"td",127),e.EFF(1," n/a "),e.k0s())}function V70(n,a){if(1&n&&e.DNE(0,O70,2,1)(1,B70,2,0),2&n){const c=e.XpG(4);e.vxM(0,c.role==c.sellerRole?0:1)}}function U70(n,a){if(1&n&&e.DNE(0,P70,6,0)(1,V70,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG(2);e.vxM(0,c.productOrderItem.state||t.role!=t.sellerRole?1:0)}}function G70(n,a){if(1&n&&(e.j41(0,"tr",119)(1,"td",125),e.nrm(2,"img",126),e.k0s(),e.j41(3,"td",76),e.EFF(4),e.k0s(),e.DNE(5,F70,2,1)(6,v70,3,3),e.j41(7,"td",76),e.DNE(8,k70,2,1,"span",111)(9,w70,2,1)(10,S70,2,1)(11,N70,2,1)(12,E70,2,1)(13,D70,2,1)(14,T70,2,0),e.k0s(),e.j41(15,"td",76),e.DNE(16,R70,2,1,"span",111)(17,A70,2,1)(18,I70,2,1),e.k0s(),e.j41(19,"td",127),e.DNE(20,U70,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("src",t.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6),e.R7$(3),e.vxM(8,"inProgress"===c.productOrderItem.state?8:"completed"===c.productOrderItem.state?9:"failed"===c.productOrderItem.state?10:"pending"===c.productOrderItem.state?11:"acknowledged"===c.productOrderItem.state?12:"cancelled"===c.productOrderItem.state||"cancelled"===c.productOrderItem.state?13:14),e.R7$(8),e.vxM(16,"add"===c.productOrderItem.action?16:"delete"===c.productOrderItem.action?17:"modify"===c.productOrderItem.action?18:-1),e.R7$(4),e.vxM(20,t.hasProcurementAutomaticTerm(c)?-1:20)}}function H70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",45)(1,"div",99),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",100)(3,"h2",101),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",102),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showOrderDetails=!1)}),e.qSk(),e.j41(7,"svg",103),e.nrm(8,"path",104),e.k0s(),e.joV(),e.j41(9,"span",64),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",105)(13,"div",106)(14,"div",107)(15,"p",108),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"h3",109),e.EFF(19),e.k0s()(),e.j41(20,"div",110)(21,"p",108),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,f70,2,1,"span",111)(25,u70,2,1)(26,m70,2,1)(27,p70,2,1)(28,h70,2,1)(29,g70,2,1)(30,_70,2,1)(31,L70,2,0),e.k0s(),e.j41(32,"div",107)(33,"p",108),e.EFF(34," Date "),e.k0s(),e.j41(35,"h3",109),e.EFF(36),e.nI1(37,"date"),e.k0s()(),e.j41(38,"div",112)(39,"p",108),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",113)(43,"p",108),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.j41(46,"h3",109),e.EFF(47),e.nI1(48,"async"),e.k0s()(),e.j41(49,"div",114)(50,"p",108),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"h3",109),e.EFF(54),e.k0s()(),e.j41(55,"div",114)(56,"p",108),e.EFF(57),e.nI1(58,"translate"),e.k0s(),e.j41(59,"h3",109),e.EFF(60),e.k0s()(),e.j41(61,"div",107)(62,"a",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToCustomerDeatils())}),e.EFF(63),e.nI1(64,"translate"),e.k0s()(),e.j41(65,"table",116)(66,"thead",117)(67,"tr")(68,"th",70),e.EFF(69),e.nI1(70,"translate"),e.k0s(),e.j41(71,"th",70),e.EFF(72),e.nI1(73,"translate"),e.k0s(),e.j41(74,"th",70),e.EFF(75),e.nI1(76,"translate"),e.k0s(),e.j41(77,"th",70),e.EFF(78),e.nI1(79,"translate"),e.k0s(),e.j41(80,"th",70),e.EFF(81),e.nI1(82,"translate"),e.k0s(),e.j41(83,"th",70),e.EFF(84),e.nI1(85,"translate"),e.k0s()()(),e.j41(86,"tbody",118),e.Z7z(87,G70,21,6,"tr",119,KN1),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showOrderDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,25,"PRODUCT_ORDERS._order_details")),e.R7$(6),e.JRh(e.bMT(11,27,"CARD._close")),e.R7$(6),e.SpI(" ",e.bMT(17,29,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",c.orderToShow.id," "),e.R7$(3),e.SpI(" ",e.bMT(23,31,"PRODUCT_INVENTORY._state")," "),e.R7$(2),e.vxM(24,"inProgress"===c.orderToShow.state?24:"partial"===c.orderToShow.state?25:"completed"===c.orderToShow.state?26:"failed"===c.orderToShow.state?27:"pending"===c.orderToShow.state?28:"acknowledged"===c.orderToShow.state?29:"cancelled"===c.orderToShow.state||"cancelled"===c.orderToShow.state?30:31),e.R7$(12),e.SpI(" ",e.i5U(37,33,null==c.orderToShow?null:c.orderToShow.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(4),e.SpI(" ",e.bMT(41,36,"PRODUCT_ORDERS._customer_info")," "),e.R7$(4),e.SpI(" ",e.bMT(45,38,"PRODUCT_ORDERS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(48,40,c.customerName$)," "),e.R7$(4),e.SpI(" ",e.bMT(52,42,"PRODUCT_ORDERS._billing_address")," "),e.R7$(3),e.LHq(" ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.city,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.street1,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.country," (",c.orderToShow.billingAccount.name,") "),e.R7$(3),e.SpI(" ",e.bMT(58,44,"PRODUCT_ORDERS._email")," "),e.R7$(3),e.SpI(" ",c.orderToShow.billingAccount.contact[0].contactMedium[0].characteristic.emailAddress," "),e.R7$(3),e.SpI(" ",e.bMT(64,46,"PRODUCT_ORDERS._show_customer_details")," "),e.R7$(6),e.SpI(" ",e.bMT(70,48,"PRODUCT_ORDERS._img")," "),e.R7$(3),e.SpI(" ",e.bMT(73,50,"PRODUCT_ORDERS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(76,52,"PRODUCT_ORDERS._price_plan")," "),e.R7$(3),e.SpI(" ",e.bMT(79,54,"PRODUCT_ORDERS._state")," "),e.R7$(3),e.SpI(" ",e.bMT(82,56,"PRODUCT_ORDERS._items_action")," "),e.R7$(3),e.SpI(" ",e.bMT(85,58,"PRODUCT_ORDERS._actions")," "),e.R7$(3),e.Dyx(c.orderToShow.productOrderItems)}}function Y70(n,a){1&n&&(e.j41(0,"div",159),e.nrm(1,"div",160),e.j41(2,"p",161),e.EFF(3,"Loading notes..."),e.k0s()())}function q70(n,a){1&n&&(e.j41(0,"div",165)(1,"p"),e.EFF(2,"No notes in this order."),e.k0s()())}function X70(n,a){if(1&n&&(e.qex(0),e.EFF(1),e.nI1(2,"async"),e.bVm()),2&n){const c=e.XpG().$implicit,t=e.XpG(3);e.R7$(),e.SpI(" ",e.bMT(2,1,t.getUsername(c.author))," ")}}function W70(n,a){if(1&n&&(e.j41(0,"div",166)(1,"div",167)(2,"p",168),e.EFF(3),e.k0s(),e.j41(4,"span",169),e.EFF(5),e.nI1(6,"date"),e.DNE(7,X70,3,3,"ng-container",170),e.k0s()()()),2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",e.l_i(9,Bc0,c.author===t.partyId,c.author!==t.partyId)),e.R7$(),e.Y8G("ngClass",e.l_i(12,Vc0,c.author===t.partyId,c.author!==t.partyId)),e.R7$(2),e.JRh(c.text),e.R7$(2),e.Lme(" ",c.author===t.partyId?t.currentUser:t.userCache.get(c.author)||"Loading..."," - ",e.i5U(6,6,c.date,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(2),e.Y8G("ngIf",!t.userCache.has(c.author))}}function J70(n,a){if(1&n&&(e.j41(0,"div",162,1),e.DNE(2,q70,3,0,"div",163)(3,W70,8,15,"div",164),e.k0s()),2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("ngIf",0===(null==c.selectedOrder?null:c.selectedOrder.note.length)),e.R7$(),e.Y8G("ngForOf",null==c.selectedOrder?null:c.selectedOrder.note)}}function Q70(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",145),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s(),e.j41(1,"div",146)(2,"div",147)(3,"h5",148),e.qSk(),e.j41(4,"svg",149),e.nrm(5,"path",150),e.k0s(),e.EFF(6," Order Notes "),e.k0s(),e.joV(),e.j41(7,"button",151),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.qSk(),e.j41(8,"svg",152),e.nrm(9,"path",104),e.k0s()()(),e.DNE(10,Y70,4,0,"div",153)(11,J70,4,2,"div",154),e.joV(),e.j41(12,"div",155)(13,"div",156)(14,"textarea",157),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG();return e.DH7(i.newNoteText,l)||(i.newNoteText=l),e.Njj(l)}),e.bIt("keyup.enter",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addNote())}),e.k0s(),e.j41(15,"button",158),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addNote())}),e.EFF(16),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(5,Oc0,c.isDrawerOpen,!c.isDrawerOpen)),e.R7$(9),e.Y8G("ngIf",c.isLoading),e.R7$(),e.Y8G("ngIf",!c.isLoading),e.R7$(3),e.R50("ngModel",c.newNoteText),e.R7$(2),e.SpI(" ",c.isUpdating?"Saving...":"Send"," ")}}function Z70(n,a){if(1&n&&(e.j41(0,"div",57)(1,"div",171)(2,"div",19),e.qSk(),e.j41(3,"svg",172),e.nrm(4,"path",173),e.k0s(),e.joV(),e.j41(5,"h3",174),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",175),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let K70=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.localStorage=c,this.api=t,this.cdr=l,this.router=i,this.accountService=u,this.orderService=C,this.eventMessage=b,this.paginationService=T,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.showError=!1,this.errorMessage="",this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.actionFilters=[],this.check_custom=!1,this.buyerRole=g1.c.BUYER_ROLE,this.sellerRole=g1.c.SELLER_ROLE,this.isSeller=!1,this.role=this.buyerRole,this.actionType="",this.selectedItem=null,this.isDrawerOpen=!1,this.drawerInstance=null,this.selectedOrder=null,this.newNoteText="",this.isLoading=!1,this.isUpdating=!1,this.userCache=new Map,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.JSON=JSON,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(W=>{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}openModal(c,t){this.actionType=c,this.selectedItem=t,this.modalInstance?this.modalInstance.show():console.error("Modal instance is not initialized!")}closeModal(){this.modalInstance&&this.modalInstance.hide()}handleError(c){this.errorMessage=c,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}confirmAction(){var c=this;return(0,C1.A)(function*(){return c.updateLifecycle(c.actionType,c.selectedItem)})()}updateLifecycle(c,t){var l=this;return(0,C1.A)(function*(){if(!l.orderToShow)return void console.error("No order selected! Is this possible?");console.log("Transitioning to...",c,t),l.selectedItem=t;const i=l.selectedItem.productOrderItem.state;try{l.selectedItem.productOrderItem.state=c;const u={productOrderItem:l.orderToShow.productOrderItem},C=yield l.orderService.updateOrder(l.orderToShow.id,u);console.log("Order state updated successfully:",C),l.orderToShow.state=C.state}catch(u){l.selectedItem.productOrderItem.state=i,l.handleError("Error updating order state"),console.error("Error updating order:",u)}try{const u={text:`Order state updated to ${c}`,id:`urn:ngsi-ld:note:${L4()}`,author:l.partyId,date:(new Date).toISOString()};l.orderToShow.note||(l.orderToShow.note=[]),l.orderToShow.note.push(u);const C={note:l.orderToShow.note},b=yield l.orderService.updateOrder(l.orderToShow.id,C);console.log("Order note added successfully:",b)}catch(u){console.error("Error updating order notes:",u)}l.closeModal()})()}ngOnInit(){this.loading=!0,this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,this.currentUser=c.user,c.roles.map(l=>l.name).includes(this.sellerRole)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2();const c=document.getElementById("drawer-notes");c&&(this.drawerInstance=new YY2(c,{placement:"right",backdrop:!1})),setTimeout(()=>{this.confirmModal&&(this.modalInstance=new hw1(this.confirmModal.nativeElement))},100)}toggleDrawer(c){this.selectedOrder=c,this.drawerInstance&&(this.isLoading=!0,this.drawerInstance.show(),setTimeout(()=>{this.isLoading=!1,this.selectedOrder?.note?.length&&this.selectedOrder.note.sort((t,l)=>new Date(t.date).getTime()-new Date(l.date).getTime()),this.scrollToBottom()},1e3)),this.isDrawerOpen=!0}closeDrawer(){this.drawerInstance&&(this.drawerInstance.hide(),this.newNoteText=""),this.isDrawerOpen=!1}handleEscapeKey(c){this.closeDrawer()}scrollToBottom(){this.noteContainer&&setTimeout(()=>{this.noteContainer.nativeElement.scrollTop=this.noteContainer.nativeElement.scrollHeight},100)}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role,actionFilters:t.actionFilters},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){console.log("-order-info-NEXT--"),yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?this.filters.splice(t,1):this.filters.push(c),this.getOrders(!1)}onActionFilterChange(c){const t=this.actionFilters.findIndex(l=>l===c);-1!==t?this.actionFilters.splice(t,1):this.actionFilters.push(c),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i"procurement"===t.name&&"automatic"===t.description)}hasNotes(c){return!!c.note}addNote(){var c=this;return(0,C1.A)(function*(){if(!c.newNoteText.trim())return;const t={text:c.newNoteText,id:`urn:ngsi-ld:note:${L4()}`,author:c.partyId,date:(new Date).toISOString()};c.selectedOrder.note.push(t),c.newNoteText="",c.isUpdating=!0,c.scrollToBottom();try{const l={note:c.selectedOrder.note};yield c.orderService.updateOrder(c.selectedOrder.id,l),console.log("Order notes updated successfully")}catch(l){c.handleError("Error updating order notes"),console.error("Error updating order notes:",l),c.selectedOrder.note.pop()}finally{c.isUpdating=!1}})()}goToCustomerDeatils(){const c=this.orderToShow.relatedParty.find(t=>t.role?.toLowerCase()===this.buyerRole.toLowerCase());window.open(this.router.serializeUrl(this.router.createUrlTree(["/org-details",c?.id])),"_blank")}getCustomerName(){var c=this;return(0,C1.A)(function*(){if(c.orderToShow?.relatedParty){const t=c.orderToShow.relatedParty.find(l=>l.role?.toLowerCase()===c.buyerRole.toLowerCase());if(t?.id)return c.getUsername(t.id)}return""})()}getUsername(c){var t=this;return(0,C1.A)(function*(){if(t.userCache.has(c))return t.userCache.get(c);try{let l;if(c.startsWith("urn:ngsi-ld:individual:")){const i=yield t.accountService.getUserInfo(c);l=`${i?.givenName||""} ${i?.familyName||""}`.trim()||`Unknown (${c})`}else l=c.startsWith("urn:ngsi-ld:organization:")?(yield t.accountService.getOrgInfo(c))?.tradingName||`Unknown Organization (${c})`:`Unknown (${c})`;return t.userCache.set(c,l),l}catch(l){return console.error("Error fetching name for",c,l),`Unknown (${c})`}})()}formatDate(c){const t=new Date(c);return`${t.toLocaleDateString()} ${t.toLocaleTimeString()}`}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(D8),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-order-info"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Pc0,5),e.GBs(jc0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.confirmModal=i.first),e.mGM(i=e.lsd())&&(l.noteContainer=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:115,vars:57,consts:[["confirmModal",""],["noteContainer",""],[1,"border-b","border-gray-200","dark:border-gray-700","mb-2"],[1,"flex","flex-wrap","-mb-px","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"me-2"],["data-cy","asCustomerTab","aria-current","page",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","group",3,"click","ngClass"],["aria-hidden","true","fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM464 64l0 242.7-25.4-25.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l80-80c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L528 306.7 528 64c0-17.7-14.3-32-32-32s-32 14.3-32 32z"],[1,"w-full","h-fit","mb-4","flex","flex-col"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownActionButton","data-dropdown-toggle","dropdownAction","type","button",1,"text-black","border","border-primary-100sa","dark:text-white","w-full","justify-between","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-2","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdownAction",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","border","dark:bg-secondary-200"],["aria-labelledby","dropdownActionButton",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","actionAdd","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionAdd",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","actionModify","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionModify",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","actionDelete","type","checkbox",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change","checked"],["for","actionDelete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","dropdownStateButton","data-dropdown-toggle","dropdown","type","button",1,"text-black","border","border-primary-100sa","dark:text-white","w-full","justify-between","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-2","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center",3,"click"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","border","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-bold","text-gray-900","dark:text-white"],["aria-labelledby","dropdownStateButton",1,"space-y-2","text-sm"],["id","acknowledged","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","acknowledged",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","inProgress","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","inProgress",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","partial","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","partial",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","completed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","completed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","failed","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","failed",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","pending","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","pending",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["id","cancelled","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-100","dark:ring-offset-gray-700","focus:ring-2","dark:bg-gray-600","dark:border-gray-500",3,"change"],["for","cancelled",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-100"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","order-details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],["id","confirmModal","tabindex","-1","aria-hidden","true",1,"fixed","top-0","left-0","right-0","z-50","hidden","w-full","p-4","overflow-x-hidden","overflow-y-auto","md:inset-0","h-[calc(100%-1rem)]","max-h-full","bg-black","bg-opacity-50"],[1,"relative","w-full","max-w-md","max-h-full"],[1,"relative","bg-white","rounded-lg","shadow","dark:bg-gray-700"],[1,"flex","items-start","justify-between","p-4","border-b","rounded-t","dark:border-gray-600","bg-primary-100"],[1,"text-xl","font-semibold","text-secondary-50","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ml-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"p-6","text-center"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","items-center","p-6","space-x-4","border-t","border-gray-200","rounded-b","dark:border-gray-600"],["data-cy","confirmActionBtn","type","button",1,"text-white","bg-blue-600","hover:bg-blue-800","focus:ring-4","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","dark:bg-blue-500","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["data-cy","cancelActionBtn","type","button",1,"text-gray-500","bg-white","border","border-gray-300","focus:outline-none","hover:bg-gray-100","focus:ring-4","focus:ring-gray-200","font-medium","rounded-lg","text-sm","px-5","py-2.5","dark:bg-gray-700","dark:text-gray-300","dark:border-gray-500","dark:hover:bg-gray-600","dark:focus:ring-gray-600",3,"click"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["data-cy","asProviderTab",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","hover:text-gray-600","hover:border-gray-300","dark:hover:text-gray-300","group",3,"click","ngClass"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM598.6 121.4l-80-80c-12.5-12.5-32.8-12.5-45.3 0l-80 80c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L464 141.3 464 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-242.7 25.4 25.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,""],[1,"m-4","relative","overflow-x-auto","border","border-primary-100","dark:border-secondary-50","sm:rounded-lg"],["data-cy","ordersTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-secondary-50","dark:bg-primary-50","dark:text-secondary-100"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","text-center","align-middle"],["scope","col",1,"px-6","py-3","text-center","align-middle"],["scope","col",1,"text-center","align-middle"],[1,"border-b","bg-gray-100","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"text-center","items-center","w-full","col-span-2"],[1,"hidden","md:table-cell","px-6","py-4","text-center","align-middle"],[3,"title"],[1,"px-6","py-4","text-center","align-middle"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","viewOrderDetails","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],["data-cy","orderNotesButton","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-[18px]","h-[18px]","text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-purple-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-purple-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-amber-500","dark:bg-amber-900","text-amber-900","dark:text-amber-100","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-amber-950"],["fill","#ffffff","d","M64 0C28.7 0 0 28.7 0 64L0 256c0 35.3 28.7 64 64 64l32 0 0 48c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L202.7 320 352 320c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L64 0zM352 352l-96 0 0 32c0 35.3 28.7 64 64 64l117.3 0 81.1 60.8c4.8 3.6 11.3 4.2 16.8 1.5s8.8-8.2 8.8-14.3l0-48 32 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-128 0 0 128c0 53-43 96-96 96z"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-[18px]","h-[18px]","text-white"],["fill","#ffffff","d","M0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-80-96 0c-35.3 0-64-28.7-64-64L0 64zM232 296c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"],[1,"text-gray-900","dark:text-primary-50","text-sm","text-center","w-full","font-medium"],[1,"flex","pb-6","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"w-full","md:w-3/4","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-2","rounded-t","dark:border-gray-600","shadow-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],["data-cy","orderDetailsModal",1,"w-full","h-full"],[1,"p-4","relative","overflow-x-auto","rounded-lg"],[1,"flex","flex-row","gap-2","pb-2","text-gray-600"],[1,"w-fit","text-base","font-bold","shrink-0","dark:text-white"],[1,"text-base","dark:text-gray-200"],["data-cy","globalState",1,"flex","flex-row","gap-2","pb-2","text-gray-600"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400","w-fit"],[1,"flex","flex-row","gap-2","text-gray-600"],[1,"flex","flex-row","gap-2","pb-2","pt-2","ml-2","text-gray-600"],[1,"flex","flex-row","gap-2","pb-2","ml-2","text-gray-600"],[1,"cursor-pointer","text-blue-600",3,"click"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200","rounded-lg","border","border-1","border-secondary-50","dark:border-gray-800"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["data-cy","orderItems"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"bg-blue-100","dark:bg-secondary-100","text-purple-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-purple-500","w-fit"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500","w-fit"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","text-center","align-middle","flex","justify-center","items-center"],["alt","Product image",1,"w-16","object-contain","z-10","dark:text-white",3,"src"],[1,"px-6","py-4","text-center","align-middle","flex","justify-center"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500","w-fit"],["data-cy","acknowledgeOrder","type","button","title","Acknowledge the order item",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["stroke","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M319.1 0c14.8-.4 27.9 9.3 31.8 23.6l74 271.2 17.7-35.4c10.8-21.7 33-35.4 57.2-35.4L608 224c17.7 0 32 14.3 32 32s-14.3 32-32 32l-108.2 0L444.6 398.3c-5.9 11.9-18.6 18.8-31.8 17.5s-24.2-10.6-27.7-23.4L323.7 167.3 255.3 486.7c-3.1 14.4-15.5 24.8-30.2 25.3s-27.8-9.1-31.8-23.2L135.9 288 32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l103.9 0c28.6 0 53.7 18.9 61.5 46.4L219.6 348 288.7 25.3C291.8 10.9 304.4 .4 319.1 0z"],["data-cy","rejectOrder","type","button","title","Reject the order item",1,"text-red-950","bg-red-500","hover:bg-red-600","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["stroke","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M96 80c0-26.5 21.5-48 48-48l288 0c26.5 0 48 21.5 48 48l0 304L96 384 96 80zm145 47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47z"],["data-cy","startOrderTreatment","type","button","title","Start Order Treatment",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],["data-cy","startOrderTreatment","type","button","title","Start Order Treatment",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 384 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["opacity",".4","d","M32 80l0 352c0 5.8 3.1 11.1 8.2 14s11.2 2.7 16.2-.3l288-176c4.8-2.9 7.7-8.1 7.7-13.7s-2.9-10.7-7.7-13.7l-288-176c-4.9-3-11.1-3.1-16.2-.3s-8.2 8.2-8.2 14z",1,"fa-secondary"],["d","M56.3 66.3c-4.9-3-11.1-3.1-16.2-.3s-8.2 8.2-8.2 14l0 352c0 5.8 3.1 11.1 8.2 14s11.2 2.7 16.2-.3l288-176c4.8-2.9 7.7-8.1 7.7-13.7s-2.9-10.7-7.7-13.7l-288-176zM24.5 38.1C39.7 29.6 58.2 30 73 39L361 215c14.3 8.7 23 24.2 23 41s-8.7 32.2-23 41L73 473c-14.8 9.1-33.4 9.4-48.5 .9S0 449.4 0 432L0 80C0 62.6 9.4 46.6 24.5 38.1z",1,"fa-primary"],["data-cy","completeOrder","type","button","title","Order Completely Treated",1,"text-green-950","bg-green-500","hover:bg-green-600","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-[18px]","h-[18px]","text-white","stroke-white","fill-white","stroke-2"],["d","M200.3 81.5C210.9 61.5 231.9 48 256 48s45.1 13.5 55.7 33.5L321 99.1l19-5.8c21.6-6.6 46.1-1.4 63.1 15.7s22.3 41.5 15.7 63.1l-5.8 19 17.5 9.3c20 10.6 33.5 31.6 33.5 55.7s-13.5 45.1-33.5 55.7L412.9 321l5.8 19c6.6 21.6 1.4 46.1-15.7 63.1s-41.5 22.3-63.1 15.7l-19-5.8-9.3 17.5c-10.6 20-31.6 33.5-55.7 33.5s-45.1-13.5-55.7-33.5L191 412.9l-19 5.8c-21.6 6.6-46.1 1.4-63.1-15.7S86.6 361.6 93.2 340l5.8-19-17.5-9.3C61.5 301.1 48 280.1 48 256s13.5-45.1 33.5-55.7L99.1 191l-5.8-19c-6.6-21.6-1.4-46.1 15.7-63.1S150.4 86.6 172 93.2l19 5.8 9.3-17.5zM256 0c-35.9 0-67.8 17-88.1 43.4c-33-4.3-67.6 6.2-93 31.6s-35.9 60-31.6 93C17 188.2 0 220.1 0 256s17 67.8 43.4 88.1c-4.3 33 6.2 67.6 31.6 93s60 35.9 93 31.6C188.2 495 220.1 512 256 512s67.8-17 88.1-43.4c33 4.3 67.6-6.2 93-31.6s35.9-60 31.6-93C495 323.8 512 291.9 512 256s-17-67.8-43.4-88.1c4.3-33-6.2-67.6-31.6-93s-60-35.9-93-31.6C323.8 17 291.9 0 256 0zM369 209l17-17L352 158.1l-17 17-111 111-47-47-17-17L126.1 256l17 17 64 64 17 17 17-17L369 209z"],["data-cy","failOrder","type","button","title","Order Completely Failed",1,"text-red-950","bg-red-500","hover:bg-red-600","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm24-384l0 24 0 112 0 24-48 0 0-24 0-112 0-24 48 0zM232 368l0-48 48 0 0 48-48 0z"],[1,"fixed","inset-0","top-0","left-0","right-0","h-screen","bg-black","bg-opacity-50","z-40",3,"click"],["id","drawer-notes","tabindex","-1","aria-labelledby","drawer-notes-label",1,"fixed","top-0","right-0","z-50","h-screen","p-4","overflow-y-auto","transition-transform","bg-secondary-50","w-5/12","dark:bg-primary-100","flex","flex-col",3,"ngClass"],[1,"flex","justify-between","items-center","border-b","pb-3"],["id","drawer-notes-label",1,"flex","items-center","text-base","font-semibold","text-gray-500","dark:text-gray-400"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 448 512",1,"w-4","h-4","mr-2"],["d","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"],["type","button","aria-controls","drawer-notes",1,"flex","items-center","justify-center","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],["class","flex flex-col items-center justify-center flex-1",4,"ngIf"],["id","note-dialog","class","flex flex-col space-y-3 mt-4 overflow-y-auto flex-1 p-2",4,"ngIf"],[1,"border-t","pt-3"],[1,"flex","flex-col"],["data-cy","orderNotesTextField","placeholder","Write a new note...",1,"w-full","p-2","text-sm","border","rounded-lg","resize-none","h-20",3,"ngModelChange","keyup.enter","ngModel"],["data-cy","orderNotesSendButton",1,"mt-2","px-4","py-2","text-sm","font-semibold","text-white","bg-blue-500","rounded-lg","hover:bg-blue-600",3,"click"],[1,"flex","flex-col","items-center","justify-center","flex-1"],[1,"animate-spin","rounded-full","h-8","w-8","border-t-4","border-blue-500"],[1,"text-gray-500","mt-2"],["id","note-dialog",1,"flex","flex-col","space-y-3","mt-4","overflow-y-auto","flex-1","p-2"],["class","text-center text-gray-500",4,"ngIf"],["data-cy","orderNotesMessages","class","flex",3,"ngClass",4,"ngFor","ngForOf"],[1,"text-center","text-gray-500"],["data-cy","orderNotesMessages",1,"flex",3,"ngClass"],[1,"max-w-xs","p-3","rounded-lg","shadow-md",3,"ngClass"],[1,"text-sm"],[1,"text-xs","block","mt-1","text-gray-500"],[4,"ngIf"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){if(1&t){const i=e.RV6();e.j41(0,"div",2)(1,"ul",3)(2,"li",4)(3,"a",5),e.bIt("click",function(){return e.eBV(i),e.Njj(l.onRoleChange(l.buyerRole))}),e.qSk(),e.j41(4,"svg",6),e.nrm(5,"path",7),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.DNE(8,Uc0,6,7,"li",4),e.k0s()(),e.joV(),e.j41(9,"div",8)(10,"div",9)(11,"div",10)(12,"div",11),e.nrm(13,"fa-icon",12),e.j41(14,"h2",13),e.EFF(15),e.nI1(16,"translate"),e.k0s()(),e.j41(17,"button",14),e.bIt("click",function(C){return e.eBV(i),e.Njj(C.stopPropagation())}),e.DNE(18,Gc0,1,1)(19,Hc0,2,3),e.qSk(),e.j41(20,"svg",15),e.nrm(21,"path",16),e.k0s()(),e.joV(),e.j41(22,"div",17)(23,"ul",18)(24,"li",19)(25,"input",20),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("add"))}),e.k0s(),e.j41(26,"label",21),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"li",19)(30,"input",22),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("modify"))}),e.k0s(),e.j41(31,"label",23),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"li",19)(35,"input",24),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onActionFilterChange("delete"))}),e.k0s(),e.j41(36,"label",25),e.EFF(37),e.nI1(38,"translate"),e.k0s()()()()(),e.j41(39,"div",10)(40,"div",11),e.nrm(41,"fa-icon",12),e.j41(42,"h2",13),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"button",26),e.bIt("click",function(C){return e.eBV(i),e.Njj(C.stopPropagation())}),e.DNE(46,Yc0,1,1)(47,qc0,2,3),e.qSk(),e.j41(48,"svg",15),e.nrm(49,"path",16),e.k0s()(),e.joV(),e.j41(50,"div",27)(51,"h6",28),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"ul",29)(55,"li",19)(56,"input",30),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("acknowledged"))}),e.k0s(),e.j41(57,"label",31),e.EFF(58),e.nI1(59,"translate"),e.k0s()(),e.j41(60,"li",19)(61,"input",32),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("inProgress"))}),e.k0s(),e.j41(62,"label",33),e.EFF(63),e.nI1(64,"translate"),e.k0s()(),e.j41(65,"li",19)(66,"input",34),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("partial"))}),e.k0s(),e.j41(67,"label",35),e.EFF(68),e.nI1(69,"translate"),e.k0s()(),e.j41(70,"li",19)(71,"input",36),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("completed"))}),e.k0s(),e.j41(72,"label",37),e.EFF(73),e.nI1(74,"translate"),e.k0s()(),e.j41(75,"li",19)(76,"input",38),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("failed"))}),e.k0s(),e.j41(77,"label",39),e.EFF(78),e.nI1(79,"translate"),e.k0s()(),e.j41(80,"li",19)(81,"input",40),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("pending"))}),e.k0s(),e.j41(82,"label",41),e.EFF(83),e.nI1(84,"translate"),e.k0s()(),e.j41(85,"li",19)(86,"input",42),e.bIt("change",function(){return e.eBV(i),e.Njj(l.onStateFilterChange("cancelled"))}),e.k0s(),e.j41(87,"label",43),e.EFF(88),e.nI1(89,"translate"),e.k0s()()()()()()(),e.DNE(90,Xc0,6,0,"div",44)(91,d70,26,17)(92,H70,89,60,"div",45),e.j41(93,"div",46,0)(95,"div",47)(96,"div",48)(97,"div",49)(98,"h3",50),e.EFF(99," Confirm Action "),e.k0s(),e.j41(100,"button",51),e.bIt("click",function(){return e.eBV(i),e.Njj(l.closeModal())}),e.EFF(101," \u2716 "),e.k0s()(),e.j41(102,"div",52)(103,"p",53),e.EFF(104," Are you sure you want to update this order item to "),e.j41(105,"strong"),e.EFF(106),e.k0s(),e.EFF(107," status? "),e.k0s()(),e.j41(108,"div",54)(109,"button",55),e.bIt("click",function(){return e.eBV(i),e.Njj(l.confirmAction())}),e.EFF(110," Yes, Confirm "),e.k0s(),e.j41(111,"button",56),e.bIt("click",function(){return e.eBV(i),e.Njj(l.closeModal())}),e.EFF(112," Cancel "),e.k0s()()()()(),e.DNE(113,Q70,17,8)(114,Z70,9,1,"div",57)}2&t&&(e.R7$(3),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 border-primary-100 active dark:text-primary-50 dark:border-primary-50"),e.R7$(),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-primary-100 dark:text-primary-50"),e.R7$(2),e.SpI(" ",e.bMT(7,29,"PRODUCT_ORDERS._as_customer")," "),e.R7$(2),e.vxM(8,l.isSeller?8:-1),e.R7$(5),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(16,31,"PRODUCT_ORDERS._filter_action")),e.R7$(3),e.vxM(18,l.actionFilters.length>0?18:19),e.R7$(7),e.Y8G("checked",l.actionFilters.includes("add")),e.R7$(2),e.SpI(" ",e.bMT(28,33,"PRODUCT_ORDERS._action_add")," "),e.R7$(3),e.Y8G("checked",l.actionFilters.includes("modify")),e.R7$(2),e.SpI(" ",e.bMT(33,35,"PRODUCT_ORDERS._action_modify")," "),e.R7$(3),e.Y8G("checked",l.actionFilters.includes("delete")),e.R7$(2),e.SpI(" ",e.bMT(38,37,"PRODUCT_ORDERS._action_delete")," "),e.R7$(4),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(44,39,"PRODUCT_ORDERS._filter_state")),e.R7$(3),e.vxM(46,l.filters.length>0?46:47),e.R7$(6),e.SpI(" ",e.bMT(53,41,"PRODUCT_ORDERS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(59,43,"PRODUCT_ORDERS._acknowledged")," "),e.R7$(5),e.SpI(" ",e.bMT(64,45,"PRODUCT_ORDERS._in_progress")," "),e.R7$(5),e.SpI(" ",e.bMT(69,47,"PRODUCT_ORDERS._partial")," "),e.R7$(5),e.SpI(" ",e.bMT(74,49,"PRODUCT_ORDERS._completed")," "),e.R7$(5),e.SpI(" ",e.bMT(79,51,"PRODUCT_ORDERS._failed")," "),e.R7$(5),e.SpI(" ",e.bMT(84,53,"PRODUCT_ORDERS._pending")," "),e.R7$(5),e.SpI(" ",e.bMT(89,55,"PRODUCT_ORDERS._cancelled")," "),e.R7$(2),e.vxM(90,l.loading&&!l.loading_more?90:91),e.R7$(2),e.vxM(92,l.showOrderDetails?92:-1),e.R7$(14),e.JRh(l.actionType),e.R7$(7),e.vxM(113,l.isDrawerOpen?113:-1),e.R7$(),e.vxM(114,l.showError?114:-1))},dependencies:[s1.h,s1.D9,J2.dX,J2.aY,_.MD,_.YU,_.Sq,_.bT,_.Jj,_.vh,BL,p.me,p.BC,p.vS]})}}return n})();const eE1=(n,a)=>a.id,et0=n=>({"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group":n});function ct0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",2)(1,"a",8),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onRoleChange(l.sellerRole))}),e.qSk(),e.j41(2,"svg",9),e.nrm(3,"path",10),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Y8G("ngClass",e.eq3(5,et0,c.role==c.sellerRole)),e.R7$(),e.Y8G("ngClass",c.role!==c.sellerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 dark:text-blue-500"),e.R7$(2),e.SpI(" ",e.bMT(5,3,"INVOICES._as_provider")," ")}}function tt0(n,a){1&n&&(e.j41(0,"div",6),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13),e.k0s(),e.joV(),e.j41(4,"span",14),e.EFF(5,"Loading..."),e.k0s()())}function nt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"input",37),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.editableInvoiceName,l)||(i.editableInvoiceName=l),e.Njj(l)}),e.k0s()}if(2&n){const c=e.XpG(3);e.R50("ngModel",c.editableInvoiceName)}}function lt0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.billNo," ")}}function st0(n,a){if(1&n&&(e.j41(0,"span",27),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(null==c?null:c.state)}}function at0(n,a){if(1&n&&(e.j41(0,"span",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(null==c?null:c.state)}}function ot0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",null==c?null:c.state," ")}}function it0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),i=l.$implicit,u=l.$index,C=e.XpG(2);return e.Njj(C.saveInvoice(u,i))}),e.nrm(1,"fa-icon",41),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faSave)}}function rt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2),i=l.$implicit,u=l.$index,C=e.XpG(2);return e.Njj(C.editInvoice(u,i))}),e.nrm(1,"fa-icon",41),e.k0s()}if(2&n){const c=e.XpG(4);e.R7$(),e.Y8G("icon",c.faEdit)}}function dt0(n,a){if(1&n&&e.DNE(0,it0,2,1,"button",39)(1,rt0,2,1),2&n){const c=e.XpG().$index,t=e.XpG(2);e.vxM(0,t.editingIndex===c?0:1)}}function ft0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",22)(1,"td",24),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"td",24),e.DNE(5,nt0,1,1,"input",25)(6,lt0,1,1),e.k0s(),e.j41(7,"td",26),e.EFF(8),e.k0s(),e.j41(9,"td",26),e.DNE(10,st0,2,1,"span",27)(11,at0,2,1)(12,ot0,1,1),e.k0s(),e.j41(13,"td",24)(14,"div",28)(15,"button",29),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(16,"svg",30)(17,"g",31),e.nrm(18,"path",32)(19,"path",33),e.k0s()()(),e.joV(),e.j41(20,"button",34),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.downloadInvoice(l))}),e.qSk(),e.j41(21,"svg",35),e.nrm(22,"path",36),e.k0s()(),e.DNE(23,dt0,2,1),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.R7$(2),e.SpI(" ",e.i5U(3,6,null==c?null:c.billDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.vxM(5,l.role==l.sellerRole&&l.editingIndex===t?5:6),e.R7$(3),e.Lme(" ",null==c?null:c.taxIncludedAmount.value,"",null==c?null:c.taxIncludedAmount.unit," "),e.R7$(2),e.vxM(10,"settled"===(null==c?null:c.state)?10:"new"===(null==c?null:c.state)?11:12),e.R7$(13),e.vxM(23,l.role==l.sellerRole?23:-1)}}function ut0(n,a){1&n&&(e.j41(0,"div",23)(1,"span",42),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function mt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",43)(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s()()()}}function pt0(n,a){if(1&n&&e.DNE(0,mt0,5,0,"div",43),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function ht0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13),e.k0s(),e.joV(),e.j41(4,"span",14),e.EFF(5,"Loading..."),e.k0s()())}function gt0(n,a){if(1&n&&(e.j41(0,"div",15)(1,"div",16)(2,"table",17)(3,"thead",18)(4,"tr")(5,"th",19),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",19),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",20),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",20),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",21),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody"),e.Z7z(21,ft0,24,9,"tr",22,eE1),e.k0s()(),e.DNE(23,ut0,4,3,"div",23),e.k0s(),e.DNE(24,pt0,1,1)(25,ht0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"INVOICES._date")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"INVOICES._billno")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"INVOICES._tax_included_amount")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"INVOICES._status")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"INVOICES._actions")," "),e.R7$(3),e.Dyx(c.invoices),e.R7$(2),e.vxM(23,0==c.invoices.length?23:-1),e.R7$(),e.vxM(24,c.loading_more?25:24)}}function _t0(n,a){1&n&&(e.j41(0,"div",56),e.qSk(),e.j41(1,"svg",57),e.nrm(2,"path",12)(3,"path",13),e.k0s()())}function Lt0(n,a){1&n&&(e.j41(0,"p",58),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"INVOICES._no_billing_rates")," "))}function Ct0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"p",63),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",64),e.EFF(5),e.nI1(6,"date"),e.nI1(7,"date"),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,3,"INVOICES._period_coverage"),": "),e.R7$(3),e.Lme(" ",e.i5U(6,5,c.periodCoverage.startDateTime,"dd/MM/yyyy")," - ",e.i5U(7,8,c.periodCoverage.endDateTime,"dd/MM/yyyy")," ")}}function zt0(n,a){if(1&n&&(e.j41(0,"div",60)(1,"div",61)(2,"div",62)(3,"p",63),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"p",64),e.EFF(7),e.k0s()(),e.j41(8,"div",62)(9,"p",63),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",64),e.EFF(13),e.k0s()(),e.j41(14,"div",62)(15,"p",63),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"p",65),e.EFF(19),e.k0s()(),e.j41(20,"div",62)(21,"p",63),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"p",66),e.EFF(25),e.k0s()(),e.j41(26,"div",62)(27,"p",63),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"p",67)(31,"u")(32,"a",68),e.EFF(33),e.k0s()()()(),e.DNE(34,Ct0,8,11,"div",62),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",e.bMT(5,14,"INVOICES._name"),": "),e.R7$(3),e.SpI(" ",c.name," "),e.R7$(3),e.SpI(" ",e.bMT(11,16,"INVOICES._description"),": "),e.R7$(3),e.SpI(" ",c.description," "),e.R7$(3),e.SpI(" ",e.bMT(17,18,"INVOICES._type"),": "),e.R7$(3),e.SpI(" ",c.type," "),e.R7$(3),e.SpI(" ",e.bMT(23,20,"INVOICES._tax_included_amount"),": "),e.R7$(3),e.Lme(" ",null==c.taxIncludedAmount?null:c.taxIncludedAmount.value,"",null==c.taxIncludedAmount?null:c.taxIncludedAmount.unit," "),e.R7$(3),e.SpI(" ",e.bMT(29,22,"INVOICES._product_acbr_ref"),": "),e.R7$(4),e.Mz_("href","/product-inventory/",null==c.product?null:c.product.href,"",e.B4B),e.R7$(),e.SpI(" ",null==c.product?null:c.product.href," "),e.R7$(),e.vxM(34,c.periodCoverage?34:-1)}}function Mt0(n,a){if(1&n&&(e.j41(0,"div",59),e.Z7z(1,zt0,35,24,"div",60,eE1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.appliedCustomerBillingRates)}}function xt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"div",48),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",49)(3,"h2",50),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showInvoiceDetails=!1)}),e.qSk(),e.j41(7,"svg",52),e.nrm(8,"path",53),e.k0s(),e.joV(),e.j41(9,"span",14),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",54)(13,"div",55),e.DNE(14,_t0,4,0,"div",56)(15,Lt0,3,3)(16,Mt0,3,0),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showInvoiceDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,4,"INVOICES._applied_billing_rates")),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(4),e.vxM(14,c.loadingACBRs?14:0===c.appliedCustomerBillingRates.length?15:16)}}let bt0=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.invoicesService=u,this.eventMessage=C,this.paginationService=b,this.router=T,this.loading=!1,this.invoices=[],this.nextInvoices=[],this.partyId="",this.showInvoiceDetails=!1,this.appliedCustomerBillingRates=[],this.loadingACBRs=!1,this.dateRange=new p.MJ,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.INVOICE_LIMIT=g1.c.INVOICE_LIMIT,this.sellerRole=g1.c.SELLER_ROLE,this.buyerRole=g1.c.BUYER_ROLE,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=this.buyerRole,this.name="",this.show_orders=!0,this.show_billing=!1,this.editingIndex=null,this.editableInvoiceName="",this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faEdit=A2.MT7,this.faSave=A2.hSh,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(W=>{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showInvoiceDetails&&(this.showInvoiceDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.dateRange.setValue("month"),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(this.sellerRole)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(this.sellerRole)&&(this.isSeller=!0)}this.page=0,this.invoices=[],this.getInvoices(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getInvoices(c){var t=this;return(0,C1.A)(function*(){console.log("-getOrders--"),0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.INVOICE_LIMIT,c,t.invoices,t.nextInvoices,{filters:t.filters,partyId:t.partyId,selectedDate:t.selectedDate,invoices:t.invoices,role:t.role,name:t.name},t.paginationService.getInvoices.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.invoices),t.page_check=i.page_check,t.invoices=i.items,t.name=i.name,t.nextInvoices=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){console.log("-invoice-info-NEXT--"),yield c.getInvoices(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getInvoices(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}filterOrdersByDate(){if("month"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString()}else if("months"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(c.getMonth()-3),this.selectedDate=c.toISOString()}else if("year"==this.dateRange.value){let c=new Date;c.setDate(1),c.setMonth(0),c.setFullYear(c.getFullYear()-1),this.selectedDate=c.toISOString()}else this.selectedDate=void 0;this.getInvoices(!1)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{console.log("actualizado invoice")},error:i=>{t.billNo=l,console.error("There was an error while updating!",i)}}),this.editingIndex=null}downloadInvoice(c){console.log("Downloading invoice"),window.open(`${g1.c.BASE_URL}/invoicing/invoices/${c.id}?format=xml-html`,"_blank")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(E5),e.rXU(U2),e.rXU(w6),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-invoices-info"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},standalone:!0,features:[e.Jv_([_.vh]),e.aNF],decls:12,vars:8,consts:[[1,"border-b","border-gray-200","dark:border-gray-700","mb-2"],[1,"flex","flex-wrap","-mb-px","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"me-2"],["aria-current","page",1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","group",3,"click","ngClass"],["aria-hidden","true","fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM464 64l0 242.7-25.4-25.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l80-80c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L528 306.7 528 64c0-17.7-14.3-32-32-32s-32 14.3-32 32z"],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","invoice-details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],[1,"inline-flex","cursor-pointer","items-center","justify-center","p-4","border-b-2","border-transparent","rounded-t-lg","hover:text-gray-600","hover:border-gray-300","dark:hover:text-gray-300","group",3,"click","ngClass"],["fill","currentColor","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"w-4","h-4","me-2",3,"ngClass"],["d","M192 96a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm-8 352l0-96 16 0 0 96-16 0zm-64 0l-88 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l120 0 80 0 376 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-344 0 0-191.1 28.6 47.5c9.1 15.1 28.8 20 43.9 10.9s20-28.8 10.9-43.9l-58.3-97c-17.4-28.9-48.6-46.6-82.3-46.6l-29.7 0c-33.7 0-64.9 17.7-82.3 46.6l-58.3 97c-9.1 15.1-4.2 34.8 10.9 43.9s34.8 4.2 43.9-10.9L120 256.9 120 448zM598.6 121.4l-80-80c-12.5-12.5-32.8-12.5-45.3 0l-80 80c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L464 141.3 464 384c0 17.7 14.3 32 32 32s32-14.3 32-32l0-242.7 25.4 25.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,""],[1,"m-4","relative","overflow-x-auto","border","border-primary-100","dark:border-secondary-50","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-secondary-50","dark:bg-primary-50","dark:text-secondary-100"],["scope","col",1,"px-6","py-3","text-center","align-middle"],["scope","col",1,"hidden","md:table-cell","px-6","py-3","text-center","align-middle"],["scope","col",1,"text-center","align-middle"],["data-cy","invoiceRow",1,"border-b","bg-gray-100","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"text-center","items-center","w-full","col-span-2"],[1,"px-6","py-4","text-center","align-middle"],["type","text","id","invoicename",1,"mb-2","border-gray-300","dark:border-secondary-200","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModel"],[1,"md:table-cell","px-6","py-4","text-center","align-middle"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"flex","flex-row","justify-center","items-center"],["data-cy","invoiceDetails","type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 14",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],["d","M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"],["d","M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"],["type","button",1,"text-white","bg-primary-100","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M4 15v2a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-2m-8 1V4m0 12-4-4m4 4 4-4"],["type","text","id","invoicename",1,"mb-2","border-gray-300","dark:border-secondary-200","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","px-2.5","py-0.5","rounded","border","border-blue-400"],["type","button",1,"text-white","bg-green-500","hover:bg-green-700","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],["type","button",1,"text-white","bg-green-500","hover:bg-green-700","focus:ring-4","focus:outline-none","focus:ring-green-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],[1,"text-[18px]","text-white","align-middle",3,"icon"],[1,"text-gray-900","dark:text-primary-50","text-sm","text-center","w-full","font-medium"],[1,"flex","pb-6","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["data-cy","invoiceDetail",1,"w-full","md:w-3/4","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-2","rounded-t","dark:border-gray-600","shadow-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["type","button","data-modal-hide","delete-bill-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"w-full","h-full"],[1,"p-4","relative","overflow-x-auto","rounded-lg"],["role","status",1,"w-full","h-24","flex","justify-center","items-center"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],[1,"text-gray-500","dark:text-gray-400","text-sm"],[1,"max-h-96","overflow-y-auto","pr-2"],["data-cy","acbr",1,"mb-4","p-4","bg-gray-50","dark:bg-secondary-300","rounded-lg","border","border-gray-200","dark:border-gray-600"],[1,"flex","flex-col","gap-2"],[1,"flex","flex-row","gap-2"],[1,"text-sm","font-bold","text-gray-700","dark:text-white"],[1,"text-sm","text-gray-600","dark:text-gray-200"],["data-cy","acbrType",1,"text-sm","text-gray-600","dark:text-gray-200"],["data-cy","acbrPrice",1,"text-sm","text-gray-600","dark:text-gray-200"],[1,"text-sm","text-blue-100","dark:text-blue-200","font-mono"],[3,"href"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"ul",1)(2,"li",2)(3,"a",3),e.bIt("click",function(){return l.onRoleChange(l.buyerRole)}),e.qSk(),e.j41(4,"svg",4),e.nrm(5,"path",5),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.DNE(8,ct0,6,7,"li",2),e.k0s()(),e.DNE(9,tt0,6,0,"div",6)(10,gt0,26,17)(11,xt0,17,8,"div",7)),2&t&&(e.R7$(3),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 border-blue-600 active dark:text-blue-500 dark:border-blue-500"),e.R7$(),e.Y8G("ngClass",l.role!==l.buyerRole?"text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300":"text-blue-600 dark:text-blue-500"),e.R7$(2),e.SpI(" ",e.bMT(7,6,"INVOICES._as_customer")," "),e.R7$(2),e.vxM(8,l.isSeller?8:-1),e.R7$(),e.vxM(9,l.loading&&!l.loading_more?9:10),e.R7$(2),e.vxM(11,l.showInvoiceDetails?11:-1))},dependencies:[s1.h,s1.D9,J2.dX,J2.aY,_.MD,_.YU,_.vh,p.YN,p.me,p.BC,p.vS]})}}return n})();function yt0(n,a){1&n&&e.nrm(0,"app-order-info")}function Ft0(n,a){1&n&&e.nrm(0,"app-invoices-info")}let vt0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.orderService=u,this.eventMessage=C,this.paginationService=b,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=g1.c.BUYER_ROLE,this.show_orders=!0,this.show_invoices=!1,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0;let c=document.getElementById("order-button"),t=document.getElementById("bill-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{class n{constructor(){this.products=[],this.nextProducts=[],this.page=0,this.page_check=!0,this.keywords=void 0}hasState(){return this.products.length>0}save(c){Object.assign(this,c)}clear(){this.products=[],this.nextProducts=[],this.page=0,this.page_check=!0,this.keywords=void 0}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var tE1=y(7745);const kt0=(n,a)=>a.id,nE1=(n,a)=>({"break-all":n,"break-words":a});function wt0(n,a){if(1&n&&(e.j41(0,"span",5),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.SpI("(",null==c.data?null:c.data.count,")")}}function St0(n,a){if(1&n){const c=e.RV6();e.j41(0,"input",1,0),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.checked,l)||(i.checked=l),e.Njj(l)}),e.k0s(),e.j41(2,"label",2),e.bIt("click",function(){e.eBV(c);const l=e.sdS(1),i=e.XpG(2);return e.Njj(i.onClick(l.checked))}),e.j41(3,"div",3)(4,"div",4),e.EFF(5),e.DNE(6,wt0,2,1,"span",5),e.k0s(),e.nrm(7,"fa-icon",6),e.k0s()()}if(2&n){const c=e.XpG(2);e.R50("ngModel",c.checked),e.Y8G("id",c.option),e.R7$(2),e.Y8G("for",c.option)("ngClass",c.isParent&&c.isFirst?c.labelClassParentFirst:c.isParent&&c.isLast?c.labelClassParentLast:c.isParent?c.labelClassParent:c.labelClass),e.R7$(2),e.Y8G("ngClass",e.l_i(8,nE1,c.hasLongWord(null==c.data?null:c.data.name,20),!c.hasLongWord(null==c.data?null:c.data.name,20))),e.R7$(),e.SpI(" ",null==c.data?null:c.data.name," "),e.R7$(),e.vxM(6,null!=c.data&&c.data.count?6:-1),e.R7$(),e.Y8G("icon",c.checked?c.faCircleCheck:c.faCircle)}}function Nt0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){const c=e.XpG(4);e.R7$(),e.SpI("(",c.data.count,")")}}function Et0(n,a){if(1&n&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",21),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function Dt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",7)(1,"div",8)(2,"span",9),e.EFF(3),e.DNE(4,Nt0,2,1,"span",10),e.k0s(),e.j41(5,"div",11)(6,"div",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onClickCategory(l.data))}),e.nrm(7,"input",13)(8,"fa-icon",14),e.k0s(),e.j41(9,"button",15),e.qSk(),e.j41(10,"svg",16),e.nrm(11,"path",17),e.k0s()()()()(),e.joV(),e.j41(12,"div",18)(13,"div",19)(14,"ul",20),e.Z7z(15,Et0,2,1,"li",null,kt0),e.k0s()()()}if(2&n){const c=e.XpG(3);e.Y8G("id","accordion-heading-"+c.simplifiedId),e.R7$(),e.Y8G("ngClass",c.checkClasses(c.isFirst,c.isLast,c.data)),e.R7$(),e.Y8G("ngClass",e.l_i(11,nE1,c.hasLongWord(c.data.name,20),!c.hasLongWord(c.data.name,20))),e.R7$(),e.SpI("",c.data.name," "),e.R7$(),e.vxM(4,c.data.count?4:-1),e.R7$(3),e.Y8G("checked",c.isCheckedCategory(c.data)),e.R7$(),e.Y8G("icon",c.isCheckedCategory(c.data)?c.faCircleCheck:c.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+c.simplifiedId)("aria-controls","accordion-body-"+c.simplifiedId),e.R7$(3),e.Y8G("id","accordion-body-"+c.simplifiedId),e.BMQ("aria-labelledby","accordion-heading-"+c.simplifiedId),e.R7$(3),e.Dyx(c.data.children)}}function Tt0(n,a){if(1&n&&e.DNE(0,Dt0,17,14),2&n){const c=e.XpG(2);e.vxM(0,c.data?0:-1)}}function Rt0(n,a){if(1&n&&e.DNE(0,St0,8,11)(1,Tt0,1,1),2&n){const c=e.XpG();e.vxM(0,0==(null==c.data||null==c.data.children?null:c.data.children.length)?0:1)}}let At0=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.eventMessage=t,this.cdr=l,this.faCircleCheck=A2.QRE,this.faCircle=Sr1,this.checked=!1,this.checkedCategories=[],this.labelClass="inline-flex items-center justify-between w-full px-5 py-3 text-gray-500 bg-white border-2 rounded-lg cursor-pointer dark:hover:text-gray-300 dark:border-gray-700 peer-checked:border-primary-50 hover:text-gray-600 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:bg-tertiary-100 dark:hover:bg-primary-50",this.labelClassParentFirst="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.labelClassParentLast="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.labelClassParent="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border-t border-r border-l border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600",this.classListFirst="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLast="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classList="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListFirstChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLastChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.isParent=!1,this.isFirst=!1,this.isLast=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{const u=i.value;if("AddedFilter"===i.type&&u?.id===this.data?.id?this.checked=!0:"RemovedFilter"===i.type&&u?.id===this.data?.id&&(this.checked=!1),"AddedFilter"!==i.type||this.isCheckedCategory(u)){if("RemovedFilter"===i.type&&this.isCheckedCategory(u)){const C=this.checkedCategories.findIndex(b=>b===u.id);-1!==C&&(this.checkedCategories.splice(C,1),this.cdr.detectChanges()),console.log(this.isCheckedCategory(u))}}else this.checkedCategories.push(u.id),this.cdr.detectChanges()})}ngOnInit(){this.data?.id&&(this.simplifiedId=this.data.sanitizedId?this.data.sanitizedId:this.data.id.split(":").pop());const c=this.localStorage.getObject("selected_categories")||[];c.length>0&&c.findIndex(l=>l.id===this.data?.id)>-1&&(this.checked=!0),this.option=this.data?.id,this.isParent&&this.isFirst?this.labelClass="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600":this.isParent&&this.isLast&&(this.labelClass="flex items-center justify-between w-full px-5 py-3 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3 peer-checked:border-primary-50 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onClick(c){if(c){this.localStorage.removeCategoryFilter(this.data),this.eventMessage.emitRemovedFilter(this.data);const t=this.checkedCategories.findIndex(l=>l===this.data.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(this.data.id),this.localStorage.addCategoryFilter(this.data),this.eventMessage.emitAddedFilter(this.data);this.checked=!this.checked,this.eventMessage.emitFiltersCommitted()}onClickCategory(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const t=this.checkedCategories.findIndex(l=>l===c.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c);this.eventMessage.emitFiltersCommitted()}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let t=!1;if(null!=c)for(let l=0;ll.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-category-item"]],inputs:{data:"data",isParent:"isParent",isFirst:"isFirst",isLast:"isLast"},decls:1,vars:1,consts:[["optioninput",""],["type","checkbox","value","",1,"hidden","peer",3,"ngModelChange","ngModel","id"],[3,"click","for","ngClass"],[1,"flex","w-full","justify-between","items-center"],["data-cy","searchCategoryName",1,"w-full","text-base","text-left","font-semibold","text-wrap","break-words",3,"ngClass"],[1,"ml-2","text-sm","text-gray-400"],["data-cy","searchCategorySelect",1,"mr-7","text-2xl",3,"icon"],[3,"id"],[3,"ngClass"],["data-cy","searchCategoryName",1,"text-left","justify-start","text-wrap","break-words",3,"ngClass"],[1,"ml-1","text-sm","text-gray-400"],[1,"justify-end","inline-flex"],["data-cy","searchCategorySelect",1,"justify-end",3,"click"],["type","checkbox","value","",1,"hidden","peer",3,"checked"],[1,"text-2xl",3,"icon"],["data-cy","searchCategoryDropdown","type","button","aria-expanded","false",1,"ml-4"],["data-accordion-icon","","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-3","h-3","rotate-180","shrink-0"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5 5 1 1 5"],[1,"hidden",3,"id"],[1,"p-2","border","border-gray-200","dark:border-gray-700","dark:bg-gray-900"],[1,"grid","w-full","gap-2"],[3,"data"]],template:function(t,l){1&t&&e.DNE(0,Rt0,2,1),2&t&&e.vxM(0,null!=l.data&&l.data.children?0:-1)},dependencies:[_.YU,J2.aY,p.Zm,p.BC,p.vS,n]})}}return n})();const mf1=(n,a)=>a.id,It0=(n,a)=>({"break-all":n,"break-words":a});function Pt0(n,a){1&n&&(e.j41(0,"h2",0),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CATEGORIES._categories")))}function jt0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",5),e.nrm(1,"path",7),e.k0s())}function $t0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.onClick(l))}),e.j41(1,"div",4),e.DNE(2,jt0,2,0,":svg:svg",5),e.k0s(),e.j41(3,"span",6),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",t.isCheckedCategory(c)?"bg-[#2D58A7] border-[#2D58A7] text-white":"border-[#C0C7D1] bg-white"),e.R7$(),e.vxM(2,t.isCheckedCategory(c)?2:-1),e.R7$(2),e.JRh(c.name)}}function Ot0(n,a){if(1&n&&(e.j41(0,"ul",1),e.Z7z(1,$t0,5,3,"li",2,mf1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.allFilterItems)}}function Bt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10)(1,"span",11),e.nrm(2,"fa-icon",12),e.j41(3,"span"),e.EFF(4),e.k0s()(),e.j41(5,"div",13)(6,"div",14),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2).$implicit,i=e.XpG(2);return e.Njj(i.onClick(l))}),e.nrm(7,"input",15)(8,"fa-icon",16),e.k0s(),e.j41(9,"button",17),e.qSk(),e.j41(10,"svg",18),e.nrm(11,"path",19),e.k0s()()()()}if(2&n){const c=e.XpG(2),t=c.$implicit,l=c.$index,i=c.$index,u=c.$count,C=e.XpG(2);e.Y8G("ngClass",C.checkClasses(0===i,i===u-1,t)),e.R7$(),e.Y8G("ngClass",e.l_i(8,It0,C.hasLongWord(null==t?null:t.name,20),!C.hasLongWord(null==t?null:t.name,20))),e.R7$(),e.Y8G("icon",C.iconForCategory(null==t?null:t.name)),e.R7$(2),e.JRh(null==t?null:t.name),e.R7$(3),e.Y8G("checked",C.isCheckedCategory(t)),e.R7$(),e.Y8G("icon",C.isCheckedCategory(t)?C.faCircleCheck:C.faCircle),e.R7$(),e.BMQ("data-accordion-target","#accordion-body-"+l)("aria-controls","accordion-body-"+l)}}function Vt0(n,a){if(1&n&&e.nrm(0,"bae-category-item",20),2&n){const c=e.XpG(2),l=c.$index,i=c.$count;e.Y8G("data",c.$implicit)("isParent",!0)("isFirst",0===l)("isLast",l===i-1)}}function Ut0(n,a){if(1&n&&e.DNE(0,Bt0,12,11,"div",10)(1,Vt0,1,4),2&n){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:1)}}function Gt0(n,a){if(1&n&&(e.j41(0,"li"),e.nrm(1,"bae-category-item",24),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("data",c)}}function Ht0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",22)(2,"ul",23),e.Z7z(3,Gt0,2,1,"li",null,mf1),e.k0s()()()),2&n){const c=e.XpG(2),t=c.$implicit,l=c.$index;e.Y8G("id","accordion-body-"+l),e.BMQ("aria-labelledby","accordion-heading-"+l),e.R7$(3),e.Dyx(t.children)}}function Yt0(n,a){if(1&n&&e.DNE(0,Ht0,5,2,"div",21),2&n){const c=e.XpG().$implicit;e.vxM(0,0!=c.children.length?0:-1)}}function qt0(n,a){if(1&n&&(e.j41(0,"h2",9),e.DNE(1,Ut0,2,1),e.k0s(),e.DNE(2,Yt0,1,1)),2&n){const c=a.$implicit;e.Y8G("id","accordion-heading-"+a.$index),e.R7$(),e.vxM(1,c.children?1:-1),e.R7$(),e.vxM(2,c.children?2:-1)}}function Xt0(n,a){}function Wt0(n,a){if(1&n&&(e.j41(0,"div",8),e.Z7z(1,qt0,3,3,null,null,mf1,!1,Xt0,0,0),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.categories)}}let lE1=(()=>{class n{get allFilterItems(){const c=[],t=l=>{for(const i of l)i.children&&i.children.length>0?t(i.children):c.push(i)};return t(this.categories),c}constructor(c,t,l,i){this.localStorage=c,this.eventMessage=t,this.api=l,this.cdr=i,this.classListFirst="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListLast="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classList="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-b-0 border-gray-200 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-tertiary-100 gap-3",this.classListFirstChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 rounded-t-xl focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.classListLastChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.classListChecked="flex items-center justify-between w-full p-5 font-medium rtl:text-right text-gray-500 border border-2 border-primary-50 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-800 dark:border-primary-50 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 gap-3",this.labelClass="text-gray-500 bg-white border-2 rounded-lg cursor-pointer dark:hover:text-gray-300 dark:border-gray-700 peer-checked:border-primary-50 hover:text-gray-600 dark:peer-checked:bg-primary-50 dark:peer-checked:text-secondary-100 peer-checked:text-gray-600 hover:bg-gray-50 dark:text-gray-400 dark:bg-tertiary-100 dark:hover:bg-primary-50",this.categories=[],this.checkedCategories=[],this.selected=[],this.dismissSubject=new S.B,this.cs=[],this.selectedCategories=new e.bkB,this.catalogId=void 0,this.showTitle=!0,this.simpleMode=!1,this.selectedRootId=void 0,this.selectedRootName=void 0,this.aiSearchEnabled=g1.c.AI_SEARCH_ENABLED,this.aiFacets={},this.dynamicAiCategories=[],this.configuredAiCategories=[],this.faCircleCheck=A2.QRE,this.faCircle=Sr1,this.iconForCategory=tE1.nc,this.destroy$=new S.B,this.categories=[],this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u=>{const C=u.value;if("AddedFilter"!==u.type||this.isCheckedCategory(C))if("RemovedFilter"===u.type&&this.isCheckedCategory(C)){const b=this.checkedCategories.findIndex(T=>T===C.id);-1!==b&&(this.checkedCategories.splice(b,1),this.cdr.detectChanges())}else"AiSearchFacets"===u.type&&this.aiSearchEnabled?(this.aiFacets=u.value||{},this.updateAiFacetCategories(),this.cdr.detectChanges()):"AiSearchCleared"===u.type&&this.aiSearchEnabled&&(this.aiFacets={},this.categories=[...this.cloneCategories(this.dynamicAiCategories),...this.cloneCategories(this.configuredAiCategories)],D2(),this.cdr.detectChanges());else this.checkedCategories.push(C.id),this.cdr.detectChanges()})}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.selected=c.localStorage.getObject("selected_categories")||[];for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}notifyDismiss(c){this.dismissSubject.next(c),this.removeCategory(c)}addCategory(c){-1==this.selected.indexOf(c,0)&&(this.selected.push(c),this.checkedCategories.push(c.id),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitAddedFilter(c),this.eventMessage.emitFiltersCommitted())}removeCategory(c){const t=this.selected.indexOf(c,0);if(t>-1){this.selected.splice(t,1),this.selectedCategories.emit(this.selected),this.localStorage.setObject("selected_categories",this.selected),this.eventMessage.emitRemovedFilter(c);const l=this.checkedCategories.findIndex(i=>i===c.id);-1!==l&&this.checkedCategories.splice(l,1),this.eventMessage.emitFiltersCommitted()}}isRoot(c,t){const l=this.categories.indexOf(c,0);let i=this.categories[l].children;return null!=i&&i.length>0?i:[]}onClick(c){if(this.isCheckedCategory(c)){this.localStorage.removeCategoryFilter(c),this.eventMessage.emitRemovedFilter(c);const t=this.checkedCategories.findIndex(l=>l===c.id);-1!==t&&this.checkedCategories.splice(t,1)}else this.checkedCategories.push(c.id),this.localStorage.addCategoryFilter(c),this.eventMessage.emitAddedFilter(c);this.selectedRootId&&this.syncParentFilterForSimpleMode(),this.eventMessage.emitFiltersCommitted()}syncParentFilterForSimpleMode(){const c=this.selectedRootId;if(!c)return;const t=this.localStorage.getObject("selected_categories")||[],l=new Set(this.allFilterItems.map(C=>C?.id).filter(C=>!!C)),i=t.some(C=>!!C?.id&&l.has(C.id)),u=t.find(C=>C?.id===c);if(i)u&&(this.localStorage.removeCategoryFilter(u),this.eventMessage.emitRemovedFilter(u));else if(!u){const C={id:c,name:this.selectedRootName||"Category"};this.localStorage.addCategoryFilter(C),this.eventMessage.emitAddedFilter(C)}}isCheckedCategory(c){return-1!==this.checkedCategories.findIndex(l=>l===c.id)}isChildsChecked(c){let t=!1;if(null!=c)for(let l=0;ll.length>t)}updateAiFacetCategories(){const c=this.applyFacetCountsToDynamicCategories(this.dynamicAiCategories,this.aiFacets),t=this.applyFacetCountsToConfiguredCategories(this.configuredAiCategories,this.aiFacets);this.categories=[...c,...t],D2()}applyFacetCountsToDynamicCategories(c,t){return(c||[]).map(l=>{const i=this.getFacetDataForDynamicRoot(l,t);return this.applyDynamicCategoryCounts(l,i,t)})}getFacetDataForDynamicRoot(c,t){const l=[String(c.id||""),this.toAiFacetKey(c.name||""),String(c.name||"")].filter(Boolean);for(const i of l)if(t?.[i])return t[i];return{}}applyDynamicCategoryCounts(c,t,l){const i=(c.children||[]).map(C=>this.applyDynamicCategoryCounts(C,t,l)),u=this.resolveDynamicCategoryCount(c,t,l);return{...c,count:"number"==typeof u&&Number.isFinite(u)&&u>0?u:void 0,children:i}}resolveDynamicCategoryCount(c,t,l){const i=this.readCountFromFacetMap(t,c.name,c.id);if(Number.isFinite(i)&&i>0)return i;const u=l?.[String(c.id||"")]||l?.[String(c.name||"")];if(u&&"object"==typeof u){const b=this.sumFacetCounts(u);if(b>0)return b}const C=this.findGlobalFacetCount(c,l);return C>0?C:void 0}readCountFromFacetMap(c,t,l){if(!c)return;const i=void 0!==t?Number(c[t]):NaN;if(Number.isFinite(i)&&i>0)return i;const u=void 0!==l?Number(c[l]):NaN;return Number.isFinite(u)&&u>0?u:void 0}findGlobalFacetCount(c,t){let l=0;for(const i of Object.values(t||{})){const u=this.readCountFromFacetMap(i,c.name,c.id);u&&u>0&&(l+=u)}return l}sumFacetCounts(c){return Object.values(c||{}).reduce((t,l)=>{const i=Number(l);return Number.isFinite(i)&&i>0?t+i:t},0)}applyFacetCountsToConfiguredCategories(c,t){return(c||[]).map(l=>{const i=String(l.id||""),u=t?.[i]||{};return{...l,children:this.applyFacetCountsRecursively(l.children||[],u)}})}applyFacetCountsRecursively(c,t){return(c||[]).map(l=>{const i=this.applyFacetCountsRecursively(l.children||[],t),C=Number(t[l.name]);return{...l,count:Number.isFinite(C)&&C>0?C:void 0,children:i}})}cloneCategories(c){return(c||[]).map(t=>({...t,children:this.cloneCategories(t.children||[])}))}convertDynamicCategoriesToAiFilterCategories(c){return(c||[]).map(t=>{const l=this.toAiFacetKey(t.name||"");return this.convertDynamicCategoryNode(t,l,!0)})}convertDynamicCategoryNode(c,t,l){const i=l?t:`${t}::${c.name}`;return{...c,id:i,sanitizedId:l?this.sanitizeIdForCss(t):`${this.sanitizeIdForCss(t)}-${this.sanitizeIdForCss(c.name||"")}`,children:(c.children||[]).map(u=>this.convertDynamicCategoryNode(u,t,!1))}}loadCatalogCategories(){var c=this;return(0,C1.A)(function*(){if(c.categories=[],c.selectedRootId){const u=yield c.api.getCategoriesByParentId(c.selectedRootId).catch(()=>[]);return void(c.categories=Array.isArray(u)?u:[])}if(null!=c.catalogId&&""!==String(c.catalogId).trim()){const u=yield c.api.getCatalog(c.catalogId).catch(()=>null),C=Array.isArray(u?.category)?u.category:[];if(C.length>0){const b=yield Promise.all(C.map(function(){var T=(0,C1.A)(function*(W){if(!W?.id)return null;const u1=yield c.api.getCategoryById(W.id).catch(()=>null),a1=u1?.parentId?String(u1.parentId):"";return u1?.id&&!0===u1.isRoot&&!a1?c.loadCategorySubtree(u1):null});return function(W){return T.apply(this,arguments)}}()));return void(c.categories=b.filter(T=>null!==T))}}const l=yield c.api.getLaunchedCategories(),i=Array.isArray(l)?l:[];for(const u of i)c.findChildren(u,i)})()}ngOnChanges(c){var t=this;return(0,C1.A)(function*(){const l=c.selectedRootId;l&&!l.firstChange&&(yield t.loadCatalogCategories(),t.cdr.detectChanges(),D2())})()}loadCategorySubtree(c){var t=this;return(0,C1.A)(function*(){const l=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),i=Array.isArray(l)?l:[],u=yield Promise.all(i.map(C=>t.loadCategorySubtree(C)));return{...c,children:u}})()}formatFacetName(c){return c.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}convertFiltersToCategories(c){return c.map(t=>this.convertFilterToCategory(t))}convertFilterToCategory(c){const t=c.name;return{id:c.name,name:this.formatFacetName(c.name),isRoot:!0,children:(c.children||[]).map(l=>this.convertOptionToCategory(t,l)),sanitizedId:this.sanitizeIdForCss(c.name)}}convertOptionToCategory(c,t){return{id:`${c}::${t.name}`,name:t.label?.trim()||t.name,isRoot:!1,children:[],sanitizedId:`${this.sanitizeIdForCss(c)}-${this.sanitizeIdForCss(t.name)}`}}sanitizeIdForCss(c){return c.replace(/\s+/g,"-").replace(/[()]/g,"").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase()}toAiFacetKey(c){return(c||"").trim().toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(U2),e.rXU(o0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-categories-filter"]],inputs:{catalogId:"catalogId",showTitle:"showTitle",simpleMode:"simpleMode",selectedRootId:"selectedRootId",selectedRootName:"selectedRootName"},outputs:{selectedCategories:"selectedCategories"},features:[e.OA$],decls:3,vars:2,consts:[[1,"text-2xl","dark:text-secondary-50","p-2"],[1,"flex","flex-col"],["data-cy","searchSubcategoryItem",1,"flex","items-center","gap-3","cursor-pointer","rounded-lg","py-3","pl-4","pr-2","hover:bg-[#F0F4FB]","transition-colors"],["data-cy","searchSubcategoryItem",1,"flex","items-center","gap-3","cursor-pointer","rounded-lg","py-3","pl-4","pr-2","hover:bg-[#F0F4FB]","transition-colors",3,"click"],[1,"flex","h-6","w-6","shrink-0","items-center","justify-center","rounded-md","border-2",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-3.5","w-3.5"],[1,"text-[16px]","text-[#4C5A6B]"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],["id","accordion-collapse","data-accordion","open"],[3,"id"],[3,"ngClass"],[1,"flex","items-center","gap-2","text-left","justify-start","text-wrap","break-words",3,"ngClass"],[1,"shrink-0","text-[#2D58A7]",3,"icon"],[1,"justify-end","inline-flex"],[1,"justify-end",3,"click"],["type","checkbox","value","",1,"hidden","peer",3,"checked"],[1,"text-2xl",3,"icon"],["type","button","aria-expanded","false",1,"ml-4"],["data-accordion-icon","","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-3","h-3","rotate-180","shrink-0"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9 5 5 1 1 5"],["data-cy","categoryItemService",3,"data","isParent","isFirst","isLast"],[1,"hidden",3,"id"],[1,"p-2","border","border-gray-200","dark:border-gray-700","dark:bg-secondary-500"],[1,"grid","w-full","gap-2"],[3,"data"]],template:function(t,l){1&t&&e.DNE(0,Pt0,3,3,"h2",0)(1,Ot0,3,0,"ul",1)(2,Wt0,4,1),2&t&&(e.vxM(0,l.showTitle?0:-1),e.R7$(),e.vxM(1,l.simpleMode?1:2))},dependencies:[_.YU,J2.aY,At0,s1.D9]})}}return n})();const Jt0=["myProdImage"],Qt0=["descWrapper"],Zt0=["descWrapperList"],pf1=(n,a)=>a.id,lD=(n,a)=>({"break-all":n,"break-words":a});function Kt0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.j41(1,"div",11)(2,"div",12),e.nrm(3,"div",13)(4,"img",14),e.k0s()(),e.j41(5,"div",15)(6,"div",16),e.qSk(),e.j41(7,"svg",17),e.nrm(8,"path",18),e.k0s(),e.joV(),e.j41(9,"span",19),e.EFF(10),e.k0s()(),e.j41(11,"h5",20),e.EFF(12),e.k0s(),e.j41(13,"div",21,0)(15,"p",22),e.EFF(16),e.k0s()(),e.j41(17,"div",23)(18,"button",24),e.bIt("click",function(l){e.eBV(c);const i=e.XpG();return i.goToProductDetails(i.productOff),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(19,"svg",25),e.nrm(20,"path",26),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(3),e.xc7("background-image","url("+c.getProductImage()+")"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.Y8G("title",(null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||""),e.R7$(),e.JRh((null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||"Owner/Brand"),e.R7$(),e.Y8G("ngClass",e.l_i(10,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(3),e.xc7("-webkit-line-clamp",c.descLineClamp),e.R7$(),e.JRh(c.getShortDescription())}}function en0(n,a){if(1&n&&(e.j41(0,"span",39),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.name)}}function cn0(n,a){1&n&&e.DNE(0,en0,2,1,"span",39),2&n&&e.vxM(0,a.$index<3?0:-1)}function tn0(n,a){if(1&n&&(e.j41(0,"span",34),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI("+",c.categories.length-3,"")}}function nn0(n,a){if(1&n&&(e.j41(0,"div")(1,"span",40),e.EFF(2,"Starting from"),e.k0s(),e.j41(3,"span",41),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.E5c("",c.cheapestPrice.unit,"",e.i5U(5,3,c.cheapestPrice.price,"1.2-2"),"",c.cheapestPrice.text?"/"+c.cheapestPrice.text:"","")}}function ln0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"span",40),e.EFF(2,"Technology"),e.k0s(),e.j41(3,"span",42),e.EFF(4),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.JRh(c.prodSpec.brand)}}function sn0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"span",40),e.EFF(2,"Compliance"),e.k0s(),e.j41(3,"span",42),e.EFF(4),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(4),e.JRh("BL"===c.complianceLevel?"Baseline":"P"===c.complianceLevel?"Professional":"Professional+")}}function an0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.j41(1,"div",28)(2,"div",29),e.nrm(3,"div",13)(4,"img",14),e.k0s()(),e.j41(5,"div",30)(6,"div",31),e.qSk(),e.j41(7,"svg",17),e.nrm(8,"path",18),e.k0s(),e.joV(),e.j41(9,"span",19),e.EFF(10),e.k0s()(),e.j41(11,"h5",32),e.EFF(12),e.k0s(),e.j41(13,"div",33),e.Z7z(14,cn0,1,1,null,null,pf1),e.DNE(16,tn0,2,1,"span",34),e.k0s(),e.j41(17,"div",21,1)(19,"p",22),e.EFF(20),e.k0s()(),e.j41(21,"div",35)(22,"div",36),e.DNE(23,nn0,6,6,"div")(24,ln0,5,1,"div",37)(25,sn0,5,1,"div",37),e.k0s(),e.j41(26,"button",38),e.bIt("click",function(l){e.eBV(c);const i=e.XpG();return i.goToProductDetails(i.productOff),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(27,"svg",25),e.nrm(28,"path",26),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(3),e.xc7("background-image","url("+c.getProductImage()+")"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.Y8G("title",(null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||""),e.R7$(),e.JRh((null==c.orgInfo?null:c.orgInfo.tradingName)||c.prodSpec.brand||"Owner/Brand"),e.R7$(),e.Y8G("ngClass",e.l_i(14,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(2),e.Dyx(c.categories),e.R7$(2),e.vxM(16,c.categories&&c.categories.length>3?16:-1),e.R7$(3),e.xc7("-webkit-line-clamp",c.descLineClampList),e.R7$(),e.JRh(c.getShortDescription()),e.R7$(3),e.vxM(23,void 0!==(null==c.cheapestPrice?null:c.cheapestPrice.price)&&(null==c.cheapestPrice?null:c.cheapestPrice.price)>0?23:-1),e.R7$(),e.vxM(24,c.prodSpec.brand?24:-1),e.R7$(),e.vxM(25,c.complianceLevel&&"NL"!==c.complianceLevel?25:-1)}}function on0(n,a){if(1&n&&(e.j41(0,"a",55),e.nrm(1,"fa-icon",75),e.EFF(2," No level "),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("ngClass","NL"==c.complianceLevel?"bg-red-200 text-red-700":"BL"==c.complianceLevel?"bg-orange-200 text-orange-700":"P"==c.complianceLevel?"bg-yellow-200 text-yellow-700":"bg-green-200 text-green-700"),e.R7$(),e.Y8G("icon",c.faAtom)("ngClass","NL"==c.complianceLevel?"text-red-700":"BL"==c.complianceLevel?"text-orange-700":"P"==c.complianceLevel?"text-yellow-700":"text-green-700")}}function in0(n,a){1&n&&e.nrm(0,"img",76)}function rn0(n,a){1&n&&e.nrm(0,"img",77)}function dn0(n,a){1&n&&e.nrm(0,"img",78)}function fn0(n,a){1&n&&e.nrm(0,"bae-badge",56),2&n&&e.Y8G("category",a.$implicit)}function un0(n,a){1&n&&e.nrm(0,"bae-badge",56),2&n&&e.Y8G("category",a.$implicit)}function mn0(n,a){if(1&n&&e.Z7z(0,un0,1,1,"bae-badge",56,pf1),2&n){const c=e.XpG(2);e.Dyx(c.categoriesMore)}}function pn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.loadMoreCategories())}),e.nrm(1,"fa-icon",80),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faEllipsis)}}function hn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"a",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.closeCategories())}),e.nrm(1,"fa-icon",80),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Y8G("icon",c.faClose)}}function gn0(n,a){if(1&n&&(e.j41(0,"li",67),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.Lme("",e.bMT(2,2,"CARD._id_number"),": ",c.prodSpec.productNumber,"")}}function _n0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",69),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"a",81),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.goToOrgDetails(l.orgInfo.id))}),e.EFF(4),e.k0s()()}if(2&n){const c=e.XpG(2);e.Y8G("ngClass",e.l_i(5,lD,c.hasLongWord(c.orgInfo.tradingName,20),!c.hasLongWord(c.orgInfo.tradingName,20))),e.R7$(),e.SpI("",e.bMT(2,3,"CARD._owner"),": "),e.R7$(3),e.JRh(c.orgInfo.tradingName)}}function Ln0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openDrawer())}),e.qSk(),e.j41(1,"svg",84),e.nrm(2,"path",85),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("disabled",!c.PURCHASE_ENABLED||c.productAlreadyInCart)("ngClass",!c.PURCHASE_ENABLED||c.productAlreadyInCart?"opacity-50":"hover:bg-primary-50"),e.R7$(3),e.SpI(" ",e.bMT(4,3,"CARD._add_cart")," ")}}function Cn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",86),e.bIt("click",function(l){return e.eBV(c),e.XpG(3).toggleQuoteModal(),e.Njj(l.stopPropagation())}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",87),e.nrm(4,"path",88),e.k0s()()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CARD._quote")," "))}function zn0(n,a){if(1&n&&e.DNE(0,Ln0,5,5,"button",82)(1,Cn0,5,3),2&n){const c=e.XpG(2);e.vxM(0,c.isCustom()?c.quotesEnabled?1:-1:0)}}function Mn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",43),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",44)(3,"button",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.hideModal())}),e.qSk(),e.j41(4,"svg",46),e.nrm(5,"path",47),e.k0s(),e.joV(),e.j41(6,"span",48),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",49)(10,"div",50)(11,"h5",51),e.EFF(12),e.k0s(),e.j41(13,"div",52)(14,"div",53),e.EFF(15),e.k0s()(),e.j41(16,"div",54),e.DNE(17,on0,3,3,"a",55)(18,in0,1,0)(19,rn0,1,0)(20,dn0,1,0),e.Z7z(21,fn0,1,1,"bae-badge",56,pf1),e.DNE(23,mn0,2,0)(24,pn0,2,1,"a",57)(25,hn0,2,1,"a",57),e.k0s()(),e.j41(26,"div",58),e.nrm(27,"div",59)(28,"img",60),e.k0s(),e.nrm(29,"hr",61),e.k0s(),e.j41(30,"div",62)(31,"div",63)(32,"h5",64),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"markdown",65),e.k0s(),e.j41(36,"div",63)(37,"h5",64),e.EFF(38),e.nI1(39,"translate"),e.k0s(),e.j41(40,"ul",66)(41,"li",67),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"li",68),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"li",67),e.EFF(48),e.nI1(49,"translate"),e.k0s(),e.j41(50,"li",67),e.EFF(51),e.nI1(52,"translate"),e.nI1(53,"date"),e.k0s(),e.j41(54,"li",67),e.EFF(55),e.nI1(56,"translate"),e.k0s(),e.DNE(57,gn0,3,4,"li",67)(58,_n0,5,8,"li",69),e.k0s()()(),e.nrm(59,"hr",70),e.j41(60,"div",71),e.DNE(61,zn0,2,1),e.j41(62,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToProductDetails(l.productOff))}),e.EFF(63),e.nI1(64,"translate"),e.qSk(),e.j41(65,"svg",73),e.nrm(66,"path",74),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showModal?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,31,"CARD._close")),e.R7$(4),e.Y8G("ngClass",e.l_i(52,lD,c.hasLongWord(null==c.productOff?null:c.productOff.name,20),!c.hasLongWord(null==c.productOff?null:c.productOff.name,20))),e.R7$(),e.JRh(null==c.productOff?null:c.productOff.name),e.R7$(3),e.SpI("V: ",(null==c.productOff?null:c.productOff.version)||"latest",""),e.R7$(2),e.vxM(17,"NL"==c.complianceLevel?17:"BL"==c.complianceLevel?18:"P"==c.complianceLevel?19:20),e.R7$(4),e.Dyx(c.categories),e.R7$(2),e.vxM(23,c.loadMoreCats?23:-1),e.R7$(),e.vxM(24,c.checkMoreCats?24:-1),e.R7$(),e.vxM(25,c.closeCats?25:-1),e.R7$(2),e.muq("background-image: url(",c.getProductImage(),");filter: blur(20px);"),e.R7$(),e.FS9("src",c.getProductImage(),e.B4B),e.R7$(5),e.SpI("",e.bMT(34,33,"CARD._prod_details"),":"),e.R7$(2),e.Y8G("ngClass",e.l_i(55,lD,c.hasLongWord(null==c.productOff?null:c.productOff.description,20),!c.hasLongWord(null==c.productOff?null:c.productOff.description,20)))("data",null==c.productOff?null:c.productOff.description),e.R7$(3),e.SpI("",e.bMT(39,35,"CARD._extra_info"),":"),e.R7$(4),e.Lme("",e.bMT(43,37,"CARD._offer_version"),": v",null==c.productOff?null:c.productOff.version,""),e.R7$(3),e.Lme("",e.bMT(46,39,"CARD._product_name"),": ",c.prodSpec.name,""),e.R7$(3),e.Lme("",e.bMT(49,41,"CARD._brand"),": ",c.prodSpec.brand,""),e.R7$(3),e.Lme("",e.bMT(52,43,"CARD._last_update"),": ",e.i5U(53,45,null==c.productOff?null:c.productOff.lastUpdate,"dd/MM/yy, HH:mm"),""),e.R7$(4),e.Lme("",e.bMT(56,48,"CARD._product_version"),": v",c.prodSpec.version,""),e.R7$(2),e.vxM(57,""!=c.prodSpec.productNumber?57:-1),e.R7$(),e.vxM(58,null!=c.orgInfo?58:-1),e.R7$(3),e.vxM(61,c.check_logged?61:-1),e.R7$(2),e.SpI(" ",e.bMT(64,50,"CARD._details")," ")}}function xn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",6)(1,"div",89),e.qSk(),e.j41(2,"svg",90),e.nrm(3,"path",91),e.k0s(),e.joV(),e.j41(4,"div",92),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",93)(8,"button",94),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deleteProduct(l.lastAddedProd))}),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",95),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toastVisibility=!1)}),e.j41(12,"span",48),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",96),e.nrm(16,"path",47),e.k0s()()()(),e.joV(),e.j41(17,"div",97),e.nrm(18,"div",98),e.k0s()()}2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,3,"CARD._added_card"),". "),e.R7$(4),e.JRh(e.bMT(10,5,"CARD._undo")),e.R7$(4),e.JRh(e.bMT(14,7,"CARD._close_toast")))}function bn0(n,a){if(1&n&&e.nrm(0,"cart-card",7),2&n){const c=e.XpG();e.Y8G("productOff",c.productOff)("prodSpec",c.prodSpec)("images",c.images)("cartSelection",c.cartSelection)}}function yn0(n,a){if(1&n&&e.nrm(0,"error-message",8),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Fn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-quote-request-modal",99),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showQuoteModal?"backdrop-blur-sm":"")("productOff",c.productOff)("prodSpec",c.prodSpec)("orgInfo",c.orgInfo)("customerId",c.customerId)("isOpen",c.showQuoteModal)}}let sE1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W){this.cdr=c,this.localStorage=t,this.eventMessage=l,this.api=i,this.priceService=u,this.cartService=C,this.accService=b,this.themeService=T,this.router=W,this.viewMode="grid",this.providerThemeName=g1.c.providerThemeName,this.quotesEnabled=g1.c.QUOTES_ENABLED,this.category="none",this.categories=[],this.categoriesMore=[],this.price={price:0,priceType:"X"},this.images=[],this.bgColor="",this.toastVisibility=!1,this.detailsModalVisibility=!1,this.prodSpec={},this.complianceProf=R5,this.complianceLevel="NL",this.showModal=!1,this.cartSelection=!1,this.check_prices=!1,this.check_char=!1,this.check_terms=!1,this.selected_terms=!1,this.selected_chars=[],this.formattedPrices=[],this.descLineClamp=2,this.descLineClampList=2,this.check_logged=!1,this.faAtom=A2.RSf,this.faClose=A2.yYc,this.faEllipsis=A2.Dwc,this.PURCHASE_ENABLED=g1.c.PURCHASE_ENABLED,this.checkMoreCats=!1,this.closeCats=!1,this.loadMoreCats=!1,this.errorMessage="",this.showError=!1,this.orgInfo=void 0,this.selectedPricePlanId=null,this.selectedPricePlan=null,this.currentTheme=null,this.themeSubscription=new x1.yU,this.destroy$=new S.B,this.productAlreadyInCart=!1,this.showQuoteModal=!1,this.customerId="",this.isCustomPrice=!1,this.cheapestPrice=null,this.isDrawerOpen=!1,this.JSON=JSON,this.targetModal=document.getElementById("details-modal"),this.modal=new hw1(this.targetModal),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u1=>{if("CloseCartCard"===u1.type){if(this.hideCartSelection(),null!=u1.value){this.lastAddedProd=u1.value,this.toastVisibility=!0,this.cdr.detectChanges();let a1=document.getElementById("progress-bar"),T1=document.getElementById("toast-add-cart");null!=a1&&null!=T1&&(a1.style.width="0%",a1.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}this.cdr.detectChanges()}"CloseQuoteRequest"===u1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==u1.type||"AddedCartItem"==u1.type)&&this.cartService.getShoppingCart().then(a1=>{this.productAlreadyInCart=!!a1.some(Y1=>Y1.id===this.productOff?.id)}),"CloseQuoteRequest"===u1.type?(this.showQuoteModal=!1,this.cdr.detectChanges()):("RemovedCartItem"==u1.type||"AddedCartItem"==u1.type)&&this.cartService.getShoppingCart().then(a1=>{this.productAlreadyInCart=!!a1.some(Y1=>Y1.id===this.productOff?.id)})})}onClick(){1==this.showModal&&(this.showModal=!1,this.productOff?.category&&this.productOff?.category.length>5&&(this.loadMoreCats=!1,this.checkMoreCats=!0,this.closeCats=!1),this.cdr.detectChanges()),(this.showQuoteModal=!0)&&(this.showQuoteModal=!1),1==this.cartSelection&&(this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges())}ngOnDestroy(){this.themeSubscription&&this.themeSubscription.unsubscribe(),this.descResizeObserver?.disconnect(),this.destroy$.next(),this.destroy$.complete()}setupDescriptionClamp(){if(typeof ResizeObserver>"u")return;const c=this.descWrapper?.nativeElement??this.descWrapperList?.nativeElement;c&&(this.descResizeObserver=new ResizeObserver(l=>{for(const i of l){const C=Math.max(1,Math.floor(i.contentRect.height/24));"grid"===this.viewMode&&C!==this.descLineClamp?(this.descLineClamp=C,this.cdr.detectChanges()):"list"===this.viewMode&&C!==this.descLineClampList&&(this.descLineClampList=C,this.cdr.detectChanges())}}),this.descResizeObserver.observe(c))}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.themeSubscription=c.themeService.currentTheme$.subscribe(i=>{c.currentTheme=i});let t=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0){if(c.check_logged=!0,t.logged_as==t.id)c.customerId=t.partyId;else{let C=t.organizations.find(b=>b.id==t.logged_as);c.customerId=C.partyId}c.cdr.detectChanges();const u=(yield c.cartService.getShoppingCart()).some(C=>C.id===c.productOff?.id);c.productAlreadyInCart=u,c.cdr.detectChanges()}else c.check_logged=!1,c.cdr.detectChanges();c.category=c.productOff?.category?.at(0)?.name??"none",null!=c.productOff?.category&&c.productOff?.category.length>5?(c.categories=c.productOff?.category.slice(0,4),c.categoriesMore=c.productOff?.category.slice(4),c.checkMoreCats=!0):(c.categories=c.productOff?.category,c.checkMoreCats=!1);let l=c.productOff?.attachment?.filter(i=>"Profile Picture"===i.name)??[];c.images=0==l.length?c.productOff?.attachment?.filter(i=>"Picture"===i.attachmentType)??[]:l,c.prodSpec=c.productOff?.productSpecification??{},c.getOwner(),null!=c.prodSpec.productSpecCharacteristic&&(c.complianceLevel=c.api.getComplianceLevel(c.prodSpec)),c.isCustomPrice=yield c.priceService.isCustomOffering(c.productOff),c.cheapestPrice=c.priceService.formatCheapestPricePlan(c.productOff),c.prepareOffData(),c.cdr.detectChanges()})()}isCustom(){return this.isCustomPrice}getProductImage(){return this.images.length>0?this.images?.at(0)?.url:"https://placehold.co/600x400/svg"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getShortDescription(){const c=this.productOff?.description??"";if(!c)return"";const t=c.replace(/<[^>]*>/g," "),l=document.createElement("textarea");return l.innerHTML=t,l.value.replace(/\s+/g," ").trim()}loadMoreCategories(){this.loadMoreCats=!this.loadMoreCats,this.checkMoreCats=!1,this.closeCats=!0}closeCategories(){this.closeCats=!1,this.checkMoreCats=!0,this.productOff?.category&&(this.categories=this.productOff?.category.slice(0,4)),this.loadMoreCats=!this.loadMoreCats}ngAfterViewInit(){D2(),this.setupDescriptionClamp()}addProductToCart(c,t){var l=this;return(0,C1.A)(function*(){if(!c||!c.productOfferingPrice)return;const i=l.createProdOptions(c,t);l.lastAddedProd=i;try{yield l.cartService.addItemShoppingCart(i),console.log("Update successful"),l.showToast(),l.eventMessage.emitAddedCartItem(c)}catch(u){l.handleError(u,"There was an error while adding item to the cart!")}l.cartSelection&&l.resetSelections(),l.cdr.detectChanges()})()}createProdOptions(c,t){return{id:c.id,name:c.name,image:this.getProductImage(),href:c.href,options:{characteristics:this.selected_chars,pricing:this.selected_price},termsAccepted:!t||this.selected_terms}}showToast(){this.toastVisibility=!0,this.cdr.detectChanges();const c=document.getElementById("progress-bar"),t=document.getElementById("toast-add-cart");c&&t&&(c.style.width="0%",c.style.width="100%",setTimeout(()=>{this.toastVisibility=!1},3500))}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}resetSelections(){this.cartSelection=!1,this.check_char=!1,this.check_terms=!1,this.check_prices=!1,this.selected_chars=[],this.selected_price={},this.selected_terms=!1,this.cdr.detectChanges()}deleteProduct(c){var t=this;return(0,C1.A)(function*(){void 0!==c&&(yield t.cartService.removeItemShoppingCart(c.id),console.log("removed"),t.eventMessage.emitRemovedCartItem(c)),t.toastVisibility=!1})()}toggleDetailsModal(){this.showModal=!0,this.cdr.detectChanges()}toggleCartSelection(){console.log("Add to cart..."),null!=this.productOff?.productOfferingPrice&&(this.productOff?.productOfferingPrice.length>1?(this.check_prices=!0,this.selected_price=this.productOff?.productOfferingPrice[this.productOff?.productOfferingPrice.length-1]):this.selected_price=this.productOff?.productOfferingPrice[0]),null!=this.productOff?.productOfferingTerm&&(this.check_terms=!!this.productOff.productOfferingTerm.find(t=>"License"===t.name)),0==this.check_prices&&0==this.check_char&&0==this.check_terms?this.addProductToCart(this.productOff,!1):(this.cartSelection=!0,this.cdr.detectChanges())}prepareOffData(){if(null!=this.prodSpec.productSpecCharacteristic){for(let c=0;c1&&(this.check_char=!0);for(let l=0;l div[modal-backdrop]")?.remove(),this.router.navigate(["/search",c?.id])}goToOrgDetails(c){document.querySelector("body > div[modal-backdrop]")?.remove(),this.router.navigate(["/org-details",c])}getOwner(){let c=this.prodSpec?.relatedParty;if(c)for(let t=0;t{this.orgInfo=l,console.log("orginfo"),console.log(this.orgInfo)})}onPricePlanSelected(c){console.log(c.id),this.selectedPricePlanId=c.id,this.selectedPricePlan=c}onValueChange(c){console.log("Selected Value:",c)}openDrawer(){this.showModal&&(this.showModal=!1),this.isDrawerOpen=!0}closeDrawer(){this.isDrawerOpen=!1}toggleQuoteModal(){this.showModal=!1,this.showQuoteModal=!0}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(o0.F),e.rXU(X8),e.rXU(d8),e.rXU(x0.O),e.rXU(cF),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-off-card"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Jt0,5),e.GBs(Qt0,5),e.GBs(Zt0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.myProdImage=i.first),e.mGM(i=e.lsd())&&(l.descWrapper=i.first),e.mGM(i=e.lsd())&&(l.descWrapperList=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{productOff:"productOff",prodSpecInput:"prodSpecInput",cardId:"cardId",viewMode:"viewMode"},decls:8,vars:12,consts:[["descWrapper",""],["descWrapperList",""],[1,"flex","flex-col","w-full","h-[430px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]"],[1,"flex","w-full","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]"],["data-cy","pricePlanDrawer",3,"closeDrawer","drawerId","productOff","prodSpec","isOpen","width"],["id","details-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass"],["id","toast-add-cart","role","alert",1,"flex","grid","grid-flow-row","mr-2","items-center","w-auto","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[3,"productOff","prodSpec","images","cartSelection"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"],[1,"flex","flex-col","w-full","h-[430px]","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]",3,"click"],[1,"px-2","pt-2"],[1,"relative","h-[170px]","w-full","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75",2,"filter","blur(20px)"],["alt","Product image",1,"relative","z-10","h-full","w-full","object-contain",3,"src"],[1,"flex-1","flex","flex-col","px-4","pt-3","pb-4"],[1,"flex","items-center","gap-2","mb-2","text-[14px]","text-[#526179]","min-w-0"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-[18px]","w-[18px]","text-[#526179]","shrink-0"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"],[1,"truncate","min-w-0",3,"title"],["data-cy","searchOfferTitle",1,"text-[20px]","font-bold","leading-[1]","line-clamp-3","text-[#14274A]","mb-2",3,"ngClass"],[1,"flex-1","min-h-0","overflow-hidden"],["data-cy","searchOfferDescription",1,"text-[16px]","font-normal","leading-[24px]","text-[#0B1528]",2,"display","-webkit-box","-webkit-box-orient","vertical","overflow","hidden"],[1,"flex","justify-end","mt-4"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","hover:bg-gray-100","transition-colors","text-[#526179]",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-7","w-7"],["stroke-linecap","round","stroke-linejoin","round","d","M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"],[1,"flex","w-full","bg-white","rounded-[16px]","border","border-[#D8DADE]","hover:shadow-md","transition-shadow","cursor-pointer","font-[Blinker]",3,"click"],[1,"p-2","pr-0","shrink-0"],[1,"relative","h-full","w-[260px]","min-h-[180px]","rounded-xl","bg-[#EBECEE]","overflow-hidden","flex","justify-center","items-center"],[1,"flex-1","flex","flex-col","px-5","py-4","min-w-0"],[1,"flex","items-center","gap-2","mb-1.5","text-[14px]","text-[#526179]","min-w-0"],["data-cy","searchOfferTitle",1,"text-[20px]","font-bold","leading-[1]","line-clamp-2","text-[#14274A]","mb-2",3,"ngClass"],["data-cy","searchOfferCategories",1,"flex","items-center","flex-wrap","gap-1.5","mb-2"],[1,"inline-flex","items-center","px-2.5","py-0.5","rounded","text-[12px]","font-medium","bg-gray-100","text-gray-600"],[1,"flex","items-end","justify-between","mt-3"],[1,"flex","items-center","gap-6","text-[14px]","text-[#526179]"],[1,"border-l","border-gray-200","pl-6"],[1,"flex","items-center","justify-center","h-10","w-10","rounded-full","hover:bg-gray-100","transition-colors","text-[#526179]","shrink-0",3,"click"],[1,"inline-flex","items-center","px-2.5","py-0.5","rounded","text-[12px]","font-medium","bg-[#eef2fb]","text-[#1f4fbf]","whitespace-nowrap"],[1,"text-[12px]","text-[#8896A8]","block"],[1,"font-semibold","text-[#14274A]"],[1,"font-medium","text-[#14274A]"],[1,"relative","w-full","max-w-7xl","max-h-full","rounded-t-lg",3,"click"],[1,"relative","sm:m-8","bg-white","rounded-lg","shadow","dark:border-gray-600","dark:bg-tertiary-100","bg-cover","bg-right-bottom","rounded-lg","overflow-y-auto","max-h-[calc(100vh-10rem)]"],["type","button","data-modal-hide","details-modal",1,"absolute","top-4","right-4","z-50","text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[1,"w-full","mb-4","rounded-t-lg","grid","grid-cols-80/20","lg:grid-cols-60/40"],[1,"flex","flex-col","p-4","overflow-x-hidden"],[1,"md:text-3xl","lg:text-4xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-50","text-wrap","break-words",3,"ngClass"],[1,"grid","grid-cols-2"],[1,"min-h-19","pt-2","text-gray-500","dark:text-gray-400"],[1,"h-fit","overflow-x-hidden","flex","items-center","flex-wrap"],[1,"text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","mb-2","mr-2",3,"ngClass"],[1,"mr-2",3,"category"],[1,"cursor-pointer","text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2"],[1,"relative","h-[200px]","overflow-hidden","flex","justify-center","items-center","border","border-1","border-gray-200","dark:border-gray-700","rounded-tr-lg"],[1,"absolute","inset-0","bg-cover","bg-center","opacity-75"],["alt","Product image",1,"rounded-r-lg","h-5/6","w-5/6","object-contain","z-10","dark:text-white",3,"src"],[1,"h-px","border-gray-200","border-1","dark:border-gray-700"],[1,"p-4","lg:p-5","grid","grid-cols-1","lg:grid-cols-2","gap-4"],[1,"justify-start"],[1,"font-semibold","tracking-tight","text-lg","text-primary-100","dark:text-primary-50"],[1,"min-h-19","h-19","dark:text-secondary-50","line-clamp-6","text-wrap","break-words",3,"ngClass","data"],[1,"max-w-md","space-y-1","list-disc","list-inside","dark:text-secondary-50","text-wrap","break-all","line-clamp-8"],[1,"text-wrap","break-all","line-clamp-1"],[1,"text-wrap","break-all","line-clamp-2"],[1,"text-wrap","break-words","line-clamp-1",3,"ngClass"],[1,"h-px","bg-gray-200","border-0","dark:bg-gray-700"],[1,"flex"],["type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],[1,"mr-2",3,"icon","ngClass"],["src","assets/logos/baseline.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],["src","assets/logos/prof.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],["src","assets/logos/profplus.png",1,"z-10","dark:text-white","rounded-md","mb-2","mr-2","max-h-[1.2rem]","align-middle"],[1,"cursor-pointer","text-xs","font-medium","inline-flex","items-center","px-2.5","py-0.5","rounded-md","text-secondary-50","bg-primary-100","dark:bg-secondary-50","dark:text-primary-100","mb-2",3,"click"],[1,"text-secondary-50","dark:text-primary-100",3,"icon"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["data-cy","addToCart","type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"disabled","ngClass"],["data-cy","addToCart","type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 18 21",1,"w-3.5","h-3.5","me-2"],["d","M15 12a1 1 0 0 0 .962-.726l2-7A1 1 0 0 0 17 3H3.77L3.175.745A1 1 0 0 0 2.208 0H1a1 1 0 0 0 0 2h.438l.6 2.255v.019l2 7 .746 2.986A3 3 0 1 0 9 17a2.966 2.966 0 0 0-.184-1h2.368c-.118.32-.18.659-.184 1a3 3 0 1 0 3-3H6.78l-.5-2H15Z"],["type","button",1,"m-4","w-fit","flex","items-center","justify-start","text-white","bg-blue-700","hover:bg-blue-800","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","me-2","dark:bg-blue-600","dark:hover:bg-blue-700","dark:focus:ring-blue-800",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 18 20",1,"w-[18px]","h-[18px]","text-gray-800","dark:text-white","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 15a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm0 0h8m-8 0-1-4m9 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm-9-4h10l2-7H3m2 7L3 4m0 0-.792-3H1"],[1,"text-sm","font-normal"],[1,"flex","items-center","ms-auto","space-x-2","rtl:space-x-reverse","p-1.5"],["type","button",1,"px-3","py-2","text-xs","font-medium","text-center","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","dark:bg-gray-800","dark:text-white","dark:border-gray-600","dark:hover:bg-gray-700","dark:hover:border-gray-600","dark:focus:ring-gray-700",3,"click"],["type","button","data-dismiss-target","#toast-add-cart","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],[1,"flex","w-full","mt-2","rounded-full","h-2.5","dark:bg-gray-700"],["id","progress-bar",1,"z-10","flex","bg-green-600","h-2.5","rounded-full","dark:bg-green-500","transition-width","delay-200","duration-3000","ease-out",2,"width","0px"],[1,"flex","justify-center","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-full","max-h-full","rounded-lg","shadow-2xl",3,"click","ngClass","productOff","prodSpec","orgInfo","customerId","isOpen"]],template:function(t,l){1&t&&(e.DNE(0,Kt0,21,13,"div",2)(1,an0,29,17,"div",3),e.j41(2,"app-price-plan-drawer",4),e.bIt("closeDrawer",function(){return l.closeDrawer()}),e.k0s(),e.DNE(3,Mn0,67,58,"div",5)(4,xn0,19,9,"div",6)(5,bn0,1,4,"cart-card",7)(6,yn0,1,1,"error-message",8)(7,Fn0,1,6,"app-quote-request-modal",9)),2&t&&(e.vxM(0,"grid"===l.viewMode?0:-1),e.R7$(),e.vxM(1,"list"===l.viewMode?1:-1),e.R7$(),e.Y8G("drawerId","drawer-product")("productOff",l.productOff)("prodSpec",l.prodSpec)("isOpen",l.isDrawerOpen)("width","w-2/3"),e.R7$(),e.vxM(3,l.showModal?3:-1),e.R7$(),e.vxM(4,l.toastVisibility?4:-1),e.R7$(),e.vxM(5,l.cartSelection?5:-1),e.R7$(),e.vxM(6,l.showError?6:-1),e.R7$(),e.vxM(7,l.showQuoteModal?7:-1))},dependencies:[_.YU,J2.aY,Vd1,N0,cH,XN1,E0,qN1,_.QX,_.vh,s1.D9],styles:[".fade[_ngcontent-%COMP%]{transition:all linear .5s;opacity:1}"]})}}return n})();const vn0=(n,a)=>a.id,kn0=(n,a)=>({"break-all":n,"break-words":a});function wn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",22),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",23),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",24),e.nrm(3,"path",25),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",27),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showDrawer?"backdrop-blur-sm":""),e.R7$(5),e.JRh(e.bMT(6,3,"DASHBOARD._close_menu")),e.R7$(2),e.Y8G("catalogId",c.catalog.id)}}function Sn0(n,a){if(1&n&&e.nrm(0,"bae-categories-filter",28),2&n){const c=e.XpG();e.Y8G("catalogId",c.catalog.id)}}function Nn0(n,a){1&n&&(e.j41(0,"div",21),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5,"Loading..."),e.k0s()())}function En0(n,a){if(1&n&&e.nrm(0,"bae-off-card",41),2&n){const t=a.$index;e.Y8G("productOff",a.$implicit)("cardId",t)}}function Dn0(n,a){1&n&&(e.j41(0,"div",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"DASHBOARD._not_found")))}function Tn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",43)(1,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s()()()}}function Rn0(n,a){if(1&n&&e.DNE(0,Tn0,5,0,"div",43),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function An0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31),e.k0s(),e.joV(),e.j41(4,"span",26),e.EFF(5,"Loading..."),e.k0s()())}function In0(n,a){if(1&n&&(e.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"h5",36),e.EFF(5),e.k0s(),e.nrm(6,"markdown",37),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"div",38)(9,"img",39),e.k0s()()(),e.j41(10,"div",40),e.Z7z(11,En0,1,2,"bae-off-card",41,vn0,!1,Dn0,3,3,"div",42),e.k0s(),e.DNE(14,Rn0,1,1)(15,An0,6,0)),2&n){const c=e.XpG();e.R7$(5),e.SpI(" ",c.providerName," "),e.R7$(),e.Y8G("data",""!=c.providerDescription?c.providerDescription:e.bMT(7,5,"CATALOGS._no_desc")),e.R7$(3),e.FS9("src",c.logo,e.B4B),e.R7$(2),e.Dyx(c.products),e.R7$(3),e.vxM(14,c.loading_more?15:14)}}let Pn0=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1){this.route=c,this.api=t,this.accService=l,this.priceService=i,this.cdr=u,this.eventMessage=C,this.localStorage=b,this.router=T,this.paginationService=W,this.state=u1,this.providerName="",this.providerDescription="",this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.showDrawer=!1,this.searchEnabled=g1.c.SEARCH_ENABLED,this.showPanel=!1,this.feedback=!1,this.providerThemeName=g1.c.providerThemeName,this.logo="",this.destroy$=new S.B,this.navigatingToDetail=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{("AddedFilter"===a1.type||"RemovedFilter"===a1.type)&&this.checkPanel()}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{"CloseFeedback"===a1.type&&(this.feedback=!1)}),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(a1=>{("AddedFilter"===a1.type||"RemovedFilter"===a1.type)&&this.getProducts(!1)})}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(D2(),c.checkPanel(),c.id=c.route.snapshot.paramMap.get("id"),c.api.getCatalog(c.id).then(l=>{c.catalog=l,c.cdr.detectChanges();const i=c.catalog.relatedParty.find(u=>u.role===g1.c.SELLER_ROLE);i.id.startsWith("urn:ngsi-ld:individual")?(c.accService.getUserInfo(i.id).then(u=>{console.log("info"),console.log(u),c.providerName=u.givenName;const C=u.partyCharacteristic.find(b=>"description"===b.name);c.providerDescription=C.value}),c.logo="assets/images/Dome-Marketplace.svg"):c.accService.getOrgInfo(i.id).then(u=>{if(console.log("info"),console.log(u),c.providerName=u.tradingName,Array.isArray(u?.partyCharacteristic)&&u.partyCharacteristic.length>0){const C=u.partyCharacteristic.find(T=>"description"===T.name);c.providerDescription=C?.value?C.value:"";const b=u.partyCharacteristic.find(T=>"logo"===T.name);c.logo=b?.value?b.value:"assets/images/Dome-Marketplace.svg"}else c.logo="assets/images/Dome-Marketplace.svg"}),console.log("--- catalogo"),console.log(c.catalog)}),c.state.hasState())return console.log("Restoring state\u2026"),c.products=c.state.products,c.nextProducts=c.state.nextProducts,c.page=c.state.page,void(c.page_check=c.state.page_check);yield c.getProducts(!1),console.log("Productos:"),console.log(c.products);const t=c.localStorage.getObject("login_items");"{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0&&(c.feedback=!0),c.router.events.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{l instanceof E2.Z&&(c.navigatingToDetail=!!l.url.startsWith("/search/urn:ngsi-ld:product-offering"))})})()}onClick(){1==this.showDrawer&&(this.showDrawer=!1,this.cdr.detectChanges())}goTo(c){this.router.navigate([c])}ngOnDestroy(){if(this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let t=0;t0,this.showPanel!=t&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(o0.F),e.rXU(x0.O),e.rXU(X8),e.rXU(e.gRc),e.rXU(U2),e.rXU(z2.s),e.rXU(E2.Ix),e.rXU(w6),e.rXU(cE1))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-search-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:29,vars:15,consts:[[1,"fixed","z-30","w-full","top-[72px]","transition","transform","opacity-0","duration-200",3,"ngClass"],[1,"pr-8","pl-8","pb-8","pt-2",3,"ngClass"],[1,"pb-2"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-tertiary-100","dark:border-gray-700"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],["data-cy","cataloguesAllButton",1,"inline-flex","w-full","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600","dark:text-gray-400","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","line-clamp-1","text-wrap","break-words","text-gray-500","md:ms-2","dark:text-gray-400",3,"ngClass"],[1,"flex"],["tabindex","-1","aria-labelledby","drawer-label",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"ngClass"],[1,"flex","flex-col","w-full","md:w-4/5","lg:w-3/4"],[1,"md:pl-5","content","pb-5","px-4","flex","items-center"],["type","button",1,"md:hidden","px-2","w-fit","h-fit","py-2","text-sm","font-medium","text-center","inline-flex","items-center","dark:text-white","bg-white","text-primary-100","border","border-primary-100","rounded-lg","dark:bg-primary-100","dark:border-secondary-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["role","status",1,"h-full","flex","justify-center","align-middle"],["tabindex","-1","aria-labelledby","drawer-label",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click","ngClass"],["type","button","aria-controls","drawer-example",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"sr-only"],[3,"catalogId"],[1,"hidden","md:block","w-1/2","md:2/5","lg:w-1/3","xl:1/4",3,"catalogId"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex","items-center","mx-auto","max-w-screen-xl","w-full","items-center","bg-white","dark:bg-secondary-100","rounded-lg","shadow-lg","ml-4","mb-4"],[1,"relative","w-full"],[1,"relative","flex","flex-row","justify-between","items-start","w-full","p-8"],[1,"flex","flex-col","w-full","md:w-3/4","pr-4"],[1,"text-2xl","font-bold","tracking-tight","line-clamp-4","text-primary-100","dark:text-white","break-words"],[1,"line-clamp-[4]","break-words","dark:text-white","text-gray-900","mt-2",3,"data"],[1,"hidden","md:block","self-stretch","w-px","bg-gray-400","mx-4"],[1,"w-[100px]","lg:w-[200px]","hidden","md:block","self-center","z-10","dark:text-white",3,"src"],[1,"md:pl-5","grid","grid-cols-1","place-items-center","lg:grid-cols-2","xl:grid-cols-3"],["data-cy","baeCard",1,"w-full","h-full","p-2",3,"productOff","cardId"],[1,"min-h-19","dark:text-gray-600","text-center"],[1,"flex","pb-12","justify-center","align-middle"],[1,"flex","cursor-pointer","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","bg-white","border","border-gray-300","rounded-lg","hover:bg-gray-100","hover:text-gray-700","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400","dark:hover:bg-gray-700","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"]],template:function(t,l){1&t&&(e.nrm(0,"bae-categories-panel",0),e.j41(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ol",4)(5,"li",5)(6,"button",6),e.bIt("click",function(){return l.goTo("/catalogues")}),e.qSk(),e.j41(7,"svg",7),e.nrm(8,"path",8),e.k0s(),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.joV(),e.j41(11,"li",9)(12,"div",10),e.qSk(),e.j41(13,"svg",11),e.nrm(14,"path",12),e.k0s(),e.joV(),e.j41(15,"span",13),e.EFF(16),e.k0s()()()()()(),e.j41(17,"section",14),e.DNE(18,wn0,8,5,"div",15)(19,Sn0,1,1),e.j41(20,"div",16)(21,"section",17)(22,"button",18),e.bIt("click",function(u){return l.showDrawer=!l.showDrawer,u.stopPropagation()}),e.qSk(),e.j41(23,"svg",19),e.nrm(24,"path",20),e.k0s(),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.DNE(27,Nn0,6,0,"div",21)(28,In0,16,7),e.k0s()()()),2&t&&(e.Y8G("ngClass",l.showPanel?"opacity-100":"hidden"),e.R7$(),e.Y8G("ngClass",l.showPanel?"pt-[75px]":""),e.R7$(8),e.SpI(" ",e.bMT(10,8,"DASHBOARD._all_catalogs")," "),e.R7$(6),e.Y8G("ngClass",e.l_i(12,kn0,l.hasLongWord(l.catalog.name,20),!l.hasLongWord(l.catalog.name,20))),e.R7$(),e.JRh(l.catalog.name),e.R7$(2),e.vxM(18,l.showDrawer?18:19),e.R7$(7),e.SpI(" ",e.bMT(26,10,"DASHBOARD._categories_single")," "),e.R7$(2),e.vxM(27,l.loading?27:28))},dependencies:[_.YU,xG,N0,lE1,sE1,s1.D9]})}}return n})(),jn0=(()=>{class n{constructor(){this.apiUrl=this.buildProxyApiUrl(g1.c.BASE_URL,g1.c.AI_SEARCH_API_URL),this.apiKey=g1.c.AI_SEARCH_API_KEY,this.scoreThreshold=g1.c.AI_SEARCH_SCORE_THRESHOLD,this.answerMaxItems=g1.c.AI_SEARCH_ANSWER_MAX_ITEMS,this.profile=g1.c.AI_SEARCH_PROFILE}buildProxyApiUrl(c,t){return`${(c||"").replace(/\/+$/,"")}${this.normalizeAiPath(t)}`}normalizeAiPath(c){if(!c)return"/rag/";let t=c.trim();return t.startsWith("/")||(t=`/${t}`),t.endsWith("/")||(t=`${t}/`),t}search(c){var t=this;return(0,C1.A)(function*(l,i=[],u=!0,C=6,b=0){const W=JSON.stringify({profile:t.profile,text:l,score_threshold:t.scoreThreshold,filter:i,auto_filter:u,limit:C,offset:b});try{const a1=yield(yield fetch(`${t.apiUrl}search`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":t.apiKey},body:W})).text();return JSON.parse(a1)||{items:[],total_count:0,facets:{}}}catch(u1){return console.error("AI Search error:",u1),{items:[],total_count:0,facets:{}}}}).apply(this,arguments)}getAnswer(c){var t=this;return(0,C1.A)(function*(l,i=[]){if(!l.trim())return"";const u={profile:t.profile,text:l,score_threshold:t.scoreThreshold,filter:i,auto_filter:!1,limit:t.answerMaxItems};try{return(yield(yield fetch(`${t.apiUrl}answer`,{method:"POST",headers:{"Content-Type":"application/json","X-API-Key":t.apiKey},body:JSON.stringify(u)})).json())?.answer||""}catch(C){return console.error("AI Answer error:",C),""}}).apply(this,arguments)}searchWithAnswer(c){var t=this;return(0,C1.A)(function*(l,i=[],u=6,C=0){const[b,T]=yield Promise.all([t.search(l,i,!0,u,C),t.getAnswer(l,i)]);return{searchResponse:b,answer:T}}).apply(this,arguments)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const hf1=(n,a)=>a.id,$n0=(n,a)=>a.key,aE1=()=>[];function On0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",40),e.nrm(1,"path",42),e.k0s())}function Bn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",43),e.bIt("mousedown",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectCategory(l))}),e.nrm(1,"fa-icon",44),e.j41(2,"span"),e.EFF(3),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",t.activeCategoryName===c.name?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.R7$(),e.Y8G("icon",t.iconForCategory(c.name)),e.R7$(2),e.JRh(c.name)}}function Vn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"div",36)(2,"button",37),e.bIt("mousedown",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.selectCategory(null))}),e.qSk(),e.j41(3,"svg",38),e.nrm(4,"path",11),e.k0s(),e.joV(),e.j41(5,"span",39),e.EFF(6,"All Categories"),e.k0s(),e.DNE(7,On0,2,0,":svg:svg",40),e.k0s(),e.Z7z(8,Bn0,4,3,"button",41,hf1),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("ngClass",c.activeCategoryName?"hover:bg-[#EBF0F7]":"bg-[#DDE6F6]"),e.R7$(5),e.vxM(7,c.activeCategoryName?-1:7),e.R7$(),e.Dyx(c.rootCategories)}}function Un0(n,a){1&n&&(e.j41(0,"div",47),e.qSk(),e.j41(1,"svg",52),e.nrm(2,"path",53),e.k0s()())}function Gn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",50),e.nrm(1,"circle",54)(2,"path",55),e.k0s())}function Hn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",56),e.nrm(1,"path",57),e.k0s())}function Yn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",45),e.bIt("ngSubmit",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onUnifiedSearch(l))}),e.j41(1,"div",46),e.DNE(2,Un0,3,0,"div",47),e.j41(3,"input",48),e.nI1(4,"translate"),e.nI1(5,"translate"),e.bIt("keydown.enter",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onUnifiedSearch(l))}),e.k0s(),e.j41(6,"button",49),e.DNE(7,Gn0,3,0,":svg:svg",50)(8,Hn0,2,0),e.j41(9,"span",51),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.aiSearchEnabled?2:-1),e.R7$(),e.FS9("placeholder",c.aiSearchEnabled?e.bMT(4,6,"DASHBOARD._ai_search_ph"):e.bMT(5,8,"DASHBOARD._search_ph")),e.Y8G("formControl",c.searchField)("ngClass",c.aiSearchEnabled?"ps-10 border-purple-300 focus:ring-purple-500 focus:border-purple-500":"border-gray-200 focus:ring-[#00ADD3] focus:border-[#00ADD3]"),e.R7$(4),e.vxM(7,c.aiSearchLoading?7:8),e.R7$(3),e.JRh(e.bMT(11,10,"DASHBOARD._search"))}}function qn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"span",66),e.EFF(1),e.k0s(),e.j41(2,"span",67),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit,u=e.XpG(2);return e.Njj(u.clearToolbarFilterSelection(i,l))}),e.qSk(),e.j41(3,"svg",68),e.nrm(4,"path",69),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.selectedIds.length)}}function Xn0(n,a){if(1&n&&(e.qSk(),e.j41(0,"svg",70),e.nrm(1,"path",15),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("ngClass",c.open?"rotate-180":"")}}function Wn0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",76),e.nrm(1,"path",42),e.k0s())}function Jn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",74),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2).$implicit,C=e.XpG(2);return e.Njj(C.toggleToolbarOption(u,i,l))}),e.j41(1,"div",75),e.DNE(2,Wn0,2,0,":svg:svg",76),e.k0s(),e.j41(3,"span",77),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2).$implicit,l=e.XpG(2);e.Y8G("ngClass",l.isToolbarOptionSelected(t,c)?"bg-[#DDE6F6]":"hover:bg-[#EBF0F7]"),e.BMQ("data-option-id",c.id),e.R7$(),e.Y8G("ngClass",l.isToolbarOptionSelected(t,c)?"bg-[#1f4fbf] border-[#1f4fbf] text-white":"border-gray-300 bg-white"),e.R7$(),e.vxM(2,l.isToolbarOptionSelected(t,c)?2:-1),e.R7$(2),e.JRh(c.name)}}function Qn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",71),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"div",72),e.Z7z(2,Jn0,5,5,"button",73,hf1),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(2),e.Dyx(c.options)}}function Zn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",64),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(2);return e.Njj(u.toggleToolbarFilterDropdown(i,l))}),e.EFF(2),e.DNE(3,qn0,5,1)(4,Xn0,2,1),e.k0s(),e.DNE(5,Qn0,4,0,"div",65),e.k0s()}if(2&n){const c=a.$implicit;e.R7$(),e.Y8G("ngClass",c.selectedIds.length>0?"border-[#1f4fbf] bg-[#EBF0F7] text-[#1f4fbf]":"border-gray-200 text-[#324153] hover:border-[#1f4fbf] hover:text-[#1f4fbf]"),e.BMQ("data-filter-key",c.key),e.R7$(),e.SpI(" ",c.label," "),e.R7$(),e.vxM(3,c.selectedIds.length>0?3:4),e.R7$(2),e.vxM(5,c.open?5:-1)}}function Kn0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",18)(1,"div",58),e.Z7z(2,Zn0,6,5,"div",59,$n0),e.k0s(),e.j41(4,"div",60)(5,"button",61),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.clearFilters())}),e.qSk(),e.j41(6,"svg",62),e.nrm(7,"path",63),e.k0s(),e.EFF(8," Clear all "),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(2),e.Dyx(c.toolbarFilters)}}function e90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDrawer=!l.showDrawer)}),e.qSk(),e.j41(2,"svg",80),e.nrm(3,"path",81),e.k0s(),e.joV(),e.j41(4,"span",51),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.nrm(7,"bae-categories-filter",82),e.k0s()}if(2&n){const c=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,"DASHBOARD._close_menu")),e.R7$(2),e.Y8G("catalogId",c.DFT_CATALOG)}}function c90(n,a){if(1&n){const c=e.RV6();e.j41(0,"aside",83)(1,"div",84)(2,"div",85)(3,"h3",86),e.EFF(4,"Filters"),e.k0s(),e.j41(5,"button",87),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.clearSubcategoryFilters())}),e.EFF(6,"Clear all"),e.k0s()(),e.nrm(7,"bae-categories-filter",88),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(7),e.Y8G("showTitle",!1)("simpleMode",!0)("catalogId",c.DFT_CATALOG)("selectedRootId",c.activeCategoryId)("selectedRootName",c.activeCategoryName)}}function t90(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG();e.SpI(" ",c.visibleProducts.length," results ")}}function n90(n,a){1&n&&(e.j41(0,"div",33),e.qSk(),e.j41(1,"svg",89),e.nrm(2,"path",90)(3,"path",91),e.k0s(),e.joV(),e.j41(4,"span",51),e.EFF(5,"Loading..."),e.k0s()())}function l90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",99)(2,"div",100),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",53),e.k0s()(),e.joV(),e.j41(5,"div",102)(6,"h4",103),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",104),e.nrm(10,"markdown",105),e.k0s()(),e.j41(11,"button",106),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.aiAnswer="")}),e.qSk(),e.j41(12,"svg",107),e.nrm(13,"path",108),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(7),e.JRh(e.bMT(8,2,"DASHBOARD._ai_answer")),e.R7$(3),e.Y8G("data",c.aiAnswer)}}function s90(n,a){1&n&&(e.j41(0,"div",93)(1,"div",109),e.qSk(),e.j41(2,"svg",110),e.nrm(3,"circle",54)(4,"path",55),e.k0s(),e.joV(),e.j41(5,"span",111),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()),2&n&&(e.R7$(6),e.JRh(e.bMT(7,1,"DASHBOARD._ai_thinking")))}function a90(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===t.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50":"text-gray-500 bg-white border-gray-300 hover:bg-gray-100 hover:text-gray-700"),e.R7$(),e.SpI(" ",c+1," ")}}function o90(n,a){1&n&&(e.j41(0,"li")(1,"span",116),e.EFF(2,"..."),e.k0s()())}function i90(n,a){if(1&n&&e.DNE(0,a90,3,2,"li")(1,o90,3,0),2&n){const c=a.$index,t=e.XpG(3);e.vxM(0,c+1===t.aiCurrentPage||c+1===1||c+1===t.aiTotalPages||c+1>=t.aiCurrentPage-2&&c+1<=t.aiCurrentPage+2?0:c+1===t.aiCurrentPage-3||c+1===t.aiCurrentPage+3?1:-1)}}function r90(n,a){if(1&n){const c=e.RV6();e.j41(0,"nav",94)(1,"ul",112)(2,"li")(3,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage-1))}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.Z7z(6,i90,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",114),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage+1))}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("disabled",1===c.aiCurrentPage),e.R7$(),e.SpI(" ",e.bMT(5,4,"DASHBOARD._prev")," "),e.R7$(2),e.Dyx(e.lJ4(8,aE1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function d90(n,a){if(1&n&&e.nrm(0,"bae-off-card",96),2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.Y8G("productOff",c)("cardId",t)("viewMode",l.viewMode)}}function f90(n,a){1&n&&(e.j41(0,"div",97),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"DASHBOARD._not_found")," "))}function u90(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"button",115),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$index,i=e.XpG(3);return e.Njj(i.changeAiPage(l+1))}),e.EFF(2),e.k0s()()}if(2&n){const c=e.XpG().$index,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",c+1===t.aiCurrentPage?"text-blue-600 border-blue-300 bg-blue-50":"text-gray-500 bg-white border-gray-300 hover:bg-gray-100 hover:text-gray-700"),e.R7$(),e.SpI(" ",c+1," ")}}function m90(n,a){1&n&&(e.j41(0,"li")(1,"span",116),e.EFF(2,"..."),e.k0s()())}function p90(n,a){if(1&n&&e.DNE(0,u90,3,2,"li")(1,m90,3,0),2&n){const c=a.$index,t=e.XpG(3);e.vxM(0,c+1===t.aiCurrentPage||c+1===1||c+1===t.aiTotalPages||c+1>=t.aiCurrentPage-2&&c+1<=t.aiCurrentPage+2?0:c+1===t.aiCurrentPage-3||c+1===t.aiCurrentPage+3?1:-1)}}function h90(n,a){if(1&n){const c=e.RV6();e.j41(0,"nav",98)(1,"ul",112)(2,"li")(3,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage-1))}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.Z7z(6,p90,2,1,null,null,e.Vm6),e.j41(8,"li")(9,"button",114),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.changeAiPage(l.aiCurrentPage+1))}),e.EFF(10),e.nI1(11,"translate"),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("disabled",1===c.aiCurrentPage),e.R7$(),e.SpI(" ",e.bMT(5,4,"DASHBOARD._prev")," "),e.R7$(2),e.Dyx(e.lJ4(8,aE1).constructor(c.aiTotalPages)),e.R7$(3),e.Y8G("disabled",c.aiCurrentPage===c.aiTotalPages),e.R7$(),e.SpI(" ",e.bMT(11,6,"DASHBOARD._next")," ")}}function g90(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",117)(1,"button",118),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",119),e.nrm(4,"path",120),e.k0s()()()}}function _90(n,a){if(1&n&&e.DNE(0,g90,5,0,"div",117),2&n){const c=e.XpG(3);e.vxM(0,c.page_check?0:-1)}}function L90(n,a){1&n&&(e.j41(0,"div",121),e.qSk(),e.j41(1,"svg",122),e.nrm(2,"path",90)(3,"path",91),e.k0s()())}function C90(n,a){if(1&n&&e.DNE(0,_90,1,1)(1,L90,4,0),2&n){const c=e.XpG(2);e.vxM(0,c.loading_more?1:0)}}function z90(n,a){if(1&n&&(e.DNE(0,l90,14,4,"div",92)(1,s90,8,3,"div",93)(2,r90,12,9,"nav",94),e.j41(3,"div",95),e.Z7z(4,d90,1,3,"bae-off-card",96,hf1,!1,f90,3,3,"div",97),e.k0s(),e.DNE(7,h90,12,9,"nav",98)(8,C90,2,1)),2&n){const c=e.XpG();e.vxM(0,c.aiSearchEnabled&&c.aiAnswer?0:-1),e.R7$(),e.vxM(1,c.aiSearchEnabled&&c.aiSearchLoading?1:-1),e.R7$(),e.vxM(2,c.aiSearchEnabled&&c.aiTotalPages>1?2:-1),e.R7$(),e.Y8G("ngClass","list"===c.viewMode?"flex flex-col gap-4":c.activeCategoryName?"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4":"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4"),e.R7$(),e.Dyx(c.visibleProducts),e.R7$(3),e.vxM(7,c.aiSearchEnabled&&c.aiTotalPages>1?7:-1),e.R7$(),e.vxM(8,c.aiSearchEnabled?-1:8)}}function M90(n,a){1&n&&e.nrm(0,"feedback-modal",34)}let x90=(()=>{class n{get sortLabel(){return this.sortOptions.find(c=>c.value===this.sortOption)?.label??"Name"}get aiTotalPages(){return Math.ceil(this.aiTotalItems/this.aiPageSize)}constructor(c,t,l,i,u,C,b,T,W,u1,a1,T1){var Y1=this;this.api=c,this.cdr=t,this.route=l,this.router=i,this.localStorage=u,this.eventMessage=C,this.loginService=b,this.paginationService=T,this.state=W,this.aiSearchService=u1,this.priceService=a1,this.themeService=T1,this.products=[],this.nextProducts=[],this.loading=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.DFT_CATALOG=g1.c.DFT_CATALOG_ID,this.showDrawer=!1,this.searchEnabled=g1.c.SEARCH_ENABLED,this.keywords=void 0,this.searchField=new p.MJ,this.showPanel=!1,this.feedback=!1,this.providerThemeName=g1.c.providerThemeName,this.navigatingToDetail=!1,this.destroy$=new S.B,this.viewMode="grid",this.activeCategoryName=null,this.activeCategoryId=null,this.showCategoryDropdown=!1,this.rootCategories=[],this.iconForCategory=tE1.nc,this.primaryCategoriesMode=aF.dD.primaryCategoriesMode,this.primaryRootName=aF.dD.primaryRootName,this.toolbarFilters=[],this.procurementFilterKey="procurement_type",this.procurementCache=new Map,this.productsRequestVersion=0,this.activeCategoryStorageKey="search_active_category_id",this.showSortDropdown=!1,this.sortOption="date_new",this.sortOptions=[{value:"date_new",label:"Newest first"},{value:"date_old",label:"Oldest first"},{value:"name",label:"Name"}],this.marketplaceHomeUrl="/search",this.aiSearchEnabled=g1.c.AI_SEARCH_ENABLED,this.aiAnswer="",this.aiSearchLoading=!1,this.aiTotalItems=0,this.aiCurrentPage=1,this.aiPageSize=g1.c.PRODUCT_LIMIT,this.initToolbarFilters(),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(function(){var f2=(0,C1.A)(function*(M2){("AddedFilter"===M2.type||"RemovedFilter"===M2.type)&&(Y1.syncSelectionsFromStorage(),Y1.checkPanel()),"FiltersCommitted"===M2.type&&(Y1.syncSelectionsFromStorage(),Y1.aiSearchEnabled?yield Y1.runInitialAiSearch():yield Y1.getProducts(!1),Y1.checkPanel())});return function(M2){return f2.apply(this,arguments)}}()),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(f2=>{"CloseFeedback"===f2.type&&(this.feedback=!1)})}ngOnInit(){var c=this;return(0,C1.A)(function*(){if(c.themeService.currentTheme$.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{c.marketplaceHomeUrl=l?.links?.marketplaceHomeUrl||"/search"}),c.router.events.pipe((0,O1.Q)(c.destroy$)).subscribe(l=>{l instanceof E2.Z&&(c.navigatingToDetail=!!l.url.startsWith("/search/urn:ngsi-ld:product-offering"))}),c.products=[],c.nextProducts=[],c.checkPanel(),c.loadRootCategories(),c.route.snapshot.paramMap.get("keywords")&&(c.keywords=c.route.snapshot.paramMap.get("keywords"),c.searchField.setValue(c.keywords)),console.log("INIT"),c.state.hasState())return console.log("Restoring state\u2026"),c.products=c.state.products,c.nextProducts=c.state.nextProducts,c.page=c.state.page,c.page_check=c.state.page_check,c.keywords=c.state.keywords,c.refreshProcurementFilter(),void c.searchField.setValue(c.keywords);c.aiSearchEnabled?c.keywords?yield c.runAiSearch():yield c.runInitialAiSearch():yield c.getProducts(!1);let t=document.querySelector("[type=search]");t?.addEventListener("input",function(){var l=(0,C1.A)(function*(i){""==c.searchField.value&&(c.keywords=void 0,c.updateQueryParams(c.keywords),c.aiAnswer="",c.eventMessage.emitAiSearchCleared(),c.aiSearchEnabled?yield c.runInitialAiSearch():yield c.getProducts(!1))});return function(i){return l.apply(this,arguments)}}()),setTimeout(()=>{const l=c.localStorage.getObject("login_items");if("{}"!=JSON.stringify(l)&&l.expire-$2()().unix()-4>0&&g1.c.feedbackCampaign){let i=c.localStorage.getObject("feedback");if(console.log("---------------------- feedbackInfo"),console.log(i),"{}"===JSON.stringify(i)){let u={expire:g1.c?.feedbackCampaignExpiration??$2()().add(1,"week").unix()};c.localStorage.setObject("feedback",u),c.feedback=!0}else{if("expire"in i){if((i?.expire??0)-$2()().unix()-4<0&&g1.c.feedbackCampaignExpiration-$2()().unix()-4>0){let C={expire:g1.c?.feedbackCampaignExpiration};"approval"in i&&(C.approval=i.approval),c.localStorage.setObject("feedback",C)}}else{let u={expire:g1.c?.feedbackCampaignExpiration};"approval"in i&&(u.approval=i.approval),c.localStorage.setObject("feedback",u)}c.feedback=!("approval"in i)}}})})()}onClick(){this.showDrawer&&(this.showDrawer=!1),(this.showCategoryDropdown||this.showSortDropdown||this.toolbarFilters.some(t=>t.open))&&(this.closeDropdownsExcept("none"),this.cdr.detectChanges())}get visibleProducts(){let c=this.products;const t=this.getSelectedFilterLabels(this.procurementFilterKey);return t.length>0&&(c=c.filter(l=>{const i=l.id;if(!i)return!0;const u=this.procurementCache.get(i);return void 0!==u&&t.includes(u?"Request Quote":"Ready to Buy")})),c}applySort(c){const t=[...c];switch(this.sortOption){case"name":t.sort((l,i)=>(l.name||"").localeCompare(i.name||""));break;case"date_new":t.sort((l,i)=>this.getStartDate(i)-this.getStartDate(l));break;case"date_old":t.sort((l,i)=>this.getStartDate(l)-this.getStartDate(i))}return t}getStartDate(c){const t=c?.validFor?.startDateTime;return t?new Date(t).getTime():0}getSortParam(){switch(this.sortOption){case"name":return"name";case"date_new":return"-lastUpdate";case"date_old":return"lastUpdate";default:return}}closeDropdownsExcept(c){"category"!==c&&(this.showCategoryDropdown=!1),"sort"!==c&&(this.showSortDropdown=!1);for(const t of this.toolbarFilters)c!==t.key&&(t.open=!1)}toggleSortDropdown(c){c.stopPropagation(),this.showSortDropdown=!this.showSortDropdown,this.closeDropdownsExcept("sort")}selectSort(c,t){var l=this;return(0,C1.A)(function*(){t.stopPropagation(),l.showSortDropdown=!1,l.sortOption!==c&&(l.sortOption=c,l.aiSearchEnabled?l.keywords?yield l.runAiSearch():yield l.runInitialAiSearch():yield l.getProducts(!1))})()}resolveProcurementCache(c){var t=this;return(0,C1.A)(function*(){const l=c.filter(i=>i.id&&!t.procurementCache.has(i.id)).map(function(){var i=(0,C1.A)(function*(u){const C=u.id;try{const b=yield t.priceService.isCustomOffering(u);t.procurementCache.set(C,b)}catch{t.procurementCache.set(C,!1)}});return function(u){return i.apply(this,arguments)}}());yield Promise.all(l)})()}refreshProcurementFilter(){0!==this.getSelectedFilterLabels(this.procurementFilterKey).length&&this.resolveProcurementCache(this.products).then(()=>this.cdr.detectChanges())}initToolbarFilters(){this.toolbarFilters=aF.Tw.map(c=>({key:c.name,label:c.label??c.name,source:c.source??"configured",rootName:c.rootName,options:"configured"===(c.source??"configured")?(c.children??[]).map(t=>({id:`${c.name}::${t.name}`,name:t.label??t.name})):[],selectedIds:[],open:!1}))}toggleToolbarFilterDropdown(c,t){t.stopPropagation(),c.open=!c.open,this.closeDropdownsExcept(c.key)}isToolbarOptionSelected(c,t){return!!t?.id&&c.selectedIds.includes(t.id)}toggleToolbarOption(c,t,l){var i=this;return(0,C1.A)(function*(){if(l.stopPropagation(),!t?.id)return;const u=c.selectedIds.indexOf(t.id);u>-1?(c.selectedIds.splice(u,1),i.localStorage.removeCategoryFilter(t),i.eventMessage.emitRemovedFilter(t)):(c.selectedIds.push(t.id),i.localStorage.addCategoryFilter(t),i.eventMessage.emitAddedFilter(t)),c.key===i.procurementFilterKey&&c.selectedIds.length>0&&(yield i.resolveProcurementCache(i.products)),i.eventMessage.emitFiltersCommitted()})()}clearToolbarFilterSelection(c,t){t.stopPropagation();const l=[...c.selectedIds];c.selectedIds=[];for(const i of l){const u=c.options.find(C=>C.id===i);u&&(this.localStorage.removeCategoryFilter(u),this.eventMessage.emitRemovedFilter(u))}this.eventMessage.emitFiltersCommitted()}getSelectedFilterLabels(c){const t=this.toolbarFilters.find(i=>i.key===c);if(!t)return[];const l=new Set(t.selectedIds);return t.options.filter(i=>!!i.id&&l.has(i.id)).map(i=>i.name)}ngOnDestroy(){if(this.productsRequestVersion=0,this.navigatingToDetail)return;let c=this.localStorage.getObject("selected_categories")||[];for(let t=0;t0,this.showPanel!=t&&(this.eventMessage.emitFilterShown(this.showPanel),this.localStorage.setItem("is_filter_panel_shown",this.showPanel.toString()))}clearFilters(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[];for(const l of t)this.localStorage.removeCategoryFilter(l),this.eventMessage.emitRemovedFilter(l);for(const l of this.toolbarFilters)l.selectedIds=[];this.activeCategoryName=null,this.activeCategoryId=null,this.setPersistedActiveCategoryId(null),this.eventMessage.emitFiltersCommitted()}clearSubcategoryFilters(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[],l=new Set(this.toolbarFilters.filter(i=>"categoryRoot"===i.source).flatMap(i=>i.options.map(u=>u.id)).filter(i=>!!i));for(const i of t)i?.id&&(String(i.id).includes("::")||l.has(i.id)||i.id!==this.activeCategoryId&&(this.localStorage.removeCategoryFilter(i),this.eventMessage.emitRemovedFilter(i)));if(this.activeCategoryId){const i=this.localStorage.getObject("selected_categories");if(!(Array.isArray(i)?i:[]).some(b=>b?.id===this.activeCategoryId)){const b={id:this.activeCategoryId,name:this.activeCategoryName||"Category"};this.localStorage.addCategoryFilter(b),this.eventMessage.emitAddedFilter(b)}}this.eventMessage.emitFiltersCommitted()}selectCategory(c){var t=this;return(0,C1.A)(function*(){const l=t.localStorage.getObject("selected_categories"),i=Array.isArray(l)?l:[];for(const u of i)t.localStorage.removeCategoryFilter(u),t.eventMessage.emitRemovedFilter(u);if(c){if(t.activeCategoryName=c.name,t.activeCategoryId=c.id??null,t.setPersistedActiveCategoryId(t.activeCategoryId),c.id){const u=yield t.api.getCategoriesByParentId(c.id).catch(()=>[]),C=Array.isArray(u)?u:[];for(const b of C)b?.id&&(t.localStorage.addCategoryFilter(b),t.eventMessage.emitAddedFilter(b))}}else t.activeCategoryName=null,t.activeCategoryId=null,t.setPersistedActiveCategoryId(null);t.syncSelectionsFromStorage(),t.eventMessage.emitFiltersCommitted(),t.showCategoryDropdown=!1})()}loadRootCategories(){var c=this;return(0,C1.A)(function*(){try{const t=yield c.api.getDefaultCategories(),l=Array.isArray(t)?t:[];let i=[];if("catalogFirstLevel"===c.primaryCategoriesMode)i=l;else{const u=l.find(C=>C?.name===c.primaryRootName);if(u?.id){const C=yield c.api.getCategoriesByParentId(u.id).catch(()=>[]);i=Array.isArray(C)?C:[]}}yield Promise.all(c.toolbarFilters.filter(u=>"categoryRoot"===u.source).map(function(){var u=(0,C1.A)(function*(C){const b=l.find(W=>W?.name===C.rootName),T=b?.id?yield c.api.getCategoriesByParentId(b.id).catch(()=>[]):[];C.options=Array.isArray(T)?T:[]});return function(C){return u.apply(this,arguments)}}())),c.rootCategories=i,c.syncSelectionsFromStorage()}catch{c.rootCategories=[];for(const t of c.toolbarFilters)"categoryRoot"===t.source&&(t.options=[])}})()}syncSelectionsFromStorage(){const c=this.localStorage.getObject("selected_categories"),t=Array.isArray(c)?c:[],l=new Set(t.map(u=>u?.id).filter(u=>!!u));for(const u of this.toolbarFilters)u.selectedIds=u.options.map(C=>C.id).filter(C=>!!C&&l.has(C));const i=t.find(u=>!!u?.id&&this.rootCategories.some(C=>C.id===u.id));if(i)this.activeCategoryName=i.name??null,this.activeCategoryId=i.id??null,this.setPersistedActiveCategoryId(this.activeCategoryId);else{const u=this.getPersistedActiveCategoryId(),C=u?this.rootCategories.find(b=>b?.id===u):void 0;C?(this.activeCategoryName=C.name??null,this.activeCategoryId=C.id??null):(this.activeCategoryName=null,this.activeCategoryId=null,this.setPersistedActiveCategoryId(null))}this.cdr.detectChanges()}setPersistedActiveCategoryId(c){c?this.localStorage.setItem(this.activeCategoryStorageKey,c):this.localStorage.removeItem(this.activeCategoryStorageKey)}getPersistedActiveCategoryId(){return this.localStorage.getItem(this.activeCategoryStorageKey)}toggleCategoryDropdown(c){c?.stopPropagation(),this.showCategoryDropdown=!this.showCategoryDropdown,this.closeDropdownsExcept("category")}onUnifiedSearch(c){var t=this;return(0,C1.A)(function*(){c.preventDefault(),t.aiSearchEnabled&&t.searchField.value?.trim()?(t.keywords=t.searchField.value,t.updateQueryParams(t.keywords),yield t.runAiSearch()):t.aiSearchEnabled?(t.keywords=void 0,t.updateQueryParams(t.keywords),t.aiAnswer="",t.eventMessage.emitAiSearchCleared(),yield t.runInitialAiSearch()):(t.keywords=t.searchField.value||void 0,t.updateQueryParams(t.keywords),t.aiAnswer="",t.eventMessage.emitAiSearchCleared(),yield t.getProducts(!1))})()}runInitialAiSearch(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.aiCurrentPage=1,c.keywords||c.searchField.reset(),c.cdr.detectChanges();try{const t=c.localStorage.getObject("selected_categories")||[],l=c.convertCategoriesToAiFilters(t),i=yield c.aiSearchService.search("",l,!1,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(i.items||[]),c.refreshProcurementFilter(),c.nextProducts=[],c.aiTotalItems=i.total_count,c.page_check=!1,i.facets&&c.eventMessage.emitAiSearchFacets(i.facets),c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(t){console.error("Initial AI Search error:",t),yield c.getProducts(!1)}finally{c.loading=!1,c.cdr.detectChanges()}})()}runAiSearch(){var c=this;return(0,C1.A)(function*(){const t=c.searchField.value?.trim();if(t){c.aiSearchLoading=!0,c.aiAnswer="",c.loading=!0,c.aiCurrentPage=1,c.cdr.detectChanges();try{const l=c.localStorage.getObject("selected_categories")||[],i=c.convertCategoriesToAiFilters(l),{searchResponse:u,answer:C}=yield c.aiSearchService.searchWithAnswer(t,i,c.aiPageSize,0);c.products=c.mapAiSearchToProducts(u.items||[]),c.refreshProcurementFilter(),c.aiTotalItems=u.total_count,u.facets&&c.eventMessage.emitAiSearchFacets(u.facets),c.nextProducts=[],c.page_check=!1,c.aiAnswer=C,c.state.save({products:c.products,nextProducts:c.nextProducts,page:c.page,page_check:c.page_check,keywords:c.keywords})}catch(l){console.error("AI Search error:",l),c.aiAnswer="",c.products=[]}finally{c.aiSearchLoading=!1,c.loading=!1,c.cdr.detectChanges()}}})()}changeAiPage(c){var t=this;return(0,C1.A)(function*(){t.aiCurrentPage=c,t.loading=!0,t.cdr.detectChanges();try{const l=t.localStorage.getObject("selected_categories")||[],i=t.convertCategoriesToAiFilters(l),u=(t.aiCurrentPage-1)*t.aiPageSize,C=yield t.aiSearchService.search(t.keywords||"",i,!1,t.aiPageSize,u);t.products=t.mapAiSearchToProducts(C.items||[]),t.refreshProcurementFilter(),t.aiTotalItems=C.total_count,C.facets&&t.eventMessage.emitAiSearchFacets(C.facets)}catch(l){console.error("AI Search page change error:",l)}finally{t.loading=!1,t.cdr.detectChanges()}})()}convertCategoriesToAiFilters(c){if(!Array.isArray(c))return[];const t=new Map;return c.forEach(l=>{let i,u;if(l.id?.includes("::")){const C=l.id.split("::");i=C[0],u=C.slice(1).join("::")}else if(l.id?.startsWith("ai-facet-")){const C=l.id.split("-");if(!(C.length>=4))return;C.shift(),C.shift(),i=C.shift()||"",u=C.join("-")}else i=l.id||"",u=l.name||"";t.has(i)||t.set(i,[]),t.get(i).push(u)}),Array.from(t.entries()).map(([l,i])=>({key:l,value:i}))}mapAiSearchToProducts(c){return c.map(t=>({id:t.id,href:t.id,name:t.offeringName||t.specificationName,description:t.offeringDescription||t.specificationDescription,lifecycleStatus:t.lifecycleStatus||"Launched",category:t.categories||[],attachment:t.imageUrl?[{id:"ai-image",name:"Profile Picture",attachmentType:"Picture",url:t.imageUrl,mimeType:"image/png"}]:[],productSpecification:{id:t.id,name:t.specificationName,description:t.specificationDescription,brand:t.brand,productSpecCharacteristic:t.complianceProfiles?[{name:"complianceProfiles",productSpecCharacteristicValue:t.complianceProfiles.map(l=>({value:l.name}))}]:[]},productOfferingPrice:[],_aiSearchData:t}))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(z2.s),e.rXU(U2),e.rXU(kn),e.rXU(w6),e.rXU(cE1),e.rXU(jn0),e.rXU(X8),e.rXU(cF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["bae-search"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:46,vars:13,consts:[[1,"min-h-screen","bg-[#F7F9FD]","font-[Blinker]"],[1,"mx-auto","max-w-[1440px]","px-8"],[1,"flex","items-center","gap-2","pt-4","pb-4","text-[16px]","text-[#526179]"],[1,"hover:text-[#1f4fbf]","transition-colors",3,"routerLink"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","text-[#526179]"],["stroke-linecap","round","stroke-linejoin","round","d","m8.25 4.5 7.5 7.5-7.5 7.5"],[1,"font-medium","text-[#1f4fbf]"],[1,"flex","flex-wrap","items-center","justify-between","gap-4","pb-4"],[1,"relative","flex","items-center","gap-3","min-w-0"],[1,"flex","h-12","w-12","shrink-0","items-center","justify-center","rounded-xl","bg-[#eef2fb]","text-[#1f4fbf]"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6"],["stroke-linecap","round","stroke-linejoin","round","d","M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"],["data-cy","searchCategoryDropdown",1,"flex","items-center","gap-2","min-w-0",3,"click"],[1,"text-[24px]","font-bold","text-[#0b1220]","sm:text-[30px]","truncate"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-5","w-5","text-[#526179]","shrink-0","transition-transform",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","m19.5 8.25-7.5 7.5-7.5-7.5"],[1,"absolute","top-full","left-0","mt-2","z-50","w-[420px]","rounded-2xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","max-h-[520px]","overflow-hidden"],[1,"w-full","sm:w-auto","sm:min-w-[440px]"],[1,"flex","items-center","justify-between","rounded-2xl","bg-white","border","border-[#EBECEE]","shadow-sm","p-3","flex-wrap","gap-y-2"],[1,"mx-auto","max-w-[1440px]","px-8","pt-4","pb-6","flex-1"],[1,"flex","gap-6","items-stretch","min-h-[calc(100vh-280px)]"],["tabindex","-1",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800"],[1,"min-w-0","flex-1"],["type","button",1,"mb-4","md:hidden","flex","items-center","gap-2","px-3","py-2","text-sm","font-medium","text-[#1f4fbf]","border","border-[#1f4fbf]","rounded-lg",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],[1,"mb-5","flex","items-center","justify-between"],[1,"flex","items-center","gap-4"],[1,"text-[16px]","text-[#526179]"],[1,"flex","items-center","gap-0.5","rounded-lg","border","border-gray-200","bg-white","p-1"],[1,"rounded","p-2","transition-colors",3,"click","ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-5","w-5"],["stroke-linecap","round","stroke-linejoin","round","d","M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"],[1,"flex","justify-center","py-16"],["rateMessage","Based on your recent experience, how likely are you to recommend DOME to a colleague or a partner?","writeMessage","How can we improve DOME?","type","campaign",1,"fixed","inset-0","flex","items-center","justify-center","z-40"],[1,"absolute","top-full","left-0","mt-2","z-50","w-[420px]","rounded-2xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","max-h-[520px]","overflow-hidden",3,"click"],[1,"p-2","flex","flex-col","gap-2","max-h-[520px]","overflow-y-auto","overscroll-contain"],["data-cy","searchAllCategories",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"mousedown","ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","1.5","stroke","currentColor",1,"h-6","w-6","text-[#1f4fbf]","shrink-0"],[1,"font-medium"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-5","w-5","ml-auto","text-[#1f4fbf]"],["data-cy","searchCategoryItem",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"ngClass"],["stroke-linecap","round","stroke-linejoin","round","d","m4.5 12.75 6 6 9-13.5"],["data-cy","searchCategoryItem",1,"flex","w-full","items-center","gap-4","rounded-lg","px-4","h-14","text-[16px]","text-[#0b1220]","transition-colors",3,"mousedown","ngClass"],[1,"text-[20px]","text-[#526179]","shrink-0",3,"icon"],[1,"w-full","sm:w-auto","sm:min-w-[440px]",3,"ngSubmit"],[1,"relative"],[1,"absolute","inset-y-0","start-0","flex","items-center","ps-3","pointer-events-none"],["type","search",1,"block","w-full","rounded-[12px]","border","bg-white","py-3.5","pl-5","pr-14","text-[16px]","text-gray-900","placeholder:text-gray-400","shadow-sm","hover:shadow-md","focus:shadow-none","transition-shadow","outline-none",3,"keydown.enter","formControl","ngClass","placeholder"],["type","submit",1,"absolute","top-0","end-0","h-full","px-4","flex","items-center","justify-center","rounded-e-[12px]","text-gray-400","hover:text-[#1f4fbf]","transition-colors"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","animate-spin"],[1,"sr-only"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-purple-500"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456z"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",1,"opacity-75"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 20 20",1,"w-5","h-5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"],[1,"flex","items-center","gap-2"],[1,"relative","shrink-0"],[1,"shrink-0"],[1,"flex","items-center","gap-2","text-[16px]","font-normal","text-[#1f4fbf]","hover:text-[#163b99]","transition-colors",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2","stroke","currentColor",1,"h-4","w-4"],["stroke-linecap","round","stroke-linejoin","round","d","M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182"],["data-cy","searchToolbarFilter",1,"flex","items-center","gap-2","h-10","rounded-lg","border","pl-4","pr-3","text-[16px]","font-normal","transition-colors",3,"click","ngClass"],[1,"absolute","top-full","left-0","mt-2","z-[60]","w-[260px]","rounded-xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","overflow-hidden"],[1,"inline-flex","h-[22px]","min-w-[22px]","items-center","justify-center","rounded-full","bg-[#B6CAEC]","px-1.5","text-[12px]","font-semibold","text-[#1f4fbf]"],[1,"inline-flex","h-5","w-5","items-center","justify-center","rounded-full","hover:bg-[#DDE6F6]","cursor-pointer",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-3","w-3"],["stroke-linecap","round","stroke-linejoin","round","d","M6 18 18 6M6 6l12 12"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","2.5","stroke","currentColor",1,"h-4","w-4","transition-transform",3,"ngClass"],[1,"absolute","top-full","left-0","mt-2","z-[60]","w-[260px]","rounded-xl","bg-white","shadow-[0_4px_12px_rgba(0,0,0,0.15)]","overflow-hidden",3,"click"],[1,"p-2","flex","flex-col","gap-1","max-h-[360px]","overflow-y-auto"],["data-cy","searchToolbarFilterOption",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-[14px]","text-[#0b1220]","transition-colors",3,"ngClass"],["data-cy","searchToolbarFilterOption",1,"flex","w-full","items-center","gap-3","rounded-lg","px-3","py-2.5","text-[14px]","text-[#0b1220]","transition-colors",3,"click","ngClass"],[1,"flex","h-4","w-4","shrink-0","items-center","justify-center","rounded","border",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke-width","3","stroke","currentColor",1,"h-2.5","w-2.5"],[1,"text-left"],["tabindex","-1",1,"fixed","h-screen","w-3/4","top-0","left-0","z-50","p-4","overflow-y-auto","bg-white","dark:bg-gray-800",3,"click"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","absolute","top-2.5","end-2.5","flex","items-center","justify-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[3,"catalogId"],[1,"hidden","md:block","w-[260px]","lg:w-[300px]","shrink-0","self-stretch"],[1,"rounded-xl","border","border-gray-200","bg-white","p-5","min-h-full"],[1,"mb-4","flex","items-center","justify-between"],[1,"text-[18px]","font-semibold","text-[#0b1220]"],[1,"text-[14px]","font-medium","text-[#1f4fbf]","hover:text-[#163b99]","transition-colors",3,"click"],[3,"showTitle","simpleMode","catalogId","selectedRootId","selectedRootName"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-[#1f4fbf]"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"w-full","mb-4","p-4","bg-gradient-to-r","from-purple-50","to-indigo-50","dark:from-purple-900/20","dark:to-indigo-900/20","border","border-purple-200","dark:border-purple-700","rounded-lg","shadow-sm"],[1,"w-full","mb-4","p-4","bg-gray-50","dark:bg-gray-800","border","border-gray-200","dark:border-gray-700","rounded-lg"],["aria-label","Pagination",1,"flex","justify-center","pb-4"],[3,"ngClass"],["data-cy","baeCard",1,"w-full","h-full",3,"productOff","cardId","viewMode"],["data-cy","searchNoOffersFound",1,"col-span-3","py-16","text-center","text-gray-500","dark:text-gray-400"],["aria-label","Pagination",1,"flex","justify-center","pt-4","pb-12"],[1,"flex","items-start","gap-3"],[1,"flex-shrink-0","w-8","h-8","bg-purple-100","dark:bg-purple-800","rounded-full","flex","items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-purple-600","dark:text-purple-300"],[1,"flex-1","min-w-0"],[1,"text-sm","font-semibold","text-purple-800","dark:text-purple-200","mb-2"],[1,"ai-answer-content","text-sm","text-gray-700","dark:text-gray-300","prose","prose-sm","dark:prose-invert","max-w-none"],[3,"data"],["type","button",1,"flex-shrink-0","text-gray-400","hover:text-gray-600","dark:hover:text-gray-300",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"flex","items-center","gap-3"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-5","h-5","text-purple-500","animate-spin"],[1,"text-sm","text-gray-600","dark:text-gray-400"],[1,"inline-flex","-space-x-px","text-sm"],[1,"flex","items-center","justify-center","px-3","h-8","ms-0","leading-tight","text-gray-500","bg-white","border","border-e-0","border-gray-300","rounded-s-lg","hover:bg-gray-100","hover:text-gray-700","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","text-gray-500","bg-white","border","border-gray-300","rounded-e-lg","hover:bg-gray-100","hover:text-gray-700","disabled:opacity-50","disabled:cursor-not-allowed",3,"click","disabled"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","border",3,"click","ngClass"],[1,"flex","items-center","justify-center","px-3","h-8","leading-tight","text-gray-500","bg-white","border","border-gray-300"],[1,"flex","pb-12","justify-center","mt-6"],["data-cy","loadMore",1,"flex","cursor-pointer","items-center","justify-center","px-4","h-9","text-sm","font-medium","text-[#1f4fbf]","bg-white","border","border-[#1f4fbf]","rounded-lg","hover:bg-[#eef2fb]","transition-colors",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading",1,"flex","justify-center","mt-6"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-8","h-8","text-gray-200","animate-spin","fill-[#1f4fbf]"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"a",3),e.EFF(4,"Marketplace"),e.k0s(),e.qSk(),e.j41(5,"svg",4),e.nrm(6,"path",5),e.k0s(),e.joV(),e.j41(7,"span",6),e.EFF(8),e.k0s()(),e.j41(9,"div",7)(10,"div",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s()(),e.joV(),e.j41(14,"button",12),e.bIt("click",function(u){return l.toggleCategoryDropdown(u)}),e.j41(15,"h1",13),e.EFF(16),e.k0s(),e.qSk(),e.j41(17,"svg",14),e.nrm(18,"path",15),e.k0s()(),e.DNE(19,Vn0,10,2,"div",16),e.k0s(),e.DNE(20,Yn0,12,12,"form",17),e.k0s(),e.DNE(21,Kn0,9,0,"div",18),e.k0s(),e.joV(),e.j41(22,"div",19)(23,"div",20),e.DNE(24,e90,8,4,"div",21)(25,c90,8,5),e.j41(26,"div",22)(27,"button",23),e.bIt("click",function(u){return l.showDrawer=!l.showDrawer,u.stopPropagation()}),e.qSk(),e.j41(28,"svg",24),e.nrm(29,"path",25),e.k0s(),e.EFF(30," Categories "),e.k0s(),e.joV(),e.j41(31,"div",26)(32,"div",27)(33,"span",28),e.DNE(34,t90,1,1),e.k0s()(),e.j41(35,"div",27)(36,"div",29)(37,"button",30),e.bIt("click",function(){return l.viewMode="grid"}),e.qSk(),e.j41(38,"svg",31),e.nrm(39,"path",11),e.k0s()(),e.joV(),e.j41(40,"button",30),e.bIt("click",function(){return l.viewMode="list"}),e.qSk(),e.j41(41,"svg",31),e.nrm(42,"path",32),e.k0s()()()()(),e.DNE(43,n90,6,0,"div",33)(44,z90,9,7),e.k0s()()()(),e.DNE(45,M90,1,0,"feedback-modal",34)),2&t&&(e.R7$(3),e.Y8G("routerLink",l.marketplaceHomeUrl),e.R7$(5),e.JRh(l.activeCategoryName||"All Categories"),e.R7$(8),e.SpI(" ",l.activeCategoryName||"All Categories"," "),e.R7$(),e.Y8G("ngClass",l.showCategoryDropdown?"rotate-180":""),e.R7$(2),e.vxM(19,l.showCategoryDropdown?19:-1),e.R7$(),e.vxM(20,l.searchEnabled?20:-1),e.R7$(),e.vxM(21,l.toolbarFilters.length>0?21:-1),e.R7$(3),e.vxM(24,l.showDrawer?24:l.activeCategoryName?25:-1),e.R7$(10),e.vxM(34,l.loading?-1:34),e.R7$(3),e.Y8G("ngClass","grid"===l.viewMode?"bg-[#eef2fb] text-[#1f4fbf]":"text-gray-400 hover:text-gray-600"),e.R7$(3),e.Y8G("ngClass","list"===l.viewMode?"bg-[#eef2fb] text-[#1f4fbf]":"text-gray-400 hover:text-gray-600"),e.R7$(3),e.vxM(43,l.loading?43:44),e.R7$(2),e.vxM(45,l.feedback?45:-1))},dependencies:[_.YU,J2.aY,p.qT,p.me,p.BC,p.cb,p.cV,p.l_,_d1,E2.Wk,N0,lE1,sE1,s1.D9],styles:[".no-scrollbar[_ngcontent-%COMP%]{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}"]})}}return n})();function b90(n,a){1&n&&e.nrm(0,"seller-catalogs")}function y90(n,a){1&n&&e.nrm(0,"seller-product-spec")}function F90(n,a){1&n&&e.nrm(0,"seller-service-spec")}function v90(n,a){1&n&&e.nrm(0,"seller-resource-spec")}function k90(n,a){1&n&&e.nrm(0,"seller-offer")}function w90(n,a){1&n&&e.nrm(0,"create-product-spec")}function S90(n,a){1&n&&e.nrm(0,"create-service-spec")}function N90(n,a){1&n&&e.nrm(0,"create-resource-spec")}function E90(n,a){1&n&&e.nrm(0,"create-offer")}function D90(n,a){1&n&&e.nrm(0,"create-catalog")}function T90(n,a){if(1&n&&e.nrm(0,"update-product-spec",21),2&n){const c=e.XpG();e.Y8G("prod",c.prod_to_update)}}function R90(n,a){if(1&n&&e.nrm(0,"update-service-spec",22),2&n){const c=e.XpG();e.Y8G("serv",c.serv_to_update)}}function A90(n,a){if(1&n&&e.nrm(0,"update-resource-spec",23),2&n){const c=e.XpG();e.Y8G("res",c.res_to_update)}}function I90(n,a){if(1&n&&e.nrm(0,"update-offer",24),2&n){const c=e.XpG();e.Y8G("offer",c.offer_to_update)}}function P90(n,a){if(1&n&&e.nrm(0,"update-catalog",25),2&n){const c=e.XpG();e.Y8G("cat",c.catalog_to_update)}}function j90(n,a){if(1&n&&e.nrm(0,"app-custom-offer",26),2&n){const c=e.XpG();e.Y8G("offer",c.offer_to_update)("partyId",c.custom_offer_partyId)}}let oE1=(()=>{class n{constructor(c,t,l,i,u){this.cdr=c,this.eventMessage=t,this.router=l,this.quoteService=i,this.api=u,this.show_catalogs=!0,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_create_catalog=!1,this.show_update_prod_spec=!1,this.show_update_serv_spec=!1,this.show_update_res_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_custom_offer=!1,this.custom_offer_partyId=null,this.activeSection="catalogs",this.sectionActions={catalogs:this.goToCatalogs,offers:this.goToOffers,productspec:this.goToProdSpec,servicespec:this.goToServiceSpec,resourcespec:this.goToResourceSpec},this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{if("SellerProductSpec"===C.type&&this.goToProdSpec(),"SellerCreateProductSpec"===C.type&&1==C.value&&this.goToCreateProdSpec(),"SellerServiceSpec"===C.type&&1==C.value&&this.goToServiceSpec(),"SellerCreateServiceSpec"===C.type&&1==C.value&&this.goToCreateServSpec(),"SellerResourceSpec"===C.type&&1==C.value&&this.goToResourceSpec(),"SellerCreateResourceSpec"===C.type&&1==C.value&&this.goToCreateResSpec(),"SellerOffer"===C.type&&1==C.value&&this.goToOffers(),"SellerCatalog"==C.type&&1==C.value&&this.goToCatalogs(),"SellerCreateOffer"===C.type&&1==C.value&&this.goToCreateOffer(),"SellerCatalogCreate"===C.type&&1==C.value&&this.goToCreateCatalog(),"SellerUpdateProductSpec"===C.type&&(this.prod_to_update=C.value,this.goToUpdateProdSpec()),"SellerUpdateServiceSpec"===C.type&&(this.serv_to_update=C.value,this.goToUpdateServiceSpec()),"SellerUpdateResourceSpec"===C.type&&(this.res_to_update=C.value,this.goToUpdateResourceSpec()),"SellerUpdateOffer"===C.type&&(this.offer_to_update=C.value,this.goToUpdateOffer()),"SellerCreateCustomOffer"===C.type){const b=C.value;this.offer_to_update=b.offer,this.custom_offer_partyId=b.partyId||null,this.goToCreateCustomOffer()}"SellerCatalogUpdate"===C.type&&(this.catalog_to_update=C.value,this.goToUpdateCatalog())})}ngOnInit(){var c=this;return(0,C1.A)(function*(){const t=localStorage.getItem("activeSection");console.log(t),t&&(c.activeSection=t),t&&c.sectionActions[t]&&c.sectionActions[t].call(c);const l=history.state;if(console.log("Checking state"),console.log(l),l&&l.quoteId){const i=yield(0,t5._)(c.quoteService.getQuoteById(l.quoteId)),u=i?.quoteItem?.[0]?.productOffering?.id;let C=null;u&&(C=yield c.api.getProductById(u));const b=i?.relatedParty?.find(T=>T.role.toLowerCase()===g1.c.BUYER_ROLE.toLowerCase());c.eventMessage.emitSellerCreateCustomOffer(C,b?.id)}})()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}setActiveSection(c){this.activeSection=c,localStorage.setItem("activeSection",c),console.log("Saved to localStorage:",c)}goToCreateProdSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!0,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateProdSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!0,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateCatalog(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!0,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateCatalog(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_create_catalog=!1,this.show_update_catalog=!0,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!0,this.show_update_catalog=!1,this.show_create_catalog=!1,this.cdr.detectChanges()}goToCreateCustomOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!0,this.cdr.detectChanges()}goToUpdateServiceSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!0,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToUpdateResourceSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_serv_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!0,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateServSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!0,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateResSpec(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!0,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCreateOffer(){this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_serv_spec=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_offer=!0,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}goToCatalogs(){this.setActiveSection("catalogs"),this.selectCatalogs(),this.show_catalogs=!0,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectCatalogs(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToProdSpec(){this.setActiveSection("productspec"),this.selectProdSpec(),this.show_catalogs=!1,this.show_prod_specs=!0,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectProdSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToServiceSpec(){this.setActiveSection("servicespec"),this.selectServiceSpec(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!0,this.show_resource_specs=!1,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectServiceSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToResourceSpec(){this.setActiveSection("resourcespec"),this.selectResourceSpec(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!0,this.show_offers=!1,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectResourceSpec(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(u,"text-white bg-primary-100")}goToOffers(){this.setActiveSection("offers"),this.selectOffers(),this.show_catalogs=!1,this.show_prod_specs=!1,this.show_service_specs=!1,this.show_resource_specs=!1,this.show_offers=!0,this.show_create_prod_spec=!1,this.show_create_res_spec=!1,this.show_create_serv_spec=!1,this.show_create_offer=!1,this.show_update_prod_spec=!1,this.show_update_res_spec=!1,this.show_update_serv_spec=!1,this.show_update_offer=!1,this.show_update_catalog=!1,this.show_create_catalog=!1,this.show_create_custom_offer=!1,this.cdr.detectChanges()}selectOffers(){let c=document.getElementById("catalogs-button"),t=document.getElementById("prod-spec-button"),l=document.getElementById("sev-spec-button"),i=document.getElementById("res-spec-button"),u=document.getElementById("offers-button");this.selectMenu(u,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2),e.rXU(E2.Ix),e.rXU(L3.K),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-seller-offerings"]],decls:73,vars:55,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white","mb-8"],["data-cy","catalogSection","id","catalogs-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","offerSection","id","offers-button",1,"block","w-full","px-4","py-2","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["data-cy","prdSpecSection","id","prod-spec-button",1,"block","w-full","rounded-t-lg","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","servSpecSection","id","sev-spec-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["data-cy","resSpecSection","id","res-spec-button",1,"block","w-full","px-4","py-2","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],[3,"prod"],[3,"serv"],[3,"res"],[3,"offer"],[3,"cat"],[3,"offer","partyId"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.joV(),e.j41(16,"div",9)(17,"ul",10)(18,"li")(19,"a",11),e.bIt("click",function(){return l.goToCatalogs()}),e.EFF(20),e.nI1(21,"translate"),e.k0s()(),e.j41(22,"li")(23,"a",11),e.bIt("click",function(){return l.goToOffers()}),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"li")(27,"a",11),e.bIt("click",function(){return l.goToProdSpec()}),e.EFF(28),e.nI1(29,"translate"),e.k0s()(),e.j41(30,"li")(31,"a",11),e.bIt("click",function(){return l.goToServiceSpec()}),e.EFF(32),e.nI1(33,"translate"),e.k0s()(),e.j41(34,"li")(35,"a",11),e.bIt("click",function(){return l.goToResourceSpec()}),e.EFF(36),e.nI1(37,"translate"),e.k0s()()()(),e.j41(38,"div",12)(39,"div",13)(40,"div",14)(41,"button",15),e.bIt("click",function(){return l.goToCatalogs()}),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"button",16),e.bIt("click",function(){return l.goToOffers()}),e.EFF(45),e.nI1(46,"translate"),e.k0s()(),e.j41(47,"div",17)(48,"button",18),e.bIt("click",function(){return l.goToProdSpec()}),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.j41(51,"button",19),e.bIt("click",function(){return l.goToServiceSpec()}),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.j41(54,"button",20),e.bIt("click",function(){return l.goToResourceSpec()}),e.EFF(55),e.nI1(56,"translate"),e.k0s()()(),e.DNE(57,b90,1,0,"seller-catalogs")(58,y90,1,0,"seller-product-spec")(59,F90,1,0,"seller-service-spec")(60,v90,1,0,"seller-resource-spec")(61,k90,1,0,"seller-offer")(62,w90,1,0,"create-product-spec")(63,S90,1,0,"create-service-spec")(64,N90,1,0,"create-resource-spec")(65,E90,1,0,"create-offer")(66,D90,1,0,"create-catalog")(67,T90,1,1,"update-product-spec",21)(68,R90,1,1,"update-service-spec",22)(69,A90,1,1,"update-resource-spec",23)(70,I90,1,1,"update-offer",24)(71,P90,1,1,"update-catalog",25)(72,j90,1,2,"app-custom-offer",26),e.k0s()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,29,"OFFERINGS._my_offerings")),e.R7$(5),e.JRh(e.bMT(9,31,"OFFERINGS._my_offerings")),e.R7$(6),e.SpI(" ",e.bMT(15,33,"OFFERINGS._offerings")," "),e.R7$(6),e.JRh(e.bMT(21,35,"OFFERINGS._catalogs")),e.R7$(4),e.JRh(e.bMT(25,37,"OFFERINGS._offers")),e.R7$(4),e.JRh(e.bMT(29,39,"OFFERINGS._prod_spec")),e.R7$(4),e.JRh(e.bMT(33,41,"OFFERINGS._serv_spec")),e.R7$(4),e.JRh(e.bMT(37,43,"OFFERINGS._res_spec")),e.R7$(6),e.SpI(" ",e.bMT(43,45,"OFFERINGS._catalogs")," "),e.R7$(3),e.SpI(" ",e.bMT(46,47,"OFFERINGS._offers")," "),e.R7$(4),e.SpI(" ",e.bMT(50,49,"OFFERINGS._prod_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(53,51,"OFFERINGS._serv_spec")," "),e.R7$(3),e.SpI(" ",e.bMT(56,53,"OFFERINGS._res_spec")," "),e.R7$(2),e.vxM(57,l.show_catalogs?57:-1),e.R7$(),e.vxM(58,l.show_prod_specs?58:-1),e.R7$(),e.vxM(59,l.show_service_specs?59:-1),e.R7$(),e.vxM(60,l.show_resource_specs?60:-1),e.R7$(),e.vxM(61,l.show_offers?61:-1),e.R7$(),e.vxM(62,l.show_create_prod_spec?62:-1),e.R7$(),e.vxM(63,l.show_create_serv_spec?63:-1),e.R7$(),e.vxM(64,l.show_create_res_spec?64:-1),e.R7$(),e.vxM(65,l.show_create_offer?65:-1),e.R7$(),e.vxM(66,l.show_create_catalog?66:-1),e.R7$(),e.vxM(67,l.show_update_prod_spec?67:-1),e.R7$(),e.vxM(68,l.show_update_serv_spec?68:-1),e.R7$(),e.vxM(69,l.show_update_res_spec?69:-1),e.R7$(),e.vxM(70,l.show_update_offer?70:-1),e.R7$(),e.vxM(71,l.show_update_catalog?71:-1),e.R7$(),e.vxM(72,l.show_create_custom_offer?72:-1))}})}}return n})();const iE1=(n,a)=>a.id,$90=(n,a)=>a.value;function O90(n,a){1&n&&(e.j41(0,"div",21),e.qSk(),e.j41(1,"svg",26),e.nrm(2,"path",27)(3,"path",28),e.k0s(),e.joV(),e.j41(4,"span",29),e.EFF(5,"Loading..."),e.k0s()())}function B90(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",35),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.selectBill(l))}),e.j41(1,"td",36),e.EFF(2),e.k0s(),e.j41(3,"td",36),e.EFF(4),e.k0s(),e.j41(5,"td",36),e.EFF(6),e.k0s()()}if(2&n){const c=a.$implicit;e.Y8G("ngClass",1==c.selected?"bg-primary-30":"bg-white"),e.R7$(2),e.SpI(" ",c.email," "),e.R7$(2),e.LHq(" ",c.postalAddress.street,", ",c.postalAddress.postCode," (",c.postalAddress.city,") ",c.postalAddress.stateOrProvince," "),e.R7$(2),e.SpI(" ",c.telephoneNumber," ")}}function V90(n,a){if(1&n&&(e.j41(0,"div",30)(1,"table",31)(2,"thead",32)(3,"tr")(4,"th",33),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",33),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,B90,7,7,"tr",34,iE1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"SHOPPING_CART._email")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"SHOPPING_CART._postalAddress")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"SHOPPING_CART._phone")," "),e.R7$(3),e.Dyx(c.billing_accounts)}}function U90(n,a){1&n&&(e.j41(0,"div",37)(1,"p",38),e.EFF(2),e.nI1(3,"translate"),e.j41(4,"a",39),e.EFF(5),e.nI1(6,"translate"),e.qSk(),e.j41(7,"svg",40),e.nrm(8,"path",41),e.k0s()()()()),2&n&&(e.R7$(2),e.SpI("",e.bMT(3,2,"SHOPPING_CART._billing_check")," "),e.R7$(3),e.SpI(" ",e.bMT(6,4,"SHOPPING_CART._click_here")," "))}function G90(n,a){if(1&n&&e.DNE(0,V90,16,9,"div",30)(1,U90,9,6),2&n){const c=e.XpG();e.vxM(0,c.billing_accounts.length>0?0:1)}}function H90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"h5",54),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",55),e.EFF(9),e.k0s(),e.j41(10,"p",57),e.EFF(11),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.SpI("/",null==c.options.pricing?null:c.options.pricing.recurringChargePeriodType,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function Y90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",58)(2,"h5",59),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",55),e.EFF(9),e.k0s(),e.j41(10,"p",57),e.EFF(11),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.SpI("/",null==c.options.pricing||null==c.options.pricing.unitOfMeasure?null:c.options.pricing.unitOfMeasure.units,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function q90(n,a){if(1&n&&(e.j41(0,"div",52)(1,"div",60)(2,"h5",59),e.EFF(3),e.k0s()(),e.j41(4,"p",55)(5,"b",56),e.EFF(6),e.k0s(),e.EFF(7),e.k0s(),e.j41(8,"p",57),e.EFF(9),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.JRh(null==c.options.pricing?null:c.options.pricing.name),e.R7$(3),e.JRh(null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.value),e.R7$(),e.SpI(" ",null==c.options.pricing||null==c.options.pricing.price?null:c.options.pricing.price.unit,""),e.R7$(2),e.JRh(null==c.options.pricing?null:c.options.pricing.description)}}function X90(n,a){if(1&n&&(e.j41(0,"div",63)(1,"h5",20),e.EFF(2),e.k0s(),e.j41(3,"div",64),e.nrm(4,"input",65),e.j41(5,"label",66),e.EFF(6),e.k0s()()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI("",c.characteristic.name,":"),e.R7$(4),e.JRh(null==c.value?null:c.value.value)}}function W90(n,a){if(1&n&&(e.j41(0,"h5",50),e.EFF(1,"Selected characteristics:"),e.k0s(),e.j41(2,"div",61)(3,"div",62),e.Z7z(4,X90,7,2,"div",63,$90),e.k0s()()),2&n){const c=e.XpG().$implicit;e.R7$(4),e.Dyx(c.options.characteristics)}}function J90(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.clickDropdown(l.id))}),e.EFF(1),e.qSk(),e.j41(2,"svg",43),e.nrm(3,"path",44),e.k0s()(),e.joV(),e.j41(4,"div",45)(5,"div",46)(6,"h5",47),e.EFF(7),e.k0s(),e.j41(8,"div",48),e.nrm(9,"img",49),e.k0s()(),e.nrm(10,"hr",15),e.j41(11,"h5",50),e.EFF(12,"Selected price plan:"),e.k0s(),e.j41(13,"div",51),e.DNE(14,H90,12,5,"div",52)(15,Y90,12,5)(16,q90,10,4),e.k0s(),e.DNE(17,W90,6,0),e.k0s()}if(2&n){const c=a.$implicit;e.R7$(),e.SpI(" ",c.name," "),e.R7$(3),e.Y8G("id",c.id),e.R7$(3),e.JRh(c.name),e.R7$(2),e.FS9("src",c.image,e.B4B),e.R7$(5),e.vxM(14,"recurring"==(null==c.options.pricing?null:c.options.pricing.priceType)?14:"usage"==(null==c.options.pricing?null:c.options.pricing.priceType)?15:16),e.R7$(3),e.vxM(17,c.options.characteristics&&c.options.characteristics.length>0?17:-1)}}class tH{static{this.BASE_URL=g1.c.BASE_URL}constructor(a,c,t,l,i,u,C,b){this.eventMessage=a,this.api=c,this.account=t,this.cartService=l,this.cdr=i,this.localStorage=u,this.orderService=C,this.router=b,this.faCartShopping=TL,this.TAX_RATE=g1.c.TAX_RATE,this.items=[],this.showBackDrop=!0,this.billing_accounts=[],this.loading=!1,this.relatedParty=""}ngOnInit(){let a=this.localStorage.getObject("login_items");if(a.logged_as==a.id)this.relatedParty=a.partyId;else{let c=a.organizations.find(t=>t.id==a.logged_as);console.log("loggedorg"),console.log(c),this.relatedParty=c.partyId}this.loading=!0,this.showBackDrop=!0,this.cartService.getShoppingCart().then(c=>{console.log("---CARRITO API---"),console.log(c),this.items=c,this.cdr.detectChanges(),this.getTotalPrice(),console.log("------------------"),D2()}),this.account.getBillingAccount().then(c=>{for(let t=0;ta.buildProductPayload(i)),t=a.buildProductOrder(c);console.log("--- order ---"),console.log(t);const l=yield(0,t5._)(a.orderService.postProductOrder(t));console.log(l),console.log("PROD ORDER DONE"),yield a.emptyShoppingCart(),a.goToInventory()}catch(c){console.error("There was an error while processing the order:",c)}})()}buildProductPayload(a){const c=this.buildProductCharacteristics(a.options.characteristics);return{id:a.id,action:"add",state:"acknowledged",itemTotalPrice:[{productOfferingPrice:{id:a.options.pricing?.id,href:a.options.pricing?.href}}],productOffering:{id:a.id,href:a.id},product:{productCharacteristic:c}}}buildProductCharacteristics(a){return a?a.map(c=>({name:c.characteristic.name,value:c.value?.value,valueType:c.characteristic.valueType})):[]}buildProductOrder(a){return{state:"acknowledged",productOrderItem:a,relatedParty:[{id:this.relatedParty,href:this.relatedParty,role:g1.c.BUYER_ROLE}],priority:"4",billingAccount:{id:this.selectedBilling.id,href:this.selectedBilling.id},orderDate:$2()().utc(),notificationContact:this.selectedBilling.email}}emptyShoppingCart(){var a=this;return(0,C1.A)(function*(){try{const c=yield a.cartService.emptyShoppingCart();console.log(c),console.log("EMPTY")}catch(c){console.error("There was an error while emptying the cart:",c)}})()}goToInventory(){this.router.navigate(["/product-orders"])}static{this.\u0275fac=function(c){return new(c||tH)(e.rXU(U2),e.rXU(o0.F),e.rXU(x0.O),e.rXU(d8),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(D8),e.rXU(E2.Ix))}}static{this.\u0275cmp=e.VBU({type:tH,selectors:[["app-shopping-cart"]],decls:46,vars:22,consts:[[1,"container","mx-auto","pt-2"],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-gray-800","dark:border-gray-700"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600","dark:text-gray-400","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","md:ms-2","dark:text-gray-400"],[1,"w-full","h-fit","bg-secondary-50","rounded-lg","dark:border-gray-700","border-secondary-50","border"],[1,"md:text-3xl","lg:text-4xl","m-4","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100"],[1,"h-px","mr-4","ml-4","bg-primary-100","border-0"],[1,"mt-4","m-4"],[1,"mb-5","w-full","justify-start"],["for","large-input",1,"w-full","md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2"],["type","text","id","large-input",1,"w-full","p-4","text-gray-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","focus:border-primary-50","shadow-lg"],[1,"md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","w-full","justify-end"],["type","button","href","https://dome-marketplace.eu/","target","_blank",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click"],["fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"ml-2","-mr-1","w-5","h-5"],["fill-rule","evenodd","d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500"],[1,"text-xs","text-gray-700","uppercase","bg-gray-50"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200",3,"click","ngClass"],[1,"px-6","py-4"],[1,"z-10","mt-2","text-red-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","shadow-lg"],[1,"text-red-800","m-2"],["href","#",1,"ml-2","inline-flex","items-center","font-medium","text-primary-50","hover:underline"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 10",1,"w-4","h-4","ms-2","rtl:rotate-180"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 5h12m0 0L9 1m4 4L9 9"],["id","'dropButton'+idx","type","button",1,"w-full","mt-2","text-white","bg-primary-100","hover:bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"z-10","hidden","mt-2","text-gray-900","border","border-primary-100","rounded-lg","bg-gray-50","text-base","shadow-lg",3,"id"],[1,"grid","grid-cols-80/20","items-center","align-items-center","m-2"],[1,"md:text-xl","lg:text-2xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100"],[1,"h-[50px]"],["alt","Product image",1,"rounded-r-lg","h-[50px]","dark:text-white",3,"src"],[1,"md:text-lg","lg:text-xl","font-semibold","tracking-tight","text-primary-100","dark:text-primary-100","m-2","mb-4"],[1,"flex","justify-center","m-2"],[1,"max-w-sm","bg-white","border","border-gray-200","rounded-lg","shadow","w-full"],[1,"bg-green-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900","w-full"],[1,"flex","justify-center","font-normal","text-gray-700"],[1,"text-xl","mr-2"],[1,"flex","justify-center","mb-2","font-normal","text-gray-700"],[1,"bg-yellow-300","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2","p-6","text-2xl","font-bold","tracking-tight","text-gray-900"],[1,"bg-blue-500","rounded-t-lg","w-full"],[1,"flex","justify-center","mb-2"],[1,"grid","grid-flow-row","grid-cols-3","gap-4","w-3/4"],[1,"justify-start","bg-white","border","border-primary-100","rounded-lg","w-full"],[1,"flex","items-center","ml-8","mr-2","mb-2"],["disabled","","checked","","id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","dark:text-gray-600"]],template:function(c,t){1&c&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"a",5),e.bIt("click",function(){return t.goTo("/search")}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",13)(18,"h5",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"hr",15),e.j41(22,"form",16)(23,"div",17)(24,"label",18),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.nrm(27,"input",19),e.k0s(),e.j41(28,"div",17)(29,"h5",20),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.DNE(32,O90,6,0,"div",21)(33,G90,2,1),e.k0s(),e.j41(34,"div",17)(35,"h5",20),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.Z7z(38,J90,18,6,null,null,iE1),e.k0s()(),e.j41(40,"div",22)(41,"button",23),e.bIt("click",function(){return t.orderProduct()}),e.EFF(42),e.nI1(43,"translate"),e.qSk(),e.j41(44,"svg",24),e.nrm(45,"path",25),e.k0s()()()()()),2&c&&(e.R7$(8),e.SpI(" ",e.bMT(9,8,"SHOPPING_CART._back")," "),e.R7$(7),e.JRh(e.bMT(16,10,"SHOPPING_CART._buy")),e.R7$(4),e.SpI("",e.bMT(20,12,"SHOPPING_CART._confirm"),":"),e.R7$(6),e.SpI("",e.bMT(26,14,"SHOPPING_CART._note"),":"),e.R7$(5),e.SpI("",e.bMT(31,16,"SHOPPING_CART._choose_bill"),":"),e.R7$(2),e.vxM(32,t.loading?32:33),e.R7$(4),e.SpI("",e.bMT(37,18,"SHOPPING_CART._cart"),":"),e.R7$(2),e.Dyx(t.items),e.R7$(4),e.SpI(" ",e.bMT(43,20,"SHOPPING_CART._buy")," "))},dependencies:[_.YU,p.qT,p.cb,p.cV,s1.D9]})}}function Q90(n,a){if(1&n&&(e.j41(0,"a",4),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.Y8G("href",c.node.link,e.B4B),e.R7$(),e.SpI(" ",c.node.text," ")}}function Z90(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2);e.SpI(" ",c.node.text," ")}}function K90(n,a){if(1&n&&(e.j41(0,"span"),e.DNE(1,Q90,2,2,"a",4)(2,Z90,1,1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.node.link?1:2)}}function el0(n,a){1&n&&e.nrm(0,"app-revenue-report",5),2&n&&e.Y8G("node",a.$implicit)}function cl0(n,a){if(1&n&&(e.j41(0,"div",3),e.Z7z(1,el0,1,1,"app-revenue-report",5,e.fX1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.Dyx(c.node.items)}}let tl0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-revenue-report"]],inputs:{node:"node"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"text-lg","font-normal","text-gray-500","dark:text-gray-400"],[1,"flex","items-start","gap-2"],[1,"text-xl","font-bold","text-primary-100","dark:text-white"],[1,"ml-6","mt-1"],["target","_blank",1,"cursor-pointer","font-medium","text-primary-100","dark:text-primary-50","hover:underline","break-words",3,"href"],[3,"node"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"h3",2),e.EFF(3),e.k0s(),e.DNE(4,K90,3,1,"span"),e.k0s(),e.DNE(5,cl0,3,0,"div",3),e.k0s()),2&t&&(e.R7$(3),e.SpI(" ",l.node.label,": "),e.R7$(),e.vxM(4,l.node.text?4:-1),e.R7$(),e.vxM(5,(null==l.node.items?null:l.node.items.length)>0?5:-1))},dependencies:[n]})}}return n})();class rF{static{this.BASE_URL=g1.c.BASE_URL}static{this.PAYMENT_URL=g1.c.PAYMENT_URL}constructor(a,c){this.http=a,this.localStorage=c}getRevenue(a){return(0,e0.s)(this.http.get(`${rF.BASE_URL}${rF.PAYMENT_URL}/dashboard/${a}`))}static{this.\u0275fac=function(c){return new(c||rF)(e.KVO(g.Qq),e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:rF,factory:rF.\u0275fac,providedIn:"root"})}}function nl0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function ll0(n,a){if(1&n&&(e.j41(0,"div",8),e.nrm(1,"app-revenue-report",9),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.Y8G("node",c)}}function sl0(n,a){if(1&n&&e.Z7z(0,ll0,2,1,"div",8,e.fX1),2&n){const c=e.XpG();e.Dyx(c.report)}}function al0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",10)(2,"div",11),e.qSk(),e.j41(3,"svg",12),e.nrm(4,"path",13),e.k0s(),e.joV(),e.j41(5,"h3",14),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",15),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let rE1=(()=>{class n{constructor(c,t){this.localStorage=c,this.revenueService=t,this.loading=!1,this.errorMessage="",this.showError=!1,this.partyId="",this.report=[]}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.loading=!0,c.initPartyInfo();try{let t=yield c.revenueService.getRevenue(c.partyId);c.loading=!1,console.log("------"),console.log(t),c.report=t}catch(t){c.handleError(t,"There was an error accessing revenue sharing's data, please contact with an administrator."),c.loading=!1}finally{c.loading=!1}})()}handleError(c,t){console.error(t,c),this.errorMessage=c?.error?.error?`Error: ${c.error.error}`:t,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(rF))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["provider-revenue-sharing"]],standalone:!0,features:[e.aNF],decls:6,vars:2,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],["role","status",1,"h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"border","border-primary-100","dark:border-primary-50","rounded-lg","p-4","md:p-8","mb-4"],[3,"node"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Provider revenue sharing"),e.k0s(),e.DNE(3,nl0,6,0,"div",2)(4,sl0,2,0),e.k0s(),e.DNE(5,al0,9,1,"div",3)),2&t&&(e.R7$(3),e.vxM(3,l.loading?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[s1.h,J2.dX,_.MD,tl0]})}}return n})();const ol0=["imgURL"],dE1=(n,a)=>a.code,il0=(n,a,c,t)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":n,"bg-gray-50 dark:bg-secondary-300":a,"border-red-600":c,"border-gray-300 dark:border-secondary-200":t}),nH=(n,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed":n,"bg-gray-50 dark:bg-secondary-300":a}),rl0=(n,a)=>({"bg-gray-100 dark:bg-gray-700 cursor-not-allowed pointer-events-none":n,"bg-gray-50 dark:bg-secondary-300":a}),fE1=(n,a)=>({"break-all":n,"break-words":a}),dl0=()=>({position:"relative",left:"200px",top:"-500px"});function fl0(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",9),e.EFF(5,"Loading..."),e.k0s()())}function ul0(n,a){1&n&&(e.j41(0,"p",16)(1,"span",29),e.EFF(2,"This field is mandatory."),e.k0s()())}function ml0(n,a){if(1&n&&(e.j41(0,"option",30),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.code),e.R7$(),e.SpI(" ",c.name," ")}}function pl0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",14),e.EFF(2,"Contract Management Address"),e.k0s(),e.nrm(3,"input",32),e.k0s(),e.j41(4,"div")(5,"span",14),e.EFF(6,"Contract Management Client ID"),e.k0s(),e.nrm(7,"input",33),e.k0s(),e.j41(8,"div")(9,"span",14),e.EFF(10,"Contract Management Scopes"),e.k0s(),e.nrm(11,"input",34),e.k0s()),2&n){const c=e.XpG(2);e.R7$(3),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(6,nH,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(9,nH,c.isReadOnly,!c.isReadOnly)),e.R7$(4),e.Y8G("readonly",c.isReadOnly)("ngClass",e.l_i(12,nH,c.isReadOnly,!c.isReadOnly))}}function hl0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div",35),e.nrm(2,"markdown",36),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.Y8G("ngClass",e.l_i(2,fE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function gl0(n,a){if(1&n&&e.nrm(0,"markdown",36),2&n){const c=e.XpG(3);e.Y8G("ngClass",e.l_i(2,fE1,c.hasLongWord(c.description,20),!c.hasLongWord(c.description,20)))("data",c.description)}}function _l0(n,a){1&n&&e.nrm(0,"textarea",67)}function Ll0(n,a){if(1&n){const c=e.RV6();e.j41(0,"emoji-mart",68),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())})("emojiClick",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.addEmoji(l))}),e.k0s()}2&n&&(e.Aen(e.lJ4(3,dl0)),e.Y8G("darkMode",!1))}function Cl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",37)(1,"div",38)(2,"div",39)(3,"div",40)(4,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addBold())}),e.qSk(),e.j41(5,"svg",42),e.nrm(6,"path",43),e.k0s(),e.joV(),e.j41(7,"span",9),e.EFF(8,"Bold"),e.k0s()(),e.j41(9,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addItalic())}),e.qSk(),e.j41(10,"svg",42),e.nrm(11,"path",44),e.k0s(),e.joV(),e.j41(12,"span",9),e.EFF(13,"Italic"),e.k0s()(),e.j41(14,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addList())}),e.qSk(),e.j41(15,"svg",45),e.nrm(16,"path",46),e.k0s(),e.joV(),e.j41(17,"span",9),e.EFF(18,"Add list"),e.k0s()(),e.j41(19,"button",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addOrderedList())}),e.qSk(),e.j41(20,"svg",45),e.nrm(21,"path",48),e.k0s(),e.joV(),e.j41(22,"span",9),e.EFF(23,"Add ordered list"),e.k0s()(),e.j41(24,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addBlockquote())}),e.qSk(),e.j41(25,"svg",50),e.nrm(26,"path",51),e.k0s(),e.joV(),e.j41(27,"span",9),e.EFF(28,"Add blockquote"),e.k0s()(),e.j41(29,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addTable())}),e.qSk(),e.j41(30,"svg",52),e.nrm(31,"path",53),e.k0s(),e.joV(),e.j41(32,"span",9),e.EFF(33,"Add table"),e.k0s()(),e.j41(34,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addCode())}),e.qSk(),e.j41(35,"svg",52),e.nrm(36,"path",54),e.k0s(),e.joV(),e.j41(37,"span",9),e.EFF(38,"Add code"),e.k0s()(),e.j41(39,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addCodeBlock())}),e.qSk(),e.j41(40,"svg",52),e.nrm(41,"path",55),e.k0s(),e.joV(),e.j41(42,"span",9),e.EFF(43,"Add code block"),e.k0s()(),e.j41(44,"button",49),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.addLink())}),e.qSk(),e.j41(45,"svg",52),e.nrm(46,"path",56),e.k0s(),e.joV(),e.j41(47,"span",9),e.EFF(48,"Add link"),e.k0s()(),e.j41(49,"button",47),e.bIt("click",function(l){e.eBV(c);const i=e.XpG(2);return i.showEmoji=!i.showEmoji,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(50,"svg",57),e.nrm(51,"path",58),e.k0s(),e.joV(),e.j41(52,"span",9),e.EFF(53,"Add emoji"),e.k0s()()()(),e.j41(54,"button",59),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.showPreview=!l.showPreview,e.Njj(l.togglePreview())}),e.qSk(),e.j41(55,"svg",45),e.nrm(56,"path",60)(57,"path",61),e.k0s(),e.joV(),e.j41(58,"span",9),e.EFF(59),e.nI1(60,"translate"),e.k0s()(),e.j41(61,"div",62),e.EFF(62),e.nI1(63,"translate"),e.nrm(64,"div",63),e.k0s()(),e.j41(65,"div",64)(66,"label",65),e.EFF(67,"Publish post"),e.k0s(),e.DNE(68,gl0,1,5,"markdown",36)(69,_l0,1,0)(70,Ll0,1,4,"emoji-mart",66),e.k0s()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(5),e.Y8G("disabled",c.showPreview)("ngClass",c.showPreview?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(10),e.JRh(e.bMT(60,24,"CREATE_CATALOG._preview")),e.R7$(3),e.SpI(" ",e.bMT(63,26,"CREATE_CATALOG._show_preview")," "),e.R7$(6),e.vxM(68,c.showPreview?68:69),e.R7$(2),e.vxM(70,c.showEmoji?70:-1)}}function zl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",79),e.nrm(1,"img",80),e.j41(2,"button",81),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",82),e.nrm(4,"path",83),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function Ml0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",94),e.qSk(),e.j41(1,"svg",95),e.nrm(2,"path",96),e.k0s(),e.joV(),e.j41(3,"div",97)(4,"p",98),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",99),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function xl0(n,a){1&n&&(e.j41(0,"div",100),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",101),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function bl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"ngx-file-drop",85),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(2,Ml0,10,6,"ng-template",86),e.k0s()(),e.j41(3,"label",87),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",88),e.DNE(7,xl0,4,3,"div",89),e.j41(8,"div",90)(9,"input",91,0),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",82),e.nrm(13,"path",93),e.k0s()()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,6,"PROFILE._add_logo_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function yl0(n,a){if(1&n&&(e.j41(0,"div",69)(1,"h2",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",70),e.qSk(),e.j41(5,"svg",71),e.nrm(6,"path",72),e.k0s()()(),e.joV(),e.j41(7,"div",73)(8,"div",74)(9,"h3",75),e.EFF(10,"Logo requirements"),e.k0s()(),e.j41(11,"div",76)(12,"p",77),e.EFF(13,"The supported formats are SVG and PNG. The logo size should follow an 1:1 aspect ratio (e.g. 160x160px resolution) and transparent background. "),e.k0s()(),e.nrm(14,"div",78),e.k0s(),e.nrm(15,"hr",12),e.DNE(16,zl0,5,1,"div",79)(17,bl0,14,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._add_logo")),e.R7$(14),e.vxM(16,c.showImgPreview?16:17)}}function Fl0(n,a){1&n&&(e.j41(0,"th",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._actions")," "))}function vl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.emailAddress," ")}}function kl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SjE(" ",c.characteristic.street1,", ",c.characteristic.postCode," (",c.characteristic.city,") ",c.characteristic.stateOrProvince,", ",c.characteristic.country," ")}}function wl0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.characteristic.phoneNumber," ")}}function Sl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"td",104)(1,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.showEdit(l))}),e.qSk(),e.j41(2,"svg",106),e.nrm(3,"path",107),e.k0s()(),e.joV(),e.j41(4,"button",108),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.removeMedium(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",109),e.k0s()()()}}function Nl0(n,a){if(1&n&&(e.j41(0,"tr",27)(1,"td",102),e.EFF(2),e.k0s(),e.j41(3,"td",102),e.EFF(4),e.k0s(),e.j41(5,"td",103),e.DNE(6,vl0,1,1)(7,kl0,1,5)(8,wl0,1,1),e.k0s(),e.DNE(9,Sl0,7,0,"td",104),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI(" ",c.mediumType," "),e.R7$(2),e.SpI(" ",t.getMediumContactType(c)," "),e.R7$(2),e.vxM(6,"Email"==c.mediumType?6:"PostalAddress"==c.mediumType?7:8),e.R7$(3),e.vxM(9,t.isReadOnly?-1:9)}}function El0(n,a){1&n&&(e.j41(0,"div",28)(1,"div",110),e.qSk(),e.j41(2,"svg",111),e.nrm(3,"path",112),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"PROFILE._no_mediums")," "))}function Dl0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"label",127),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",128),e.k0s()),2&n){let c;const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"PROFILE._email")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("email"))?null:c.invalid)&&""!=t.mediumForm.value.email||1==(null==(c=t.mediumForm.get("email"))?null:c.touched)&&""==t.mediumForm.value.email?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Tl0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",129),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",130),e.k0s(),e.j41(5,"div")(6,"label",131),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",132),e.k0s(),e.j41(10,"div")(11,"label",133),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",134),e.k0s(),e.j41(15,"div")(16,"label",135),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",136),e.k0s(),e.j41(20,"div",31)(21,"label",137),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",138),e.k0s()),2&n){let c,t,l,i,u;const C=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,10,"PROFILE._country")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=C.mediumForm.get("country"))?null:c.invalid)&&""!=C.mediumForm.value.country||null!=(c=C.mediumForm.get("country"))&&c.touched&&""==C.mediumForm.value.country?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(8,12,"PROFILE._city")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=C.mediumForm.get("city"))?null:t.invalid)&&""!=C.mediumForm.value.city||null!=(t=C.mediumForm.get("city"))&&t.touched&&""==C.mediumForm.value.city?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(13,14,"PROFILE._state")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=C.mediumForm.get("stateOrProvince"))?null:l.invalid)&&""!=C.mediumForm.value.stateOrProvince||null!=(l=C.mediumForm.get("stateOrProvince"))&&l.touched&&""==C.mediumForm.value.stateOrProvince?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(18,16,"PROFILE._post_code")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=C.mediumForm.get("postCode"))?null:i.invalid)&&""!=C.mediumForm.value.postCode||null!=(i=C.mediumForm.get("postCode"))&&i.touched&&""==C.mediumForm.value.postCode?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(3),e.JRh(e.bMT(23,18,"PROFILE._street")),e.R7$(2),e.Y8G("ngClass",1==(null==(u=C.mediumForm.get("street"))?null:u.invalid)&&""!=C.mediumForm.value.street||null!=(u=C.mediumForm.get("street"))&&u.touched&&""==C.mediumForm.value.street?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Rl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",149),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",150),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function Al0(n,a){if(1&n&&(e.j41(0,"div",145)(1,"ul",147)(2,"li"),e.Z7z(3,Rl0,3,1,"button",148,dE1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(3),e.Dyx(c.prefixes)}}function Il0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"label",139),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",140)(5,"div",141)(6,"button",142),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(7),e.qSk(),e.j41(8,"svg",143),e.nrm(9,"path",144),e.k0s()(),e.DNE(10,Al0,5,0,"div",145),e.joV(),e.nrm(11,"input",146),e.k0s()()()}if(2&n){let c;const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._phone")),e.R7$(5),e.Lme(" ",t.phonePrefix.flag," ",t.phonePrefix.code," "),e.R7$(3),e.vxM(10,1==t.prefixCheck?10:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Pl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h2",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"hr",12),e.j41(4,"div",113)(5,"select",114),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(6,"option",115),e.EFF(7,"Email"),e.k0s(),e.j41(8,"option",116),e.EFF(9,"Postal Address"),e.k0s(),e.j41(10,"option",117),e.EFF(11,"Phone Number"),e.k0s()()(),e.j41(12,"form",118)(13,"div",31)(14,"label",119),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"input",120),e.k0s(),e.DNE(18,Dl0,5,4,"div",31)(19,Tl0,25,20)(20,Il0,12,7),e.k0s(),e.j41(21,"div",121)(22,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveMedium())}),e.EFF(23),e.nI1(24,"translate"),e.qSk(),e.j41(25,"svg",123),e.nrm(26,"path",124),e.k0s()()(),e.joV(),e.j41(27,"div",125)(28,"button",126),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.updateProfile())}),e.EFF(29),e.nI1(30,"translate"),e.k0s()()}if(2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,11,"PROFILE._add_new_contact")),e.R7$(11),e.Y8G("formGroup",t.mediumForm),e.R7$(3),e.JRh(e.bMT(16,13,"PROFILE._contact_title")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("contactTitle"))?null:c.invalid)&&""!=t.mediumForm.value.contactTitle||1==(null==(c=t.mediumForm.get("contactTitle"))?null:c.touched)&&""==t.mediumForm.value.contactTitle?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(18,t.emailSelected?18:t.addressSelected?19:20),e.R7$(4),e.Y8G("disabled",!t.mediumForm.valid)("ngClass",t.mediumForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(24,15,"PROFILE._save")," "),e.R7$(5),e.Y8G("disabled",!t.profileForm.valid)("ngClass",t.profileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(30,17,"PROFILE._update")," ")}}function jl0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"h2",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",12),e.j41(5,"form",13)(6,"div")(7,"span",14),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"input",15),e.DNE(11,ul0,3,0,"p",16),e.k0s(),e.j41(12,"div")(13,"span",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"input",17),e.k0s(),e.j41(17,"div")(18,"span",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"select",18),e.DNE(22,ml0,2,2,"option",19),e.k0s()(),e.DNE(23,pl0,12,15),e.j41(24,"label",20),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,hl0,3,5,"div",21)(28,Cl0,71,28),e.k0s(),e.DNE(29,yl0,18,4),e.j41(30,"h2",11),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.nrm(33,"hr",12),e.j41(34,"div",22)(35,"table",23)(36,"thead",24)(37,"tr")(38,"th",25),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"th",25),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"th",26),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.DNE(47,Fl0,3,3,"th",25),e.k0s()(),e.j41(48,"tbody"),e.Z7z(49,Nl0,10,4,"tr",27,e.fX1,!1,El0,7,3,"div",28),e.k0s()()(),e.DNE(52,Pl0,31,19),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(2),e.JRh(e.bMT(3,24,"PROFILE._organization")),e.R7$(3),e.Y8G("formGroup",l.profileForm),e.R7$(3),e.SpI("",e.bMT(9,26,"PROFILE._name")," (*)"),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.ziG(42,il0,l.isReadOnly,!l.isReadOnly,1==(null==(c=l.profileForm.get("name"))?null:c.invalid)&&""!=l.profileForm.value.name||(null==(c=l.profileForm.get("name"))?null:c.touched)&&""==l.profileForm.value.name,!(1==(null==(c=l.profileForm.get("name"))?null:c.invalid)&&""!=l.profileForm.value.name||null!=(c=l.profileForm.get("name"))&&c.touched&&""==l.profileForm.value.name))),e.R7$(),e.vxM(11,null!=(t=l.profileForm.get("name"))&&t.invalid&&null!=(t=l.profileForm.get("name"))&&null!=t.errors&&t.errors.required&&null!=(t=l.profileForm.get("name"))&&t.touched&&""==l.profileForm.value.name?11:-1),e.R7$(3),e.JRh(e.bMT(15,28,"PROFILE._website")),e.R7$(2),e.Y8G("readonly",l.isReadOnly)("ngClass",e.l_i(47,nH,l.isReadOnly,!l.isReadOnly)),e.R7$(3),e.SpI("",e.bMT(20,30,"PROFILE._country")," (*)"),e.R7$(2),e.Y8G("disabled",l.isReadOnly)("ngClass",e.l_i(50,rl0,l.isReadOnly,!l.isReadOnly)),e.R7$(),e.Y8G("ngForOf",l.euCountries),e.R7$(),e.vxM(23,l.isDataspaceEnabled?23:-1),e.R7$(2),e.JRh(e.bMT(26,32,"UPDATE_OFFER._description")),e.R7$(2),e.vxM(27,l.isReadOnly?27:28),e.R7$(2),e.vxM(29,l.isReadOnly?-1:29),e.R7$(2),e.JRh(e.bMT(32,34,"PROFILE._contact_info")),e.R7$(8),e.SpI(" ",e.bMT(40,36,"PROFILE._medium_type")," "),e.R7$(3),e.SpI(" ",e.bMT(43,38,"PROFILE._contact_title")," "),e.R7$(3),e.SpI(" ",e.bMT(46,40,"PROFILE._info")," "),e.R7$(2),e.vxM(47,l.isReadOnly?-1:47),e.R7$(2),e.Dyx(l.contactmediums),e.R7$(3),e.vxM(52,l.isReadOnly?-1:52)}}function $l0(n,a){if(1&n&&e.nrm(0,"error-message",2),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function Ol0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"label",127),e.EFF(2,"Email"),e.k0s(),e.nrm(3,"input",160),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(3),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("email"))?null:c.invalid)&&""!=t.mediumForm.value.email?"border-red-600":"border-gray-300")}}function Bl0(n,a){1&n&&(e.j41(0,"div")(1,"label",129),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",161),e.k0s(),e.j41(5,"div")(6,"label",131),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",162),e.k0s(),e.j41(10,"div")(11,"label",133),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",163),e.k0s(),e.j41(15,"div")(16,"label",135),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",164),e.k0s(),e.j41(20,"div",31)(21,"label",137),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.nrm(24,"textarea",165),e.k0s()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._country")),e.R7$(5),e.JRh(e.bMT(8,7,"PROFILE._city")),e.R7$(5),e.JRh(e.bMT(13,9,"PROFILE._state")),e.R7$(5),e.JRh(e.bMT(18,11,"PROFILE._post_code")),e.R7$(5),e.JRh(e.bMT(23,13,"PROFILE._street")))}function Vl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",149),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.selectPrefix(l))}),e.j41(1,"div",150),e.EFF(2),e.k0s()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.text," ")}}function Ul0(n,a){if(1&n&&(e.j41(0,"div",145)(1,"ul",147)(2,"li"),e.Z7z(3,Vl0,3,1,"button",148,dE1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(3),e.Dyx(c.prefixes)}}function Gl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"label",139),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",140)(5,"div",141)(6,"button",142),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.prefixCheck=!l.prefixCheck)}),e.EFF(7),e.qSk(),e.j41(8,"svg",143),e.nrm(9,"path",144),e.k0s()(),e.DNE(10,Ul0,5,0,"div",145),e.joV(),e.nrm(11,"input",166),e.k0s()()()}if(2&n){let c;const t=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,5,"PROFILE._phone")),e.R7$(5),e.Lme(" ",t.phonePrefix.flag," ",t.phonePrefix.code," "),e.R7$(3),e.vxM(10,1==t.prefixCheck?10:-1),e.R7$(),e.Y8G("ngClass",1==(null==(c=t.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?"border-red-600":"border-gray-300 dark:border-secondary-200")}}function Hl0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",3)(1,"div",151),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",152)(3,"h2",11),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showEditMedium=!1)}),e.qSk(),e.j41(7,"svg",154),e.nrm(8,"path",155),e.k0s(),e.joV(),e.j41(9,"span",9),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",156)(13,"form",118)(14,"div",31)(15,"label",157),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",158),e.k0s(),e.DNE(19,Ol0,4,1,"div",31)(20,Bl0,25,15)(21,Gl0,12,7),e.k0s(),e.j41(22,"div",121)(23,"button",159),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editMedium())}),e.EFF(24),e.nI1(25,"translate"),e.qSk(),e.j41(26,"svg",123),e.nrm(27,"path",124),e.k0s()()()()()()}if(2&n){let c,t,l;const i=e.XpG();e.Y8G("ngClass",i.showEditMedium?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,10,"PROFILE._edit")),e.R7$(6),e.JRh(e.bMT(11,12,"CARD._close")),e.R7$(3),e.Y8G("formGroup",i.mediumForm),e.R7$(3),e.JRh(e.bMT(17,14,"PROFILE._contact_title")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.mediumForm.get("contactTitle"))?null:c.invalid)&&""!=i.mediumForm.value.contactTitle||1==(null==(c=i.mediumForm.get("contactTitle"))?null:c.touched)&&""==i.mediumForm.value.contactTitle?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(19,"Email"==i.selectedMedium.mediumType?19:"PostalAddress"==i.selectedMedium.mediumType?20:21),e.R7$(4),e.Y8G("disabled",null==(t=i.mediumForm.get("contactTitle"))?null:t.invalid)("ngClass",null!=(l=i.mediumForm.get("contactTitle"))&&l.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(),e.SpI(" ",e.bMT(25,16,"PROFILE._save")," ")}}function Yl0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_phone")))}function ql0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_email")))}function Xl0(n,a){1&n&&(e.j41(0,"div",170),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._invalid_contact_title")))}function Wl0(n,a){if(1&n&&(e.j41(0,"div",4)(1,"div",167),e.qSk(),e.j41(2,"svg",168),e.nrm(3,"path",169),e.k0s()(),e.joV(),e.j41(4,"div"),e.DNE(5,Yl0,3,3,"div",170)(6,ql0,3,3,"div",170)(7,Xl0,3,3,"div",170),e.k0s(),e.j41(8,"button",171)(9,"span",9),e.EFF(10,"Close"),e.k0s(),e.qSk(),e.j41(11,"svg",154),e.nrm(12,"path",155),e.k0s()()()),2&n){let c,t,l;const i=e.XpG();e.R7$(5),e.vxM(5,1==(null==(c=i.mediumForm.get("telephoneNumber"))||null==c.errors?null:c.errors.invalidPhoneNumber)?5:-1),e.R7$(),e.vxM(6,1==(null==(t=i.mediumForm.get("email"))?null:t.invalid)?6:-1),e.R7$(),e.vxM(7,1==(null==(l=i.mediumForm.get("contactTitle"))?null:l.invalid)?7:-1)}}function Jl0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",172)(2,"div",173),e.qSk(),e.j41(3,"svg",174),e.nrm(4,"path",112),e.k0s(),e.joV(),e.j41(5,"h3",175),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",176),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let Ql0=(()=>{class n{constructor(c,t,l,i,u,C){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.eventMessage=u,this.attachmentService=C,this.isDataspaceEnabled=g1.c.DATA_SPACE_ENABLED,this.loading=!1,this.orders=[],this.partyId="",this.token="",this.email="",this.isReadOnly=!1,this.profileForm=new p.gE({name:new p.MJ("",[p.k0.required]),website:new p.MJ(""),description:new p.MJ(""),country:new p.MJ("",[p.k0.required]),contractManagementAddress:new p.MJ(""),contractManagementClientId:new p.MJ(""),contractManagementScopes:new p.MJ("")}),this.mediumForm=new p.gE({contactTitle:new p.MJ("",[p.k0.required,p.k0.maxLength(250)]),email:new p.MJ("",[p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$"),p.k0.maxLength(320)]),country:new p.MJ("",p.k0.maxLength(250)),city:new p.MJ("",p.k0.maxLength(250)),stateOrProvince:new p.MJ("",p.k0.maxLength(250)),postCode:new p.MJ("",p.k0.maxLength(250)),street:new p.MJ("",p.k0.maxLength(1e3)),telephoneNumber:new p.MJ(""),telephoneType:new p.MJ("Mobile")}),this.contactmediums=[],this.emailSelected=!0,this.addressSelected=!1,this.phoneSelected=!1,this.prefixes=qG,this.countries=iF,this.phonePrefix=qG[0],this.prefixCheck=!1,this.showEditMedium=!1,this.toastVisibility=!1,this.successVisibility=!1,this.errorMessage="",this.showError=!1,this.showPreview=!1,this.showEmoji=!1,this.description="",this.showImgPreview=!1,this.imgPreview="",this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.selectedCountry="",this.euCountries=[{code:"AT",name:"Austria"},{code:"BE",name:"Belgium"},{code:"BG",name:"Bulgaria"},{code:"HR",name:"Croatia"},{code:"CY",name:"Cyprus"},{code:"CZ",name:"Czech Republic"},{code:"DK",name:"Denmark"},{code:"EE",name:"Estonia"},{code:"FI",name:"Finland"},{code:"FR",name:"France"},{code:"DE",name:"Germany"},{code:"GR",name:"Greece"},{code:"HU",name:"Hungary"},{code:"IE",name:"Ireland"},{code:"IT",name:"Italy"},{code:"LV",name:"Latvia"},{code:"LT",name:"Lithuania"},{code:"LU",name:"Luxembourg"},{code:"MT",name:"Malta"},{code:"NL",name:"Netherlands"},{code:"PL",name:"Poland"},{code:"PT",name:"Portugal"},{code:"RO",name:"Romania"},{code:"SK",name:"Slovakia"},{code:"SI",name:"Slovenia"},{code:"ES",name:"Spain"},{code:"SE",name:"Sweden"}],this.files=[],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo(),this.isReadOnly&&this.profileForm.value.description&&(this.description=this.profileForm.value.description),setTimeout(()=>{D2()},500)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as!==c.id){let t=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=t.partyId,t&&t.roles){const i=t.roles.map(u=>u.name).some(u=>u===g1.c.ORG_ADMIN_ROLE);this.isReadOnly=!i}}else this.partyId=c.partyId,this.isReadOnly=!1;this.token=c.token,this.email=c.email,this.profileForm.reset(),this.getProfile()}D2()}getProfile(){this.contactmediums=[],this.accountService.getOrgInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}updateProfile(){let c=[],t=[];""!=this.imgPreview&&t.push({name:"logo",value:this.imgPreview}),""!=this.profileForm.value.description&&t.push({name:"description",value:this.profileForm.value.description}),""!=this.profileForm.value.website&&t.push({name:"website",value:this.profileForm.value.website}),""!=this.profileForm.value.country&&t.push({name:"country",value:this.profileForm.value.country});const l=this.profileForm.value.contractManagementAddress?.trim()??"",i=this.profileForm.value.contractManagementClientId?.trim()??"",u=this.parseContractManagementScopes(this.profileForm.value.contractManagementScopes);this.isDataspaceEnabled&&(""!==l||""!==i||u.length>0)&&t.push({name:"contractManagement",value:{address:l,clientId:i,scope:u}});for(let b=0;b{this.profileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.mediumForm.reset()},error:b=>{console.error("There was an error while updating!",b),this.errorMessage=b.error.error?"Error: "+b.error.error:"There was an error while updating profile!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}loadProfileData(c){if(this.profileForm.controls.name.setValue(c.tradingName),c.contactMedium)for(let t=0;tt.trim()).filter(t=>t.length>0):[]}formatContractManagementScopes(c){return Array.isArray(c)?c.filter(t=>"string"==typeof t).join(", "):"string"==typeof c?c:""}getMediumContactType(c,t=""){const l=c?.characteristic?.contactType;return"string"==typeof l&&""!==l.trim()?l.trim():t}getContactTitle(c){const t=this.mediumForm.value.contactTitle;return"string"==typeof t&&""!==t.trim()?t.trim():c}saveMedium(){if(this.phoneSelected)try{const c=Kk(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(c){if(!c.isValid())return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.mediumForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}if(this.mediumForm.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.contactmediums.push(this.emailSelected?{id:L4(),mediumType:"Email",preferred:!1,characteristic:{contactType:this.getContactTitle("Email"),emailAddress:this.mediumForm.value.email}}:this.addressSelected?{id:L4(),mediumType:"PostalAddress",preferred:!1,characteristic:{contactType:this.getContactTitle("PostalAddress"),city:this.mediumForm.value.city,country:this.mediumForm.value.country,postCode:this.mediumForm.value.postCode,stateOrProvince:this.mediumForm.value.stateOrProvince,street1:this.mediumForm.value.street}}:{id:L4(),mediumType:"TelephoneNumber",preferred:!1,characteristic:{contactType:this.getContactTitle("Phone"),phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}),this.mediumForm.reset()}removeMedium(c){const t=this.contactmediums.findIndex(l=>l.id===c.id);-1!==t&&this.contactmediums.splice(t,1)}editMedium(){const c=this.contactmediums.findIndex(t=>t.id===this.selectedMedium.id);if(-1!==c){if(this.mediumForm.get("contactTitle")?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);if("Email"==this.selectedMedium.mediumType){if(this.mediumForm.get("email")?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"Email",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("Email"),emailAddress:this.mediumForm.value.email}}}else if("PostalAddress"==this.selectedMedium.mediumType)["country","city","stateOrProvince","street"].forEach(l=>{if(this.mediumForm.get(l)?.invalid)return this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}),this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"PostalAddress",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("PostalAddress"),city:this.mediumForm.value.city,country:this.mediumForm.value.country,postCode:this.mediumForm.value.postCode,stateOrProvince:this.mediumForm.value.stateOrProvince,street1:this.mediumForm.value.street}};else{try{const t=Kk(this.phonePrefix.code+this.mediumForm.value.telephoneNumber);if(t){if(!t.isValid())return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3);this.mediumForm.controls.telephoneNumber.setErrors(null),this.toastVisibility=!1}}catch{return this.mediumForm.controls.telephoneNumber.setErrors({invalidPhoneNumber:!0}),this.toastVisibility=!0,void setTimeout(()=>{this.toastVisibility=!1},2e3)}this.contactmediums[c]={id:this.contactmediums[c].id,mediumType:"TelephoneNumber",preferred:this.contactmediums[c].preferred,characteristic:{contactType:this.getContactTitle("Phone"),phoneNumber:this.phonePrefix.code+this.mediumForm.value.telephoneNumber}}}this.mediumForm.reset(),this.showEditMedium=!1}}showEdit(c){if(this.selectedMedium=c,this.mediumForm.controls.contactTitle.setValue(this.getMediumContactType(this.selectedMedium)),"Email"==this.selectedMedium.mediumType)this.selectedMediumType="email",this.mediumForm.controls.email.setValue(this.selectedMedium.characteristic.emailAddress);else if("PostalAddress"==this.selectedMedium.mediumType)this.selectedMediumType="address",this.mediumForm.controls.country.setValue(this.selectedMedium.characteristic.country),this.mediumForm.controls.city.setValue(this.selectedMedium.characteristic.city),this.mediumForm.controls.stateOrProvince.setValue(this.selectedMedium.characteristic.stateOrProvince),this.mediumForm.controls.postCode.setValue(this.selectedMedium.characteristic.postCode),this.mediumForm.controls.street.setValue(this.selectedMedium.characteristic.street1);else{this.selectedMediumType="phone";const t=Kk(this.selectedMedium.characteristic.phoneNumber);if(t){let l=this.prefixes.filter(i=>i.code==="+"+t.countryCallingCode);l.length>0&&(this.phonePrefix=l[0]),this.mediumForm.controls.telephoneNumber.setValue(t.nationalNumber)}this.mediumForm.controls.telephoneType.setValue(this.selectedMedium.characteristic.contactType)}this.showEditMedium=!0}selectPrefix(c){this.prefixCheck=!1,this.phonePrefix=c}onTypeChange(c){this.mediumForm.reset(),"email"==c.target.value?(this.emailSelected=!0,this.addressSelected=!1,this.phoneSelected=!1,this.mediumForm.get("country")?.clearValidators(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.clearValidators(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.clearValidators(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.clearValidators(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("street")?.clearValidators(),this.mediumForm.get("street")?.setValue(""),this.mediumForm.get("telephoneNumber")?.clearValidators(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.mediumForm.get("email")?.setValidators([p.k0.required,p.k0.email,p.k0.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+\\.[a-z]{2,4}$")]),this.mediumForm.get("email")?.markAsUntouched(),this.mediumForm.get("email")?.setValue(""),this.cdr.detectChanges()):"address"==c.target.value?(this.emailSelected=!1,this.addressSelected=!0,this.phoneSelected=!1,this.mediumForm.get("telephoneNumber")?.clearValidators(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.mediumForm.get("email")?.clearValidators(),this.mediumForm.get("email")?.setValue(""),this.mediumForm.get("country")?.setValidators([p.k0.required]),this.mediumForm.get("country")?.markAsUntouched(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.setValidators([p.k0.required]),this.mediumForm.get("city")?.markAsUntouched(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.setValidators([p.k0.required]),this.mediumForm.get("stateOrProvince")?.markAsUntouched(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.setValidators([p.k0.required]),this.mediumForm.get("postCode")?.markAsUntouched(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("street")?.setValidators([p.k0.required]),this.mediumForm.get("street")?.markAsUntouched(),this.mediumForm.get("street")?.setValue(""),this.cdr.detectChanges()):(this.emailSelected=!1,this.addressSelected=!1,this.phoneSelected=!0,this.mediumForm.get("country")?.clearValidators(),this.mediumForm.get("country")?.setValue(""),this.mediumForm.get("city")?.clearValidators(),this.mediumForm.get("city")?.setValue(""),this.mediumForm.get("stateOrProvince")?.clearValidators(),this.mediumForm.get("stateOrProvince")?.setValue(""),this.mediumForm.get("postCode")?.clearValidators(),this.mediumForm.get("postCode")?.setValue(""),this.mediumForm.get("street")?.clearValidators(),this.mediumForm.get("street")?.setValue(""),this.mediumForm.get("email")?.clearValidators(),this.mediumForm.get("email")?.setValue(""),this.mediumForm.get("telephoneNumber")?.setValidators([p.k0.required]),this.mediumForm.get("telephoneNumber")?.markAsUntouched(),this.mediumForm.get("telephoneNumber")?.setValue(""),this.cdr.detectChanges())}showMedium(){}printActiveValidators(c){const t=this.mediumForm.get(c);!t||!t.validator||t.validator({})}printAllActiveValidators(){Object.keys(this.mediumForm.controls).forEach(c=>{this.printActiveValidators(c)})}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile&&l.fileEntry.file(u=>{if(u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];let W={content:{name:"orglogo"+u.name,data:T},contentType:u.type,isPublic:!0};return this.isValidFilename(W.content.name)?u.size>this.MAX_FILE_SIZE?(this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)):void this.attachmentService.uploadFile(W).subscribe({next:u1=>{"img"==t&&(u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=u1.content):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3))),this.cdr.detectChanges()},error:u1=>{console.error("There was an error while uploading!",u1),this.errorMessage=u1.error.error?"Error: "+u1.error.error:"There was an error while uploading the file!",413===u1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}):(this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3))},C.readAsDataURL(u)}})}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){}fileLeave(c){}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.attImageName.reset(),this.cdr.detectChanges()}removeImg(){this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()}addBold(){this.profileForm.patchValue({description:this.profileForm.value.description+" **bold text** "})}addItalic(){this.profileForm.patchValue({description:this.profileForm.value.description+" _italicized text_ "})}addList(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n`code`"})}addCodeBlock(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n> blockquote"})}addLink(){this.profileForm.patchValue({description:this.profileForm.value.description+" [title](https://www.example.com) "})}addTable(){this.profileForm.patchValue({description:this.profileForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showEmoji=!1,this.profileForm.patchValue({description:this.profileForm.value.description+c.emoji.native})}togglePreview(){this.description=this.profileForm.value.description?this.profileForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(U2),e.rXU(wn))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["org-info"]],viewQuery:function(t,l){if(1&t&&e.GBs(ol0,5),2&t){let i;e.mGM(i=e.lsd())&&(l.imgURL=i.first)}},decls:6,vars:5,consts:[["imgURL",""],["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["id","edit-medium-modal","tabindex","-1","aria-hidden","true",1,"flex","justify-center","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-fit","lg:h-[calc(100%)]","max-h-full","shadow-2xl",3,"ngClass"],["id","toast-warning","role","alert",1,"flex","m-2","items-center","w-fit","max-w-xs","p-4","text-gray-500","bg-white","rounded-lg","shadow","dark:text-gray-400","dark:bg-gray-800","fixed","top-1/2","right-0","z-50","justify-center"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"font-bold","dark:text-white"],["type","text","formControlName","name","id","name",1,"mb-2","text-gray-900","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["type","text","formControlName","website","id","website",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["data-cy","orgCountry","id","country","formControlName","country",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"disabled","ngClass"],[3,"value",4,"ngFor","ngForOf"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-100","dark:bg-gray-700","dark:border-secondary-200"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"font-medium"],[3,"value"],[1,"col-span-2"],["type","text","formControlName","contractManagementAddress","id","contractManagementAddress",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["type","text","formControlName","contractManagementClientId","id","contractManagementClientId",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],["type","text","formControlName","contractManagementScopes","id","contractManagementScopes","placeholder","external-marketplace, another-scope",1,"mb-2","border","border-gray-300","text-gray-900","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"readonly","ngClass"],[1,"px-4","py-2","rounded-lg"],[1,"text-gray-800","dark:text-gray-200","text-wrap","break-words",3,"ngClass","data"],[1,"w-full","col-span-2","mb-4","border","border-gray-200","rounded-lg","bg-gray-50","dark:bg-secondary-200","dark:border-secondary-200"],[1,"flex","items-center","justify-between","px-3","py-2","border-b"],[1,"flex","flex-wrap","items-center","divide-gray-200","dark:divide-secondary-200","sm:divide-x","sm:rtl:divide-x-reverse"],[1,"flex","items-center","space-x-1","rtl:space-x-reverse","sm:pe-4","text-gray-500","dark:text-gray-200"],["type","button",1,"p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M8 5h4.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0-7H6m2 7h6.5a3.5 3.5 0 1 1 0 7H8m0-7v7m0 0H6"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8.874 19 6.143-14M6 19h6.33m-.66-14H18"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M9 8h10M9 12h10M9 16h10M4.99 8H5m-.02 4h.01m0 4H5"],["type","button",1,"hidden","lg:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 6h8m-8 6h8m-8 6h8M4 16a2 2 0 1 1 3.321 1.5L4 20h5M4 5l2-1v6m-2 0h4"],["type","button",1,"hidden","md:block","p-2","rounded","hover:text-gray-900","hover:bg-gray-100",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-4","h-4"],["fill-rule","evenodd","d","M5 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm0 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm1.65-9.76A1 1 0 0 0 5 9v6a1 1 0 0 0 1.65.76l3.5-3a1 1 0 0 0 0-1.52l-3.5-3ZM12 10a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h5a1 1 0 1 1 0 2h-5a1 1 0 0 1-1-1Z","clip-rule","evenodd"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4"],["stroke","currentColor","stroke-width","2","d","M3 11h18m-9 0v8m-8 0h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m8 8-4 4 4 4m8 0 4-4-4-4m-2-3-4 14"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 3v4a1 1 0 0 1-1 1H5m5 4-2 2 2 2m4-4 2 2-2 2m5-12v16a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V7.914a1 1 0 0 1 .293-.707l3.914-3.914A1 1 0 0 1 9.914 3H18a1 1 0 0 1 1 1Z"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M13.213 9.787a3.391 3.391 0 0 0-4.795 0l-3.425 3.426a3.39 3.39 0 0 0 4.795 4.794l.321-.304m-.321-4.49a3.39 3.39 0 0 0 4.795 0l3.424-3.426a3.39 3.39 0 0 0-4.794-4.795l-1.028.961"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-4","h-4"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM13.5 6a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm-7 0a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm3.5 9.5A5.5 5.5 0 0 1 4.6 11h10.81A5.5 5.5 0 0 1 10 15.5Z"],["type","button","data-tooltip-target","tooltip-fullscreen",1,"rounded","cursor-pointer","text-gray-500","dark:text-gray-200","p-2","sm:ms-auto","hover:text-gray-900","dark:hover:text-gray-900","hover:bg-gray-100",3,"click"],["stroke","currentColor","stroke-width","2","d","M21 12c0 1.2-4.03 6-9 6s-9-4.8-9-6c0-1.2 4.03-6 9-6s9 4.8 9 6Z"],["stroke","currentColor","stroke-width","2","d","M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"],["id","tooltip-fullscreen","role","tooltip",1,"absolute","z-10","invisible","inline-block","px-3","py-2","text-sm","font-medium","text-white","transition-opacity","duration-300","bg-gray-900","rounded-lg","shadow-sm","opacity-0","tooltip"],["data-popper-arrow","",1,"tooltip-arrow"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","rounded-b-lg"],["for","editor",1,"sr-only"],[3,"darkMode","style"],["id","editor","formControlName","description","rows","8","placeholder","Add product description...",1,"block","w-full","min-h-fit","px-0","text-sm","text-gray-800","dark:text-gray-200","bg-white","dark:bg-secondary-300","border-0"],[3,"click","emojiClick","darkMode"],[1,"flex"],[1,"flex","inline-flex","ml-2","align-middle"],["data-popover-target","popover-logo","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["data-popover","","id","popover-logo","role","tooltip",1,"absolute","z-20","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],[1,"px-6","py-4"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"px-6","py-4","inline-flex"],["data-cy","editContact","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["data-cy","deleteContact","type","button",1,"text-white","bg-red-800","hover:bg-red-900","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["fill-rule","evenodd","d","M8.586 2.586A2 2 0 0 1 10 2h4a2 2 0 0 1 2 2v2h3a1 1 0 1 1 0 2v12a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a1 1 0 0 1 0-2h3V4a2 2 0 0 1 .586-1.414ZM10 6h4V4h-4v2Zm1 4a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Zm4 0a1 1 0 1 0-2 0v8a1 1 0 1 0 2 0v-8Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"mr-8"],["id","type",1,"m-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full",3,"change"],["value","email"],["value","address"],["value","phone"],[1,"grid","h-full","grid-cols-2","gap-5","m-4",3,"formGroup"],["for","contactTitle",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","contactTitle","formControlName","contactTitle","name","contactTitle","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"flex","w-full","justify-items-center","justify-center","m-2","p-2"],["data-cy","saveOrgProfile","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],[1,"flex","w-full","justify-end"],["data-cy","orgUpdate","type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"font-bold","text-lg","dark:text-white"],["formControlName","email","type","text","id","prod-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.country",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["data-cy","orgCountry","id","address.country","formControlName","country","name","address.country","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.city",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.state",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.zip",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","address.street_address",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","phoneNumber",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],[1,"w-full"],[1,"relative","flex","items-center"],["type","button",1,"mb-2","flex-shrink-0","z-10","inline-flex","items-center","py-2.5","px-4","text-sm","font-medium","text-center","text-gray-900","bg-gray-100","border","border-gray-300","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-s-lg","hover:bg-gray-200","dark:hover:bg-primary-200","focus:ring-4","focus:outline-none","focus:ring-gray-100",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-2.5"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],[1,"absolute","bottom-12","right-0","z-20","max-h-48","w-full","bg-white","divide-y","divide-gray-100","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","rounded-lg","shadow","overflow-y-auto"],["min","0","id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],["aria-labelledby","dropdown-phone-button",1,"py-2","text-sm","text-gray-700"],["type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200"],["type","button","role","menuitem",1,"inline-flex","w-full","px-4","py-2","text-sm","text-gray-700","dark:text-white","hover:bg-gray-100","dark:hover:bg-secondary-200",3,"click"],[1,"inline-flex","items-center"],[1,"w-4/5","lg:w-1/2","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","pr-2","pt-2","rounded-t","dark:border-gray-600"],["type","button","data-modal-hide","edit-medium-modal",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","ms-auto","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"w-full","h-full"],["for","editContactTitle",1,"mb-3","block","text-sm","font-semibold","leading-none","text-body-dark","dark:text-white"],["id","editContactTitle","formControlName","contactTitle","name","editContactTitle","type","text",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["formControlName","email","type","text","id","prod-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","orgCountry","id","address.country","formControlName","country","name","address.country","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.city","formControlName","city","name","address.city","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.state","formControlName","stateOrProvince","name","address.state","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.zip","formControlName","postCode","name","address.zip","type","text",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","address.street_address","formControlName","street","name","address.street_address","rows","4",1,"mb-2","min-h-fit","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","phoneNumber","formControlName","telephoneNumber","name","phoneNumber","type","number",1,"mb-2","bg-gray-50","border","text-gray-900","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:bg-secondary-300","dark:text-white",3,"ngClass"],[1,"inline-flex","items-center","justify-center","flex-shrink-0","w-8","h-8","bg-red-700","text-red-200","rounded-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"w-5","h-5"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM10 15a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-4a1 1 0 0 1-2 0V6a1 1 0 0 1 2 0v5Z"],[1,"block","ms-3","text-sm","font-normal"],["type","button","data-dismiss-target","#toast-warning","aria-label","Close",1,"ms-auto","-mx-1.5","-my-1.5","bg-white","text-gray-400","hover:text-gray-900","rounded-lg","focus:ring-2","focus:ring-gray-300","p-1.5","hover:bg-gray-100","inline-flex","items-center","justify-center","h-8","w-8","dark:text-gray-500","dark:hover:text-white","dark:bg-gray-800","dark:hover:bg-gray-700"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm","pr-8","pl-8"]],template:function(t,l){1&t&&e.DNE(0,fl0,6,0,"div",1)(1,jl0,53,53)(2,$l0,1,1,"error-message",2)(3,Hl0,28,18,"div",3)(4,Wl0,13,3,"div",4)(5,Jl0,10,3,"div",5),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.showError?2:-1),e.R7$(),e.vxM(3,l.showEditMedium?3:-1),e.R7$(),e.vxM(4,l.toastVisibility?4:-1),e.R7$(),e.vxM(5,l.successVisibility?5:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.wz,p.BC,p.cb,p.VZ,p.l_,p.j4,p.JD,T0,z0,R4,N0,E0,s1.D9]})}}return n})();const Zl0=(n,a)=>a.code;function Kl0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",3),e.nrm(2,"path",4)(3,"path",5),e.k0s(),e.joV(),e.j41(4,"span",6),e.EFF(5,"Loading..."),e.k0s()())}function es0(n,a){1&n&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function cs0(n,a){1&n&&(e.j41(0,"p",18)(1,"span",52),e.EFF(2,"This field is mandatory."),e.k0s()())}function ts0(n,a){if(1&n&&(e.j41(0,"option",49),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.code),e.R7$(),e.JRh(c.name)}}function ns0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7)(1,"h2",8),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",9),e.j41(5,"div",10)(6,"div")(7,"span",11),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.nrm(10,"input",12),e.j41(11,"span",11),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",13),e.k0s(),e.j41(15,"div")(16,"span",11),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"input",14),e.k0s()(),e.j41(20,"h2",8),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.nrm(23,"hr",9),e.j41(24,"form",15)(25,"div")(26,"label",16),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.nrm(29,"input",17),e.DNE(30,es0,3,0,"p",18),e.j41(31,"label",19),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"select",20)(35,"option",21),e.EFF(36,"I'd rather not say"),e.k0s(),e.j41(37,"option",22),e.EFF(38,"Miss"),e.k0s(),e.j41(39,"option",23),e.EFF(40,"Mrs"),e.k0s(),e.j41(41,"option",24),e.EFF(42,"Mr"),e.k0s(),e.j41(43,"option",25),e.EFF(44,"Ms"),e.k0s()(),e.j41(45,"label",26),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"select",27)(49,"option",21),e.EFF(50,"I'd rather not say"),e.k0s(),e.j41(51,"option",28),e.EFF(52,"Female"),e.k0s(),e.j41(53,"option",29),e.EFF(54,"Male"),e.k0s(),e.j41(55,"option",30),e.EFF(56,"Other"),e.k0s()()(),e.j41(57,"div")(58,"label",31),e.EFF(59),e.nI1(60,"translate"),e.k0s(),e.nrm(61,"input",32),e.DNE(62,cs0,3,0,"p",18),e.j41(63,"label",33),e.EFF(64),e.nI1(65,"translate"),e.k0s(),e.j41(66,"select",34)(67,"option",21),e.EFF(68,"I'd rather not say"),e.k0s(),e.j41(69,"option",35),e.EFF(70,"Divorced"),e.k0s(),e.j41(71,"option",36),e.EFF(72,"Married"),e.k0s(),e.j41(73,"option",37),e.EFF(74,"Separated"),e.k0s(),e.j41(75,"option",38),e.EFF(76,"Single"),e.k0s(),e.j41(77,"option",39),e.EFF(78,"Widowed"),e.k0s()(),e.j41(79,"label",40),e.EFF(80),e.nI1(81,"translate"),e.k0s(),e.nrm(82,"input",41),e.k0s()(),e.j41(83,"h2",8),e.EFF(84),e.nI1(85,"translate"),e.k0s(),e.nrm(86,"hr",9),e.j41(87,"form",15)(88,"div")(89,"label",42),e.EFF(90),e.nI1(91,"translate"),e.k0s(),e.nrm(92,"input",43),e.j41(93,"label",44),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.nrm(96,"input",45),e.k0s(),e.j41(97,"div",46)(98,"label",47),e.EFF(99),e.nI1(100,"translate"),e.k0s(),e.j41(101,"select",48)(102,"option",21),e.EFF(103,"Select country"),e.k0s(),e.Z7z(104,ts0,2,2,"option",49,Zl0),e.k0s()()(),e.j41(106,"div",50)(107,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.updateProfile())}),e.EFF(108),e.nI1(109,"translate"),e.k0s()()()}if(2&n){let c,t,l,i;const u=e.XpG();e.R7$(2),e.JRh(e.bMT(3,27,"PROFILE._account")),e.R7$(6),e.JRh(e.bMT(9,29,"PROFILE._user_id")),e.R7$(2),e.FS9("value",u.profile.externalReference[0].name),e.R7$(2),e.JRh(e.bMT(13,31,"PROFILE._email")),e.R7$(2),e.FS9("value",u.email),e.R7$(3),e.JRh(e.bMT(18,33,"PROFILE._token")),e.R7$(2),e.FS9("value",u.token),e.R7$(2),e.JRh(e.bMT(22,35,"PROFILE._profile")),e.R7$(3),e.Y8G("formGroup",u.userProfileForm),e.R7$(3),e.JRh(e.bMT(28,37,"PROFILE._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=u.userProfileForm.get("name"))?null:c.invalid)&&""!=u.userProfileForm.value.name||null!=(c=u.userProfileForm.get("name"))&&c.touched&&""==u.userProfileForm.value.name?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(30,null!=(t=u.userProfileForm.get("name"))&&t.invalid&&null!=(t=u.userProfileForm.get("name"))&&null!=t.errors&&t.errors.required&&null!=(t=u.userProfileForm.get("name"))&&t.touched&&""==u.userProfileForm.value.name?30:-1),e.R7$(2),e.JRh(e.bMT(33,39,"PROFILE._treatment")),e.R7$(14),e.JRh(e.bMT(47,41,"PROFILE._gender")),e.R7$(13),e.JRh(e.bMT(60,43,"PROFILE._lastname")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=u.userProfileForm.get("lastname"))?null:l.invalid)&&""!=u.userProfileForm.value.lastname||null!=(l=u.userProfileForm.get("lastname"))&&l.touched&&""==u.userProfileForm.value.lastname?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(62,null!=(i=u.userProfileForm.get("lastname"))&&i.invalid&&null!=(i=u.userProfileForm.get("lastname"))&&null!=i.errors&&i.errors.required&&null!=(i=u.userProfileForm.get("lastname"))&&i.touched&&""==u.userProfileForm.value.lastname?62:-1),e.R7$(2),e.JRh(e.bMT(65,45,"PROFILE._marital_status")),e.R7$(16),e.JRh(e.bMT(81,47,"PROFILE._nacionality")),e.R7$(4),e.JRh(e.bMT(85,49,"PROFILE._birthdate")),e.R7$(3),e.Y8G("formGroup",u.userProfileForm),e.R7$(3),e.JRh(e.bMT(91,51,"PROFILE._date")),e.R7$(4),e.JRh(e.bMT(95,53,"PROFILE._city")),e.R7$(5),e.JRh(e.bMT(100,55,"PROFILE._country")),e.R7$(5),e.Dyx(u.countries),e.R7$(3),e.Y8G("disabled",!u.userProfileForm.valid)("ngClass",u.userProfileForm.valid?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(),e.SpI(" ",e.bMT(109,57,"PROFILE._update")," ")}}function ls0(n,a){if(1&n&&e.nrm(0,"error-message",1),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}function ss0(n,a){1&n&&(e.j41(0,"div",2)(1,"div",53)(2,"div",54),e.qSk(),e.j41(3,"svg",55),e.nrm(4,"path",56),e.k0s(),e.joV(),e.j41(5,"h3",57),e.EFF(6,"Update success"),e.k0s()(),e.j41(7,"div",58),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()),2&n&&(e.R7$(8),e.SpI(" ",e.bMT(9,1,"PROFILE._success"),". "))}let as0=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.eventMessage=u,this.loading=!1,this.orders=[],this.partyId="",this.token="",this.email="",this.userProfileForm=new p.gE({name:new p.MJ("",[p.k0.required]),lastname:new p.MJ("",[p.k0.required]),treatment:new p.MJ(""),maritalstatus:new p.MJ(""),gender:new p.MJ(""),nacionality:new p.MJ(""),birthdate:new p.MJ(""),city:new p.MJ(""),country:new p.MJ("")}),this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.errorMessage="",this.showError=!1,this.successVisibility=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(C=>{"ChangedSession"===C.type&&this.initPartyInfo()})}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.accountService.getOrgInfo(this.partyId).then(l=>{})}this.token=c.token,this.email=c.email,this.getProfile()}D2()}getProfile(){this.accountService.getUserInfo(this.partyId).then(c=>{this.profile=c,this.loadProfileData(this.profile),this.loading=!1,this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}updateProfile(){this.accountService.updateUserInfo(this.partyId,{id:this.partyId,href:this.partyId,countryOfBirth:this.userProfileForm.value.country,familyName:this.userProfileForm.value.lastname,gender:this.userProfileForm.value.gender,givenName:this.userProfileForm.value.name,maritalStatus:this.userProfileForm.value.maritalstatus,nationality:this.userProfileForm.value.nacionality,placeOfBirth:this.userProfileForm.value.city,title:this.userProfileForm.value.treatment,birthDate:this.userProfileForm.value.birthdate}).subscribe({next:t=>{this.userProfileForm.reset(),this.getProfile(),this.successVisibility=!0,setTimeout(()=>{this.successVisibility=!1},2e3),this.getProfile()},error:t=>{console.error("There was an error while updating!",t),t.error.error?(console.log(t),this.errorMessage="Error: "+t.error.error):this.errorMessage="There was an error while updating profile!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}loadProfileData(c){this.userProfileForm.controls.name.setValue(c.givenName),this.userProfileForm.controls.lastname.setValue(c.familyName),this.userProfileForm.controls.maritalstatus.setValue(c.maritalStatus),this.userProfileForm.controls.gender.setValue(c.gender),this.userProfileForm.controls.nacionality.setValue(c.nacionality),this.userProfileForm.controls.city.setValue(c.placeOfBirth),this.userProfileForm.controls.country.setValue(c.countryOfBirth)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(x0.O),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["user-info"]],decls:4,vars:3,consts:[["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","grid","grid-cols-2","gap-4"],[1,"font-bold","dark:text-white"],["type","text","id","username","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],["type","text","id","email","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],["type","text","id","token","disabled","","readonly","",1,"mb-2","bg-gray-300","border","border-gray-400","text-primary-100","dark:bg-secondary-200","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","cursor-not-allowed",3,"value"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["for","user-name",1,"font-bold","dark:text-white"],["formControlName","name","type","text","id","user-name",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["for","treatment",1,"font-bold","dark:text-white"],["id","treatment","formControlName","treatment",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value",""],["value","Miss"],["value","Mrs"],["value","Mr"],["value","Ms"],["for","gender",1,"font-bold","dark:text-white"],["id","gender","formControlName","gender",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Female"],["value","Male"],["value","Other"],["for","lastname",1,"font-bold","dark:text-white"],["type","text","formControlName","lastname","id","lastname",1,"mb-2","bg-gray-50","text-gray-900","dark:bg-secondary-300","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","marital-status",1,"font-bold","dark:text-white"],["id","marital-status","formControlName","maritalstatus",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["value","Divorced"],["value","Married"],["value","Separated"],["value","Single"],["value","Widowed"],["for","nacionality",1,"font-bold","dark:text-white"],["type","text","formControlName","nacionality","id","nacionality",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","birthdate",1,"font-bold","dark:text-white"],["datepicker","","type","date","placeholder","Select date","formControlName","birthdate","id","birthdate",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","city",1,"font-bold","dark:text-white"],["type","text","formControlName","city","id","city",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"align-items-bottom","align-bottom"],["for","country",1,"font-bold","dark:text-white"],["id","country","formControlName","country",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value"],[1,"flex","w-full","justify-end"],["type","button",1,"m-2","flex","w-fit","justify-center","items-center","py-3","px-5","text-base","font-medium","text-center","text-white","rounded-lg","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:ring-primary-300","dark:focus:ring-primary-900",3,"click","disabled","ngClass"],[1,"font-medium"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-white","rounded-lg","bg-primary-100"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm","pr-8","pl-8"]],template:function(t,l){1&t&&e.DNE(0,Kl0,6,0,"div",0)(1,ns0,110,59)(2,ls0,1,1,"error-message",1)(3,ss0,10,3,"div",2),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.showError?2:-1),e.R7$(),e.vxM(3,l.successVisibility?3:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,E0,s1.D9]})}}return n})();const os0=(n,a)=>a.id,is0=(n,a)=>({"break-all":n,"break-words":a});function rs0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function ds0(n,a){1&n&&(e.j41(0,"th",14),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"BILLING._action")," "))}function fs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"td",21)(1,"button",22),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(2).toggleEditBill(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(2,"svg",23),e.nrm(3,"path",24),e.k0s()()()}}function us0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.selectBill(l))}),e.j41(1,"td",18),e.EFF(2),e.k0s(),e.j41(3,"td",19),e.EFF(4),e.k0s(),e.j41(5,"td",19),e.EFF(6),e.k0s(),e.j41(7,"td",20),e.EFF(8),e.k0s(),e.DNE(9,fs0,4,0,"td",21),e.k0s()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.Y8G("ngClass",1==c.selected?"bg-primary-30 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(12,is0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.email," "),e.R7$(2),e.SjE(" ",c.postalAddress.street,", ",c.postalAddress.postCode," (",c.postalAddress.city,") ",c.postalAddress.stateOrProvince,", ",c.postalAddress.country," "),e.R7$(2),e.Lme(" (",c.telephoneType,") ",c.telephoneNumber," "),e.R7$(),e.vxM(9,t.isReadOnly?-1:9)}}function ms0(n,a){1&n&&(e.j41(0,"div",16)(1,"div",25),e.qSk(),e.j41(2,"svg",26),e.nrm(3,"path",27),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"BILLING._no_billing")," "))}function ps0(n,a){if(1&n&&(e.j41(0,"h2",9),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"hr",10)(4,"app-billing-account-form",28)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,2,"BILLING._add")),e.R7$(3),e.Y8G("preferred",c.preferred)}}function hs0(n,a){if(1&n&&(e.j41(0,"div",8)(1,"h2",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"hr",10),e.j41(5,"div",11)(6,"table",12)(7,"thead",13)(8,"tr")(9,"th",14),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",14),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"th",14),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"th",14),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.DNE(21,ds0,3,3,"th",14),e.k0s()(),e.j41(22,"tbody"),e.Z7z(23,us0,10,15,"tr",15,os0,!1,ms0,7,3,"div",16),e.k0s()()(),e.DNE(26,ps0,5,4),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,8,"PROFILE._mybills")),e.R7$(8),e.SpI(" ",e.bMT(11,10,"BILLING._title")," "),e.R7$(3),e.SpI(" ",e.bMT(14,12,"BILLING._email")," "),e.R7$(3),e.SpI(" ",e.bMT(17,14,"BILLING._postalAddress")," "),e.R7$(3),e.SpI(" ",e.bMT(20,16,"BILLING._phone")," "),e.R7$(2),e.vxM(21,c.isReadOnly?-1:21),e.R7$(2),e.Dyx(c.billing_accounts),e.R7$(3),e.vxM(26,c.isReadOnly?-1:26)}}function gs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",1)(1,"div",29),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",30)(3,"h2",31),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",32),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.editBill=!1)}),e.qSk(),e.j41(7,"svg",33),e.nrm(8,"path",34),e.k0s(),e.joV(),e.j41(9,"span",7),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",35),e.nrm(13,"app-billing-account-form",36),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.editBill?"backdrop-blur-sm":""),e.R7$(4),e.SpI(" ",e.bMT(5,4,"BILLING._edit")," "),e.R7$(6),e.JRh(e.bMT(11,6,"CARD._close")),e.R7$(3),e.Y8G("billAcc",c.billToUpdate)}}function _s0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"div",37),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",38)(3,"button",39),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",40),e.nrm(5,"path",41),e.k0s(),e.joV(),e.j41(6,"span",7),e.EFF(7,"Close modal"),e.k0s()(),e.qSk(),e.j41(8,"svg",42),e.nrm(9,"path",43),e.k0s(),e.joV(),e.j41(10,"p",44),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"p",45)(14,"b"),e.EFF(15),e.k0s(),e.EFF(16),e.k0s(),e.j41(17,"div",46)(18,"button",47),e.bIt("click",function(l){return e.eBV(c),e.XpG().deleteBill=!1,e.Njj(l.stopPropagation())}),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onDeletedBill(l.billToDelete))}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.deleteBill?"backdrop-blur-sm":""),e.R7$(11),e.JRh(e.bMT(12,8,"BILLING._confirm_delete")),e.R7$(4),e.JRh(c.billToDelete.name),e.R7$(),e.E5c(": ",c.billToDelete.postalAddress.street,", ",c.billToDelete.postalAddress.city,", ",c.billToDelete.postalAddress.country,"."),e.R7$(3),e.SpI(" ",e.bMT(20,10,"BILLING._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(23,12,"BILLING._delete")," ")}}function Ls0(n,a){if(1&n&&e.nrm(0,"error-message",3),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Cs0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.router=i,this.accountService=u,this.orderService=C,this.eventMessage=b,this.loading=!1,this.orders=[],this.partyId="",this.partyInfo={id:"",name:"",href:""},this.billing_accounts=[],this.editBill=!1,this.deleteBill=!1,this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.isReadOnly=!1,this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"BillAccChanged"===T.type&&this.getBilling(),0==T.value&&(this.editBill=!1),"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.editBill&&(this.editBill=!1,this.cdr.detectChanges()),1==this.deleteBill&&(this.deleteBill=!1,this.cdr.detectChanges()),1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges())}ngOnInit(){this.loading=!0;let c=new Date;c.setMonth(c.getMonth()-1),this.selectedDate=c.toISOString(),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as!==c.id){let t=c.organizations.find(l=>l.id==c.logged_as);if(this.partyId=t.partyId,console.log("loggedOrg info"),console.log(t),this.partyInfo={id:this.partyId,name:t.name,href:this.partyId,role:g1.c.SELLER_ROLE},t&&t.roles){const i=t.roles.map(u=>u.name).some(u=>u===g1.c.ORG_ADMIN_ROLE);this.isReadOnly=!i}}else this.partyId=c.partyId,console.log("init party info"),console.log(c),this.partyInfo={id:this.partyId,name:c.user,href:this.partyId,role:g1.c.SELLER_ROLE},this.isReadOnly=!1;this.getBilling()}D2()}getBilling(){let c=!1;this.accountService.getBillingAccount().then(t=>{this.billing_accounts=[];for(let l=0;l0),console.log(this.billing_accounts),this.cdr.detectChanges()}),this.cdr.detectChanges(),D2()}selectBill(c){const t=this.billing_accounts.findIndex(l=>l.id===c.id);for(let l=0;l{this.eventMessage.emitBillAccChange(!1)},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating billing account!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}onDeletedBill(c){console.log("--- DELETE BILLING ADDRESS ---"),this.deleteBill=!1,this.cdr.detectChanges()}toggleEditBill(c){this.billToUpdate=c,this.editBill=!0,this.cdr.detectChanges()}toggleDeleteBill(c){this.deleteBill=!0,this.billToDelete=c}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(E2.Ix),e.rXU(x0.O),e.rXU(D8),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["billing-info"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:5,vars:4,consts:[["role","status",1,"w-3/4","md:w-4/5","h-full","flex","justify-center","align-middle"],["id","edit-bill-modal","tabindex","-1","aria-hidden","true",1,"fixed","inset-0","z-50","flex","items-center","justify-center","overflow-y-auto","p-4",3,"ngClass"],["id","delete-bill-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-50","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","p-8","rounded-lg"],[1,"md:text-3xl","lg:text-4xl","font-bold","text-primary-100","ml-4","dark:text-white","m-4"],[1,"h-px","mr-4","ml-4","bg-primary-100","dark:bg-white","border-0"],[1,"m-4","relative","overflow-x-auto","shadow-md","sm:rounded-lg"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"flex","justify-center","w-full","m-4"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"px-6","py-4","inline-flex"],["data-cy","billingEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","lg:p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[3,"preferred"],[1,"w-full","max-w-2xl","relative","bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","rounded-lg","shadow-xl","bg-cover","bg-right-bottom",3,"click"],[1,"flex","items-center","justify-between","p-4","border-b","dark:border-gray-600"],[1,"text-xl","md:text-2xl","lg:text-3xl","font-bold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-400","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","w-8","h-8","inline-flex","justify-center","items-center","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"w-3","h-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"],[1,"p-4","max-h-[80vh]","overflow-y-auto"],[3,"billAcc"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","dark:bg-secondary-100","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["aria-hidden","true","fill","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"text-gray-400","w-12","h-12","mb-3.5","mx-auto"],["fill-rule","evenodd","d","M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z","clip-rule","evenodd"],[1,"mb-4","text-gray-500","dark:text-white"],[1,"mb-4","text-gray-500","dark:text-white","text-wrap","break-all"],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","rounded-lg","border","border-gray-200","dark:border-secondary-300","hover:bg-gray-100","dark:hover:bg-secondary-200","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-red-800","hover:bg-red-900","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-red-300",3,"click"]],template:function(t,l){1&t&&e.DNE(0,rs0,6,0,"div",0)(1,hs0,27,18)(2,gs0,14,8,"div",1)(3,_s0,24,14,"div",2)(4,Ls0,1,1,"error-message",3),2&t&&(e.vxM(0,l.loading?0:1),e.R7$(2),e.vxM(2,l.editBill?2:-1),e.R7$(),e.vxM(3,l.deleteBill?3:-1),e.R7$(),e.vxM(4,l.showError?4:-1))},dependencies:[_.YU,nf1,E0,s1.D9]})}}return n})();const uE1=(n,a)=>a.id;function zs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"h2",8),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"select",30),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onRoleChange(l))}),e.j41(7,"option",31),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"option",32),e.EFF(11),e.nI1(12,"translate"),e.k0s()()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("icon",c.faIdCard),e.R7$(2),e.JRh(e.bMT(5,4,"OFFERINGS._filter_role")),e.R7$(4),e.JRh(e.bMT(9,6,"OFFERINGS._customer")),e.R7$(3),e.JRh(e.bMT(12,8,"OFFERINGS._seller"))}}function Ms0(n,a){1&n&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"path",34)(3,"path",35),e.k0s(),e.joV(),e.j41(4,"span",36),e.EFF(5,"Loading..."),e.k0s()())}function xs0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function bs0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ys0(n,a){if(1&n&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Fs0(n,a){if(1&n&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function vs0(n,a){if(1&n&&(e.j41(0,"span",57),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ks0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function ws0(n,a){if(1&n&&(e.j41(0,"span",56),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.state)}}function Ss0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",44)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.DNE(4,xs0,2,1,"span",48)(5,bs0,2,1)(6,ys0,2,1)(7,Fs0,2,1)(8,vs0,2,1)(9,ks0,2,1)(10,ws0,2,1),e.k0s(),e.j41(11,"td",46),e.EFF(12),e.k0s(),e.j41(13,"td",46),e.EFF(14),e.k0s(),e.j41(15,"td",47),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"td",47)(19,"button",49),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleShowDetails(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(20,"svg",50)(21,"g",51),e.nrm(22,"path",52)(23,"path",53),e.k0s()()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.id," "),e.R7$(2),e.vxM(4,"inProgress"==c.state?4:"partial"===c.state?5:"completed"==c.state?6:"failed"==c.state?7:"pending"==c.state?8:"acknowledged"==c.state?9:"cancelled"==c.state?10:-1),e.R7$(8),e.SpI(" ",c.priority," "),e.R7$(2),e.SpI(" ",c.billingAccount.name," "),e.R7$(2),e.SpI(" ",e.i5U(17,5,null==c?null:c.orderDate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Ns0(n,a){1&n&&(e.j41(0,"div",45)(1,"span",58),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"PROFILE._no_orders")))}function Es0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",61),e.nrm(4,"path",62),e.k0s()()()}}function Ds0(n,a){if(1&n&&e.DNE(0,Es0,5,0,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ts0(n,a){1&n&&(e.j41(0,"div",63),e.qSk(),e.j41(1,"svg",33),e.nrm(2,"path",34)(3,"path",35),e.k0s(),e.joV(),e.j41(4,"span",36),e.EFF(5,"Loading..."),e.k0s()())}function Rs0(n,a){if(1&n&&(e.j41(0,"div",37)(1,"div",38)(2,"table",39)(3,"thead",40)(4,"tr")(5,"th",41),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",42),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",41),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",41),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",42),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"th",43),e.EFF(21),e.nI1(22,"translate"),e.k0s()()(),e.j41(23,"tbody"),e.Z7z(24,Ss0,24,8,"tr",44,uE1),e.k0s()(),e.DNE(26,Ns0,4,3,"div",45),e.k0s(),e.DNE(27,Ds0,1,1)(28,Ts0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,8,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",e.bMT(10,10,"PRODUCT_INVENTORY._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,12,"PRODUCT_INVENTORY._priority")," "),e.R7$(3),e.SpI(" ",e.bMT(16,14,"PRODUCT_INVENTORY._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(19,16,"PROFILE._date")," "),e.R7$(3),e.SpI(" ",e.bMT(22,18,"PROFILE._actions")," "),e.R7$(3),e.Dyx(c.orders),e.R7$(2),e.vxM(26,0==c.orders.length?26:-1),e.R7$(),e.vxM(27,c.loading_more?28:27)}}function As0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Is0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Ps0(n,a){if(1&n&&(e.j41(0,"span",85),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function js0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function $s0(n,a){if(1&n&&(e.j41(0,"span",87),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Os0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Bs0(n,a){if(1&n&&(e.j41(0,"span",86),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.JRh(c.orderToShow.state)}}function Vs0(n,a){1&n&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"PROFILE._custom")," "))}function Us0(n,a){if(1&n&&(e.j41(0,"td",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.E5c(" ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.price," ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.unit," ",null==c||null==c.productOfferingPrice?null:c.productOfferingPrice.text," ")}}function Gs0(n,a){if(1&n&&e.DNE(0,Vs0,3,3,"td",47)(1,Us0,2,3),2&n){const c=e.XpG().$implicit;e.vxM(0,"custom"==c.productOfferingPrice.priceType?0:1)}}function Hs0(n,a){1&n&&(e.j41(0,"td",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"SHOPPING_CART._free")," "))}function Ys0(n,a){if(1&n&&(e.j41(0,"tr",77)(1,"td",89),e.nrm(2,"img",90),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.DNE(5,Gs0,2,1)(6,Hs0,3,3),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.FS9("src",t.getProductImage(c),e.B4B),e.R7$(2),e.SpI(" ",c.name," "),e.R7$(),e.vxM(5,c.productOfferingPrice?5:6)}}function qs0(n,a){if(1&n&&(e.j41(0,"p",83),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.E5c("",c.price," ",c.unit," ",c.text,"")}}function Xs0(n,a){1&n&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._custom")))}function Ws0(n,a){1&n&&(e.j41(0,"p",91),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"PROFILE._free")))}function Js0(n,a){if(1&n&&e.DNE(0,Xs0,3,3,"p",91)(1,Ws0,3,3),2&n){const c=e.XpG(2);e.vxM(0,1==c.check_custom?0:1)}}function Qs0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",29)(1,"div",64),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",65)(3,"h2",66),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",67),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showOrderDetails=!1)}),e.qSk(),e.j41(7,"svg",68),e.nrm(8,"path",69),e.k0s(),e.joV(),e.j41(9,"span",36),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.j41(12,"div",70)(13,"div",71)(14,"div",72)(15,"p",73),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"h3",74),e.EFF(19),e.k0s()(),e.j41(20,"div",72)(21,"p",73),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,As0,2,1,"span",75)(25,Is0,2,1)(26,Ps0,2,1)(27,js0,2,1)(28,$s0,2,1)(29,Os0,2,1)(30,Bs0,2,1),e.k0s(),e.j41(31,"div",72)(32,"p",73),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"h3",74),e.EFF(36),e.k0s()(),e.j41(37,"div",72)(38,"p",73),e.EFF(39),e.nI1(40,"translate"),e.k0s(),e.j41(41,"h3",74),e.EFF(42),e.k0s()(),e.j41(43,"div",72)(44,"p",73),e.EFF(45),e.nI1(46,"translate"),e.k0s(),e.j41(47,"h3",74),e.EFF(48),e.k0s()(),e.j41(49,"div",72)(50,"p",73),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"h3",74),e.EFF(54),e.nI1(55,"date"),e.k0s()(),e.j41(56,"table",76)(57,"thead",40)(58,"tr")(59,"th",42),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.j41(62,"th",42),e.EFF(63),e.nI1(64,"translate"),e.k0s(),e.j41(65,"th",42),e.EFF(66),e.nI1(67,"translate"),e.k0s()()(),e.j41(68,"tbody"),e.Z7z(69,Ys0,7,3,"tr",77,uE1),e.k0s()(),e.nrm(71,"hr",78),e.j41(72,"div",79)(73,"p",80),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.nrm(76,"hr",81),e.j41(77,"div",82),e.Z7z(78,qs0,2,3,"p",83,e.fX1,!1,Js0,2,1),e.k0s()()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showOrderDetails?"backdrop-blur-sm":""),e.R7$(4),e.JRh(e.bMT(5,23,"PROFILE._order_details")),e.R7$(6),e.JRh(e.bMT(11,25,"CARD._close")),e.R7$(6),e.SpI(" ",e.bMT(17,27,"PRODUCT_INVENTORY._order_id")," "),e.R7$(3),e.SpI(" ",c.orderToShow.id," "),e.R7$(3),e.SpI(" ",e.bMT(23,29,"PRODUCT_INVENTORY._state")," "),e.R7$(2),e.vxM(24,"inProgress"==c.orderToShow.state?24:"partial"==c.orderToShow.state?25:"completed"==c.orderToShow.state?26:"failed"==c.orderToShow.state?27:"pending"==c.orderToShow.state?28:"acknowledged"==c.orderToShow.state?29:"cancelled"==c.orderToShow.state?30:-1),e.R7$(9),e.SpI(" ",e.bMT(34,31,"PRODUCT_INVENTORY._priority")," "),e.R7$(3),e.SpI(" ",c.orderToShow.priority," "),e.R7$(3),e.SpI(" ",e.bMT(40,33,"PROFILE._billing_address")," "),e.R7$(3),e.LHq(" ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.city,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.street1,", ",c.orderToShow.billingAccount.contact[0].contactMedium[1].characteristic.country," (",c.orderToShow.billingAccount.name,") "),e.R7$(3),e.SpI(" ",e.bMT(46,35,"PROFILE._email")," "),e.R7$(3),e.SpI(" ",c.orderToShow.billingAccount.contact[0].contactMedium[0].characteristic.emailAddress," "),e.R7$(3),e.SpI(" ",e.bMT(52,37,"PROFILE._date")," "),e.R7$(3),e.SpI(" ",e.i5U(55,39,null==c.orderToShow?null:c.orderToShow.orderDate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.SpI(" ",e.bMT(61,42,"PROFILE._img")," "),e.R7$(3),e.SpI(" ",e.bMT(64,44,"PROFILE._name")," "),e.R7$(3),e.SpI(" ",e.bMT(67,46,"PROFILE._price")," "),e.R7$(3),e.Dyx(c.orderToShow.productOrderItem),e.R7$(5),e.SpI("",e.bMT(75,48,"CART_DRAWER._subtotal"),":"),e.R7$(4),e.Dyx(c.getTotalPrice(c.orderToShow.productOrderItem))}}let Zs0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.localStorage=c,this.api=t,this.cdr=l,this.accountService=i,this.orderService=u,this.eventMessage=C,this.paginationService=b,this.loading=!1,this.orders=[],this.nextOrders=[],this.partyId="",this.showOrderDetails=!1,this.dateRange=new p.MJ,this.countries=iF,this.preferred=!1,this.loading_more=!1,this.page_check=!0,this.page=0,this.ORDER_LIMIT=g1.c.ORDER_LIMIT,this.filters=[],this.check_custom=!1,this.isSeller=!1,this.role=g1.c.BUYER_ROLE,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initPartyInfo()})}onClick(){1==this.showOrderDetails&&(this.showOrderDetails=!1,this.cdr.detectChanges()),D2()}ngOnInit(){this.loading=!0,this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0){if(c.logged_as==c.id)this.partyId=c.partyId,c.roles.map(l=>l.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0);else{let t=c.organizations.find(i=>i.id==c.logged_as);this.partyId=t.partyId,t.roles.map(i=>i.name).includes(g1.c.SELLER_ROLE)&&(this.isSeller=!0)}this.page=0,this.orders=[],this.getOrders(!1)}D2()}ngAfterViewInit(){D2()}getProductImage(c){let t=c?.attachment?.filter(i=>"Profile Picture"===i.name)??[],l=c.attachment?.filter(i=>"Picture"===i.attachmentType)??[];return 0!=t.length&&(l=t),l.length>0?l?.at(0)?.url:"https://placehold.co/600x400/svg"}getOrders(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.ORDER_LIMIT,c,t.orders,t.nextOrders,{filters:t.filters,partyId:t.partyId,orders:t.orders,role:t.role},t.paginationService.getOrders.bind(t.paginationService)).then(i=>{console.log("--pag"),console.log(i),console.log(t.orders),t.page_check=i.page_check,t.orders=i.items,t.nextOrders=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getOrders(!0)})()}onStateFilterChange(c){const t=this.filters.findIndex(l=>l===c);-1!==t?(this.filters.splice(t,1),console.log("elimina filtro"),console.log(this.filters)):(console.log("a\xf1ade filtro"),this.filters.push(c),console.log(this.filters)),this.getOrders(!1)}isFilterSelected(c){return-1!==this.filters.findIndex(l=>l===c)}getTotalPrice(c){let t=[],l=!1;this.check_custom=!1;for(let i=0;i{class n{constructor(c,t,l,i){this.localStorage=c,this.cdr=t,this.eventMessage=l,this.http=i,this.show_profile=!0,this.show_org_profile=!1,this.show_orders=!1,this.show_billing=!1,this.show_revenue=!1,this.loggedAsUser=!0,this.partyId="",this.token="",this.email="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(u=>{"ChangedSession"===u.type&&this.initPartyInfo()})}ngOnInit(){let c=new Date;c.setMonth(c.getMonth()-1),this.initPartyInfo(),setTimeout(()=>{D2()},100)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(this.token=c.token,this.email=c.email,c.logged_as==c.id)this.partyId=c.partyId,this.loggedAsUser=!0,this.show_profile=!0,this.show_org_profile=!1,this.getProfile();else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId,this.loggedAsUser=!1,this.show_profile=!1,this.show_org_profile=!0,this.getOrgProfile()}D2()}getProfile(){this.show_billing=!1,this.show_profile=!0,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!1,this.selectGeneral()}getOrgProfile(){this.show_billing=!1,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!0,this.show_revenue=!1,this.selectGeneral(),setTimeout(()=>{D2()},100)}getBilling(){this.selectBilling(),this.show_billing=!0,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!1,this.cdr.detectChanges(),D2()}getRevenue(){this.selectRevenue(),this.show_billing=!1,this.show_profile=!1,this.show_orders=!1,this.show_org_profile=!1,this.show_revenue=!0,this.cdr.detectChanges(),D2()}getPayment(){(0,e0.s)(this.http.get(`${g1.c.BASE_URL}/paymentInfo`)).then(t=>{window.open(t.providerUrl,"_blank")}).catch(()=>{})}getLear(){window.open(`${g1.c.LEAR_URL}`,"_blank")}goToOrders(){this.selectOrder(),this.show_billing=!1,this.show_profile=!1,this.show_orders=!0,this.show_org_profile=!1,this.show_revenue=!1,this.cdr.detectChanges()}selectGeneral(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(t,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectBilling(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectOrder(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(l,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(i,"text-white bg-primary-100")}selectRevenue(){let c=document.getElementById("bill-button"),t=document.getElementById("general-button"),l=document.getElementById("order-button"),i=document.getElementById("revenue-button");this.selectMenu(i,"text-white bg-primary-100"),this.unselectMenu(c,"text-white bg-primary-100"),this.unselectMenu(t,"text-white bg-primary-100"),this.unselectMenu(l,"text-white bg-primary-100")}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&c.className.match(t)&&this.removeClass(c,t)}selectMenu(c,t){null!=c&&(c.className.match(t)||this.addClass(c,t))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(e.gRc),e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-user-profile"]],decls:48,vars:30,consts:[[1,"container","mx-auto","pt-2","pb-8"],[1,"hidden","lg:block","mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","md:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"underline","underline-offset-3","decoration-8","decoration-primary-100","dark:decoration-primary-100"],[1,"flex","flex-cols","mr-2","ml-2","lg:hidden"],[1,"mb-8","mt-4","text-4xl","font-extrabold","leading-none","tracking-tight","text-gray-900","lg:text-4xl","lg:text-5xl","dark:text-white","w-full"],[1,"flex","align-middle","content-center","items-center"],["id","dropdown-nav","data-dropdown-toggle","dropdown-nav-content","type","button",1,"text-black","dark:text-white","h-fit","w-fit","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 17 14",1,"w-4","h-4","mr-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M1 1h15M1 7h15M1 13h15"],["id","dropdown-nav-content",1,"z-10","hidden","bg-white","divide-y","divide-gray-100","rounded-lg","shadow","w-44","dark:bg-gray-700"],["aria-labelledby","dropdown-nav",1,"py-2","text-sm","text-gray-700","dark:text-gray-200"],[1,"cursor-pointer","block","px-4","py-2","hover:bg-gray-100","dark:hover:bg-gray-600","dark:hover:text-white",3,"click"],[1,"w-full","grid","lg:grid-cols-20/80"],[1,"hidden","lg:block"],[1,"w-48","h-fit","text-sm","font-medium","text-gray-900","bg-white","border","border-gray-200","rounded-lg","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],["id","general-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white"],["id","bill-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","revenue-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","payment-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","lear-button",1,"block","w-full","px-4","py-2","border-b","border-gray-200","cursor-pointer","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"],["id","general-button","aria-current","true",1,"block","w-full","px-4","py-2","text-white","bg-primary-100","border-b","border-gray-200","rounded-t-lg","cursor-pointer","dark:border-gray-600","hover:bg-gray-100","hover:text-secondary-400","dark:border-gray-600","dark:hover:bg-gray-600","dark:hover:text-white","dark:focus:ring-gray-500","dark:focus:text-white",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h1",1)(2,"span",2),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",3)(6,"h1",4)(7,"span",2),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",5)(11,"button",6),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s(),e.EFF(14," Profile "),e.k0s()()(),e.joV(),e.j41(15,"div",9)(16,"ul",10)(17,"li")(18,"a",11),e.bIt("click",function(){return l.getProfile()}),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"li")(22,"a",11),e.bIt("click",function(){return l.getBilling()}),e.EFF(23),e.nI1(24,"translate"),e.k0s()()()(),e.j41(25,"div",12)(26,"div",13)(27,"div",14),e.DNE(28,Ks0,3,3,"button",15)(29,ea0,3,3),e.j41(30,"button",16),e.bIt("click",function(){return l.getBilling()}),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"button",17),e.bIt("click",function(){return l.getRevenue()}),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"button",18),e.bIt("click",function(){return l.getPayment()}),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.j41(39,"button",19),e.bIt("click",function(){return l.getLear()}),e.EFF(40),e.nI1(41,"translate"),e.k0s()()(),e.j41(42,"div"),e.DNE(43,ca0,1,0,"user-info")(44,ta0,1,0,"org-info")(45,na0,1,0,"order-info")(46,la0,1,0,"billing-info")(47,sa0,1,0,"provider-revenue-sharing"),e.k0s()()()),2&t&&(e.R7$(3),e.JRh(e.bMT(4,14,"PROFILE._profile")),e.R7$(5),e.JRh(e.bMT(9,16,"PROFILE._profile")),e.R7$(11),e.JRh(e.bMT(20,18,"PROFILE._general")),e.R7$(4),e.JRh(e.bMT(24,20,"PROFILE._bill")),e.R7$(5),e.vxM(28,l.loggedAsUser?28:29),e.R7$(3),e.SpI(" ",e.bMT(32,22,"PROFILE._bill")," "),e.R7$(3),e.SpI(" ",e.bMT(35,24,"PROFILE._revenue")," "),e.R7$(3),e.SpI(" ",e.bMT(38,26,"PROFILE._payment_dashboard")," "),e.R7$(3),e.SpI(" ",e.bMT(41,28,"PROFILE._lear_link")," "),e.R7$(3),e.vxM(43,l.show_profile?43:-1),e.R7$(),e.vxM(44,l.show_org_profile?44:-1),e.R7$(),e.vxM(45,l.show_orders?45:-1),e.R7$(),e.vxM(46,l.show_billing?46:-1),e.R7$(),e.vxM(47,l.show_revenue?47:-1))},dependencies:[rE1,Ql0,as0,Cs0,Zs0,s1.D9]})}}return n})(),canActivate:[T5],data:{roles:[]}},{path:"my-offerings",component:oE1,canActivate:[T5],data:{roles:["seller"]}},{path:"admin",component:NQ2,canActivate:[T5],data:{roles:["admin","certifier"]}},{path:"contact-us",component:_20},{path:"product-orders",component:vt0,canActivate:[T5],data:{roles:[]}},{path:"analytics",loadComponent:()=>y.e(51).then(y.bind(y,6051)).then(n=>n.AnalyticsComponent),canActivate:[T5],data:{roles:[]}},{path:"quote-list",component:e3,canActivate:[T5,Ew1],data:{roles:[]}},{path:"tenders",loadChildren:()=>y.e(949).then(y.bind(y,3949)).then(n=>n.TendersModule),canActivate:[T5,Ew1],data:{roles:[]}},{path:"usage-spec",component:CW2,canActivate:[T5],data:{roles:["seller"]}},{path:"blog",component:z1,data:{contentType:"blog"}},{path:"blog/:slugOrId",component:Rn,data:{contentType:"blog"}},{path:"news",component:z1,data:{contentType:"news"}},{path:"news/:slugOrId",component:Rn,data:{contentType:"news"}},{path:"faq",component:NX2},{path:"blog-entry",component:ww1,canActivate:[T5],data:{roles:["admin"]}},{path:"blog-entry/:id",component:ww1,canActivate:[T5],data:{roles:["admin"]}},{path:"browse",loadComponent:()=>y.e(981).then(y.bind(y,5981)).then(n=>n.BrowseComponent)},{path:"landing-page",children:[{path:"customers",loadComponent:()=>Promise.all([y.e(76),y.e(342)]).then(y.bind(y,5342)).then(n=>n.LandingPageCustomersComponent)},{path:"providers",loadComponent:()=>Promise.all([y.e(76),y.e(826)]).then(y.bind(y,6826)).then(n=>n.LandingPageProvidersComponent)}]},{path:"**",redirectTo:"dashboard",pathMatch:"full"}];let oa0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[E2.iI.forRoot(aa0),E2.iI]})}}return n})(),ra0=(()=>{class n{constructor(c,t,l,i,u){this.localStorage=c,this.api=t,this.router=l,this.eventMessage=i,this.notificationService=u}startInterval(c,t){this.intervalObservable=function ia0(n=0,a=t4){return n<0&&(n=0),F4(n,n,a)}(c),this.intervalSubscription=this.intervalObservable.subscribe(()=>{let l=this.localStorage.getObject("login_items");this.api.getLogin(l.token).then(i=>{this.stopInterval(),this.localStorage.setObject("login_items",{id:i.id,user:i.username,email:i.email,token:i.accessToken,expire:i.expire,partyId:l.partyId,roles:i.roles,organizations:l.organizations,logged_as:l.logged_as}),i.expire>$2()().unix()+4?this.startInterval(1e3*(i.expire-$2()().unix()-4),i):this.logout()}).catch(i=>{console.error("Error refreshing token",i),this.logout()})})}stopInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}logout(){this.stopInterval();const c=this.localStorage.getObject("login_items");c&&Object.keys(c).length>0&&(this.localStorage.setObject("login_items",{}),this.eventMessage.emitLogin({}),this.api.logout().catch(t=>{console.error("Error during logout:",t)}),this.router.navigate(["/dashboard"]).then(()=>{this.notificationService.showInfo("Your session has expired. Please log in again.")}))}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(z2.s),e.KVO(kn),e.KVO(E2.Ix),e.KVO(U2),e.KVO(_4.J))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function da0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",2)(1,"button",6),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleState())}),e.EFF(2," \xd7 "),e.k0s(),e.j41(3,"div",7)(4,"div",8),e.nrm(5,"img",9),e.k0s(),e.j41(6,"div",10)(7,"h4",11),e.EFF(8,"DOME support"),e.k0s(),e.j41(9,"p",12),e.EFF(10," Hi. My name is DomeGPT. How can I help you? "),e.k0s()()(),e.nrm(11,"div",13),e.j41(12,"div",14)(13,"input",15),e.bIt("keyup",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onKeyUp(l))}),e.k0s(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSendButton())}),e.EFF(15,"Send"),e.k0s()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.state?"chatbox--active":"")}}let fa0=(()=>{class n{constructor(c,t,l){this.cdr=c,this.el=t,this.localStorage=l}ngOnInit(){this.chatbox=this.el.nativeElement.querySelector(".chatbox__support"),this.state=!1,this.messages=[]}onKeyUp(c){"Enter"===c.key&&this.onSendButton()}toggleState(){this.state=!this.state,this.cdr.detectChanges(),this.chatbox=this.el.nativeElement.querySelector(".chatbox__support"),this.updateChatText()}onSendButton(){const c=this.chatbox.querySelector("input");let t=c.value;if(""===t)return;let l="guest",i=g1.c.BUYER_ROLE;const u=this.localStorage.getObject("login_items");if(u.id){let b=[];i=g1.c.BUYER_ROLE,l=u.username,b=u.logged_as!==u.id?u.organizations.find(W=>W.id==u.logged_as).roles.map(W=>W.name):u.roles.map(T=>T.name),b.includes(g1.c.SELLER_ROLE)&&(i="Provider")}this.messages.push({name:l,message:t,role:i}),this.updateChatText(),c.value="",fetch(g1.c.CHAT_API,{method:"POST",body:JSON.stringify({message:t,role:i}),mode:"cors",headers:{"Content-Type":"application/json"}}).then(b=>b.json()).then(b=>{this.messages.push({name:"DomeGPT",message:b.answer}),this.updateChatText()}).catch(b=>{console.error("Error:",b),this.updateChatText()})}updateChatText(){var c="";this.messages.slice().reverse().forEach(function(l,i){c+="DomeGPT"===l.name?'
    '+l.message+"
    ":'
    '+l.message+"
    "}),this.chatbox.querySelector(".chatbox__messages").innerHTML=c,this.cdr.detectChanges()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(e.aKT),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-chatbot-widget"]],standalone:!0,features:[e.aNF],decls:6,vars:1,consts:[[1,"container","chatbot-widget","fixed","z-20"],[1,"chatbox"],[1,"chatbox__support","relative",3,"ngClass"],[1,"fixed","bottom-9","md:bottom-[55px]","left-5","z-[999]",3,"click"],[1,"w-[60px]","h-[60px]","bg-[var(--secondary-dark-blue)]","border-none","rounded-full","shadow-[0_2px_10px_rgba(0,0,0,0.3)]","cursor-pointer","transition-transform","duration-300","flex","items-center","justify-center","hover:scale-105","p-0"],["src","assets/chatbot/images/chatbox-icon.svg","alt","Chat",1,"w-[30px]","h-[30px]","filter","brightness-0","invert"],[1,"absolute","-top-3","-right-3","w-8","h-8","z-40","bg-secondary-100","text-white","hover:bg-primary-50","rounded-full","flex","items-center","justify-center","shadow-md","transition",3,"click"],[1,"chatbox__header"],[1,"chatbox__image--header"],["src","assets/chatbot/images/dome_logo_white.svg","alt","image"],[1,"chatbox__content--header"],[1,"chatbox__heading--header"],[1,"chatbox__description--header"],[1,"chatbox__messages"],[1,"chatbox__footer"],["type","text","placeholder","Write a message...",3,"keyup"],[1,"chatbox__send--footer",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,da0,16,1,"div",2),e.j41(3,"div",3),e.bIt("click",function(){return l.toggleState()}),e.j41(4,"button",4),e.nrm(5,"img",5),e.k0s()()()()),2&t&&(e.R7$(2),e.vxM(2,l.state?2:-1))},dependencies:[_.YU],styles:['@import"https://fonts.googleapis.com/css2?family=Blinker:wght@300;400;600;700&display=swap";.chatbot-widget,.chatbot-widget *{box-sizing:border-box;margin:0;padding:0;font-family:Blinker,sans-serif}.chatbot-widget{font-weight:400;font-size:100%;background:#f1f1f1}.chatbot-widget *{--primaryGradient: linear-gradient(93.12deg, #581B98 .52%, #9C1DE7 100%);--secondaryGradient: linear-gradient(268.91deg, #581B98 -2.14%, #9C1DE7 99.69%);--primaryBoxShadow: 0px 10px 15px rgba(0, 0, 0, .1);--secondaryBoxShadow: 0px -10px 15px rgba(0, 0, 0, .1);--primary: #581B98;--primary-dark-blue: #2D58A7;--secondary-dark-blue: #1D3C78;--secondary-light-blue: #DDE6F6;--type-white: #FFFFFF}.chatbox{position:fixed;bottom:2%;left:2%}.chatbox__support{position:fixed;bottom:120px;left:20px;width:80vw;max-width:400px;height:70vh;max-height:600px;z-index:-123456;opacity:0;transition:all .5s ease-in-out;border-radius:9px;display:flex;flex-direction:column;background:var(--secondary-light-blue)}.chatbox--active{transform:translateY(0);z-index:123456;opacity:1}.chatbox__button{position:fixed;bottom:55px;left:20px;z-index:999}.chatbox__button button{width:60px;height:60px;background:var(--secondary-dark-blue);border:none;border-radius:50%;box-shadow:0 2px 10px #0000004d;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;padding:0}.chatbox__button button:hover{transform:scale(1.05)}.chatbox__button img{width:30px;height:30px;filter:brightness(0) invert(1)}.chatbox__header{position:sticky;top:0;background:var(--primary-dark-blue);display:flex;flex-direction:row;align-items:center;justify-content:center;padding:15px 20px;border-radius:9px 9px 0 0;box-shadow:var(--primaryBoxShadow);position:relative}.chatbox__image--header{margin-right:15px;margin-left:-5px;width:60px;height:60px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background-color:var(--primary-dark-blue);box-shadow:none}.chatbox__image--header img{width:70%;height:70%;object-fit:contain;padding:0}.chatbox__heading--header{font-size:1.4rem;color:#fff;font-family:Blinker,sans-serif;font-weight:600}.chatbox__description--header{font-size:1rem;color:#fff;font-family:Blinker,sans-serif;font-weight:300}.chatbox__messages{padding:0 20px;margin-top:auto;display:flex;overflow-y:scroll;flex-direction:column-reverse}.messages__item{margin-top:10px;padding:10px 14px;max-width:85%;border-radius:20px;background:#e0e0e0;font-family:Blinker,sans-serif;font-size:1.05rem}.messages__item--operator{margin-right:auto;background:var(--type-white);color:#333;position:relative;border-radius:20px 20px 20px 5px;border:1px solid #ccc}.messages__item--visitor{margin-left:auto;background:#edf2fa;position:relative;border-radius:20px 20px 5px;border:1px solid #ccc}.chatbox__messages{padding:20px}.chatbox__footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:10px;background:var(--secondary-light-blue);box-shadow:none;border-radius:0 0 9px 9px}.chatbox__footer input{width:100%;border:none;padding:14px 15px;border-radius:9px 0 0 9px;text-align:left;font-size:1.05rem;background:#fff;height:48px}.chatbox__send--footer{background:var(--primary-dark-blue);color:#fff;font-size:1.05rem;border:none;height:48px;padding:0 20px;margin-left:-1px;border-radius:0 9px 9px 0;cursor:pointer;display:flex;align-items:center;justify-content:center}@media (max-width: 600px){.chatbox__support{width:100vw;height:50vh;bottom:0;left:0;border-radius:20px}}\n'],encapsulation:2})}}return n})();function ua0(n,a){1&n&&e.nrm(0,"app-chatbot-widget",3)}function ma0(n,a){1&n&&(e.j41(0,"noscript"),e.nrm(1,"img",4),e.k0s())}let pa0=(()=>{class n{constructor(c,t,l,i,u,C,b,T){this.translate=c,this.localStorage=t,this.eventMessage=l,this.route=i,this.router=u,this.api=C,this.themeService=b,this.refreshApi=T,this.title="BAE Marketplace",this.showPanel=!1,this.providerThemeName=g1.c.providerThemeName,this.isProduction=g1.c.isProduction,this.showHeaderAndFooter=!1,this.translate.addLangs(["en","es"]),this.translate.setDefaultLang("es");let W=this.localStorage.getItem("current_language");W&&null!=W?this.translate.use(W):(this.localStorage.setItem("current_language",""),this.translate.use("es")),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[])}ngOnInit(){this.themeService.initializeProviderTheme(g1.c.providerThemeName),D2(),this.localStorage.getObject("selected_categories")||this.localStorage.setObject("selected_categories",[]),this.localStorage.getObject("cart_items")||this.localStorage.setObject("cart_items",[]),this.localStorage.getObject("login_items")||this.localStorage.setObject("login_items",{}),this.localStorage.getObject("feedback")||this.localStorage.setObject("feedback",{}),this.eventMessage.messages$.subscribe(l=>{"LoginProcess"===l.type&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(l.value.expire-$2()().unix()-4),l),D2())});let t=this.localStorage.getObject("login_items");"{}"===JSON.stringify(t)||t.expire-$2()().unix()-4>0&&(this.refreshApi.stopInterval(),this.refreshApi.startInterval(1e3*(t.expire-$2()().unix()-4),t),D2()),this.router.events.pipe((0,U6.p)(l=>l instanceof E2.wF)).subscribe(()=>{window.scrollTo({top:0,behavior:"smooth"})})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(s1.c$),e.rXU(z2.s),e.rXU(U2),e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(cF),e.rXU(ra0))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-root"]],decls:8,vars:2,consts:[[1,"app-content"],[1,"bg-no-repeat","bg-right"],[1,"w-full","z-30","bottom-0","start-0"],[1,"relative","z-50"],["height","1","width","1","alt","","src","https://px.ads.linkedin.com/collect/?pid=8700705&fmt=gif",2,"display","none"]],template:function(t,l){1&t&&(e.nrm(0,"bae-header")(1,"app-notification"),e.j41(2,"div",0)(3,"main",1),e.nrm(4,"router-outlet"),e.k0s(),e.nrm(5,"bae-footer",2),e.k0s(),e.DNE(6,ua0,1,0,"app-chatbot-widget",3)(7,ma0,2,0,"noscript")),2&t&&(e.R7$(6),e.vxM(6,"DOME"===l.providerThemeName?6:-1),e.R7$(),e.vxM(7,l.isProduction?7:-1))},dependencies:[kw1,Uk1,E2.n3,fa0,Y4.z],styles:[".app-content[_ngcontent-%COMP%]{min-height:calc(100vh - 88px);min-height:calc(100dvh - 88px);display:flex;flex-direction:column}.app-content[_ngcontent-%COMP%] > main[_ngcontent-%COMP%]{flex:1 0 auto}"]})}}return n})();class lf{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_ORDERING=g1.c.PRODUCT_ORDER}static{this.ORDER_LIMIT=g1.c.ORDER_LIMIT}constructor(a){this.localStorage=a}intercept(a,c){let t=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(t)&&t.expire-$2()().unix()-4>0){if(!this.shouldAttachAuthHeaders(a.url))return c.handle(a);if(t.logged_as!=t.id){let l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Organization":t.logged_as}});return a.url.startsWith(`${lf.BASE_URL}${lf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Organization":t.logged_as,"X-Terms-Accepted":"true"}})),c.handle(l)}{let l=a.clone({setHeaders:{Authorization:"Bearer "+t.token}});return a.url.startsWith(`${lf.BASE_URL}${lf.API_ORDERING}/productOrder`)&&(l=a.clone({setHeaders:{Authorization:"Bearer "+t.token,"X-Terms-Accepted":"true"}})),c.handle(l)}}return console.log("not logged"),c.handle(a)}shouldAttachAuthHeaders(a){return function ha0(n,a){return!mE1(n)||a.filter(mE1).some(c=>function ga0(n,a){try{const c=new URL(n),t=new URL(a),l=t.pathname.replace(/\/$/,"");return c.origin===t.origin&&(""===l||c.pathname===l||c.pathname.startsWith(`${l}/`))}catch{return!1}}(n,c))}(a,[g1.c.BASE_URL,this.quoteApiBaseUrl()])}quoteApiBaseUrl(){const a=g1.c.quoteApi;return a.startsWith("http://")||a.startsWith("https://")?a:`${g1.c.BASE_URL}${a}`}static{this.\u0275fac=function(c){return new(c||lf)(e.KVO(z2.s))}}static{this.\u0275prov=e.jDH({token:lf,factory:lf.\u0275fac})}}function mE1(n){return/^https?:\/\//i.test(n)}const _a0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),La0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),pE1=(n,a)=>({"break-all":n,"break-words":a});function Ca0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function za0(n,a){if(1&n&&(e.j41(0,"form",18)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",34),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_CATALOG._description"))}}function Ma0(n,a){1&n&&(e.j41(0,"div",36),e.qSk(),e.j41(1,"svg",37),e.nrm(2,"path",38)(3,"path",39),e.k0s(),e.joV(),e.j41(4,"span",40),e.EFF(5,"Loading..."),e.k0s()())}function xa0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function ba0(n,a){if(1&n&&(e.j41(0,"span",46),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function ya0(n,a){if(1&n&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function Fa0(n,a){if(1&n&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)}}function va0(n,a){if(1&n&&(e.j41(0,"label",41),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",49),e.nrm(4,"markdown",50),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_CATALOG._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,pE1,c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.description,20),!c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.description,20)))("data",null==c.catalogToCreate?null:c.catalogToCreate.description)}}function ka0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",41),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",42),e.EFF(5),e.k0s()(),e.j41(6,"div",43)(7,"label",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,xa0,2,1,"span",45)(11,ba0,2,1)(12,ya0,2,1)(13,Fa0,2,1),e.k0s(),e.DNE(14,va0,5,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"CREATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(10,pE1,c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.name,20),!c.hasLongWord(null==c.catalogToCreate?null:c.catalogToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.catalogToCreate?null:c.catalogToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,8,"CREATE_CATALOG._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?10:"Launched"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?11:"Retired"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.catalogToCreate?null:c.catalogToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.catalogToCreate?null:c.catalogToCreate.description)?14:-1)}}function wa0(n,a){if(1&n&&(e.j41(0,"div",35),e.DNE(1,Ma0,6,0,"div",36)(2,ka0,15,13),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Sa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createCatalog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_CATALOG._create")," ")}}function Na0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Ea0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.finishDone=!1,this.loading=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerCatalog(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}showFinish(){this.finishDone=!0,this.setCatalogData(),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.showPreview=!1}setCatalogData(){null!=this.generalForm.value.name&&(this.catalogToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("CATALOG TO CREATE:"),console.log(this.catalogToCreate))}createCatalog(){this.setCatalogData(),this.loading=!0,this.api.postCatalog(this.catalogToCreate).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the catalog!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),1==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:43,vars:29,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","ml-4","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","catalogNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","catalogFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","catalogName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","catalogDsc","formControlName","description"],[1,"m-8"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],["data-cy","catalogFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Ca0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"h3",16),e.EFF(25),e.k0s(),e.j41(26,"div",17)(27,"div"),e.DNE(28,za0,9,8,"form",18)(29,wa0,3,1),e.j41(30,"div",19)(31,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(32,"svg",21),e.nrm(33,"path",22),e.k0s(),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.joV(),e.j41(36,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(37),e.nI1(38,"translate"),e.qSk(),e.j41(39,"svg",24),e.nrm(40,"path",25),e.k0s()(),e.DNE(41,Sa0,3,5,"button",26),e.k0s()()()()(),e.DNE(42,Na0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,13,"CREATE_CATALOG._back")," "),e.R7$(7),e.JRh(e.bMT(16,15,"CREATE_CATALOG._create")),e.R7$(4),e.JRh(e.bMT(20,17,"CREATE_CATALOG._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(3),e.JRh(l.steps[l.currentStep]),e.R7$(3),e.vxM(28,0===l.currentStep?28:1===l.currentStep?29:-1),e.R7$(3),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(23,_a0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(35,19,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(26,La0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(38,21,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(41,1===l.currentStep?41:-1),e.R7$(),e.vxM(42,l.showError?42:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const Da0=(n,a)=>a.id,Ta0=(n,a)=>({"break-all":n,"break-words":a});function Ra0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Aa0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Ia0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pa0(n,a){if(1&n&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ja0(n,a){if(1&n&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $a0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43),e.EFF(2),e.k0s(),e.j41(3,"td",44),e.DNE(4,Aa0,2,1,"span",45)(5,Ia0,2,1)(6,Pa0,2,1)(7,ja0,2,1),e.k0s(),e.j41(8,"td",46),e.EFF(9),e.k0s(),e.j41(10,"td",47)(11,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(12,"svg",49),e.nrm(13,"path",50),e.k0s()()()()}if(2&n){let c;const t=a.$implicit,l=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Ta0,l.hasLongWord(t.name,20),!l.hasLongWord(t.name,20))),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.vxM(4,"Active"==t.lifecycleStatus?4:"Launched"==t.lifecycleStatus?5:"Retired"==t.lifecycleStatus?6:"Obsolete"==t.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",null==t.relatedParty||null==(c=t.relatedParty.at(0))?null:c.role," ")}}function Oa0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",54),e.qSk(),e.j41(2,"svg",55),e.nrm(3,"path",56),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function Ba0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",57)(1,"button",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",59),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Va0(n,a){if(1&n&&e.DNE(0,Ba0,6,3,"div",57),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ua0(n,a){1&n&&(e.j41(0,"div",60),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Ga0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",40),e.Z7z(18,$a0,14,7,"tr",41,Da0,!1,Oa0,7,3,"div",42),e.k0s()()(),e.DNE(21,Va0,1,1)(22,Ua0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._role")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.catalogs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let Ha0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.paginationService=C,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.catalogs=[],this.nextCatalogs=[],this.page=0,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.destroy$=new S.B,this.searchInputListener=b=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getCatalogs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initCatalogs()})}ngOnInit(){this.initCatalogs();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}goToCreate(){this.eventMessage.emitSellerCreateCatalog(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateCatalog(c)}initCatalogs(){this.loading=!0,this.catalogs=[],this.nextCatalogs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getCatalogs(!1),D2()}ngAfterViewInit(){D2()}getCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={keywords:t.filter,filters:t.status,partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogsByUser.bind(t.api));t.page_check=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getCatalogs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.loading=!0,this.page=0,this.catalogs=[],this.nextCatalogs=[],this.getCatalogs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-catalogs"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8","justify-start"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","newCatalog","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","lg:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","dark:text-white","font-bold"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","border-secondary-50","border","mt-8","p-4","rounded-lg","shadow-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","dark:text-gray-100","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","catalogTable"],["data-cy","catalogRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["data-cy","catalogName",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],["data-cy","catalogStatus",1,"px-6","py-4"],[1,"bg-gray-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"px-6","py-4"],["data-cy","catalogEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-gray-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-gray-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-gray-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,Ra0,6,0,"div",29)(52,Ga0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._catalogs")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_catalog")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,s1.D9]})}}return n})();const Ya0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),qa0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),hE1=(n,a)=>({"break-all":n,"break-words":a});function Xa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function Wa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._active")," "))}function Ja0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Active"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._active")," "))}function Qa0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._launched")," "))}function Za0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._launched")," "))}function Ka0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._retired")," "))}function eo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._retired")," "))}function co0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_CATALOG._obsolete")," "))}function to0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setCatStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_CATALOG._obsolete")," "))}function no0(n,a){if(1&n&&(e.j41(0,"form",18)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,Wa0,6,3,"li",36)(11,Ja0,4,3)(12,Qa0,6,3,"li",37)(13,Za0,4,3)(14,Ka0,6,3,"li",38)(15,eo0,4,3)(16,co0,6,3,"li",39)(17,to0,4,3),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_CATALOG._status")),e.R7$(4),e.vxM(10,"Active"==t.catStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.catStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.catStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.catStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_CATALOG._description"))}}function lo0(n,a){1&n&&(e.j41(0,"div",54),e.qSk(),e.j41(1,"svg",55),e.nrm(2,"path",56)(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function so0(n,a){if(1&n&&(e.j41(0,"span",62),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ao0(n,a){if(1&n&&(e.j41(0,"span",63),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function oo0(n,a){if(1&n&&(e.j41(0,"span",64),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function io0(n,a){if(1&n&&(e.j41(0,"span",65),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)}}function ro0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",66),e.nrm(4,"markdown",67),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_CATALOG._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,hE1,c.hasLongWord(null==c.catalogToUpdate?null:c.catalogToUpdate.description,20),!c.hasLongWord(null==c.catalogToUpdate?null:c.catalogToUpdate.description,20)))("data",null==c.catalogToUpdate?null:c.catalogToUpdate.description)}}function do0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",59),e.EFF(5),e.k0s()(),e.j41(6,"div",60)(7,"label",61),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,so0,2,1,"span",62)(11,ao0,2,1)(12,oo0,2,1)(13,io0,2,1),e.k0s(),e.DNE(14,ro0,5,8)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,6,"UPDATE_CATALOG._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(10,hE1,c.hasLongWord(c.generalForm.value.name,20),!c.hasLongWord(c.generalForm.value.name,20))),e.R7$(),e.SpI(" ",c.generalForm.value.name," "),e.R7$(3),e.JRh(e.bMT(9,8,"UPDATE_CATALOG._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?10:"Launched"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?11:"Retired"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.catalogToUpdate?null:c.catalogToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.catalogToUpdate?null:c.catalogToUpdate.description)?14:-1)}}function fo0(n,a){if(1&n&&(e.j41(0,"div",53),e.DNE(1,lo0,6,0,"div",54)(2,do0,15,13),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function uo0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let mo0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.api=C,this.partyId="",this.stepsElements=["general-info","summary"],this.stepsCircles=["general-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showSummary=!1,this.generalDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.catStatus="Active",this.errorMessage="",this.showError=!1,this.loading=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),this.populateCatInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}populateCatInfo(){this.generalForm.controls.name.setValue(this.cat.name),this.generalForm.controls.description.setValue(this.cat.description),this.catStatus=this.cat.lifecycleStatus}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerCatalog(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showSummary=!1,this.showPreview=!1}setCatStatus(c){this.catStatus=c,this.cdr.detectChanges()}showFinish(){this.setCatalogData(),this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.showPreview=!1}setCatalogData(){null!=this.generalForm.value.name&&(this.catalogToUpdate={description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.catStatus},this.cat.name!=this.generalForm.value.name&&(this.catalogToUpdate.name=this.generalForm.value.name))}createCatalog(){this.showFinish(),this.loading=!0,this.api.updateCatalog(this.catalogToUpdate,this.cat.id).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the catalog!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),1==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-catalog"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{cat:"cat"},decls:45,vars:33,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-secondary-50","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","ml-4","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","catalogNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","catalogUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","w-full"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","catalogStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"m-8"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Xa0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"h3",16),e.EFF(25),e.k0s(),e.j41(26,"div",17)(27,"div"),e.DNE(28,no0,22,15,"form",18)(29,fo0,3,1),e.k0s(),e.j41(30,"div",19)(31,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(32,"svg",21),e.nrm(33,"path",22),e.k0s(),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.joV(),e.j41(36,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(37),e.nI1(38,"translate"),e.qSk(),e.j41(39,"svg",24),e.nrm(40,"path",25),e.k0s()(),e.joV(),e.j41(41,"button",26),e.bIt("click",function(){return l.createCatalog()}),e.EFF(42),e.nI1(43,"translate"),e.k0s()()()()(),e.DNE(44,uo0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,15,"UPDATE_CATALOG._back")," "),e.R7$(7),e.JRh(e.bMT(16,17,"UPDATE_CATALOG._update")),e.R7$(4),e.JRh(e.bMT(20,19,"UPDATE_CATALOG._update")),e.R7$(3),e.Dyx(l.steps),e.R7$(3),e.JRh(l.steps[l.currentStep]),e.R7$(3),e.vxM(28,0===l.currentStep?28:1===l.currentStep?29:-1),e.R7$(3),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(27,Ya0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(35,21,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(30,qa0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(38,23,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(43,25,"UPDATE_CATALOG._update")," "),e.R7$(2),e.vxM(44,l.showError?44:-1))},dependencies:[_.YU,p.qT,p.me,p.BC,p.cb,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();var sD=y(4261);class K3{static{this.BASE_URL=g1.c.BASE_URL}static{this.API_PRODUCT_CATALOG=g1.c.PRODUCT_CATALOG}static{this.API_PRODUCT_SPEC=g1.c.PRODUCT_SPEC}static{this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT}constructor(a,c){this.http=a,this.localStorage=c}getProdSpecByUser(a,c,t,l,i){let u=`${K3.BASE_URL}${K3.API_PRODUCT_CATALOG}${K3.API_PRODUCT_SPEC}?limit=${K3.PROD_SPEC_LIMIT}&offset=${a}&relatedParty.id=${t}`;null!=l&&(u=u+"&sort="+l),null!=i&&(u=u+"&isBundle="+i);let C="";if(c&&c.length>0){for(let b=0;b0){for(let C=0;C0){for(let C=0;C{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.elementRef=b,this.attachmentService=T,this.servSpecService=W,this.resSpecService=u1,this.paginationService=a1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.showGeneral=!0,this.showBundle=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.generalDone=!1,this.bundleDone=!1,this.prodSpecDone=!1,this.catalogsDone=!1,this.categoriesDone=!1,this.licenseDone=!1,this.slaDone=!1,this.priceDone=!1,this.procurementDone=!1,this.finishDone=!1,this.replicationDone=!1,this.stepsElements=["general-info","bundle","prodspec","catalog","category","license","sla","price","procurement","replication","summary"],this.stepsCircles=["general-circle","bundle-circle","prodspec-circle","catalog-circle","category-circle","license-circle","sla-circle","price-circle","procurement-circle","replication-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$")]),description:new p.MJ("")}),this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.bundledOffers=[],this.nextBundledOffers=[],this.offersBundle=[],this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.selectedProdSpec={id:""},this.prodSpecs=[],this.nextProdSpecs=[],this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.freeLicenseSelected=!0,this.licenseForm=new p.gE({treatment:new p.MJ("",[p.k0.required]),description:new p.MJ("")}),this.licenseDescription="",this.createdLicense={treatment:"",description:""},this.createdSLAs=[],this.availableSLAs=["UPDATES RATE","RESPONSE TIME","DELAY"],this.showCreateSLA=!1,this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA={type:"UPDATES RATE",description:"Expected number of updates in the given period.",threshold:"",unitMeasure:"day"},this.currencies=sD.currencies,this.createdPrices=[],this.postedPrices=[],this.priceDescription="",this.priceComponentDescription="",this.showCreatePrice=!1,this.toggleOpenPrice=!1,this.oneTimeSelected=!0,this.recurringSelected=!1,this.selectedPeriod="DAILY",this.selectedPeriodAlter="DAILY",this.usageSelected=!1,this.customSelected=!1,this.validPriceCheck=!0,this.selectedPriceUnit=sD.currencies[2].code,this.priceTypeAlter="ONE TIME",this.priceComponentSelected=!1,this.discountSelected=!1,this.noAlterSelected=!0,this.allowCustom=!0,this.allowOthers=!0,this.selectedPriceType="CUSTOM",this.editPrice=!1,this.showPriceComponents=!1,this.selectedCharacteristic=void 0,this.touchedCharCheck=!1,this.showValueSelect=!1,this.isDiscount=!1,this.createdPriceComponents=[],this.createdPriceAlterations=[],this.createdPriceComponentsRelatedToPlan=[],this.createdPriceAlterationsRelatedToPlan=[],this.hideStringCharOption=!0,this.showProfile=!1,this.editProfile=!1,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.showReplication=!1,this.selectedCountries=[],this.errorMessage="",this.showError=!1,this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T1=>{if("CategoryAdded"===T1.type&&this.addCategory(T1.value),"ChangedSession"===T1.type&&this.initPartyInfo(),"SavePricePlan"===T1.type&&(this.createdPrices.push(T1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===T1.type){let Y1=T1.value;-1!=this.createdPrices.findIndex(M2=>M2.id===Y1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((M2,G2)=>G2==G2?Y1:M2)),this.editPrice&&(this.editPrice=!1)}})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showPriceComponents&&(this.showPriceComponents=!1,this.cdr.detectChanges()),1==this.showProfile&&(this.showProfile=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerOffer(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundleCheck(){this.bundledOffers=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getSellerOffers(!1)):this.offersBundle=[]}toggleProdSpec(){this.prodSpecs=[],this.prodSpecPage=0,this.loadingProdSpec=!0,this.getSellerProdSpecs(!1),this.selectStep("prodspec","prodspec-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!0,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCatalogs(){this.catalogs=[],this.catalogPage=0,this.loadingCatalog=!0,this.getSellerCatalogs(!1),this.selectStep("catalog","catalog-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!0,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCategories(){this.categories=[],this.loadingCategory=!0,this.getCategories(),console.log("CATEGORIES FORMATTED"),console.log(this.categories),this.selectStep("category","category-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!0,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleLicense(){this.selectStep("license","license-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!0,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleSLA(){this.saveLicense(),this.selectStep("sla","sla-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!0,this.showPrice=!1,this.showProcurement=!1,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}togglePrice(){this.saveLicense(),this.selectStep("price","price-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!0,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1,D2()}toggleProcurement(){this.selectStep("procurement","procurement-circle"),this.priceDone=!0,this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!0,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1,D2()}toggleReplication(){this.procurementDone=!0,this.selectStep("replication","replication-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!0,this.editPrice=!1,this.showCreatePrice=!1,D2()}saveLicense(){this.createdLicense=this.licenseForm.value.treatment?{treatment:this.licenseForm.value.treatment,description:this.licenseForm.value.description?this.licenseForm.value.description:""}:{treatment:"",description:""},this.showPreview=!1}clearLicense(){this.freeLicenseSelected=!this.freeLicenseSelected,this.licenseForm.controls.treatment.setValue(""),this.licenseForm.controls.description.setValue(""),this.createdLicense={treatment:"",description:""},console.log(this.createdLicense.treatment)}removePrice(c){const t=this.createdPrices.findIndex(l=>l.id===c.id);-1!==t&&this.createdPrices.splice(t,1)}showNewPrice(){this.priceToUpdate=void 0,this.showCreatePrice=!this.showCreatePrice,this.editPrice=!1}showEditPrice(c){this.editPrice=!this.editPrice,this.priceToUpdate=c,this.showCreatePrice=!1}onSLAMetricChange(c){this.creatingSLA.unitMeasure=c.target.value}onSLAChange(c){"UPDATES RATE"==c.target.value?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==c.target.value?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==c.target.value&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms")}showCreateSLAMetric(){"UPDATES RATE"==this.availableSLAs[0]?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==this.availableSLAs[0]?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==this.availableSLAs[0]&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms"),this.showCreateSLA=!0}addSLA(){const c=this.availableSLAs.findIndex(t=>t===this.creatingSLA.type);1==this.updatesSelected?(this.creatingSLA.threshold=this.updatemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.updatesSelected=!1):1==this.responseSelected?(this.creatingSLA.threshold=this.responsemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.responseSelected=!1):(this.creatingSLA.threshold=this.delaymetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.delaySelected=!1),this.showCreateSLA=!1}removeSLA(c){const t=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==t&&this.createdSLAs.splice(t,1),this.availableSLAs.push(c.type)}checkThreshold(){return 1==this.updatesSelected?""==this.updatemetric.nativeElement.value:1==this.responseSelected?""==this.responsemetric.nativeElement.value:""==this.delaymetric.nativeElement.value}getCategories(){console.log("Getting categories..."),this.api.getLaunchedCategories().then(c=>{for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;i{if(t=l,c.children=t,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=t.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}addParent(c){const t=this.unformattedCategories.findIndex(l=>l.id===c);-1!=t&&(0==this.unformattedCategories[t].isRoot?this.addCategory(this.unformattedCategories[t]):this.selectedCategories.push(this.unformattedCategories[t]))}addCategory(c){const t=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==t?(console.log("eliminar"),this.selectedCategories.splice(t,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(i=>i.id===c.parentId);-1==t&&-1==l&&this.addParent(c.parentId)}console.log(this.selectedCategories),this.cdr.detectChanges(),console.log(this.selectedCategories)}isCategorySelected(c){return-1!==this.selectedCategories.findIndex(l=>l.id===c.id)}selectCatalog(c){this.selectedCatalog=c,this.selectedCategories=[]}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0),t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:t.partyId},t.api.getCatalogsByUser.bind(t.api)).then(i=>{t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page,t.loadingCatalog=!1,t.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingProdSpec=!0),t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page,t.loadingProdSpec=!1,t.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PRODUCT_LIMIT,c,t.bundledOffers,t.nextBundledOffers,{filters:["Active","Launched"],partyId:t.partyId,sort:void 0,isBundle:!1},t.api.getProductOfferByOwner.bind(t.api)).then(i=>{t.bundlePageCheck=i.page_check,t.bundledOffers=i.items,t.nextBundledOffers=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const t=this.offersBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.offersBundle.splice(t,1)):(console.log("a\xf1adir"),this.offersBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.offersBundle)}isProdInBundle(c){return-1!==this.offersBundle.findIndex(l=>l.id===c.id)}showFinish(){this.priceDone=!0,this.finishDone=!0,this.saveLicense(),this.generalForm.value.name&&this.generalForm.value.version&&(this.offerToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",version:this.generalForm.value.version,lifecycleStatus:"Active"}),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showSummary=!0,this.showReplication=!1,this.showPreview=!1,this.editPrice=!1,this.showCreatePrice=!1}changeProcurement(c){this.procurementMode=c.target.value}createOffer(){var c=this;return(0,C1.A)(function*(){if(c.postedPrices=[],c.createdPrices.length>0)for(let t=0;t{c.showError=!1},3e3)}}try{let W=yield(0,e0.s)(c.api.postOfferingPrice(b));i.push({id:W.id,href:W.id,name:W.name}),console.log("componente"),console.log(W)}catch(W){console.error("There was an error while creating offers price!",W),W.error.error?(console.log(W),c.errorMessage="Error: "+W.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let u={name:c.createdPrices[t].name,isBundle:!0,description:c.createdPrices[t].description,lifecycleStatus:c.createdPrices[t].lifecycleStatus,bundledPopRelationship:i};c.createdPrices[t].prodSpecCharValueUse&&(u.prodSpecCharValueUse=c.createdPrices[t].prodSpecCharValueUse),c.createdPrices[t].unitOfMeasure&&(u.unitOfMeasure=c.createdPrices[t].unitOfMeasure);try{let C=yield(0,e0.s)(c.api.postOfferingPrice(u));console.log("precio"),console.log(C),c.createdPrices[t].id=C.id,t==c.createdPrices.length-1&&c.saveOfferInfo()}catch(C){console.error("There was an error while creating offers price!",C),C.error.error?(console.log(C),c.errorMessage="Error: "+C.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}else{let l={name:c.createdPrices[t].name,isBundle:!1,description:c.createdPrices[t].description,lifecycleStatus:c.createdPrices[t].lifecycleStatus,priceType:c.createdPrices[t].priceType};"custom"!=c.createdPrices[t].priceType&&(l.price={unit:c.createdPrices[t]?.price?.unit,value:c.createdPrices[t]?.price?.value}),"recurring"==c.createdPrices[t].priceType&&(l.recurringChargePeriodType=c.createdPrices[t].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[t].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[t].priceType&&(l.recurringChargePeriodType=c.createdPrices[t].recurringChargePeriodType,l.recurringChargePeriodLength=c.createdPrices[t].recurringChargePeriodLength),"usage"==c.createdPrices[t].priceType&&(l.unitOfMeasure=c.createdPrices[t].unitOfMeasure),c.createdPrices[t].prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.createdPrices[t].prodSpecCharValueUse),c.createdPrices[t].unitOfMeasure&&(l.unitOfMeasure=c.createdPrices[t].unitOfMeasure);try{let i=yield(0,e0.s)(c.api.postOfferingPrice(l));console.log("precio"),console.log(i),c.createdPrices[t].id=i.id,t==c.createdPrices.length-1&&c.saveOfferInfo()}catch(i){console.error("There was an error while creating offers price!",i),i.error.error?(console.log(i),c.errorMessage="Error: "+i.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else c.createdPrices=[],c.saveOfferInfo();console.log(c.offerToCreate)})()}saveOfferInfo(){let c=[],t=[];for(let l=0;l{console.log("product offer created:"),console.log(l),this.goBack()},error:l=>{console.error("There was an error while creating the offer!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while creating the offer!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n> blockquote"})}addLink(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+" [title](https://www.example.com) "})}addTable(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showGeneral?(this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+c.emoji.native})}togglePreview(){this.showGeneral?this.description=this.generalForm.value.description?this.generalForm.value.description:"":this.showLicense&&(this.licenseDescription=this.licenseForm.value.description?this.licenseForm.value.description:"")}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-offer"]],viewQuery:function(t,l){if(1&t&&(e.GBs(po0,5),e.GBs(ho0,5),e.GBs(go0,5),e.GBs(_o0,5),e.GBs(Lo0,5),e.GBs(Co0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.updatemetric=i.first),e.mGM(i=e.lsd())&&(l.responsemetric=i.first),e.mGM(i=e.lsd())&&(l.delaymetric=i.first),e.mGM(i=e.lsd())&&(l.usageUnit=i.first),e.mGM(i=e.lsd())&&(l.usageUnitAlter=i.first),e.mGM(i=e.lsd())&&(l.usageUnitUpdate=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:19,vars:9,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"partyId","formType"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"app-offer-form",12),e.DNE(18,zo0,1,1,"error-message",13),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._back")," "),e.R7$(7),e.JRh(e.bMT(16,7,"CREATE_OFFER._create")),e.R7$(2),e.Y8G("partyId",l.partyId)("formType","create"),e.R7$(),e.vxM(18,l.showError?18:-1))}})}}return n})();const Mo0=(n,a)=>a.id,xo0=(n,a)=>({"break-all":n,"break-words":a});function bo0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function yo0(n,a){if(1&n&&(e.j41(0,"span",45),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Fo0(n,a){if(1&n&&(e.j41(0,"span",52),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function vo0(n,a){if(1&n&&(e.j41(0,"span",53),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ko0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function wo0(n,a){1&n&&(e.j41(0,"span",45),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function So0(n,a){1&n&&(e.j41(0,"span",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function No0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG().$implicit,i=e.XpG(2);return e.Njj(i.goToCreateCustom(l))}),e.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",55),e.k0s()()}}function Eo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",41)(1,"td",43),e.EFF(2),e.k0s(),e.j41(3,"td",44),e.DNE(4,yo0,2,1,"span",45)(5,Fo0,2,1)(6,vo0,2,1)(7,ko0,2,1),e.k0s(),e.j41(8,"td",46),e.DNE(9,wo0,3,3,"span",45)(10,So0,3,3),e.k0s(),e.j41(11,"td",46),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",47)(15,"button",48),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",49),e.nrm(17,"path",50),e.k0s()(),e.DNE(18,No0,3,0,"button",51),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(9,xo0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(6),e.vxM(18,t.customMap[c.id]?18:-1)}}function Do0(n,a){1&n&&(e.j41(0,"div",42)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_offerings")," "))}function To0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",61),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Ro0(n,a){if(1&n&&e.DNE(0,To0,6,3,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Ao0(n,a){1&n&&(e.j41(0,"div",62),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Io0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",39),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",38),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody",40),e.Z7z(21,Eo0,19,12,"tr",41,Mo0,!1,Do0,7,3,"div",42),e.k0s()()(),e.DNE(24,Ro0,1,1)(25,Ao0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"OFFERINGS._type")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.offers),e.R7$(3),e.vxM(24,c.loading_more?25:24)}}let Po0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.cdr=l,this.localStorage=i,this.eventMessage=u,this.paginationService=C,this.priceService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faSparkles=A2.p7g,this.searchField=new p.MJ,this.offers=[],this.nextOffers=[],this.page=0,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.isBundle=void 0,this.customMap={},this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getOffers(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initOffers()})}ngOnInit(){this.initOffers();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initOffers(){this.loading=!0;let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.offers=[],this.nextOffers=[],this.getOffers(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateOffer(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateOffer(c)}goToCreateCustom(c){this.eventMessage.emitSellerCreateCustomOffer(c)}getOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={filters:t.status,partyId:t.partyId,sort:t.sort,isBundle:t.isBundle};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.PROD_SPEC_LIMIT,c,t.offers,t.nextOffers,l,t.api.getProductOfferByOwner.bind(t.api));t.page_check=i.page_check,t.offers=i.items,t.nextOffers=i.nextItems,t.page=i.page,t.customMap={};for(const u of t.offers)t.customMap[u.id]=yield t.priceService.isCustomOffering(u)}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getOffers(!0)})()}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getOffers(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getOffers(!1)}onTypeChange(c){this.isBundle="simple"!=c.target.value&&("bundle"==c.target.value||void 0),this.getOffers(!1)}filterInventoryByKeywords(){}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6),e.rXU(X8))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-offer"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","newOffering","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-gray-200"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","offers"],["data-cy","offerRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],["data-cy","offerTitle",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],["data-cy","offerStatus",1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],["data-cy","offerEdit",1,"px-6","py-4"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 7.757v8.486M7.757 12h8.486M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,bo0,6,0,"div",29)(52,Io0,26,17),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._prod_offer")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_offer")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const jo0=["updatemetric"],$o0=["responsemetric"],Oo0=["delaymetric"],Bo0=["usageUnit"],Vo0=["usageUnitUpdate"],Uo0=["usageUnitAlter"];function Go0(n,a){if(1&n&&e.nrm(0,"error-message",14),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let _E1=(()=>{class n{constructor(c,t,l,i,u,C,b,T,W,u1,a1){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.elementRef=b,this.attachmentService=T,this.servSpecService=W,this.resSpecService=u1,this.paginationService=a1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.PRODUCT_LIMIT=g1.c.PRODUCT_LIMIT,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.showGeneral=!0,this.showBundle=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.stepsElements=["general-info","bundle","prodspec","catalog","category","license","sla","price","procurement","replication","summary"],this.stepsCircles=["general-circle","bundle-circle","prodspec-circle","catalog-circle","category-circle","license-circle","sla-circle","price-circle","procurement-circle","replication-circle","summary-circle"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$")]),description:new p.MJ("")}),this.offerStatus="Active",this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.offersBundle=[],this.bundledOffers=[],this.nextBundledOffers=[],this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.selectedProdSpec={id:""},this.prodSpecs=[],this.nextProdSpecs=[],this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.freeLicenseSelected=!0,this.licenseDescription="",this.licenseForm=new p.gE({treatment:new p.MJ("",[p.k0.required]),description:new p.MJ("")}),this.createdLicense={treatment:"",description:""},this.createdSLAs=[],this.availableSLAs=["UPDATES RATE","RESPONSE TIME","DELAY"],this.showCreateSLA=!1,this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA={type:"UPDATES RATE",description:"Expected number of updates in the given period.",threshold:"",unitMeasure:"day"},this.editPrice=!1,this.selectedPriceType="CUSTOM",this.currencies=[sD.currencies[2]],this.createdPrices=[],this.oldPrices=[],this.priceDescription="",this.showCreatePrice=!1,this.toggleOpenPrice=!1,this.oneTimeSelected=!1,this.recurringSelected=!1,this.selectedPeriod="DAILY",this.selectedPeriodAlter="DAILY",this.usageSelected=!1,this.customSelected=!0,this.validPriceCheck=!0,this.priceForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100)]),price:new p.MJ("",[p.k0.required]),description:new p.MJ(""),usageUnit:new p.MJ("")},{updateOn:"change"}),this.priceAlterForm=new p.gE({price:new p.MJ("",[p.k0.required]),condition:new p.MJ(""),description:new p.MJ("")}),this.selectedPriceUnit=sD.currencies[2].code,this.priceTypeAlter="ONE TIME",this.priceComponentSelected=!1,this.discountSelected=!1,this.noAlterSelected=!0,this.allowCustom=!0,this.allowOthers=!0,this.showProfile=!1,this.editProfile=!1,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.showReplication=!1,this.selectedCountries=[],this.errorMessage="",this.showError=!1,this.availableCountries=["Austria","Belgium","Germany","Hungary","Luxembourg","Poland","Romania","Spain"],this.availableMarketplaces=["BEIA Software Services","CloudFerro","CSI Piemonte","digitanimal","Digitel TS","DOME"],this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T1=>{if("CategoryAdded"===T1.type&&this.addCategory(T1.value),"ChangedSession"===T1.type&&this.initPartyInfo(),"SavePricePlan"===T1.type&&(this.createdPrices.push(T1.value),this.showCreatePrice&&(this.showCreatePrice=!1)),"UpdatePricePlan"===T1.type){let Y1=T1.value;-1!=this.createdPrices.findIndex(M2=>M2.id===Y1.id)&&(console.log("updating price values..."),this.createdPrices=this.createdPrices.map((M2,G2)=>G2==G2?Y1:M2)),this.editPrice&&(this.editPrice=!1)}})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){console.log(this.offer),this.initPartyInfo(),this.populateOfferInfo(),console.log("offer to update"),console.log(this.offer),this.editPrice=!1,this.showCreatePrice=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateOfferInfo(){var c=this;return(0,C1.A)(function*(){if(c.generalForm.controls.name.setValue(c.offer.name),c.generalForm.controls.description.setValue(c.offer.description),c.generalForm.controls.version.setValue(c.offer.version?c.offer.version:""),c.offerStatus=c.offer.lifecycleStatus,1==c.offer.isBundle&&(c.toggleBundleCheck(),c.offersBundle=c.offer.bundledProductOffering),c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.selectedProdSpec=l});return function(l){return t.apply(this,arguments)}}())),console.log("--PROD SPEC"),console.log(c.selectedProdSpec),c.offer.category&&(c.selectedCategories=c.offer.category),c.offer.productOfferingTerm&&(c.freeLicenseSelected=!1,c.licenseForm.controls.treatment.setValue(c.offer.productOfferingTerm[0].name),c.licenseForm.controls.description.setValue(c.offer.productOfferingTerm[0].description),c.createdLicense.treatment=c.offer.productOfferingTerm[0].name,c.createdLicense.description=c.offer.productOfferingTerm[0].description,c.offer.productOfferingTerm.forEach(t=>{"procurement"==t.name&&(c.procurementMode=t.description)})),c.offer.productOfferingPrice)for(let t=0;t{C.push(T)});console.log(C),u.bundledPopRelationship=C,console.log(u)}i.recurringChargePeriodType&&console.log("recurring"),i.unitOfMeasure&&(console.log("usage"),u.unitOfMeasure=i.unitOfMeasure),c.createdPrices.push(i),c.oldPrices.push(i)});return function(i){return l.apply(this,arguments)}}())})()}goBack(){this.eventMessage.emitSellerOffer(!0)}setOfferStatus(c){this.offerStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleBundleCheck(){this.bundledOffers=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getSellerOffers(!1)):this.offersBundle=[]}toggleProdSpec(){this.prodSpecs=[],this.prodSpecPage=0,this.loadingProdSpec=!0,this.getSellerProdSpecs(!1),this.selectStep("prodspec","prodspec-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!0,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCatalogs(){this.catalogs=[],this.catalogPage=0,this.loadingCatalog=!0,this.getSellerCatalogs(!1),this.selectStep("catalog","catalog-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!0,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleCategories(){this.categories=[],this.loadingCategory=!0,this.getCategories(),console.log("CATEGORIES FORMATTED"),console.log(this.categories),this.selectStep("category","category-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!0,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleLicense(){this.selectStep("license","license-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!0,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleSLA(){this.selectStep("sla","sla-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!0,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}togglePrice(){this.selectStep("price","price-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!0,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleProcurement(){this.selectStep("procurement","procurement-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!0,this.showPreview=!1,this.showReplication=!1,this.editPrice=!1,this.showCreatePrice=!1}toggleReplication(){this.selectStep("replication","replication-circle"),this.showBundle=!1,this.showGeneral=!1,this.showSummary=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showProcurement=!1,this.showPreview=!1,this.showReplication=!0,this.editPrice=!1,this.showCreatePrice=!1,D2()}saveLicense(){this.createdLicense=this.licenseForm.value.treatment?{treatment:this.licenseForm.value.treatment,description:this.licenseForm.value.description?this.licenseForm.value.description:""}:{treatment:"",description:""},this.showPreview=!1}clearLicense(){this.freeLicenseSelected=!this.freeLicenseSelected,this.licenseForm.controls.treatment.setValue(""),this.licenseForm.controls.description.setValue(""),this.createdLicense={treatment:"",description:""},console.log(this.createdLicense.treatment)}showUpdatePrice(c){console.log("---PRICE TO UPDATE---"),this.priceToUpdate=c,console.log(this.priceToUpdate),this.priceForm.controls.name.setValue(this.priceToUpdate.name),this.priceForm.controls.description.setValue(this.priceToUpdate.description),this.editPrice=!this.editPrice,this.priceToUpdate=c,this.showCreatePrice=!1}removePrice(c){const t=this.createdPrices.findIndex(l=>l.id===c.id);-1!==t&&this.createdPrices.splice(t,1)}showNewPrice(){this.priceToUpdate=void 0,this.showCreatePrice=!this.showCreatePrice,this.editPrice=!1}onSLAMetricChange(c){this.creatingSLA.unitMeasure=c.target.value}onSLAChange(c){"UPDATES RATE"==c.target.value?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==c.target.value?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==c.target.value&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms")}showCreateSLAMetric(){"UPDATES RATE"==this.availableSLAs[0]?(this.updatesSelected=!0,this.responseSelected=!1,this.delaySelected=!1,this.creatingSLA.type="UPDATES RATE",this.creatingSLA.description="Expected number of updates in the given period.",this.creatingSLA.unitMeasure="day"):"RESPONSE TIME"==this.availableSLAs[0]?(this.updatesSelected=!1,this.responseSelected=!0,this.delaySelected=!1,this.creatingSLA.type="RESPONSE TIME",this.creatingSLA.description="Total amount of time to respond to a data request (GET).",this.creatingSLA.unitMeasure="ms"):"DELAY"==this.availableSLAs[0]&&(this.updatesSelected=!1,this.responseSelected=!1,this.delaySelected=!0,this.creatingSLA.type="DELAY",this.creatingSLA.description="Total amount of time to deliver a new update (SUBSCRIPTION).",this.creatingSLA.unitMeasure="ms"),this.showCreateSLA=!0}addSLA(){const c=this.availableSLAs.findIndex(t=>t===this.creatingSLA.type);1==this.updatesSelected?(this.creatingSLA.threshold=this.updatemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.updatesSelected=!1):1==this.responseSelected?(this.creatingSLA.threshold=this.responsemetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.responseSelected=!1):(this.creatingSLA.threshold=this.delaymetric.nativeElement.value,this.createdSLAs.push({type:this.creatingSLA.type,description:this.creatingSLA.description,threshold:this.creatingSLA.threshold,unitMeasure:this.creatingSLA.unitMeasure}),this.availableSLAs.splice(c,1),this.delaySelected=!1),this.showCreateSLA=!1}removeSLA(c){const t=this.createdSLAs.findIndex(l=>l.type===c.type);-1!==t&&this.createdSLAs.splice(t,1),this.availableSLAs.push(c.type)}checkThreshold(){return 1==this.updatesSelected?""==this.updatemetric.nativeElement.value:1==this.responseSelected?""==this.responsemetric.nativeElement.value:""==this.delaymetric.nativeElement.value}getCategories(){console.log("Getting categories..."),this.api.getLaunchedCategories().then(c=>{for(let t=0;ti.parentId===c.id);if(c.children=l,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=l.length)for(let i=0;i{if(t=l,c.children=t,1==c.isRoot?this.categories.push(c):this.saveChildren(this.categories,c),0!=t.length)for(let i=0;iC.id==t.id)){let C=i.findIndex(b=>b.id==t.id);i[C]=t,c[l].children=i}this.saveChildren(i,t)}}}addParent(c){const t=this.unformattedCategories.findIndex(l=>l.id===c);-1!=t&&(0==this.unformattedCategories[t].isRoot?this.addCategory(this.unformattedCategories[t]):this.selectedCategories.push(this.unformattedCategories[t]))}addCategory(c){const t=this.selectedCategories.findIndex(l=>l.id===c.id);if(-1!==t?(console.log("eliminar"),this.selectedCategories.splice(t,1)):(console.log("a\xf1adir"),this.selectedCategories.push(c)),0==c.isRoot){const l=this.selectedCategories.findIndex(i=>i.id===c.parentId);-1==t&&-1==l&&this.addParent(c.parentId)}console.log(this.selectedCategories),this.cdr.detectChanges(),console.log(this.selectedCategories)}isCategorySelected(c){return-1!==this.selectedCategories.findIndex(l=>l.id===c.id)}selectCatalog(c){this.selectedCatalog=c,this.selectedCategories=[]}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0),t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,{keywords:void 0,filters:["Active","Launched"],partyId:t.partyId},t.api.getCatalogsByUser.bind(t.api)).then(i=>{t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page,t.loadingCatalog=!1,t.loadingCatalog_more=!1})})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!0)})()}selectProdSpec(c){this.selectedProdSpec=c}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingProdSpec=!0),t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page,t.loadingProdSpec=!1,t.loadingProdSpec_more=!1})})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){yield c.getSellerProdSpecs(!0)})()}getSellerOffers(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PRODUCT_LIMIT,c,t.bundledOffers,t.nextBundledOffers,{filters:["Active","Launched"],partyId:t.partyId,sort:void 0,isBundle:!1},t.api.getProductOfferByOwner.bind(t.api)).then(i=>{t.bundlePageCheck=i.page_check,t.bundledOffers=i.items,t.nextBundledOffers=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getSellerOffers(!0)})()}addProdToBundle(c){const t=this.offersBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.offersBundle.splice(t,1)):(console.log("a\xf1adir"),this.offersBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.offersBundle)}isProdInBundle(c){return-1!==this.offersBundle.findIndex(l=>l.id===c.id)}changeProcurement(c){this.procurementMode=c.target.value}showFinish(){this.editPrice=!1,this.showCreatePrice=!1,this.saveLicense(),this.generalForm.value.name&&this.generalForm.value.version&&(this.offerToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",version:this.generalForm.value.version,lifecycleStatus:this.offerStatus}),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showProdSpec=!1,this.showCatalog=!1,this.showCategory=!1,this.showLicense=!1,this.showSLA=!1,this.showPrice=!1,this.showSummary=!0,this.showReplication=!1,this.showPreview=!1}updateOffer(){var c=this;return(0,C1.A)(function*(){if(c.createdPrices.length>0){let t=c.createdPrices.length-1,l=!1,i=!1;for(let u=0;ub.id===c.createdPrices[u].id);-1==C?(l=!0,i=!0):c.oldPrices[C]!=c.createdPrices[u]&&(t=u,l=!1,i=!0)}if(0==i)c.saveOfferInfo();else{console.log(c.oldPrices),console.log(c.createdPrices);for(let u=0;ub.id===c.createdPrices[u].id);if(-1==C)if(console.log("precio nuevo"),1==c.createdPrices[u].isBundle){let b=c.createdPrices[u].bundledPopRelationship,T=[];if(null!=b)for(let u1=0;u1{c.showError=!1},3e3)}}try{let Y1=yield(0,e0.s)(c.api.postOfferingPrice(a1));T.push({id:Y1.id,href:Y1.id,name:Y1.name}),console.log("componente"),console.log(Y1)}catch(Y1){console.error("There was an error while creating offers price!",Y1),Y1.error.error?(console.log(Y1),c.errorMessage="Error: "+Y1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}let W={name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,bundledPopRelationship:T};c.createdPrices[u].prodSpecCharValueUse&&(W.prodSpecCharValueUse=c.createdPrices[u].prodSpecCharValueUse),c.createdPrices[u].unitOfMeasure&&(W.unitOfMeasure=c.createdPrices[u].unitOfMeasure);try{let u1=yield(0,e0.s)(c.api.postOfferingPrice(W));console.log("precio"),console.log(u1),c.createdPrices[u].id=u1.id,u==c.createdPrices.length-1&&c.saveOfferInfo()}catch(u1){console.error("There was an error while creating offers price!",u1),u1.error.error?(console.log(u1),c.errorMessage="Error: "+u1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let b={name:c.createdPrices[u].name,isBundle:!1,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,priceType:c.createdPrices[u].priceType};"custom"!=c.createdPrices[u].priceType&&(b.price={unit:c.createdPrices[u]?.price?.unit,value:c.createdPrices[u]?.price?.value}),"recurring"==c.createdPrices[u].priceType&&(b.recurringChargePeriodType=c.createdPrices[u].recurringChargePeriodType,b.recurringChargePeriodLength=c.createdPrices[u].recurringChargePeriodLength),"recurring-prepaid"==c.createdPrices[u].priceType&&(b.recurringChargePeriodType=c.createdPrices[u].recurringChargePeriodType,b.recurringChargePeriodLength=c.createdPrices[u].recurringChargePeriodLength),"usage"==c.createdPrices[u].priceType&&(b.unitOfMeasure=c.createdPrices[u].unitOfMeasure),c.createdPrices[u].prodSpecCharValueUse&&(b.prodSpecCharValueUse=c.createdPrices[u].prodSpecCharValueUse),c.createdPrices[u].unitOfMeasure&&(b.unitOfMeasure=c.createdPrices[u].unitOfMeasure);try{let T=yield(0,e0.s)(c.api.postOfferingPrice(b));console.log("precio"),console.log(T),c.createdPrices[u].id=T.id,u==c.createdPrices.length-1&&c.saveOfferInfo()}catch(T){console.error("There was an error while creating offers price!",T),T.error.error?(console.log(T),c.errorMessage="Error: "+T.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else if(console.log("precio existente -update"),c.oldPrices[C]!=c.createdPrices[u])if(1==c.createdPrices[u].isBundle){let b=c.createdPrices[u].bundledPopRelationship,T=[];if(null!=b)for(let a1=0;a1Y1.id===b?.[a1]?.id);if(c.oldPrices[C].bundledPopRelationship[T1].id.startsWith("urn:ngsi")||(T1=-1),-1!=T1){let Y1={id:b[a1].id,name:b[a1].name,description:b[a1].description,lifecycleStatus:b[a1].lifecycleStatus,priceType:b[a1].priceType,price:{unit:b[a1]?.price?.unit,value:b[a1]?.price?.value}};"recurring"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"recurring-prepaid"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"usage"==b[a1].priceType&&(Y1.unitOfMeasure=b[a1].unitOfMeasure),b[a1].prodSpecCharValueUse&&(Y1.prodSpecCharValueUse=b[a1].prodSpecCharValueUse),b[a1].unitOfMeasure&&(Y1.unitOfMeasure=b[a1].unitOfMeasure);let f2=b[a1].popRelationship,M2=c.oldPrices[C].bundledPopRelationship[T1].popRelationship;if(null!=f2)if(null!=M2&&M2!=f2){let G2={id:f2[0]?.id,name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?G2.percentage=f2[0]?.percentage:G2.price=f2[0]?.price;try{let N2=G2.id;delete G2.id,yield(0,e0.s)(c.api.updateOfferingPrice(G2,N2))}catch(N2){console.error("There was an error while creating offers price!",N2),N2.error.error?(console.log(N2),c.errorMessage="Error: "+N2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let G2={name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?G2.percentage=f2[0]?.percentage:G2.price=f2[0]?.price;try{let N2=yield(0,e0.s)(c.api.postOfferingPrice(G2));console.log("price Alteration"),console.log(N2),Y1.popRelationship=[{id:N2.id,href:N2.id,name:N2.name}]}catch(N2){console.error("There was an error while creating offers price!",N2),N2.error.error?(console.log(N2),c.errorMessage="Error: "+N2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}try{console.log("--PRICE TO UPDATE---------"),console.log(Y1),console.log("id"),console.log(Y1.id);let G2=Y1.id;delete Y1.id,yield(0,e0.s)(c.api.updateOfferingPrice(Y1,G2))}catch(G2){console.error("There was an error while creating offers price!",G2),G2.error.error?(console.log(G2),c.errorMessage="Error: "+G2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let Y1={name:b[a1].name,description:b[a1].description,lifecycleStatus:b[a1].lifecycleStatus,priceType:b[a1].priceType,price:{unit:b[a1]?.price?.unit,value:b[a1]?.price?.value}};"recurring"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"recurring-prepaid"==b[a1].priceType&&(Y1.recurringChargePeriodType=b[a1].recurringChargePeriodType,Y1.recurringChargePeriodLength=b[a1].recurringChargePeriodLength),"usage"==b[a1].priceType&&(Y1.unitOfMeasure=b[a1].unitOfMeasure),b[a1].prodSpecCharValueUse&&(Y1.prodSpecCharValueUse=b[a1].prodSpecCharValueUse),b[a1].unitOfMeasure&&(Y1.unitOfMeasure=b[a1].unitOfMeasure);let f2=b[a1].popRelationship;if(null!=f2){let M2={name:f2[0]?.name,priceType:f2[0]?.priceType,validFor:f2[0]?.validFor};f2[0].percentage?M2.percentage=f2[0]?.percentage:M2.price=f2[0]?.price;try{let G2=yield(0,e0.s)(c.api.postOfferingPrice(M2));console.log("price Alteration"),console.log(G2),Y1.popRelationship=[{id:G2.id,href:G2.id,name:G2.name}]}catch(G2){console.error("There was an error while creating offers price!",G2),G2.error.error?(console.log(G2),c.errorMessage="Error: "+G2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}try{let M2=yield(0,e0.s)(c.api.postOfferingPrice(Y1));T.push({id:M2.id,href:M2.id,name:M2.name}),console.log("componente"),console.log(M2)}catch(M2){console.error("There was an error while creating offers price!",M2),M2.error.error?(console.log(M2),c.errorMessage="Error: "+M2.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}console.log("prices----"),console.log(c.createdPrices[u]);let W=c.createdPrices[u].bundledPopRelationship?.map(({id:a1,href:T1,name:Y1})=>({id:a1,href:T1,name:Y1})),u1={id:c.createdPrices[u].id,name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus,bundledPopRelationship:W?.concat(T).filter(a1=>a1.id&&a1.id.startsWith("urn:ngsi"))};try{let a1=u1.id;delete u1.id;let T1=yield(0,e0.s)(c.api.updateOfferingPrice(u1,a1));console.log("precio"),console.log(T1),c.createdPrices[u].id=T1.id,0==l&&u==t&&c.saveOfferInfo()}catch(a1){console.error("There was an error while creating offers price!",a1),a1.error.error?(console.log(a1),c.errorMessage="Error: "+a1.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}else{let b={id:c.createdPrices[u].id,name:c.createdPrices[u].name,isBundle:!0,description:c.createdPrices[u].description,lifecycleStatus:c.createdPrices[u].lifecycleStatus};try{let T=b.id;delete b.id;let W=yield(0,e0.s)(c.api.updateOfferingPrice(b,T));console.log("precio"),console.log(W),c.createdPrices[u].id=W.id,0==l&&u==t&&c.saveOfferInfo()}catch(T){console.error("There was an error while creating offers price!",T),T.error.error?(console.log(T),c.errorMessage="Error: "+T.error.error):c.errorMessage="There was an error while creating offers price!",c.showError=!0,setTimeout(()=>{c.showError=!1},3e3)}}}}}else c.createdPrices=[],c.saveOfferInfo();console.log(c.offerToUpdate)})()}saveOfferInfo(){let c=[],t=[];for(let l=0;l{console.log("product offer created:"),console.log(l),this.goBack()},error:l=>{console.error("There was an error while updating!",l),l.error.error?(console.log(l),this.errorMessage="Error: "+l.error.error):this.errorMessage="There was an error while updating the offer!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+"\n> blockquote"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n> blockquote"})}addLink(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+" [title](https://www.example.com) "}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+" [title](https://www.example.com) "})}addTable(){this.showGeneral?this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){this.showGeneral?(this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})):this.showPrice?this.priceForm.patchValue({description:this.priceForm.value.description+c.emoji.native}):this.showLicense&&this.licenseForm.patchValue({description:this.licenseForm.value.description+c.emoji.native})}togglePreview(){this.showGeneral?this.description=this.generalForm.value.description?this.generalForm.value.description:"":this.showPrice?this.priceDescription=this.priceForm.value.description?this.priceForm.value.description:"":this.showLicense&&(this.licenseDescription=this.licenseForm.value.description?this.licenseForm.value.description:"")}handleSelectionChange(c){console.log("selected items..."),console.log(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-offer"]],viewQuery:function(t,l){if(1&t&&(e.GBs(jo0,5),e.GBs($o0,5),e.GBs(Oo0,5),e.GBs(Bo0,5),e.GBs(Vo0,5),e.GBs(Uo0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.updatemetric=i.first),e.mGM(i=e.lsd())&&(l.responsemetric=i.first),e.mGM(i=e.lsd())&&(l.delaymetric=i.first),e.mGM(i=e.lsd())&&(l.usageUnit=i.first),e.mGM(i=e.lsd())&&(l.usageUnitUpdate=i.first),e.mGM(i=e.lsd())&&(l.usageUnitAlter=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{offer:"offer"},decls:19,vars:10,consts:[[1,""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],["data-cy","editOfferBack",1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[3,"offer","partyId","formType"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4)(5,"button",5),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",7),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",8)(11,"div",9),e.qSk(),e.j41(12,"svg",10),e.nrm(13,"path",11),e.k0s(),e.joV(),e.j41(14,"span",12),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.nrm(17,"app-offer-form",13),e.DNE(18,Go0,1,1,"error-message",14),e.k0s()),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,6,"UPDATE_OFFER._back")," "),e.R7$(7),e.JRh(e.bMT(16,8,"UPDATE_OFFER._update")),e.R7$(2),e.Y8G("offer",l.offer)("partyId",l.partyId)("formType","update"),e.R7$(),e.vxM(18,l.showError?18:-1))}})}}return n})();const Ho0=["attachName"],Yo0=["imgURL"],qo0=["certificationName"],lH=(n,a)=>a.id,LE1=(n,a)=>a.name,Xo0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Wo0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),u8=(n,a)=>({"break-all":n,"break-words":a}),sH=()=>({standalone:!0});function Jo0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",33),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",34),e.EFF(2),e.k0s(),e.j41(3,"span",35),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStepIdx===t),e.R7$(),e.AVh("bg-primary-100",l.currentStepIdx===t)("text-white",l.currentStepIdx===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function Qo0(n,a){1&n&&(e.j41(0,"div",44)(1,"label",47),e.EFF(2,"DSP Compatible"),e.k0s(),e.j41(3,"label",48),e.nrm(4,"input",49)(5,"div",50),e.k0s()())}function Zo0(n,a){if(1&n&&(e.j41(0,"form",20)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",37),e.j41(6,"label",38),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",39),e.k0s(),e.j41(10,"div")(11,"label",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",41),e.j41(15,"label",42),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",43),e.k0s(),e.DNE(19,Qo0,6,0,"div",44),e.j41(20,"label",45),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.nrm(23,"app-markdown-textarea",46),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.Y8G("formGroup",i.generalForm),e.R7$(3),e.JRh(e.bMT(4,10,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.generalForm.get("name"))?null:c.invalid)&&""!=i.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,12,"CREATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=i.generalForm.get("version"))?null:t.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,14,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=i.generalForm.get("brand"))?null:l.invalid)&&""!=i.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,16,"CREATE_PROD_SPEC._id_number")),e.R7$(3),e.vxM(19,i.dspEnable?19:-1),e.R7$(2),e.JRh(e.bMT(22,18,"CREATE_PROD_SPEC._product_description"))}}function Ko0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function ei0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function ci0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ti0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ni0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function li0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function si0(n,a){1&n&&(e.j41(0,"span",71),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._simple")))}function ai0(n,a){1&n&&(e.j41(0,"span",75),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_PROD_SPEC._bundle")))}function oi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,ci0,2,1,"span",71)(5,ti0,2,1)(6,ni0,2,1)(7,li0,2,1),e.k0s(),e.j41(8,"td",70),e.DNE(9,si0,3,3,"span",71)(10,ai0,3,3),e.k0s(),e.j41(11,"td",72),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",73)(15,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.addProdToBundle(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(),e.Y8G("ngClass",e.l_i(9,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isProdInBundle(c))}}function ii0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",66),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",67),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,oi0,16,12,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function ri0(n,a){if(1&n&&e.DNE(0,ei0,7,3,"div",58)(1,ii0,22,15),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecs.length?0:1)}}function di0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.nextBundle())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function fi0(n,a){if(1&n&&e.DNE(0,di0,6,3,"div",78),2&n){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function ui0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function mi0(n,a){if(1&n&&e.DNE(0,Ko0,6,0,"div",53)(1,ri0,2,1)(2,fi0,1,1)(3,ui0,6,0),2&n){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function pi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",51)(1,"label",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",48)(5,"input",52),e.bIt("change",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.toggleBundleCheck())}),e.k0s(),e.nrm(6,"div",50),e.k0s()(),e.DNE(7,mi0,4,2)}if(2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"CREATE_PROD_SPEC._is_bundled")),e.R7$(3),e.Y8G("checked",c.bundleChecked),e.R7$(2),e.vxM(7,c.bundleChecked?7:-1)}}function hi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",97),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",88),e.nrm(2,"path",98),e.k0s()()}}function gi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"div",86)(2,"label",104),e.EFF(3),e.k0s(),e.j41(4,"button",105),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addISO(l))}),e.qSk(),e.j41(5,"svg",106),e.nrm(6,"path",81),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("ngClass",1==c.domesupported?"text-primary-100 font-bold":"text-gray-900 dark:text-white font-medium"),e.R7$(),e.SpI(" ",c.name," ")}}function _i0(n,a){if(1&n&&(e.j41(0,"div",102)(1,"ul",103),e.Z7z(2,gi0,7,2,"li",null,e.fX1),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function Li0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",99),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.buttonISOClicked=!l.buttonISOClicked)}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",100),e.nrm(4,"path",101),e.k0s()(),e.DNE(5,_i0,4,0,"div",102)}if(2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"CREATE_PROD_SPEC._add_comp")," "),e.R7$(4),e.vxM(5,c.buttonISOClicked?5:-1)}}function Ci0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",108)(6,"button",109),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",89),e.k0s()(),e.joV(),e.j41(9,"button",110),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.removeISO(l))}),e.qSk(),e.j41(10,"svg",88),e.nrm(11,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function zi0(n,a){1&n&&(e.j41(0,"div",92)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_comp_profile")," "))}function Mi0(n,a){1&n&&(e.j41(0,"div",111),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",112),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function xi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",108)(6,"button",97),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeCert(l))}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function bi0(n,a){if(1&n&&(e.j41(0,"h3",83),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",91)(3,"table",63)(4,"thead",64)(5,"tr")(6,"th",65),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",65),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",65),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,xi0,9,6,"tr",68,LE1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(7),e.SpI(" ",e.bMT(8,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(14,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.additionalISOS)}}function yi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",113),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCert=!l.showCert)}),e.EFF(2," Add an additional certification "),e.qSk(),e.j41(3,"svg",114),e.nrm(4,"path",81),e.k0s()()()}}function Fi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",132),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function vi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",125),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Fi0,10,6,"ng-template",126),e.k0s()}}function ki0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",133)(1,"span",57),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",134),e.EFF(4),e.k0s(),e.j41(5,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",136),e.nrm(7,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function wi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",115)(1,"h3",83),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",116)(4,"div",117)(5,"label",118),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",119,0),e.k0s(),e.DNE(10,vi0,2,0,"ngx-file-drop",120)(11,ki0,8,1),e.k0s(),e.j41(12,"div",121)(13,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAdditionalCert())}),e.EFF(14," Save "),e.qSk(),e.j41(15,"svg",114),e.nrm(16,"path",123),e.k0s()(),e.joV(),e.j41(17,"button",124),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.clearAdditionalCert(!1),e.Njj(l.showCert=!1)}),e.EFF(18," Discard "),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,6,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.certFileName)("ngClass",1==c.certFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(10,""==c.isoToCreate?10:11),e.R7$(3),e.Y8G("disabled",!c.certFileName.valid||""==c.isoToCreate)("ngClass",c.certFileName.valid&&""!=c.isoToCreate?"hover:bg-primary-50":"opacity-50")}}function Si0(n,a){if(1&n){const c=e.RV6();e.j41(0,"h3",83),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",84)(4,"p",85),e.EFF(5),e.k0s(),e.j41(6,"div",86)(7,"button",87),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(8,"svg",88),e.nrm(9,"path",89),e.k0s()(),e.DNE(10,hi0,3,0,"button",90),e.k0s()(),e.DNE(11,Li0,6,4),e.joV(),e.j41(12,"div",91)(13,"table",63)(14,"thead",64)(15,"tr")(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"th",65),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"th",65),e.EFF(23),e.nI1(24,"translate"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Ci0,12,6,"tr",68,LE1,!1,zi0,9,3,"div",92),e.k0s()()(),e.j41(29,"div",93)(30,"div",94),e.DNE(31,Mi0,4,3,"div",95),e.k0s()(),e.DNE(32,bi0,18,9)(33,yi0,5,0,"div",96)(34,wi0,19,8)}if(2&n){const c=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,11,"CREATE_PROD_SPEC._self_attestation")," "),e.R7$(4),e.SpI(" ",c.selfAtt?c.selfAtt.productSpecCharacteristicValue[0].value:"Upload your self attestation document"," "),e.R7$(5),e.vxM(10,c.selfAtt?10:-1),e.R7$(),e.vxM(11,c.availableISOS.length>0?11:-1),e.R7$(6),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(21,15,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(24,17,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.selectedISOS),e.R7$(5),e.Y8G("ngIf",c.checkValidISOS()),e.R7$(),e.vxM(32,c.additionalISOS.length>0?32:-1),e.R7$(),e.vxM(33,0==c.showCert?33:34)}}function Ni0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_chars")," "))}function Ei0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Di0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value)," ")}}function Ti0(n,a){if(1&n&&e.DNE(0,Ei0,1,1)(1,Di0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ri0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ai0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ii0(n,a){if(1&n&&e.DNE(0,Ri0,4,2)(1,Ai0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Pi0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function ji0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function $i0(n,a){if(1&n&&e.DNE(0,Pi0,1,1)(1,ji0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Oi0(n,a){if(1&n&&e.DNE(0,Ti0,2,1)(1,Ii0,2,1)(2,$i0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isJsonCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function Bi0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Vi0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ui0(n,a){if(1&n&&e.DNE(0,Bi0,4,3)(1,Vi0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Gi0(n,a){if(1&n&&e.DNE(0,Oi0,3,1)(1,Ui0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Hi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",137),e.EFF(2),e.k0s(),e.j41(3,"td",138),e.EFF(4),e.k0s(),e.j41(5,"td",107),e.Z7z(6,Gi0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",73)(9,"button",139),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",136),e.nrm(11,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function Yi0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",67),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Hi0,12,10,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.getFilteredCharacteristicsForCurrentStep())}}function qi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",140),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.toggleCreateCharacteristicForm())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" ",c.isDataspaceConfigurationStep()?"Add Dataspace Configuration":e.bMT(3,1,"CREATE_PROD_SPEC._new_char")," ")}}function Xi0(n,a){1&n&&(e.j41(0,"option",151),e.EFF(1,"Credentials Configuration"),e.k0s(),e.j41(2,"option",152),e.EFF(3,"Authorization Policy"),e.k0s())}function Wi0(n,a){1&n&&(e.j41(0,"option",153),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",154),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",155),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",156),e.EFF(7,"Boolean"),e.k0s())}function Ji0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",143),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",160),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.optionalDftTrue,l)||(i.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",161),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",161),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._default_value")),e.R7$(2),e.R50("ngModel",c.optionalDftTrue),e.Y8G("ngModelOptions",e.lJ4(13,sH)),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(e.bMT(7,9,"CREATE_PROD_SPEC._default_false")),e.R7$(2),e.Y8G("value",!0),e.R7$(),e.JRh(e.bMT(10,11,"CREATE_PROD_SPEC._default_true"))}}function Qi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",157)(1,"label",158),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",48)(5,"input",159),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.isOptional,l)||(i.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",50),e.k0s()(),e.DNE(7,Ji0,11,14,"div")}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_PROD_SPEC._make_optional")),e.R7$(3),e.R50("ngModel",c.isOptional),e.Y8G("ngModelOptions",e.lJ4(6,sH)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function Zi0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"div",165)(2,"input",166),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",167),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",168),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",136),e.nrm(10,"path",98),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ki0(n,a){if(1&n&&e.Z7z(0,Zi0,11,4,"div",164,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function er0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cr0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.R7$(),e.JRh(t.getValuePreview(c.value))}}function tr0(n,a){if(1&n&&(e.j41(0,"label",170),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function nr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"div",165)(2,"input",169),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,er0,5,2,"label",170)(4,cr0,2,1)(5,tr0,2,1),e.k0s(),e.j41(6,"button",168),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(7,"svg",136),e.nrm(8,"path",98),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===t.charTypeSelected?3:t.isJsonCharacteristicType(t.charTypeSelected)?4:5)}}function lr0(n,a){if(1&n&&e.Z7z(0,nr0,9,2,"div",164,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function sr0(n,a){if(1&n&&(e.j41(0,"label",162),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",163),e.DNE(3,Ki0,2,0)(4,lr0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function ar0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",149)(1,"input",171),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",172),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",173),e.nrm(4,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function or0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",174)(1,"div",175)(2,"span",176),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",177),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",175)(7,"span",176),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",178),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",179),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",173),e.nrm(13,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_PROD_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function ir0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",157)(1,"label",180),e.EFF(2,"Default value"),e.k0s(),e.j41(3,"label",48)(4,"input",181),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.booleanDefaultTrue,l)||(i.booleanDefaultTrue=l),e.Njj(l)}),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onBooleanDefaultChange())}),e.k0s(),e.nrm(5,"div",50),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,sH))}}function rr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",174)(1,"div",175)(2,"span",176),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",182),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",175)(7,"span",176),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",183),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",175)(12,"span",176),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",184),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",185),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",173),e.nrm(18,"path",81),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_PROD_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_PROD_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function dr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",186)(1,"label",187),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",188),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.jsonValue,l)||(i.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",189),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",190),e.nrm(7,"path",81),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,5,"CREATE_PROD_SPEC._json_value")),e.R7$(2),e.R50("ngModel",c.jsonValue),e.R7$(),e.Y8G("disabled",!c.jsonValue)("ngClass",c.jsonValue?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._add_json")," ")}}function fr0(n,a){if(1&n&&e.DNE(0,dr0,10,9,"div",186),2&n){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function ur0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",141)(1,"div")(2,"label",36),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",142),e.k0s(),e.j41(6,"div")(7,"label",143),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",144),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.charTypeSelected,l)||(i.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.DNE(11,Xi0,4,0)(12,Wi0,8,0),e.k0s()(),e.j41(13,"div",145)(14,"label",146),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",147),e.k0s(),e.DNE(18,Qi0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,sr0,5,1),e.j41(21,"label",148),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,ar0,5,3,"div",149)(25,or0,14,10)(26,ir0,6,3)(27,rr0,19,14)(28,fr0,1,1),e.j41(29,"div",121)(30,"button",150),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(31),e.nI1(32,"translate"),e.qSk(),e.j41(33,"svg",114),e.nrm(34,"path",123),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,15,"UPDATE_PROD_SPEC._product_name")),e.R7$(5),e.JRh(e.bMT(9,17,"CREATE_PROD_SPEC._type")),e.R7$(2),e.R50("ngModel",c.charTypeSelected),e.Y8G("ngModelOptions",e.lJ4(25,sH)),e.R7$(),e.vxM(11,c.isDataspaceConfigurationStep()?11:12),e.R7$(4),e.JRh(e.bMT(16,19,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.vxM(18,c.isDataspaceConfigurationStep()||"boolean"===c.charTypeSelected||c.isJsonCharacteristicType(c.charTypeSelected)?-1:18),e.R7$(2),e.vxM(20,c.creatingChars.length>0&&"boolean"!==c.charTypeSelected?20:-1),e.R7$(),e.Y8G("ngClass","range"===c.charTypeSelected&&1==c.creatingChars.length||"boolean"===c.charTypeSelected?"hidden":""),e.R7$(),e.JRh(e.bMT(23,21,"CREATE_PROD_SPEC._add_values")),e.R7$(2),e.vxM(24,c.isTextCharacteristicType(c.charTypeSelected)?24:"number"===c.charTypeSelected?25:"boolean"===c.charTypeSelected?26:"range"===c.charTypeSelected&&0==c.creatingChars.length?27:c.isJsonCharacteristicType(c.charTypeSelected)?28:-1),e.R7$(6),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(32,23,"CREATE_PROD_SPEC._save_char")," ")}}function mr0(n,a){if(1&n&&e.DNE(0,Ni0,9,3,"div",58)(1,Yi0,19,12)(2,qi0,6,3,"div",96)(3,ur0,35,26),2&n){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,c.showCreateChar?3:2)}}function pr0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function hr0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function gr0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function _r0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Lr0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Cr0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,gr0,2,1,"span",71)(5,_r0,2,1)(6,Lr0,2,1)(7,Cr0,2,1),e.k0s(),e.j41(8,"td",72),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",73)(12,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addResToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isResSelected(c))}}function Mr0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",191)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,zr0,13,11,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.resourceSpecs)}}function xr0(n,a){if(1&n&&e.DNE(0,hr0,7,3,"div",58)(1,Mr0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function br0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",192),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextRes())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function yr0(n,a){if(1&n&&e.DNE(0,br0,6,3,"div",78),2&n){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Fr0(n,a){1&n&&(e.j41(0,"div",193),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function vr0(n,a){if(1&n&&e.DNE(0,pr0,6,0,"div",53)(1,xr0,2,1)(2,yr0,1,1)(3,Fr0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function kr0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function wr0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Sr0(n,a){if(1&n&&(e.j41(0,"span",71),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Nr0(n,a){if(1&n&&(e.j41(0,"span",75),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Er0(n,a){if(1&n&&(e.j41(0,"span",76),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Dr0(n,a){if(1&n&&(e.j41(0,"span",77),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Tr0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",70),e.DNE(4,Sr0,2,1,"span",71)(5,Nr0,2,1)(6,Er0,2,1)(7,Dr0,2,1),e.k0s(),e.j41(8,"td",72),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",73)(12,"input",74),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addServToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isServSelected(c))}}function Rr0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",194)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",66),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Tr0,13,11,"tr",68,lH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.serviceSpecs)}}function Ar0(n,a){if(1&n&&e.DNE(0,wr0,7,3,"div",58)(1,Rr0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function Ir0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextServ())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Pr0(n,a){if(1&n&&e.DNE(0,Ir0,6,3,"div",78),2&n){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function jr0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function $r0(n,a){if(1&n&&e.DNE(0,kr0,6,0,"div",53)(1,Ar0,2,1)(2,Pr0,1,1)(3,jr0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function Or0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",222),e.EFF(2),e.k0s(),e.j41(3,"td",223),e.EFF(4),e.k0s(),e.j41(5,"td",224)(6,"button",97),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeEndpointUrl(l))}),e.qSk(),e.j41(7,"svg",88),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.url),e.R7$(2),e.JRh(c.description)}}function Br0(n,a){if(1&n&&(e.j41(0,"div",196)(1,"table",219)(2,"thead",64)(3,"tr")(4,"th",220),e.EFF(5,"Endpoint URL"),e.k0s(),e.j41(6,"th",65),e.EFF(7,"Description"),e.k0s(),e.j41(8,"th",221),e.EFF(9,"Actions"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Or0,9,2,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(11),e.Dyx(c.endpointUrls)}}function Vr0(n,a){1&n&&(e.j41(0,"p",206),e.EFF(1,"At least one endpoint URL is required."),e.k0s())}function Ur0(n,a){if(1&n&&(e.j41(0,"option",161),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.JRh(c)}}function Gr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Hr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Yr0(n,a){if(1&n&&e.DNE(0,Gr0,2,0,"p",225)(1,Hr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function qr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Xr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Wr0(n,a){if(1&n&&e.DNE(0,qr0,2,0,"p",225)(1,Xr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function Jr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function Qr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function Zr0(n,a){if(1&n&&e.DNE(0,Jr0,2,0,"p",225)(1,Qr0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function Kr0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"This field is required"),e.k0s())}function ed0(n,a){1&n&&(e.j41(0,"p",225),e.EFF(1,"Invalid JSON"),e.k0s())}function cd0(n,a){if(1&n&&e.DNE(0,Kr0,2,0,"p",225)(1,ed0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function td0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",21)(1,"h3",195),e.EFF(2,"DSP Config"),e.k0s(),e.DNE(3,Br0,13,0,"div",196),e.j41(4,"div",197)(5,"div",198)(6,"div",199)(7,"label",143),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",200),e.nI1(11,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointName=l.target.value)}),e.k0s()(),e.j41(12,"div",199)(13,"label",143),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"input",201),e.nI1(17,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointUrl=l.target.value)}),e.k0s()()(),e.j41(18,"div")(19,"label",143),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"textarea",202),e.nI1(23,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointDescription=l.target.value)}),e.k0s()(),e.j41(24,"div",203)(25,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addEndpointUrl())}),e.EFF(26),e.nI1(27,"translate"),e.qSk(),e.j41(28,"svg",205),e.nrm(29,"path",81),e.k0s()()()(),e.DNE(30,Vr0,2,0,"p",206),e.joV(),e.nrm(31,"hr",207),e.j41(32,"form",208)(33,"div",198)(34,"div",209)(35,"label",143),e.EFF(36,"Upstream Address"),e.k0s(),e.nrm(37,"input",210),e.k0s(),e.j41(38,"div",211)(39,"label",143),e.EFF(40,"Transfer path"),e.k0s(),e.nrm(41,"input",212),e.k0s(),e.j41(42,"div",211)(43,"label",143),e.EFF(44,"Transfer Type"),e.k0s(),e.j41(45,"select",213),e.DNE(46,Ur0,2,2,"option",214),e.k0s()()(),e.j41(47,"div")(48,"label",143),e.EFF(49,"Target Specification"),e.k0s(),e.nrm(50,"textarea",215),e.DNE(51,Yr0,2,1),e.k0s(),e.j41(52,"div")(53,"label",143),e.EFF(54,"Service Configuration"),e.k0s(),e.nrm(55,"textarea",216),e.DNE(56,Wr0,2,1),e.k0s(),e.j41(57,"div")(58,"label",143),e.EFF(59,"Credentials Configuration"),e.k0s(),e.nrm(60,"textarea",217),e.DNE(61,Zr0,2,1),e.k0s(),e.j41(62,"div")(63,"label",143),e.EFF(64,"Policy Configuration"),e.k0s(),e.nrm(65,"textarea",218),e.DNE(66,cd0,2,1),e.k0s()()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1;const a1=e.XpG();e.R7$(3),e.vxM(3,a1.endpointUrls.length>0?3:-1),e.R7$(5),e.JRh(e.bMT(9,29,"CREATE_PROD_SPEC._dsp_endpoint_name")),e.R7$(2),e.Y8G("value",a1.newEndpointName)("placeholder",e.bMT(11,31,"CREATE_PROD_SPEC._dsp_endpoint_name_placeholder")),e.R7$(4),e.JRh(e.bMT(15,33,"CREATE_PROD_SPEC._dsp_endpoint_url")),e.R7$(2),e.Y8G("value",a1.newEndpointUrl)("placeholder",e.bMT(17,35,"CREATE_PROD_SPEC._dsp_endpoint_url_placeholder")),e.R7$(4),e.JRh(e.bMT(21,37,"CREATE_PROD_SPEC._dsp_endpoint_description")),e.R7$(2),e.Y8G("value",a1.newEndpointDescription)("placeholder",e.bMT(23,39,"CREATE_PROD_SPEC._dsp_endpoint_description_placeholder")),e.R7$(3),e.AVh("opacity-50",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim())("cursor-not-allowed",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim()),e.Y8G("disabled",!a1.newEndpointUrl.trim()||!a1.newEndpointDescription.trim()),e.R7$(),e.SpI(" ",e.bMT(27,41,"CREATE_PROD_SPEC._dsp_add_endpoint")," "),e.R7$(4),e.vxM(30,0===a1.endpointUrls.length?30:-1),e.R7$(2),e.Y8G("formGroup",a1.dspConfigForm),e.R7$(5),e.Y8G("ngClass",null!=(c=a1.dspConfigForm.get("upstreamAddress"))&&c.invalid&&""!==(null==(c=a1.dspConfigForm.get("upstreamAddress"))?null:c.value)?"border-red-600":""),e.R7$(4),e.Y8G("ngClass",null!=(t=a1.dspConfigForm.get("transferPath"))&&t.invalid&&""!==(null==(t=a1.dspConfigForm.get("transferPath"))?null:t.value)?"border-red-600":""),e.R7$(5),e.Y8G("ngForOf",a1.transferTypes),e.R7$(4),e.Y8G("ngClass",null!=(l=a1.dspConfigForm.get("targetSpecification"))&&l.invalid&&null!=(l=a1.dspConfigForm.get("targetSpecification"))&&l.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(51,null!=(i=a1.dspConfigForm.get("targetSpecification"))&&i.touched?51:-1),e.R7$(4),e.Y8G("ngClass",null!=(u=a1.dspConfigForm.get("serviceConfiguration"))&&u.invalid&&null!=(u=a1.dspConfigForm.get("serviceConfiguration"))&&u.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(56,null!=(C=a1.dspConfigForm.get("serviceConfiguration"))&&C.touched?56:-1),e.R7$(4),e.Y8G("ngClass",null!=(b=a1.dspConfigForm.get("credentialsConfig"))&&b.invalid&&null!=(b=a1.dspConfigForm.get("credentialsConfig"))&&b.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(61,null!=(T=a1.dspConfigForm.get("credentialsConfig"))&&T.touched?61:-1),e.R7$(4),e.Y8G("ngClass",null!=(W=a1.dspConfigForm.get("policyConfig"))&&W.invalid&&null!=(W=a1.dspConfigForm.get("policyConfig"))&&W.touched?"border-red-600":"border-gray-300 dark:border-secondary-200"),e.R7$(),e.vxM(66,null!=(u1=a1.dspConfigForm.get("policyConfig"))&&u1.touched?66:-1)}}function nd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",237),e.nrm(1,"img",239),e.j41(2,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",136),e.nrm(4,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function ld0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",249),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function sd0(n,a){1&n&&(e.j41(0,"div",250),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",112),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_name")," "))}function ad0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",240)(1,"ngx-file-drop",241),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileLeave(l))}),e.DNE(2,ld0,10,6,"ng-template",126),e.k0s()(),e.j41(3,"label",242),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",243),e.DNE(7,sd0,4,3,"div",244),e.j41(8,"div",245)(9,"input",246,1),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",247),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",136),e.nrm(13,"path",248),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,6,"CREATE_PROD_SPEC._add_prod_img_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function od0(n,a){1&n&&(e.j41(0,"div",238)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_att")," "))}function id0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s(),e.j41(5,"td",73)(6,"button",139),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeAtt(l))}),e.qSk(),e.j41(7,"svg",136),e.nrm(8,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function rd0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,id0,9,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodAttachments)}}function dd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",251),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showNewAtt=!l.showNewAtt)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._new_att")," "))}function fd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",127),e.qSk(),e.j41(1,"svg",128),e.nrm(2,"path",129),e.k0s(),e.joV(),e.j41(3,"div",130)(4,"p",131),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",132),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"CREATE_PROD_SPEC._select_files")))}function ud0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",125),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,fd0,10,6,"ng-template",126),e.k0s()}}function md0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",133)(1,"span",57),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",134),e.EFF(4),e.k0s(),e.j41(5,"button",135),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",136),e.nrm(7,"path",98),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function pd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",115)(1,"div",252)(2,"div",117)(3,"label",253),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",254,2),e.k0s(),e.DNE(8,ud0,2,0,"ngx-file-drop",120)(9,md0,8,1),e.k0s(),e.j41(10,"div",121)(11,"button",122),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAtt())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",114),e.nrm(15,"path",123),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,7,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.attFileName)("ngClass",1==c.attFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(8,""==c.attachToCreate.url?8:9),e.R7$(3),e.Y8G("disabled",!c.attFileName.valid||""==c.attachToCreate.url)("ngClass",c.attFileName.valid&&""!=c.attachToCreate.url?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"CREATE_PROD_SPEC._save_att")," ")}}function hd0(n,a){if(1&n&&(e.j41(0,"div",226)(1,"h4",227),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",228),e.qSk(),e.j41(5,"svg",229),e.nrm(6,"path",230),e.k0s()(),e.joV(),e.j41(7,"div",231)(8,"div",232)(9,"h3",233),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",234)(13,"p",235),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",236),e.k0s()(),e.DNE(17,nd0,5,1,"div",237)(18,ad0,14,8),e.j41(19,"h4",227),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,od0,9,3,"div",238)(23,rd0,16,9)(24,dd0,6,3,"div",96)(25,pd0,16,11)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.SpI("",e.bMT(11,9,"CREATE_PROD_SPEC._file_res")," "),e.R7$(4),e.SpI("",e.bMT(15,11,"CREATE_PROD_SPEC._restrictions")," "),e.R7$(3),e.vxM(17,c.showImgPreview?17:18),e.R7$(3),e.JRh(e.bMT(21,13,"CREATE_PROD_SPEC._add_att")),e.R7$(2),e.vxM(22,0==c.prodAttachments.length?22:23),e.R7$(2),e.vxM(24,0==c.showNewAtt?24:25)}}function gd0(n,a){1&n&&(e.j41(0,"div",255)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_PROD_SPEC._no_relatioships")," "))}function _d0(n,a){if(1&n&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Ld0(n,a){if(1&n&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Cd0(n,a){if(1&n&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zd0(n,a){if(1&n&&(e.j41(0,"span",260),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Md0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",68)(1,"td",73),e.EFF(2),e.k0s(),e.j41(3,"td",69),e.EFF(4),e.k0s(),e.j41(5,"td",70),e.DNE(6,_d0,2,1,"span",256)(7,Ld0,2,1)(8,Cd0,2,1)(9,zd0,2,1),e.k0s(),e.j41(10,"td",72),e.EFF(11),e.nI1(12,"date"),e.k0s(),e.j41(13,"td",73)(14,"button",257),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteRel(l))}),e.qSk(),e.j41(15,"svg",136),e.nrm(16,"path",98),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.productSpec.name,20),!t.hasLongWord(c.productSpec.name,20))),e.R7$(),e.SpI(" ",c.productSpec.name," "),e.R7$(2),e.vxM(6,"Active"==c.productSpec.lifecycleStatus?6:"Launched"==c.productSpec.lifecycleStatus?7:"Retired"==c.productSpec.lifecycleStatus?8:"Obsolete"==c.productSpec.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,c.productSpec.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function xd0(n,a){if(1&n&&(e.j41(0,"div",62)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",66),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",67),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",65),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Md0,17,11,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,5,"CREATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function bd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"button",261),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateRel=!l.showCreateRel)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",114),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._add_relationship")," "))}function yd0(n,a){1&n&&(e.j41(0,"div",53),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Fd0(n,a){1&n&&(e.j41(0,"div",58)(1,"div",59),e.qSk(),e.j41(2,"svg",60),e.nrm(3,"path",61),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function vd0(n,a){1&n&&(e.j41(0,"span",71),e.EFF(1,"Simple"),e.k0s())}function kd0(n,a){1&n&&(e.j41(0,"span",75),e.EFF(1,"Bundle"),e.k0s())}function wd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",271),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectRelationship(l))}),e.j41(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",73),e.DNE(4,vd0,2,0,"span",71)(5,kd0,2,0),e.k0s(),e.j41(6,"td",272),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.Y8G("ngClass",c.id==t.selectedProdSpec.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,0==c.isBundle?4:5),e.R7$(3),e.SpI(" ",e.i5U(8,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Sd0(n,a){if(1&n&&(e.j41(0,"div",268)(1,"table",63)(2,"thead",64)(3,"tr")(4,"th",65),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",269),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,wd0,9,11,"tr",270,e.fX1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,3,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecRels)}}function Nd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",78)(1,"button",79),e.bIt("click",function(){e.eBV(c);const l=e.XpG(5);return e.Njj(l.nextProdSpecsRel())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",80),e.nrm(5,"path",81),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Ed0(n,a){if(1&n&&e.DNE(0,Nd0,6,3,"div",78),2&n){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Dd0(n,a){1&n&&(e.j41(0,"div",82),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Td0(n,a){if(1&n&&e.DNE(0,Fd0,7,3,"div",58)(1,Sd0,16,9)(2,Ed0,1,1)(3,Dd0,6,0),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecRels.length?0:1),e.R7$(2),e.vxM(2,c.loadingprodSpecRel_more?3:2)}}function Rd0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",262),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onRelChange(l))}),e.j41(4,"option",263),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",264),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",265),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",266),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,yd0,6,0,"div",53)(13,Td0,4,2),e.j41(14,"div",121)(15,"button",267),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveRel())}),e.EFF(16),e.nI1(17,"translate"),e.qSk(),e.j41(18,"svg",114),e.nrm(19,"path",123),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"CREATE_PROD_SPEC._relationship_type")),e.R7$(11),e.vxM(12,c.loadingprodSpecRel?12:13),e.R7$(3),e.Y8G("disabled",0==c.prodSpecRels.length||""==c.selectedProdSpec.id)("ngClass",0==c.prodSpecRels.length||""==c.selectedProdSpec.id?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(17,7,"CREATE_PROD_SPEC._save_relationship")," ")}}function Ad0(n,a){if(1&n&&(e.j41(0,"div",21),e.DNE(1,gd0,9,3,"div",255)(2,xd0,22,15)(3,bd0,6,3,"div",96)(4,Rd0,20,9),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0===c.prodRelationships.length?1:2),e.R7$(2),e.vxM(3,0==c.showCreateRel?3:4)}}function Id0(n,a){1&n&&(e.j41(0,"div",273),e.qSk(),e.j41(1,"svg",54),e.nrm(2,"path",55)(3,"path",56),e.k0s(),e.joV(),e.j41(4,"span",57),e.EFF(5,"Loading..."),e.k0s()())}function Pd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",276),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._id_number")),e.R7$(3),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.productNumber," ")}}function jd0(n,a){if(1&n&&(e.j41(0,"span",279),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function $d0(n,a){if(1&n&&(e.j41(0,"span",280),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Od0(n,a){if(1&n&&(e.j41(0,"span",281),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Bd0(n,a){if(1&n&&(e.j41(0,"span",282),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)}}function Vd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",283),e.nrm(4,"markdown",284),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.description,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.description,20)))("data",null==c.productSpecToCreate?null:c.productSpecToCreate.description)}}function Ud0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",237),e.nrm(4,"img",239),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._profile_pic")),e.R7$(3),e.FS9("src",c.imgPreview,e.B4B)}}function Gd0(n,a){if(1&n&&(e.j41(0,"span",256),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Hd0(n,a){if(1&n&&(e.j41(0,"span",258),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Yd0(n,a){if(1&n&&(e.j41(0,"span",259),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function qd0(n,a){if(1&n&&(e.j41(0,"span",260),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Xd0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",73),e.DNE(4,Gd0,2,1,"span",256)(5,Hd0,2,1)(6,Yd0,2,1)(7,qd0,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1)}}function Wd0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Xd0,8,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._bundle")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._status")," "),e.R7$(3),e.Dyx(c.prodSpecsBundle)}}function Jd0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Qd0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value)," ")}}function Zd0(n,a){if(1&n&&e.DNE(0,Jd0,1,1)(1,Qd0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Kd0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ef0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function cf0(n,a){if(1&n&&e.DNE(0,Kd0,4,2)(1,ef0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function nf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function lf0(n,a){if(1&n&&e.DNE(0,tf0,1,1)(1,nf0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function sf0(n,a){if(1&n&&e.DNE(0,Zd0,2,1)(1,cf0,2,1)(2,lf0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isJsonCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function af0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function of0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function if0(n,a){if(1&n&&e.DNE(0,af0,4,3)(1,of0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function rf0(n,a){if(1&n&&e.DNE(0,sf0,3,1)(1,if0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function df0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",138),e.EFF(4),e.k0s(),e.j41(5,"td",107),e.Z7z(6,rf0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,u8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function ff0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",67),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",65),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,df0,8,10,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.productSpecToCreate?null:c.productSpecToCreate.productSpecCharacteristic)}}function uf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function mf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,uf0,3,5,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._resource")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedResourceSpecs)}}function pf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function hf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,pf0,3,5,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_PROD_SPEC._service")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedServiceSpecs)}}function gf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",69),e.EFF(2),e.k0s(),e.j41(3,"td",107),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,u8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function _f0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,gf0,5,6,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._attachments")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_PROD_SPEC._value")," "),e.R7$(3),e.Dyx(null==c.productSpecToCreate?null:c.productSpecToCreate.attachment)}}function Lf0(n,a){if(1&n&&(e.j41(0,"span",286),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Cf0(n,a){if(1&n&&(e.j41(0,"span",287),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function zf0(n,a){if(1&n&&(e.j41(0,"span",288),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function Mf0(n,a){if(1&n&&(e.j41(0,"span",289),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.productSpec.lifecycleStatus)}}function xf0(n,a){if(1&n&&(e.j41(0,"tr",68)(1,"td",73),e.EFF(2),e.k0s(),e.j41(3,"td",69),e.EFF(4),e.k0s(),e.j41(5,"td",70),e.DNE(6,Lf0,2,1,"span",286)(7,Cf0,2,1)(8,zf0,2,1)(9,Mf0,2,1),e.k0s(),e.j41(10,"td",72),e.EFF(11),e.nI1(12,"date"),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(8,u8,t.hasLongWord(c.productSpec.name,20),!t.hasLongWord(c.productSpec.name,20))),e.R7$(),e.SpI(" ",c.productSpec.name," "),e.R7$(2),e.vxM(6,"Active"==c.productSpec.lifecycleStatus?6:"Launched"==c.productSpec.lifecycleStatus?7:"Retired"==c.productSpec.lifecycleStatus?8:"Obsolete"==c.productSpec.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",e.i5U(12,5,c.productSpec.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function bf0(n,a){if(1&n&&(e.j41(0,"label",143),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",63)(5,"thead",64)(6,"tr")(7,"th",65),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",65),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",66),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",67),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,xf0,13,11,"tr",68,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,5,"CREATE_PROD_SPEC._relationships")),e.R7$(7),e.SpI(" ",e.bMT(9,7,"CREATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"CREATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"CREATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function yf0(n,a){if(1&n&&(e.j41(0,"div",274)(1,"div")(2,"label",143),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",275),e.EFF(6),e.k0s(),e.j41(7,"label",38),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",276),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",143),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",275),e.EFF(17),e.k0s(),e.DNE(18,Pd0,5,4),e.k0s()(),e.j41(19,"div",277)(20,"label",278),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,jd0,2,1,"span",279)(24,$d0,2,1)(25,Od0,2,1)(26,Bd0,2,1),e.k0s(),e.DNE(27,Vd0,5,8)(28,Ud0,5,4)(29,Wd0,16,9)(30,ff0,19,12)(31,mf0,13,6)(32,hf0,13,6)(33,_f0,16,9)(34,bf0,22,15)),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,19,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(27,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.name,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.name," "),e.R7$(2),e.JRh(e.bMT(9,21,"CREATE_PROD_SPEC._product_version")),e.R7$(3),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.version," "),e.R7$(3),e.JRh(e.bMT(15,23,"CREATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",e.l_i(30,u8,c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.brand,20),!c.hasLongWord(null==c.productSpecToCreate?null:c.productSpecToCreate.brand,20))),e.R7$(),e.SpI(" ",null==c.productSpecToCreate?null:c.productSpecToCreate.brand," "),e.R7$(),e.vxM(18,""!=(null==c.productSpecToCreate?null:c.productSpecToCreate.productNumber)?18:-1),e.R7$(3),e.JRh(e.bMT(22,25,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(23,"Active"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?23:"Launched"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?24:"Retired"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?25:"Obsolete"==(null==c.productSpecToCreate?null:c.productSpecToCreate.lifecycleStatus)?26:-1),e.R7$(4),e.vxM(27,""!=(null==c.productSpecToCreate?null:c.productSpecToCreate.description)?27:-1),e.R7$(),e.vxM(28,""!=c.imgPreview?28:-1),e.R7$(),e.vxM(29,c.prodSpecsBundle.length>0?29:-1),e.R7$(),e.vxM(30,c.prodChars.length>0?30:-1),e.R7$(),e.vxM(31,c.selectedResourceSpecs.length>0?31:-1),e.R7$(),e.vxM(32,c.selectedServiceSpecs.length>0?32:-1),e.R7$(),e.vxM(33,c.prodAttachments.length>0?33:-1),e.R7$(),e.vxM(34,c.prodRelationships.length>0?34:-1)}}function Ff0(n,a){if(1&n&&(e.j41(0,"div",22),e.DNE(1,Id0,6,0,"div",273)(2,yf0,35,33),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function vf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",290),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createProduct())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",c.isStepDisabled()||c.loading)("ngClass",c.loading||c.isStepDisabled()?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_PROD_SPEC._create_prod")," ")}}function kf0(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",128),e.nrm(1,"path",129),e.k0s(),e.joV(),e.j41(2,"p",301),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",302),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI("",e.bMT(4,2,"CREATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(7,4,"CREATE_PROD_SPEC._select_files")))}function wf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",31)(1,"div",291),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",292)(3,"button",293),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",294),e.nrm(5,"path",295),e.k0s(),e.joV(),e.j41(6,"span",57),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",296),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.dropped(l,i.selectedISO))})("onFileOver",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileLeave(l))}),e.DNE(10,kf0,8,6,"ng-template",297),e.k0s(),e.j41(11,"div",298)(12,"button",299),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",300),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.uploadFile())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showUploadFile?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,4,"CREATE_PROD_SPEC._close_modal")),e.R7$(6),e.SpI(" ",e.bMT(14,6,"CREATE_PROD_SPEC._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(17,8,"CREATE_PROD_SPEC._upload")," ")}}function Sf0(n,a){if(1&n&&e.nrm(0,"error-message",32),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Nf0=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}get dspEnable(){return g1.c.DSP_ENABLED&&this.DATA_SPACE_ENABLED}constructor(c,t,l,i,u,C,b,T){this.prodSpecService=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.attachmentService=u,this.servSpecService=C,this.resSpecService=b,this.paginationService=T,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=g1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.showGeneral=!0,this.showBundle=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.generalDone=!1,this.bundleDone=!1,this.complianceDone=!1,this.charsDone=!1,this.resourceDone=!1,this.serviceDone=!1,this.attachDone=!1,this.relationshipDone=!1,this.finishDone=!1,this.stepsElements=["general-info","bundle","compliance","chars","resource","service","attach","relationships","summary"],this.stepsCircles=["general-circle","bundle-circle","compliance-circle","chars-circle","resource-circle","service-circle","attach-circle","relationships-circle","summary-circle"],this.currentStepIdx=0,this.highestStepIdx=0,this.steps=[],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),brand:new p.MJ("",[p.k0.required,O3]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5)),dspCompatible:new p.MJ(!1)}),this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="",this.endpointUrls=[],this.transferTypes=["HttpData-PULL","HttpData-PUSH"],this.dspConfigForm=new p.gE({upstreamAddress:new p.MJ("",[p.k0.required]),transferPath:new p.MJ(""),transferType:new p.MJ("HttpData-PULL",[p.k0.required]),targetSpecification:new p.MJ("",[p.k0.required,D5]),serviceConfiguration:new p.MJ("",[p.k0.required,D5]),credentialsConfig:new p.MJ("",[p.k0.required,D5]),policyConfig:new p.MJ("",[p.k0.required,D5])}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(500)])}),this.charTypeSelected="string",this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.prodChars=[],this.finishChars=[],this.creatingChars=[],this.showCreateChar=!1,this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.prodSpecsBundle=[],this.buttonISOClicked=!1,this.availableISOS=[],this.selectedISOS=[],this.additionalISOS=[],this.showUploadFile=!1,this.disableCompNext=!0,this.showUploadAtt=!1,this.isoToCreate="",this.showCert=!1,this.serviceSpecPage=0,this.serviceSpecPageCheck=!1,this.loadingServiceSpec=!1,this.loadingServiceSpec_more=!1,this.serviceSpecs=[],this.nextServiceSpecs=[],this.selectedServiceSpecs=[],this.resourceSpecPage=0,this.resourceSpecPageCheck=!1,this.loadingResourceSpec=!1,this.loadingResourceSpec_more=!1,this.resourceSpecs=[],this.nextResourceSpecs=[],this.selectedResourceSpecs=[],this.prodRelationships=[],this.showCreateRel=!1,this.prodSpecRelPage=0,this.prodSpecRelPageCheck=!1,this.loadingprodSpecRel=!1,this.loadingprodSpecRel_more=!1,this.prodSpecRels=[],this.nextProdSpecRels=[],this.selectedProdSpec={id:""},this.selectedRelType="migration",this.showImgPreview=!1,this.showNewAtt=!1,this.imgPreview="",this.prodAttachments=[],this.attachToCreate={url:"",attachmentType:""},this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.certFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.dataSpaceCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.dataSpaceJsonCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let W=0;W{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showUploadFile&&(this.showUploadFile=!1,this.cdr.detectChanges())}ngOnInit(){this.steps=this.getFormSteps(),console.log(this.steps),this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerProductSpec(!0)}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.bundlePageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const t=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.prodSpecsBundle.splice(t,1)):(console.log("a\xf1adir"),this.prodSpecsBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}isProdInBundle(c){return-1!==this.prodSpecsBundle.findIndex(l=>l.id===c.id)}toggleCompliance(){this.selectStep("compliance","compliance-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!0,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}addISO(c){const t=this.availableISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("seleccionar"),this.availableISOS.splice(t,1),this.selectedISOS.push({name:"Compliance:"+c.name,url:"",mandatory:c.mandatory,domesupported:c.domesupported})),this.buttonISOClicked=!this.buttonISOClicked,this.cdr.detectChanges(),console.log(this.availableISOS),console.log(this.selectedISOS)}removeISO(c){const t=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(i=>i.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:t,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const t=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("eliminar additional cert"),this.additionalISOS.splice(t,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){console.log("remove self att"),console.log(this.selfAtt);const c=this.finishChars.findIndex(t=>t.name===this.selfAtt.name);console.log(c),-1!==c&&(console.log("seleccionar"),this.finishChars.splice(c,1)),this.selfAtt="",this.cdr.detectChanges(),console.log(this.finishChars)}checkValidISOS(){return!!this.selectedISOS.find(t=>""===t.url)}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(u=>{if(console.log("dropped"),u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];console.log("BASE 64...."),console.log(T);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let u1={content:{name:L4()+"_"+u.name,data:T},contentType:u.type,isPublic:!0};if(!this.isValidFilename(u1.content.name))return this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(u.size>this.MAX_FILE_SIZE)return this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if("compliance"===this.currentStep.id&&!this.showUploadAtt){const a1=this.selectedISOS.findIndex(T1=>T1.name===t.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{-1!==a1?(this.selectedISOS[a1].url=T1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=T1.content},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}if("compliance"===this.currentStep.id&&this.showUploadAtt){const a1=this.finishChars.findIndex(T1=>T1.name===this.selfAtt.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{console.log(T1),-1!==a1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:T1.content}],this.finishChars[a1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+L4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:T1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}"attachments"===this.currentStep.id&&(console.log(u),this.attachmentService.uploadFile(u1).subscribe({next:a1=>{console.log(a1),"img"==t?u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=a1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:u.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:a1.content,attachmentType:u.type},this.cdr.detectChanges(),console.log("uploaded")},error:a1=>{console.error("There was an error while uploading!",a1),a1.error.error?(console.log(a1),this.errorMessage="Error: "+a1.error.error):this.errorMessage="There was an error while uploading the file!",413===a1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},C.readAsDataURL(u)}}):console.log(l.relativePath,l.fileEntry)}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){console.log(c)}fileLeave(c){console.log("leave"),console.log(c)}toggleUploadSelfAtt(){this.showUploadFile=!0,this.showUploadAtt=!0}toggleUploadFile(c){this.showUploadFile=!0,this.selectedISO=c}uploadFile(){console.log("uploading...")}toggleChars(){this.selectStep("chars","chars-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!0,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showCreateChar=!1,this.charTypeSelected="string",this.showPreview=!1,this.refreshChars()}toggleCreateCharacteristicForm(){this.showCreateChar=!this.showCreateChar,this.showCreateChar&&(this.charTypeSelected=this.dataSpaceCharacteristicTypes[0],this.creatingChars=[],this.isOptional=!1,this.optionalDftTrue=!1,this.booleanDefaultTrue=!0,"boolean"===this.charTypeSelected&&this.setBooleanDefaultValues())}toggleResource(){this.loadingResourceSpec=!0,this.resourceSpecs=[],this.resourceSpecPage=0,this.getResSpecs(!1),this.selectStep("resource","resource-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!0,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingResourceSpec=!0);let l={filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.resourceSpecPage,t.RES_SPEC_LIMIT,c,t.resourceSpecs,t.nextResourceSpecs,l,t.resSpecService.getResourceSpecByUser.bind(t.resSpecService));t.resourceSpecPageCheck=i.page_check,t.resourceSpecs=i.items,t.nextResourceSpecs=i.nextItems,t.resourceSpecPage=i.page}finally{t.loadingResourceSpec=!1,t.loadingResourceSpec_more=!1}})()}nextRes(){var c=this;return(0,C1.A)(function*(){c.loadingResourceSpec_more=!0,yield c.getResSpecs(!0)})()}addResToSelected(c){const t=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedResourceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedResourceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedResourceSpecs)}isResSelected(c){return-1!==this.selectedResourceSpecs.findIndex(l=>l.id===c.id)}toggleService(){this.loadingServiceSpec=!0,this.serviceSpecs=[],this.serviceSpecPage=0,this.getServSpecs(!1),this.selectStep("service","service-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!0,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingServiceSpec=!0),t.paginationService.getItemsPaginated(t.serviceSpecPage,t.SERV_SPEC_LIMIT,c,t.serviceSpecs,t.nextServiceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.serviceSpecPageCheck=i.page_check,t.serviceSpecs=i.items,t.nextServiceSpecs=i.nextItems,t.serviceSpecPage=i.page,t.loadingServiceSpec=!1,t.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,C1.A)(function*(){yield c.getServSpecs(!0)})()}addServToSelected(c){const t=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedServiceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedServiceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedServiceSpecs)}isServSelected(c){return-1!==this.selectedServiceSpecs.findIndex(l=>l.id===c.id)}toggleAttach(){this.selectStep("attach","attach-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!0,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(t=>t.url===this.imgPreview);-1!==c&&(console.log("eliminar"),this.prodAttachments.splice(c,1)),this.imgPreview="",this.cdr.detectChanges()}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:"Picture"}),this.attImageName.reset(),this.cdr.detectChanges()}removeAtt(c){const t=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==t&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[t].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(t,1)),this.cdr.detectChanges()}saveAtt(){console.log("saving"),this.prodAttachments.push({name:this.attachName.nativeElement.value,url:this.attachToCreate.url,attachmentType:this.attachToCreate.attachmentType}),this.attachName.nativeElement.value="",this.attachToCreate={url:"",attachmentType:""},this.showNewAtt=!1,this.attFileName.reset()}clearAtt(){this.attachToCreate={url:"",attachmentType:""}}saveAdditionalCert(){console.log("saving"),this.additionalISOS.push({name:"Compliance:"+this.certificationName.nativeElement.value,url:this.isoToCreate}),this.certificationName.nativeElement.value="",this.isoToCreate="",this.certFileName.reset(),this.showCert=!1}clearAdditionalCert(c){c||(this.certificationName.nativeElement.value="",this.certFileName.reset()),this.isoToCreate=""}toggleRelationship(){this.prodSpecRels=[],this.prodSpecRelPage=0,this.showCreateRel=!1,this.loadingprodSpecRel=!0,this.getProdSpecsRel(!1),this.selectStep("relationships","relationships-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}getProdSpecsRel(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingprodSpecRel=!0),t.paginationService.getItemsPaginated(t.prodSpecRelPage,t.PROD_SPEC_LIMIT,c,t.prodSpecRels,t.nextProdSpecRels,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecRelPageCheck=i.page_check,t.prodSpecRels=i.items,t.nextProdSpecRels=i.nextItems,t.prodSpecRelPage=i.page,t.loadingprodSpecRel=!1,t.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecsRel(!0)})()}onRelChange(c){console.log("relation type changed"),this.selectedRelType=c.target.value}saveRel(){this.showCreateRel=!1,this.prodRelationships.push({id:this.selectedProdSpec.id,href:this.selectedProdSpec.href,relationshipType:this.selectedRelType,productSpec:this.selectedProdSpec}),this.selectedRelType="migration",console.log(this.prodRelationships)}deleteRel(c){const t=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==t&&(console.log("eliminar"),this.prodRelationships.splice(t,1)),this.cdr.detectChanges()}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.creatingChars=[]}setBooleanDefaultValues(){this.creatingChars=[{isDefault:this.booleanDefaultTrue,value:!0},{isDefault:!this.booleanDefaultTrue,value:!1}]}onBooleanDefaultChange(){"boolean"==this.charTypeSelected&&this.setBooleanDefaultValues()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u!t.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(t=>this.isDataSpaceCharacteristicType(t.valueType)):c.filter(t=>!this.isDataSpaceCharacteristicType(t.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?"credentialsConfiguration":"string"}getFormSteps(){const c=[{label:"General Info",id:"general"}];return this.BUNDLE_ENABLED&&c.push({label:"Bundle",id:"bundle"}),c.push({label:"Compliance profile",id:"compliance"}),c.push({label:"Characteristics",id:"characteristics"}),this.DATA_SPACE_ENABLED&&c.push({label:"Dataspace Configuration",id:"dataspace"}),c.push({label:"Resource specifications",id:"resource"}),c.push({label:"Service specifications",id:"service"}),c.push({label:"Attachments",id:"attachments"}),c.push({label:"Relationships",id:"relationships"}),c.push({label:"Summary",id:"summary"}),c}getSchemaLocationForType(c){return"credentialsConfiguration"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json":"authorizationPolicy"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json":null}addCharValue(){if(this.isTextCharacteristicType(this.charTypeSelected))console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue="";else if("number"==this.charTypeSelected)console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue="";else if("range"==this.charTypeSelected){if(console.log("range"),Number(this.fromValue)>=Number(this.toValue))return console.log("range validation error: valueFrom >= valueTo"),this.errorMessage='Invalid range: "From" value must be less than "To" value',this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})}else if(this.isJsonCharacteristicType(this.charTypeSelected)){if(this.creatingChars.length>0)return this.errorMessage="Only one JSON value is allowed",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);try{const c=JSON.parse(this.jsonValue);this.creatingChars.push({isDefault:!0,value:c}),this.jsonValue=""}catch{return this.errorMessage="Invalid JSON format",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)}}else{if("boolean"==this.charTypeSelected)return void console.log("boolean values are fixed");console.log("nothing")}}removeCharValue(c,t){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(t,1),console.log(this.creatingChars))}selectDefaultChar(c,t){for(let l=0;li.name===this.charsForm.value.name))return console.log("name duplicated error"),this.errorMessage="Cannot save duplicated name in characteristics",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);const c={id:"urn:ngsi-ld:characteristic:"+L4(),name:this.charsForm.value.name,description:null!=this.charsForm.value.description?this.charsForm.value.description:"",productSpecCharacteristicValue:this.creatingChars},t=this.getSchemaLocationForType(this.charTypeSelected),l=["string","number","boolean","range"];l.includes(this.charTypeSelected)||(c.valueType=this.charTypeSelected),t&&(c["@schemaLocation"]=t),this.prodChars.push(c),this.isOptional&&l.includes(this.charTypeSelected)&&"boolean"!==this.charTypeSelected&&this.prodChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.charsForm.value.name+" - enabled",description:"Optional toggle for "+this.charsForm.value.name,productSpecCharacteristicValue:[{isDefault:this.optionalDftTrue,value:!0},{isDefault:!this.optionalDftTrue,value:!1}]})}this.charsForm.reset(),this.creatingChars=[],this.showCreateChar=!1,this.charTypeSelected="string",this.isOptional=!1,this.optionalDftTrue=!1,this.refreshChars(),this.cdr.detectChanges()}deleteChar(c){const t=this.prodChars.findIndex(l=>l.id===c.id);if(-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(i=>i.name===c.name+" - enabled");-1!==l&&(console.log("eliminar related enabled"),this.prodChars.splice(l,1))}this.cdr.detectChanges(),console.log(this.prodChars)}checkInput(c){return 0===c.trim().length}showFinish(){this.relationshipDone=!0,this.finishDone=!0,this.finishChars=[],console.log("--- set product data"),console.log(this.prodChars);for(let t=0;ti.name===this.prodChars[t].name)){const i=this.prodChars[t]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(C=>C.name===i)&&"Compliance:SelfAtt"!=this.prodChars[t].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[t].name),-1!=this.additionalISOS.findIndex(b=>b.name===i)&&this.finishChars.push(this.prodChars[t]),this.prodChars[t].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[t])):this.finishChars.push(this.prodChars[t])}for(let t=0;ti.name===this.selectedISOS[t].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.selectedISOS[t].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[t].url}]});for(let t=0;ti.name===this.additionalISOS[t].name)&&this.finishChars.push({id:"urn:ngsi-ld:characteristic:"+L4(),name:this.additionalISOS[t].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[t].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const t="Compliance:SelfAtt",l=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,i=this.finishChars.findIndex(b=>b.name===t),C={id:this.selfAtt?.id?this.selfAtt.id:-1!==i&&this.finishChars[i]?.id?this.finishChars[i].id:`urn:ngsi-ld:characteristic:${L4()}`,name:t,productSpecCharacteristicValue:[{isDefault:!0,value:l}]};-1===i?this.finishChars.push(C):this.finishChars[i]=C}let c=[];for(let t=0;t{this.productSpecToCreate.productSpecCharacteristic.push({id:L4(),description:l.description,valueType:"endpointUrl",name:l.name,productSpecCharacteristicValue:[{value:l.url,isDefault:!0}]})});const t=this.dspConfigForm.value;this.productSpecToCreate.productSpecCharacteristic.push({id:"upstreamAddress",name:"Address of the upstream serving the data",valueType:"upstreamAddress",productSpecCharacteristicValue:[{value:t.upstreamAddress,isDefault:!0}]},{id:"targetSpecification",name:"Detailed specification of the ODRL target. Allows to over services via OID4VC",valueType:"targetSpecification",productSpecCharacteristicValue:[{value:JSON.parse(t.targetSpecification),isDefault:!0}]},{id:"serviceConfiguration",name:"Service config to be used in the credentials config service when provisioning transfers through OID4VC",valueType:"serviceConfiguration",productSpecCharacteristicValue:[{value:JSON.parse(t.serviceConfiguration),isDefault:!0}]},{id:"credentialsConfig",name:"Credentials Config",valueType:"credentialsConfig","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(t.credentialsConfig),isDefault:!0}]},{id:"policyConfig",name:"Policy for creation of K8S clusters.",valueType:"authorizationPolicy","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(t.policyConfig),isDefault:!0}]},{id:"transferType",name:"transferType",valueType:"transferType",productSpecCharacteristicValue:[{value:t.transferType,isDefault:!0}]}),t.transferPath&&this.productSpecToCreate.productSpecCharacteristic.push({id:"transferPath",name:"transferPath",valueType:"transferPath",productSpecCharacteristicValue:[{value:t.transferPath,isDefault:!0}]})}console.log("PRODUCTO A CREAR:"),console.log(this.productSpecToCreate),console.log(this.imgPreview),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!0,this.showPreview=!1,this.refreshChars()}createProduct(){this.loading=!0,this.prodSpecService.postProdSpec(this.productSpecToCreate).subscribe({next:c=>{this.loading=!1,this.goBack()},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the product!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}addBold(){this.generalForm.patchValue({description:this.generalForm.value.description+" **bold text** "})}addItalic(){this.generalForm.patchValue({description:this.generalForm.value.description+" _italicized text_ "})}addList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n`code`"})}addCodeBlock(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n> blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getValuePreview(c,t=80){if(null==c)return"";let l="";if("string"==typeof c)l=c;else try{l=JSON.stringify(c)}catch{l=String(c)}return l.length>t?`${l.slice(0,t)}...`:l}goToStep(c){c>this.currentStepIdx&&!this.validateCurrentStep()||("general"===this.currentStep.id&&this.dspEnable&&(this.generalForm.value.dspCompatible?(this.addStepAfter({label:"DSP Config",id:"dsp_config"},"characteristics"),this.removeStep("dataspace")):(this.removeStep("dsp_config"),this.addStepAfter({label:"Dataspace Configuration",id:"dataspace"},"characteristics"))),this.currentStepIdx=c,this.currentStepIdx>this.highestStepIdx&&(this.highestStepIdx=c),this.refreshChars(),"compliance"===this.currentStep.id&&setTimeout(()=>{D2()},100),"resource"===this.currentStep.id&&this.getResSpecs(!1),"service"===this.currentStep.id&&this.getServSpecs(!1),"attachments"===this.currentStep.id&&setTimeout(()=>{D2()},100),"relationships"===this.currentStep.id&&this.getProdSpecsRel(!1),"summary"===this.currentStep.id&&this.showFinish())}validateCurrentStep(){switch(this.currentStep.id){case"general":return this.generalForm?.valid||!1;case"dsp_config":return this.endpointUrls.length>0&&this.dspConfigForm.valid;default:return!0}}isStepDisabled(){switch(this.currentStep.id){case"general":return!this.generalForm?.valid||!1;case"bundle":return this.prodSpecsBundle.length<2&&this.bundleChecked;case"compliance":return this.checkValidISOS();case"dsp_config":return 0===this.endpointUrls.length;default:return!1}}addEndpointUrl(){const c=this.newEndpointUrl.trim(),t=this.newEndpointDescription.trim(),l=this.newEndpointName.trim();!c||!t||!l||(this.endpointUrls=[...this.endpointUrls,{url:c,description:t,name:l}],this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="")}removeEndpointUrl(c){this.endpointUrls=this.endpointUrls.filter((t,l)=>l!==c)}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStepIdx||this.generalForm?.valid&&c<=this.highestStepIdx}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}addStepAfter(c,t){if(t||this.steps.push(c),this.steps.some(u=>u.id===c.id))return;const i=this.steps.findIndex(u=>u.id===t);this.steps=[...this.steps.slice(0,i+1),c,...this.steps.slice(i+1)]}removeStep(c){const t=this.steps.findIndex(l=>l.id===c);-1!==t&&(this.currentStepIdx>=t&&(this.currentStepIdx=t-1),this.highestStepIdx>=t&&(this.highestStepIdx=t-1),this.steps=this.steps.filter(l=>l.id!==c))}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-product-spec"]],viewQuery:function(t,l){if(1&t&&(e.GBs(Ho0,5),e.GBs(Yo0,5),e.GBs(qo0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.attachName=i.first),e.mGM(i=e.lsd())&&(l.imgURL=i.first),e.mGM(i=e.lsd())&&(l.certificationName=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:50,vars:38,consts:[["certificationName",""],["imgURL",""],["attachName",""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:pb-8"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"m-4"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","btnNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","btnCreateProduct",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],["id","upload-file-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputVersion","formControlName","version","type","text","id","prod-version",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-brand",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputBrand","formControlName","brand","type","text","id","prod-brand",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-number",1,"font-bold","text-lg","dark:text-white"],["data-cy","inputIdNumber","formControlName","number","type","text","id","prod-number",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"col-span-2","flex","items-center","h-fit"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],["for","dsp-compatible",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","dsp-compatible","formControlName","dspCompatible",1,"sr-only","peer"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],["type","checkbox",1,"sr-only","peer",3,"change","checked"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","lg:table-cell","px-6","py-4"],[1,"px-6","py-4"],["id","select-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","ml-4"],[1,"flex","items-center","justify-between","ml-4","border","border-1","p-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md"],[1,"mb-2","text-gray-800","dark:text-gray-200"],[1,"flex","items-center","justify-between"],["data-cy","productSpecUploadFirst","type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 5v9m-5 0H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2M8 9l4-5 4 5m1 8h.01"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","m-4"],[1,"flex","justify-center","w-full","m-4","dark:bg-secondary-300"],[1,"relative","flex","w-full","justify-end","ml-4"],[1,"relative","inline-block","group"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2\n bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50\n transition-opacity duration-200 w-max max-w-xs whitespace-normal break-words\n opacity-0 invisible group-hover:opacity-100 group-hover:visible",4,"ngIf"],[1,"flex","w-full","justify-items-center","justify-center"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["id","dropdownButtonISO","data-dropdown-toggle","dropdownISO","type","button",1,"text-white","w-full","m-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","justify-between",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],["id","dropdownISO",1,"z-10","w-full","ml-4","mr-4","bg-secondary-50","dark:bg-secondary-300","divide-y","divide-gray-100","rounded-lg","shadow"],["aria-labelledby","dropdownButtonISO",1,"p-3","space-y-3","text-sm","text-gray-700"],["for","checkbox-item-1",1,"ms-2","text-sm",3,"ngClass"],["data-cy","productSpecCharAddISO","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","18","height","18","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4","inline-flex"],["data-cy","productSpecUploadSecond","type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["data-cy","productSpecDeleteCompliance","type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50","transition-opacity","duration-200","w-max","max-w-xs","whitespace-normal","break-words","opacity-0","invisible","group-hover:opacity-100","group-hover:visible"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],[1,"m-4","w-full"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","rounded-lg","p-4"],[1,"h-fit"],["for","cert-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","cert-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],["dropZoneLabel","Drop files here",1,"p-4","w-full"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["type","button",1,"flex","ml-4","text-gray-900","justify-end","bg-gray-400","hover:bg-primary-50","focus:ring-4","focus:outline-none","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["dropZoneLabel","Drop files here",1,"p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["role","alert",1,"relative","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-wrap","break-all"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["data-cy","btnNewCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["data-cy","charName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","charType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","charDescription","id","description","formControlName","description","rows","4","maxLength","500",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],["data-cy","btnSaveCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["value","credentialsConfiguration"],["value","authorizationPolicy"],["value","string"],["value","number"],["value","range"],["value","boolean"],[1,"col-span-2","flex","align-items-middle","h-fit"],["for","is-optional",1,"font-bold","text-lg","dark:text-white"],["type","checkbox","id","is-optional",1,"sr-only","peer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","charStringValue","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddStringValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","charNumberValue","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charNumberUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddNumberValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["for","boolean-default",1,"font-bold","text-lg","dark:text-white"],["data-cy","charBooleanDefault","id","boolean-default","type","checkbox",1,"sr-only","peer",3,"ngModelChange","change","ngModel","ngModelOptions"],["data-cy","charRangeFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charRangeTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","charRangeUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","btnAddRangeValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],[1,"flex","flex-col","w-full"],["for","json-value",1,"font-bold","text-sm","dark:text-white","mb-2"],["id","json-value","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","mr-2","text-white"],["data-cy","tableResourceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],["data-cy","tableServiceSpecs",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","mb-4"],[1,"flex","flex-col","gap-2"],[1,"flex","gap-4"],[1,"flex","flex-col","w-1/2"],["data-cy","dspEndpointName","type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["data-cy","dspEndpointUrl","type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["data-cy","dspEndpointDescription","rows","3","maxlength","100000",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],[1,"flex","justify-center"],["data-cy","dspAddEndpoint","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","ml-2","text-white"],[1,"mt-2","text-sm","text-red-500"],[1,"my-6","border-gray-200","dark:border-gray-700"],[1,"flex","flex-col","gap-4",3,"formGroup"],[1,"w-3/6"],["data-cy","dspUpstreamAddress","formControlName","upstreamAddress","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"w-2/6"],["data-cy","dspTransferPath","formControlName","transferPath","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspTransferType","formControlName","transferType",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["data-cy","dspTargetSpecification","formControlName","targetSpecification","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspServiceConfiguration","formControlName","serviceConfiguration","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspCredentialsConfig","formControlName","credentialsConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","dspPolicyConfig","formControlName","policyConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"table-fixed","w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],["scope","col",1,"w-96","px-6","py-3"],["scope","col",1,"w-48","px-2","py-3","text-center"],[1,"px-6","py-4","break-all"],[1,"px-6","py-4","break-words"],[1,"px-2","py-4","text-center"],[1,"mt-1","text-sm","text-red-500"],[1,"inline-flex"],[1,"text-lg","font-bold","ml-4","dark:text-white"],[1,"ml-4","flex"],["data-popover-target","popover-default","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["data-popover","","id","popover-default","role","tooltip",1,"absolute","z-10","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"flex","justify-center","w-full","ml-6","mt-2","mb-2","mr-4"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],["data-cy","productSpecAttachSelectFile",1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],["data-cy","productSpecAddNewAttachment","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","dark:border-secondary-200","rounded-lg","p-4"],["for","att-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","att-name",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],[1,"flex","justify-center","w-full","mb-4"],[1,"bg-blue-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],["data-cy","productSpecDeleteRelationship",1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],[1,"bg-blue-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["data-cy","productSpecAddRelationship","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","migration"],["value","dependency"],["value","exclusivity"],["value","substitution"],["data-cy","productSpecSaveRelationship","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-6","py-4","hidden","md:table-cell"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"mb-4","md:grid","md:grid-cols-2","gap-4"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","dark:bg-secondary-300","border","dark:border-secondary-200"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"bg-blue-100","dark:bg-secondary-200","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-200","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-200","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-200","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["data-cy","btnCreateProduct",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["dropZoneLabel","Drop files here",1,"m-4","p-4",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[1,"flex","justify-center","items-center","space-x-4"],["data-cy","productSpecCancelUpload","type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["data-cy","productSpecConfirmUpload","type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","hover:bg-primary-50","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click"],[1,"text-gray-500","mr-4"],["data-cy","productSpecSelectFile",1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"h2",16),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",17),e.Z7z(22,Jo0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,Zo0,24,20,"form",20)(27,pi0,8,5)(28,Si0,35,19)(29,mr0,4,2)(30,vr0,4,2)(31,$r0,4,2)(32,td0,67,43,"div",21)(33,hd0,26,15)(34,Ad0,5,2,"div",21)(35,Ff0,3,1,"div",22),e.k0s(),e.j41(36,"div",23)(37,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStepIdx-1)}),e.qSk(),e.j41(38,"svg",25),e.nrm(39,"path",26),e.k0s(),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.joV(),e.j41(42,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStepIdx+1)}),e.EFF(43),e.nI1(44,"translate"),e.qSk(),e.j41(45,"svg",28),e.nrm(46,"path",29),e.k0s()(),e.DNE(47,vf0,3,5,"button",30),e.k0s()()()(),e.DNE(48,wf0,18,10,"div",31)(49,Sf0,1,1,"error-message",32)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,22,"CREATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,24,"CREATE_PROD_SPEC._create")),e.R7$(4),e.SpI("",e.bMT(20,26,"CREATE_PROD_SPEC._new")," "),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,"general"===l.currentStep.id?26:-1),e.R7$(),e.vxM(27,"bundle"===l.currentStep.id?27:-1),e.R7$(),e.vxM(28,"compliance"===l.currentStep.id?28:-1),e.R7$(),e.vxM(29,"characteristics"===l.currentStep.id||"dataspace"===l.currentStep.id?29:-1),e.R7$(),e.vxM(30,"resource"===l.currentStep.id?30:-1),e.R7$(),e.vxM(31,"service"===l.currentStep.id?31:-1),e.R7$(),e.vxM(32,"dsp_config"===l.currentStep.id?32:-1),e.R7$(),e.vxM(33,"attachments"===l.currentStep.id?33:-1),e.R7$(),e.vxM(34,"relationships"===l.currentStep.id?34:-1),e.R7$(),e.vxM(35,"summary"===l.currentStep.id?35:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStepIdx)("ngClass",e.l_i(32,Xo0,0!==l.currentStepIdx,0===l.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(41,28,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStepIdx===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())("ngClass",e.l_i(35,Wo0,l.currentStepIdx!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStepIdx)),l.currentStepIdx===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStepIdx))),e.R7$(),e.SpI(" ",e.bMT(44,30,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(47,"summary"===l.currentStep.id?47:-1),e.R7$(),e.vxM(48,l.showUploadFile?48:-1),e.R7$(),e.vxM(49,l.showError?49:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.R_,p.vS,p.l_,p.j4,p.JD,z0,R4,N0,me,E0,_.vh,s1.D9],styles:[".floating-div[_ngcontent-%COMP%]{position:relative;top:-50px;left:50%;transform:translate(-50%);padding:10px;border-radius:5px}.disabled[_ngcontent-%COMP%]{cursor:not-allowed}"]})}}return n})();const Ef0=(n,a)=>a.id,Df0=(n,a)=>({"break-all":n,"break-words":a});function Tf0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Rf0(n,a){if(1&n&&(e.j41(0,"span",47),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Af0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function If0(n,a){if(1&n&&(e.j41(0,"span",54),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Pf0(n,a){if(1&n&&(e.j41(0,"span",55),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jf0(n,a){1&n&&(e.j41(0,"span",49),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._bundle")))}function $f0(n,a){1&n&&(e.j41(0,"span",47),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"OFFERINGS._simple")))}function Of0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",43)(1,"td",45),e.EFF(2),e.k0s(),e.j41(3,"td",46),e.DNE(4,Rf0,2,1,"span",47)(5,Af0,2,1)(6,If0,2,1)(7,Pf0,2,1),e.k0s(),e.j41(8,"td",48),e.DNE(9,jf0,3,3,"span",49)(10,$f0,3,3),e.k0s(),e.j41(11,"td",50),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",46)(15,"button",51),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(16,"svg",52),e.nrm(17,"path",53),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(8,Df0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,1==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Bf0(n,a){1&n&&(e.j41(0,"div",44)(1,"div",56),e.qSk(),e.j41(2,"svg",57),e.nrm(3,"path",58),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function Vf0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",59)(1,"button",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",61),e.nrm(5,"path",9),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function Uf0(n,a){if(1&n&&e.DNE(0,Vf0,6,3,"div",59),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function Gf0(n,a){1&n&&(e.j41(0,"div",62),e.qSk(),e.j41(1,"svg",31),e.nrm(2,"path",32)(3,"path",33),e.k0s(),e.joV(),e.j41(4,"span",34),e.EFF(5,"Loading..."),e.k0s()())}function Hf0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",36)(2,"table",37)(3,"thead",38)(4,"tr")(5,"th",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",39),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",40),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",41),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"th",39),e.EFF(18),e.nI1(19,"translate"),e.k0s()()(),e.j41(20,"tbody",42),e.Z7z(21,Of0,18,11,"tr",43,Ef0,!1,Bf0,7,3,"div",44),e.k0s()()(),e.DNE(24,Uf0,1,1)(25,Gf0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,7,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,9,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,11,"OFFERINGS._type")," "),e.R7$(3),e.SpI(" ",e.bMT(16,13,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(19,15,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.prodSpecs),e.R7$(3),e.vxM(24,c.loading_more?25:24)}}let Yf0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.prodSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.faSparkles=A2.p7g,this.searchField=new p.MJ,this.prodSpecs=[],this.nextProdSpecs=[],this.page=0,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.isBundle=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getProdSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initProdSpecs()})}ngOnInit(){this.initProdSpecs();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initProdSpecs(){this.loading=!0,this.prodSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getProdSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateProductSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateProductSpec(c)}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:t.status,partyId:t.partyId,sort:t.sort,isBundle:t.isBundle},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.page_check=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}next(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getProdSpecs(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getProdSpecs(!1)}onTypeChange(c){this.isBundle="simple"!=c.target.value&&("bundle"==c.target.value||void 0),this.getProdSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-product-spec"]],decls:56,vars:32,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","lg:mb-0","lg:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createProdSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"hidden","lg:block","pl-2","pr-2"],[1,"block","lg:hidden","pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"px-6","py-3","hidden","md:table-cell"],["scope","col",1,"px-6","py-3","hidden","lg:table-cell"],["data-cy","prodSpecTable"],["data-cy","prodSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"px-6","py-4","hidden","md:table-cell"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"px-6","py-4","hidden","lg:table-cell"],["data-cy","productSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"p",7),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.qSk(),e.j41(15,"svg",8),e.nrm(16,"path",9),e.k0s()()()(),e.joV(),e.j41(17,"div",10)(18,"div",11)(19,"div",12),e.nrm(20,"fa-icon",13),e.j41(21,"h2",14),e.EFF(22),e.nI1(23,"translate"),e.k0s()(),e.j41(24,"button",15),e.EFF(25),e.nI1(26,"translate"),e.qSk(),e.j41(27,"svg",16),e.nrm(28,"path",17),e.k0s()(),e.joV(),e.j41(29,"div",18)(30,"h6",19),e.EFF(31),e.nI1(32,"translate"),e.k0s(),e.j41(33,"ul",20)(34,"li",21)(35,"input",22),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(36,"label",23),e.EFF(37),e.nI1(38,"translate"),e.k0s()(),e.j41(39,"li",21)(40,"input",24),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(41,"label",25),e.EFF(42),e.nI1(43,"translate"),e.k0s()(),e.j41(44,"li",21)(45,"input",26),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(46,"label",27),e.EFF(47),e.nI1(48,"translate"),e.k0s()(),e.j41(49,"li",21)(50,"input",28),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(51,"label",29),e.EFF(52),e.nI1(53,"translate"),e.k0s()()()()()()(),e.DNE(54,Tf0,6,0,"div",30)(55,Hf0,26,17),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,12,"OFFERINGS._prod_spec")),e.R7$(5),e.JRh(e.bMT(11,14,"OFFERINGS._add_new_prod")),e.R7$(3),e.JRh(e.bMT(14,16,"OFFERINGS._add_new_prod_short")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(23,18,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(26,20,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(32,22,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(38,24,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(43,26,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(48,28,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(53,30,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(54,l.loading?54:55))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();var qf0=y(8866);const Xf0=(n,a)=>a.type+a.name+a.value;function Wf0(n,a){1&n&&(e.j41(0,"span",27),e.EFF(1,"Not provided"),e.k0s())}function Jf0(n,a){if(1&n&&(e.j41(0,"a",28),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.Y8G("href",c.value,e.B4B),e.R7$(),e.SpI(" ",c.value," ")}}function Qf0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG().$implicit;e.SpI(" ",c.value," ")}}function Zf0(n,a){if(1&n&&(e.j41(0,"tr",15)(1,"td",25),e.EFF(2),e.k0s(),e.j41(3,"td",25),e.EFF(4),e.k0s(),e.j41(5,"td",26),e.DNE(6,Wf0,2,0,"span",27)(7,Jf0,2,2)(8,Qf0,1,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG();e.R7$(2),e.JRh(c.type),e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(6,c.missing?6:t.isHttpUrl(c.value)?7:8)}}function Kf0(n,a){1&n&&(e.j41(0,"tr")(1,"td",29),e.EFF(2," No compliance evidence available. "),e.k0s()())}function eu0(n,a){1&n&&(e.j41(0,"div",20),e.EFF(1," Some information of your organization required for the validation process is missing. Please update you organization profile. "),e.k0s())}function cu0(n,a){if(1&n&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",c.requestValidationError," ")}}let tu0=(()=>{class n{constructor(c,t,l){this.localStorage=c,this.accountService=t,this.prodSpecService=l,this.showModal=!1,this.selectedISOS=[],this.additionalISOS=[],this.requestValidationLoading=!1,this.requestValidationError="",this.organizationInfo=this.getEmptyOrganizationInfo(),this.closeModal=new e.bkB}ngOnChanges(c){!0===c.showModal?.currentValue&&(this.requestValidationError="",this.loadOrganizationInfoFromCurrentSession())}get validationEvidenceRows(){const c=[],t=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value??"";c.push({type:"Self attestation",name:"Self attestation",value:t,missing:!t});for(const l of this.selectedISOS){const i=l?.url??"";c.push({type:"Third-party certification",name:this.normalizeName(l?.name),value:i,missing:!i})}for(const l of this.additionalISOS){const i=l?.url??"";c.push({type:"Additional certification",name:this.normalizeName(l?.name),value:i,missing:!i})}return c}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}isHttpUrl(c){return/^https?:\/\//i.test(c??"")}hasMissingOrganizationInfo(){return[this.organizationInfo.organizationName,this.organizationInfo.organizationVat,this.organizationInfo.organizationAddress,this.organizationInfo.organizationCountry,this.organizationInfo.organizationWebsite,this.organizationInfo.organizationEmail].some(c=>this.isMissing(c))}isMissing(c){return!c||""===c.trim()}submitRequestValidation(){if(!this.hasMissingOrganizationInfo()&&!this.requestValidationLoading){if(!this.productSpec)return void(this.requestValidationError="Product specification information is not available.");this.requestValidationLoading=!0,this.requestValidationError="",this.prodSpecService.requestComplianceCertificate(this.buildRequestPayload(this.productSpec)).subscribe({next:()=>{this.requestValidationLoading=!1,this.closeModal.emit()},error:c=>{console.error("There was an error while requesting validation!",c),this.requestValidationLoading=!1,this.requestValidationError=this.extractErrorMessage(c)}})}}loadOrganizationInfoFromCurrentSession(){var c=this;return(0,C1.A)(function*(){const t=c.getOrganizationPartyId();if(t)try{const l=yield c.accountService.getOrgInfo(t);c.organizationInfo=c.mapOrganizationInfo(l)}catch(l){console.error("There was an error while loading organization info!",l),c.organizationInfo=c.getEmptyOrganizationInfo()}else c.organizationInfo=c.getEmptyOrganizationInfo()})()}getOrganizationPartyId(){const c=this.localStorage.getObject("login_items");return c&&"{}"!==JSON.stringify(c)&&c.logged_as!==c.id?(Array.isArray(c.organizations)?c.organizations:[]).find(i=>i?.id==c.logged_as)?.partyId??"":""}mapOrganizationInfo(c){const t=Array.isArray(c?.contactMedium)?c.contactMedium:[],l=Array.isArray(c?.partyCharacteristic)?c.partyCharacteristic:[],i=Array.isArray(c?.externalReference)?c.externalReference:[],u=t.find(W=>"Email"===W?.mediumType),b=t.find(W=>"PostalAddress"===W?.mediumType)?.characteristic??{},T=this.getPartyCharacteristicValue(l,"country");return{organizationName:c?.tradingName??c?.name??"",organizationVat:this.getOrganizationVat(i),organizationAddress:this.formatPostalAddress(b),organizationCountry:T,organizationWebsite:this.getPartyCharacteristicValue(l,"website"),organizationEmail:u?.characteristic?.emailAddress??""}}getOrganizationVat(c){return c.length?c.find(l=>"idm_id"===(l?.externalReferenceType??"").toLowerCase())?.name??"":""}getPartyCharacteristicValue(c,t){return c.find(i=>i?.name===t)?.value??""}formatPostalAddress(c){return c?[c.street1,c.postCode,c.city,c.stateOrProvince].filter(t=>!!t).join(", "):""}getEmptyOrganizationInfo(){return{organizationName:"",organizationVat:"",organizationAddress:"",organizationCountry:"",organizationWebsite:"",organizationEmail:""}}buildRequestPayload(c){return JSON.parse(JSON.stringify(c))}extractErrorMessage(c){const t=c?.error?.error??c?.error?.message??c?.message;return t?`Error: ${t}`:"Error: there was a problem requesting the validation."}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(z2.s),e.rXU(x0.O),e.rXU(K3))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["request-validation-modal"]],inputs:{showModal:"showModal",productSpec:"productSpec",selfAtt:"selfAtt",selectedISOS:"selectedISOS",additionalISOS:"additionalISOS"},outputs:{closeModal:"closeModal"},features:[e.OA$],decls:70,vars:23,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-500","z-50",2,"opacity","0","pointer-events","none",3,"click"],[1,"w-full","md:w-5/6","lg:w-3/4","xl:w-2/3","h-full","bg-secondary-50","dark:bg-gray-800","p-6","overflow-y-auto","transform","transition-transform","duration-500",2,"transform","translateX(100%)",3,"click"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"sr-only"],[1,"mt-2","mb-5","text-sm","text-gray-500","dark:text-gray-400"],[1,"mb-6"],[1,"mb-2","font-semibold","text-gray-900","dark:text-white"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-4"],[1,"p-4","bg-white","border","rounded-lg","dark:bg-secondary-300",3,"ngClass"],[1,"text-xs","uppercase","text-gray-500","dark:text-gray-300"],[1,"mt-1","text-sm","text-gray-900","dark:text-white","break-all"],["role","alert",1,"mb-6","p-4","text-sm","text-amber-800","rounded-lg","bg-amber-100","dark:bg-amber-900","dark:text-amber-200"],["role","alert",1,"mb-6","p-4","text-sm","text-red-800","rounded-lg","bg-red-100","dark:bg-red-900","dark:text-red-200"],[1,"flex","justify-end","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click","disabled","ngClass"],[1,"px-6","py-4"],[1,"px-6","py-4","break-all"],[1,"font-medium","text-red-600"],["target","_blank",1,"font-medium","text-blue-600","dark:text-blue-500","hover:underline",3,"href"],["colspan","3",1,"px-6","py-4","text-center","text-gray-500","dark:text-gray-300"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.bIt("click",function(){return l.closeModal.emit()}),e.j41(1,"div",1),e.bIt("click",function(u){return u.stopPropagation()}),e.j41(2,"div",2)(3,"h3",3),e.EFF(4,"Request Validation"),e.k0s(),e.j41(5,"button",4),e.bIt("click",function(){return l.closeModal.emit()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.joV(),e.j41(8,"span",7),e.EFF(9,"Close drawer"),e.k0s()()(),e.j41(10,"p",8),e.EFF(11," Requesting a validation will submit your certificates and self attestation to the compliance service for validation. "),e.k0s(),e.j41(12,"div",9)(13,"h4",10),e.EFF(14,"Evidence to be submitted"),e.k0s(),e.j41(15,"div",11)(16,"table",12)(17,"thead",13)(18,"tr")(19,"th",14),e.EFF(20,"Type"),e.k0s(),e.j41(21,"th",14),e.EFF(22,"Name"),e.k0s(),e.j41(23,"th",14),e.EFF(24,"Document"),e.k0s()()(),e.j41(25,"tbody"),e.Z7z(26,Zf0,9,3,"tr",15,Xf0,!1,Kf0,3,0,"tr"),e.k0s()()()(),e.j41(29,"div",9)(30,"h4",10),e.EFF(31,"Organization info"),e.k0s(),e.j41(32,"div",16)(33,"div",17)(34,"p",18),e.EFF(35,"Organization name"),e.k0s(),e.j41(36,"p",19),e.EFF(37),e.k0s()(),e.j41(38,"div",17)(39,"p",18),e.EFF(40,"Organization VAT"),e.k0s(),e.j41(41,"p",19),e.EFF(42),e.k0s()(),e.j41(43,"div",17)(44,"p",18),e.EFF(45,"Organization address"),e.k0s(),e.j41(46,"p",19),e.EFF(47),e.k0s()(),e.j41(48,"div",17)(49,"p",18),e.EFF(50,"Organization country"),e.k0s(),e.j41(51,"p",19),e.EFF(52),e.k0s()(),e.j41(53,"div",17)(54,"p",18),e.EFF(55,"Organization website"),e.k0s(),e.j41(56,"p",19),e.EFF(57),e.k0s()(),e.j41(58,"div",17)(59,"p",18),e.EFF(60,"Organization email"),e.k0s(),e.j41(61,"p",19),e.EFF(62),e.k0s()()()(),e.DNE(63,eu0,2,0,"div",20)(64,cu0,2,1,"div",21),e.j41(65,"div",22)(66,"button",23),e.bIt("click",function(){return l.closeModal.emit()}),e.EFF(67," Cancel "),e.k0s(),e.j41(68,"button",24),e.bIt("click",function(){return l.submitRequestValidation()}),e.EFF(69," Request Validation "),e.k0s()()()()),2&t&&(e.xc7("opacity",l.showModal?"1":"0")("pointer-events",l.showModal?"auto":"none"),e.R7$(),e.xc7("transform",l.showModal?"translateX(0)":"translateX(100%)"),e.R7$(25),e.Dyx(l.validationEvidenceRows),e.R7$(7),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationName)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationName||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationVat)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationVat||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationAddress)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationAddress||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationCountry)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationCountry||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationWebsite)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationWebsite||"-"),e.R7$(),e.Y8G("ngClass",l.isMissing(l.organizationInfo.organizationEmail)?"border-red-500 dark:border-red-500":"border-gray-200 dark:border-gray-700"),e.R7$(4),e.JRh(l.organizationInfo.organizationEmail||"-"),e.R7$(),e.vxM(63,l.hasMissingOrganizationInfo()?63:-1),e.R7$(),e.vxM(64,l.requestValidationError?64:-1),e.R7$(4),e.Y8G("disabled",l.hasMissingOrganizationInfo()||l.requestValidationLoading||!l.productSpec)("ngClass",l.hasMissingOrganizationInfo()||l.requestValidationLoading||!l.productSpec?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"))},dependencies:[_.YU]})}}return n})();const nu0=["attachName"],lu0=["imgURL"],su0=["certificationName"],aH=(n,a)=>a.id,CE1=(n,a)=>a.name,au0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),ou0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),m8=(n,a)=>({"break-all":n,"break-words":a}),oH=()=>({standalone:!0});function iu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",34),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",35),e.EFF(2),e.k0s(),e.j41(3,"span",36),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStepIdx===t),e.R7$(),e.AVh("bg-primary-100",l.currentStepIdx===t)("text-white",l.currentStepIdx===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function ru0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",54),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Active"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",55),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._active")," "))}function du0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Active"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._active")," "))}function fu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",58),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Launched"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",59),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._launched")," "))}function uu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",60),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Launched"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._launched")," "))}function mu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",61),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Retired"))}),e.j41(1,"span",11),e.qSk(),e.j41(2,"svg",62),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._retired")," "))}function pu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",57),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Retired"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._retired")," "))}function hu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",63),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Obsolete"))}),e.j41(1,"span",64),e.qSk(),e.j41(2,"svg",65),e.nrm(3,"path",56),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"UPDATE_PROD_SPEC._obsolete")," "))}function gu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",63),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setProdStatus("Obsolete"))}),e.j41(1,"span",11),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._obsolete")," "))}function _u0(n,a){if(1&n&&(e.j41(0,"form",20)(1,"div")(2,"label",37),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",38),e.j41(6,"label",39),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.nrm(9,"input",40),e.k0s(),e.j41(10,"div")(11,"label",41),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.nrm(14,"input",42),e.j41(15,"label",43),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.nrm(18,"input",44),e.k0s(),e.j41(19,"label",45),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",46)(23,"ol",47),e.DNE(24,ru0,6,3,"li",48)(25,du0,4,3)(26,fu0,6,3,"li",49)(27,uu0,4,3)(28,mu0,6,3,"li",50)(29,pu0,4,3)(30,hu0,6,3,"li",51)(31,gu0,4,3),e.k0s()(),e.j41(32,"label",52),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.nrm(35,"app-markdown-textarea",53),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.Y8G("formGroup",i.generalForm),e.R7$(3),e.JRh(e.bMT(4,14,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=i.generalForm.get("name"))?null:c.invalid)&&""!=i.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(8,16,"UPDATE_PROD_SPEC._product_version")),e.R7$(2),e.Y8G("ngClass",1==(null==(t=i.generalForm.get("version"))?null:t.invalid)?"border-red-600":"border-gray-300"),e.R7$(3),e.JRh(e.bMT(13,18,"UPDATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",1==(null==(l=i.generalForm.get("brand"))?null:l.invalid)&&""!=i.generalForm.value.brand?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(17,20,"UPDATE_PROD_SPEC._id_number")),e.R7$(4),e.JRh(e.bMT(21,22,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(24,"Active"==i.prodStatus?24:25),e.R7$(2),e.vxM(26,"Launched"==i.prodStatus?26:27),e.R7$(2),e.vxM(28,"Retired"==i.prodStatus?28:29),e.R7$(2),e.vxM(30,"Obsolete"==i.prodStatus?30:31),e.R7$(3),e.JRh(e.bMT(34,24,"UPDATE_PROD_SPEC._product_description"))}}function Lu0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Cu0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zu0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Mu0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function xu0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function bu0(n,a){1&n&&(e.j41(0,"span",84),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._simple")))}function yu0(n,a){1&n&&(e.j41(0,"span",88),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"UPDATE_PROD_SPEC._bundle")))}function Fu0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Cu0,2,1,"span",84)(5,zu0,2,1)(6,Mu0,2,1)(7,xu0,2,1),e.k0s(),e.j41(8,"td",83),e.DNE(9,bu0,3,3,"span",84)(10,yu0,3,3),e.k0s(),e.j41(11,"td",85),e.EFF(12),e.nI1(13,"date"),e.k0s(),e.j41(14,"td",86),e.nrm(15,"input",87),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(9,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.vxM(9,0==c.isBundle?9:10),e.R7$(3),e.SpI(" ",e.i5U(13,6,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isProdInBundle(c))}}function vu0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",79),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",80),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"th",78),e.EFF(17),e.nI1(18,"translate"),e.k0s()()(),e.j41(19,"tbody"),e.Z7z(20,Fu0,16,12,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,9,"UPDATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(15,11,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(18,13,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function ku0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.nextBundle())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function wu0(n,a){if(1&n&&e.DNE(0,ku0,6,3,"div",91),2&n){const c=e.XpG(3);e.vxM(0,c.bundlePageCheck?0:-1)}}function Su0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Nu0(n,a){if(1&n&&e.DNE(0,Lu0,6,0,"div",70)(1,vu0,22,15)(2,wu0,1,1)(3,Su0,6,0),2&n){const c=e.XpG(2);e.vxM(0,c.loadingBundle?0:1),e.R7$(2),e.vxM(2,c.loadingBundle_more?3:2)}}function Eu0(n,a){if(1&n&&(e.j41(0,"div",66)(1,"label",41),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",67),e.nrm(5,"input",68)(6,"div",69),e.k0s()(),e.DNE(7,Nu0,4,2)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"UPDATE_PROD_SPEC._is_bundled")),e.R7$(3),e.Y8G("checked",c.bundleChecked),e.R7$(2),e.vxM(7,c.bundleChecked?7:-1)}}function Du0(n,a){1&n&&e.nrm(0,"img",97)}function Tu0(n,a){1&n&&e.nrm(0,"img",125)}function Ru0(n,a){1&n&&e.nrm(0,"img",126)}function Au0(n,a){1&n&&(e.j41(0,"div",105),e.EFF(1," Request Validation is disabled because the compliance profile has unsaved changes. Update product first. "),e.k0s())}function Iu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",127),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeSelfAtt())}),e.qSk(),e.j41(1,"svg",100),e.nrm(2,"path",128),e.k0s()()}}function Pu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li")(1,"div",109)(2,"label",134),e.EFF(3),e.k0s(),e.j41(4,"button",135),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addISO(l))}),e.qSk(),e.j41(5,"svg",136),e.nrm(6,"path",94),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("ngClass",1==c.domesupported?"text-primary-100 font-bold":"text-gray-900 font-medium"),e.R7$(),e.SpI(" ",c.name," ")}}function ju0(n,a){if(1&n&&(e.j41(0,"div",132)(1,"ul",133),e.Z7z(2,Pu0,7,2,"li",null,e.fX1),e.k0s()()),2&n){const c=e.XpG(3);e.R7$(2),e.Dyx(c.availableISOS)}}function $u0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",129),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.buttonISOClicked=!l.buttonISOClicked)}),e.EFF(1),e.nI1(2,"translate"),e.qSk(),e.j41(3,"svg",130),e.nrm(4,"path",131),e.k0s()(),e.DNE(5,ju0,4,0,"div",132)}if(2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"UPDATE_PROD_SPEC._add_comp")," "),e.R7$(4),e.vxM(5,c.buttonISOClicked?5:-1)}}function Ou0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",138)(6,"button",110),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(2).toggleUploadFile(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",111),e.k0s()(),e.joV(),e.j41(9,"button",127),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.removeISO(l))}),e.qSk(),e.j41(10,"svg",100),e.nrm(11,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Bu0(n,a){1&n&&(e.j41(0,"div",120)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_comp_profile")," "))}function Vu0(n,a){1&n&&(e.j41(0,"div",142),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_PROD_SPEC._file_check")," "))}function Uu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",138)(6,"button",127),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeCert(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",t.normalizeName(c.name)," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Gu0(n,a){if(1&n&&(e.j41(0,"h3",106),e.EFF(1," You added the following additional certifications: "),e.k0s(),e.j41(2,"div",119)(3,"table",76)(4,"thead",77)(5,"tr")(6,"th",78),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"th",78),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",78),e.EFF(13),e.nI1(14,"translate"),e.k0s()()(),e.j41(15,"tbody"),e.Z7z(16,Uu0,9,6,"tr",81,CE1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(7),e.SpI(" ",e.bMT(8,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(11,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(14,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.additionalISOS)}}function Hu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCert=!l.showCert)}),e.EFF(2," Add an additional certification "),e.qSk(),e.j41(3,"svg",145),e.nrm(4,"path",94),e.k0s()()()}}function Yu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function qu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Yu0,10,6,"ng-template",157),e.k0s()}}function Xu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"span",74),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",165),e.EFF(4),e.k0s(),e.j41(5,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAdditionalCert(!0))}),e.qSk(),e.j41(6,"svg",167),e.nrm(7,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.isoToCreate," ")}}function Wu0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146)(1,"h3",106),e.EFF(2," Add an additional certification: "),e.k0s(),e.j41(3,"div",147)(4,"div",148)(5,"label",149),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"input",150,0),e.k0s(),e.DNE(10,qu0,2,0,"ngx-file-drop",151)(11,Xu0,8,1),e.k0s(),e.j41(12,"div",152)(13,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAdditionalCert())}),e.EFF(14," Save "),e.qSk(),e.j41(15,"svg",145),e.nrm(16,"path",154),e.k0s()(),e.joV(),e.j41(17,"button",155),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return l.clearAdditionalCert(!1),e.Njj(l.showCert=!1)}),e.EFF(18," Discard "),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,6,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.certFileName)("ngClass",1==c.certFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(10,""==c.isoToCreate?10:11),e.R7$(3),e.Y8G("disabled",!c.certFileName.valid||""==c.isoToCreate)("ngClass",c.certFileName.valid&&""!=c.isoToCreate?"hover:bg-primary-50":"opacity-50")}}function Ju0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",96)(1,"div",11),e.DNE(2,Du0,1,0,"img",97)(3,Tu0,1,0)(4,Ru0,1,0),e.k0s(),e.j41(5,"div",98)(6,"button",99),e.bIt("click",function(l){return e.eBV(c),e.XpG().openRequestValidationModal(),e.Njj(l.stopPropagation())}),e.EFF(7," Request Validation "),e.qSk(),e.j41(8,"svg",100),e.nrm(9,"path",101),e.k0s()(),e.joV(),e.j41(10,"div",102),e.qSk(),e.j41(11,"svg",103),e.nrm(12,"path",104),e.k0s()()()(),e.DNE(13,Au0,2,0,"div",105),e.joV(),e.j41(14,"h3",106),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",107)(18,"p",108),e.EFF(19),e.k0s(),e.j41(20,"div",109)(21,"button",110),e.bIt("click",function(l){return e.eBV(c),e.XpG().toggleUploadSelfAtt(),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(22,"svg",100),e.nrm(23,"path",111),e.k0s()(),e.DNE(24,Iu0,3,0,"button",112),e.k0s()(),e.DNE(25,$u0,6,4),e.joV(),e.j41(26,"div",113)(27,"div",114)(28,"h3",115),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"div",116)(32,"p",117),e.EFF(33,"Requesting a validation will submit your certificates and self attestation to the compliance service for validation"),e.k0s()(),e.nrm(34,"div",118),e.k0s(),e.j41(35,"div",119)(36,"table",76)(37,"thead",77)(38,"tr")(39,"th",78),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"th",78),e.EFF(43),e.nI1(44,"translate"),e.k0s(),e.j41(45,"th",78),e.EFF(46),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"tbody"),e.Z7z(49,Ou0,12,6,"tr",81,CE1,!1,Bu0,9,3,"div",120),e.k0s()()(),e.j41(52,"div",121)(53,"div",122),e.DNE(54,Vu0,4,3,"div",123),e.k0s()(),e.DNE(55,Gu0,18,9)(56,Hu0,5,0,"div",124)(57,Wu0,19,8)}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.complianceVC&&"BL"==c.complianceLevel?2:c.complianceVC&&"P"==c.complianceLevel?3:c.complianceVC&&"PP"==c.complianceLevel?4:-1),e.R7$(4),e.Y8G("disabled",!c.hasSelfAttestation()||c.hasUnsavedComplianceProfileChanges())("ngClass",!c.hasSelfAttestation()||c.hasUnsavedComplianceProfileChanges()?"opacity-50 cursor-not-allowed":"hover:bg-primary-50"),e.R7$(7),e.vxM(13,c.hasUnsavedComplianceProfileChanges()?13:-1),e.R7$(2),e.SpI(" ",e.bMT(16,16,"UPDATE_PROD_SPEC._self_attestation")," "),e.R7$(4),e.SpI(" ",c.selfAtt?c.selfAtt.productSpecCharacteristicValue[0].value:"Upload your self attestation document"," "),e.R7$(5),e.vxM(24,c.selfAtt&&!c.checkExistingSelfAtt?24:-1),e.R7$(),e.vxM(25,c.availableISOS.length>0?25:-1),e.R7$(4),e.SpI("",e.bMT(30,18,"UPDATE_PROD_SPEC._how_to_verify")," "),e.R7$(11),e.SpI(" ",e.bMT(41,20,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(44,22,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(47,24,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.selectedISOS),e.R7$(5),e.Y8G("ngIf",c.checkValidISOS()),e.R7$(),e.vxM(55,c.additionalISOS.length>0?55:-1),e.R7$(),e.vxM(56,0==c.showCert?56:57)}}function Qu0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_chars")," "))}function Zu0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value),", ")}}function Ku0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(4);e.SpI(" ",t.getValuePreview(c.value)," ")}}function em0(n,a){if(1&n&&e.DNE(0,Zu0,1,1)(1,Ku0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function cm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function nm0(n,a){if(1&n&&e.DNE(0,cm0,4,2)(1,tm0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function lm0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function sm0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function am0(n,a){if(1&n&&e.DNE(0,lm0,1,1)(1,sm0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function om0(n,a){if(1&n&&e.DNE(0,em0,2,1)(1,nm0,2,1)(2,am0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(3);e.vxM(0,l.isDataSpaceCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function im0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function rm0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dm0(n,a){if(1&n&&e.DNE(0,im0,4,3)(1,rm0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function fm0(n,a){if(1&n&&e.DNE(0,om0,3,1)(1,dm0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function um0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",170),e.EFF(4),e.k0s(),e.j41(5,"td",137),e.Z7z(6,fm0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",86)(9,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",167),e.nrm(11,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function mm0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",80),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,um0,12,10,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.getFilteredCharacteristicsForCurrentStep())}}function pm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.toggleCreateCharacteristicForm())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" ",c.isDataspaceConfigurationStep()?"Add Dataspace Configuration":e.bMT(3,1,"UPDATE_PROD_SPEC._new_char")," ")}}function hm0(n,a){1&n&&(e.j41(0,"option",182),e.EFF(1,"Credentials Configuration"),e.k0s(),e.j41(2,"option",183),e.EFF(3,"Authorization Policy"),e.k0s())}function gm0(n,a){1&n&&(e.j41(0,"option",184),e.EFF(1,"String"),e.k0s(),e.j41(2,"option",185),e.EFF(3,"Number"),e.k0s(),e.j41(4,"option",186),e.EFF(5,"Number range"),e.k0s(),e.j41(6,"option",187),e.EFF(7,"Boolean"),e.k0s())}function _m0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",174),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",192),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.optionalDftTrue,l)||(i.optionalDftTrue=l),e.Njj(l)}),e.j41(5,"option",193),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",193),e.EFF(9),e.nI1(10,"translate"),e.k0s()()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._default_value")),e.R7$(2),e.R50("ngModel",c.optionalDftTrue),e.Y8G("ngModelOptions",e.lJ4(13,oH)),e.R7$(),e.Y8G("value",!1),e.R7$(),e.JRh(e.bMT(7,9,"UPDATE_PROD_SPEC._default_false")),e.R7$(2),e.Y8G("value",!0),e.R7$(),e.JRh(e.bMT(10,11,"UPDATE_PROD_SPEC._default_true"))}}function Lm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",188)(1,"label",189),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",190)(5,"input",191),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.isOptional,l)||(i.isOptional=l),e.Njj(l)}),e.k0s(),e.nrm(6,"div",69),e.k0s()(),e.DNE(7,_m0,11,14,"div")}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,"UPDATE_PROD_SPEC._make_optional")),e.R7$(3),e.R50("ngModel",c.isOptional),e.Y8G("ngModelOptions",e.lJ4(6,oH)),e.R7$(2),e.vxM(7,c.isOptional?7:-1)}}function Cm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",196)(1,"div",197)(2,"input",198),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",199),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",200),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",167),e.nrm(10,"path",128),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zm0(n,a){if(1&n&&e.Z7z(0,Cm0,11,4,"div",196,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function Mm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function xm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit,t=e.XpG(5);e.R7$(),e.JRh(t.getValuePreview(c.value))}}function bm0(n,a){if(1&n&&(e.j41(0,"label",202),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function ym0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",196)(1,"div",197)(2,"input",201),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,Mm0,5,2,"label",202)(4,xm0,2,1)(5,bm0,2,1),e.k0s(),e.j41(6,"button",200),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,"number"===t.charTypeSelected?3:t.isDataSpaceCharacteristicType(t.charTypeSelected)?4:5)}}function Fm0(n,a){if(1&n&&e.Z7z(0,ym0,9,2,"div",196,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function vm0(n,a){if(1&n&&(e.j41(0,"label",194),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",195),e.DNE(3,zm0,2,0)(4,Fm0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,"range"===c.charTypeSelected?3:4)}}function km0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",180)(1,"input",203),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",205),e.nrm(4,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function wm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",206)(1,"div",207)(2,"span",208),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",207)(7,"span",208),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",210),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",205),e.nrm(13,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_PROD_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Sm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",188)(1,"label",211),e.EFF(2,"Default value is true"),e.k0s(),e.j41(3,"label",190)(4,"input",212),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.booleanDefaultTrue,l)||(i.booleanDefaultTrue=l),e.Njj(l)}),e.bIt("change",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.onBooleanDefaultChange())}),e.k0s(),e.nrm(5,"div",69),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.R50("ngModel",c.booleanDefaultTrue),e.Y8G("ngModelOptions",e.lJ4(2,oH))}}function Nm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",206)(1,"div",207)(2,"span",213),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",207)(7,"span",213),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",209),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",207)(12,"span",213),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",210),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",204),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",205),e.nrm(18,"path",94),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_PROD_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_PROD_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_PROD_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Em0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",214)(1,"label",215),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"textarea",216),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.jsonValue,l)||(i.jsonValue=l),e.Njj(l)}),e.k0s(),e.j41(5,"button",217),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(6,"svg",218),e.nrm(7,"path",94),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(4);e.R7$(2),e.JRh(e.bMT(3,5,"UPDATE_PROD_SPEC._json_value")),e.R7$(2),e.R50("ngModel",c.jsonValue),e.R7$(),e.Y8G("disabled",!c.jsonValue)("ngClass",c.jsonValue?"cursor-pointer":"opacity-50 cursor-not-allowed"),e.R7$(3),e.SpI(" ",e.bMT(9,7,"UPDATE_PROD_SPEC._add_json")," ")}}function Dm0(n,a){if(1&n&&e.DNE(0,Em0,10,9,"div",214),2&n){const c=e.XpG(3);e.vxM(0,0===c.creatingChars.length?0:-1)}}function Tm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",172)(1,"div")(2,"label",37),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",173),e.k0s(),e.j41(6,"div")(7,"label",174),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",175),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.charTypeSelected,l)||(i.charTypeSelected=l),e.Njj(l)}),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.DNE(11,hm0,4,0)(12,gm0,8,0),e.k0s()(),e.j41(13,"div",176)(14,"label",177),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"textarea",178),e.k0s(),e.DNE(18,Lm0,8,7),e.k0s(),e.j41(19,"div",21),e.DNE(20,vm0,5,1),e.j41(21,"label",179),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,km0,5,3,"div",180)(25,wm0,14,10)(26,Sm0,6,3)(27,Nm0,19,14)(28,Dm0,1,1),e.j41(29,"div",152)(30,"button",181),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(31),e.nI1(32,"translate"),e.qSk(),e.j41(33,"svg",145),e.nrm(34,"path",154),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,15,"UPDATE_PROD_SPEC._product_name")),e.R7$(5),e.JRh(e.bMT(9,17,"UPDATE_PROD_SPEC._type")),e.R7$(2),e.R50("ngModel",c.charTypeSelected),e.Y8G("ngModelOptions",e.lJ4(25,oH)),e.R7$(),e.vxM(11,c.isDataspaceConfigurationStep()?11:12),e.R7$(4),e.JRh(e.bMT(16,19,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.vxM(18,c.isDataspaceConfigurationStep()||"boolean"===c.charTypeSelected?-1:18),e.R7$(2),e.vxM(20,c.creatingChars.length>0&&"boolean"!==c.charTypeSelected?20:-1),e.R7$(),e.Y8G("ngClass","range"===c.charTypeSelected&&1==c.creatingChars.length||"boolean"===c.charTypeSelected?"hidden":""),e.R7$(),e.JRh(e.bMT(23,21,"UPDATE_PROD_SPEC._add_values")),e.R7$(2),e.vxM(24,c.isTextCharacteristicType(c.charTypeSelected)?24:"number"===c.charTypeSelected?25:"boolean"===c.charTypeSelected?26:"range"===c.charTypeSelected&&0==c.creatingChars.length?27:c.isDataSpaceCharacteristicType(c.charTypeSelected)?28:-1),e.R7$(6),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(32,23,"UPDATE_PROD_SPEC._save_char")," ")}}function Rm0(n,a){if(1&n&&e.DNE(0,Qu0,9,3,"div",168)(1,mm0,19,12)(2,pm0,6,3,"div",124)(3,Tm0,35,26),2&n){const c=e.XpG();e.vxM(0,0===c.getFilteredCharacteristicsForCurrentStep().length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function Am0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Im0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function Pm0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function jm0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function $m0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Om0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Bm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Pm0,2,1,"span",84)(5,jm0,2,1)(6,$m0,2,1)(7,Om0,2,1),e.k0s(),e.j41(8,"td",85),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",86)(12,"input",219),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addResToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isResSelected(c))}}function Vm0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Bm0,13,11,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.resourceSpecs)}}function Um0(n,a){if(1&n&&e.DNE(0,Im0,7,3,"div",168)(1,Vm0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.resourceSpecs.length?0:1)}}function Gm0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextRes())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Hm0(n,a){if(1&n&&e.DNE(0,Gm0,6,3,"div",91),2&n){const c=e.XpG(2);e.vxM(0,c.resourceSpecPageCheck?0:-1)}}function Ym0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function qm0(n,a){if(1&n&&e.DNE(0,Am0,6,0,"div",70)(1,Um0,2,1)(2,Hm0,1,1)(3,Ym0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingResourceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingResourceSpec_more?3:2)}}function Xm0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Wm0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function Jm0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qm0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zm0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Km0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ep0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Jm0,2,1,"span",84)(5,Qm0,2,1)(6,Zm0,2,1)(7,Km0,2,1),e.k0s(),e.j41(8,"td",85),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",86)(12,"input",219),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.addServToSelected(l))}),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," "),e.R7$(3),e.Y8G("checked",t.isServSelected(c))}}function cp0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ep0,13,11,"tr",81,aH),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._select")," "),e.R7$(3),e.Dyx(c.serviceSpecs)}}function tp0(n,a){if(1&n&&e.DNE(0,Wm0,7,3,"div",168)(1,cp0,19,12),2&n){const c=e.XpG(2);e.vxM(0,0==c.serviceSpecs.length?0:1)}}function np0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextServ())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function lp0(n,a){if(1&n&&e.DNE(0,np0,6,3,"div",91),2&n){const c=e.XpG(2);e.vxM(0,c.serviceSpecPageCheck?0:-1)}}function sp0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function ap0(n,a){if(1&n&&e.DNE(0,Xm0,6,0,"div",70)(1,tp0,2,1)(2,lp0,1,1)(3,sp0,6,0),2&n){const c=e.XpG();e.vxM(0,c.loadingServiceSpec?0:1),e.R7$(2),e.vxM(2,c.loadingServiceSpec_more?3:2)}}function op0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",247),e.EFF(2),e.k0s(),e.j41(3,"td",248),e.EFF(4),e.k0s(),e.j41(5,"td",249)(6,"button",127),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(3);return e.Njj(i.removeEndpointUrl(l))}),e.qSk(),e.j41(7,"svg",100),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.url),e.R7$(2),e.JRh(c.description)}}function ip0(n,a){if(1&n&&(e.j41(0,"div",221)(1,"table",244)(2,"thead",77)(3,"tr")(4,"th",245),e.EFF(5,"Endpoint URL"),e.k0s(),e.j41(6,"th",78),e.EFF(7,"Description"),e.k0s(),e.j41(8,"th",246),e.EFF(9,"Actions"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,op0,9,2,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(11),e.Dyx(c.endpointUrls)}}function rp0(n,a){1&n&&(e.j41(0,"p",231),e.EFF(1,"At least one endpoint URL is required."),e.k0s())}function dp0(n,a){if(1&n&&(e.j41(0,"option",193),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c),e.R7$(),e.JRh(c)}}function fp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function up0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function mp0(n,a){if(1&n&&e.DNE(0,fp0,2,0,"p",250)(1,up0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("targetSpecification"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function pp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function hp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function gp0(n,a){if(1&n&&e.DNE(0,pp0,2,0,"p",250)(1,hp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("serviceConfiguration"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function _p0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function Lp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function Cp0(n,a){if(1&n&&e.DNE(0,_p0,2,0,"p",250)(1,Lp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("credentialsConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function zp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"This field is required"),e.k0s())}function Mp0(n,a){1&n&&(e.j41(0,"p",250),e.EFF(1,"Invalid JSON"),e.k0s())}function xp0(n,a){if(1&n&&e.DNE(0,zp0,2,0,"p",250)(1,Mp0,2,0),2&n){let c;const t=e.XpG(2);e.vxM(0,null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.required?0:null!=(c=t.dspConfigForm.get("policyConfig"))&&null!=c.errors&&c.errors.invalidJson?1:-1)}}function bp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",21)(1,"h3",220),e.EFF(2,"DSP Config"),e.k0s(),e.DNE(3,ip0,13,0,"div",221),e.j41(4,"div",222)(5,"div",223)(6,"div",224)(7,"label",174),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",225),e.nI1(11,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointName=l.target.value)}),e.k0s()(),e.j41(12,"div",224)(13,"label",174),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"input",226),e.nI1(17,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointUrl=l.target.value)}),e.k0s()()(),e.j41(18,"div")(19,"label",174),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"textarea",227),e.nI1(23,"translate"),e.bIt("input",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.newEndpointDescription=l.target.value)}),e.k0s()(),e.j41(24,"div",228)(25,"button",229),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addEndpointUrl())}),e.EFF(26),e.nI1(27,"translate"),e.qSk(),e.j41(28,"svg",230),e.nrm(29,"path",94),e.k0s()()()(),e.DNE(30,rp0,2,0,"p",231),e.joV(),e.nrm(31,"hr",232),e.j41(32,"form",233)(33,"div",223)(34,"div",234)(35,"label",174),e.EFF(36,"Upstream Address"),e.k0s(),e.nrm(37,"input",235),e.k0s(),e.j41(38,"div",236)(39,"label",174),e.EFF(40,"Transfer path"),e.k0s(),e.nrm(41,"input",237),e.k0s(),e.j41(42,"div",236)(43,"label",174),e.EFF(44,"Transfer Type"),e.k0s(),e.j41(45,"select",238),e.DNE(46,dp0,2,2,"option",239),e.k0s()()(),e.j41(47,"div")(48,"label",174),e.EFF(49,"Target Specification"),e.k0s(),e.nrm(50,"textarea",240),e.DNE(51,mp0,2,1),e.k0s(),e.j41(52,"div")(53,"label",174),e.EFF(54,"Service Configuration"),e.k0s(),e.nrm(55,"textarea",241),e.DNE(56,gp0,2,1),e.k0s(),e.j41(57,"div")(58,"label",174),e.EFF(59,"Credentials Configuration"),e.k0s(),e.nrm(60,"textarea",242),e.DNE(61,Cp0,2,1),e.k0s(),e.j41(62,"div")(63,"label",174),e.EFF(64,"Policy Configuration"),e.k0s(),e.nrm(65,"textarea",243),e.DNE(66,xp0,2,1),e.k0s()()()}if(2&n){let c,t,l,i,u,C,b,T,W,u1,a1,T1,Y1,f2,M2,G2;const N2=e.XpG();e.R7$(3),e.vxM(3,N2.endpointUrls.length>0?3:-1),e.R7$(5),e.JRh(e.bMT(9,47,"CREATE_PROD_SPEC._dsp_endpoint_name")),e.R7$(2),e.Y8G("value",N2.newEndpointName)("placeholder",e.bMT(11,49,"CREATE_PROD_SPEC._dsp_endpoint_name_placeholder")),e.R7$(4),e.JRh(e.bMT(15,51,"CREATE_PROD_SPEC._dsp_endpoint_url")),e.R7$(2),e.Y8G("value",N2.newEndpointUrl)("placeholder",e.bMT(17,53,"CREATE_PROD_SPEC._dsp_endpoint_url_placeholder")),e.R7$(4),e.JRh(e.bMT(21,55,"CREATE_PROD_SPEC._dsp_endpoint_description")),e.R7$(2),e.Y8G("value",N2.newEndpointDescription)("placeholder",e.bMT(23,57,"CREATE_PROD_SPEC._dsp_endpoint_description_placeholder")),e.R7$(3),e.AVh("opacity-50",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim())("cursor-not-allowed",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim()),e.Y8G("disabled",!N2.newEndpointUrl.trim()||!N2.newEndpointDescription.trim()),e.R7$(),e.SpI(" ",e.bMT(27,59,"CREATE_PROD_SPEC._dsp_add_endpoint")," "),e.R7$(4),e.vxM(30,0===N2.endpointUrls.length?30:-1),e.R7$(2),e.Y8G("formGroup",N2.dspConfigForm),e.R7$(5),e.AVh("border-red-600",(null==(c=N2.dspConfigForm.get("upstreamAddress"))?null:c.invalid)&&""!==(null==(c=N2.dspConfigForm.get("upstreamAddress"))?null:c.value))("border-gray-300",!(null!=(t=N2.dspConfigForm.get("upstreamAddress"))&&t.invalid&&""!==(null==(t=N2.dspConfigForm.get("upstreamAddress"))?null:t.value))),e.R7$(4),e.AVh("border-red-600",(null==(l=N2.dspConfigForm.get("transferPath"))?null:l.invalid)&&""!==(null==(l=N2.dspConfigForm.get("transferPath"))?null:l.value))("border-gray-300",!(null!=(i=N2.dspConfigForm.get("transferPath"))&&i.invalid&&""!==(null==(i=N2.dspConfigForm.get("transferPath"))?null:i.value))),e.R7$(5),e.Y8G("ngForOf",N2.transferTypes),e.R7$(4),e.AVh("border-red-600",(null==(u=N2.dspConfigForm.get("targetSpecification"))?null:u.invalid)&&(null==(u=N2.dspConfigForm.get("targetSpecification"))?null:u.touched))("border-gray-300",!(null!=(C=N2.dspConfigForm.get("targetSpecification"))&&C.invalid&&null!=(C=N2.dspConfigForm.get("targetSpecification"))&&C.touched)),e.R7$(),e.vxM(51,null!=(b=N2.dspConfigForm.get("targetSpecification"))&&b.touched?51:-1),e.R7$(4),e.AVh("border-red-600",(null==(T=N2.dspConfigForm.get("serviceConfiguration"))?null:T.invalid)&&(null==(T=N2.dspConfigForm.get("serviceConfiguration"))?null:T.touched))("border-gray-300",!(null!=(W=N2.dspConfigForm.get("serviceConfiguration"))&&W.invalid&&null!=(W=N2.dspConfigForm.get("serviceConfiguration"))&&W.touched)),e.R7$(),e.vxM(56,null!=(u1=N2.dspConfigForm.get("serviceConfiguration"))&&u1.touched?56:-1),e.R7$(4),e.AVh("border-red-600",(null==(a1=N2.dspConfigForm.get("credentialsConfig"))?null:a1.invalid)&&(null==(a1=N2.dspConfigForm.get("credentialsConfig"))?null:a1.touched))("border-gray-300",!(null!=(T1=N2.dspConfigForm.get("credentialsConfig"))&&T1.invalid&&null!=(T1=N2.dspConfigForm.get("credentialsConfig"))&&T1.touched)),e.R7$(),e.vxM(61,null!=(Y1=N2.dspConfigForm.get("credentialsConfig"))&&Y1.touched?61:-1),e.R7$(4),e.AVh("border-red-600",(null==(f2=N2.dspConfigForm.get("policyConfig"))?null:f2.invalid)&&(null==(f2=N2.dspConfigForm.get("policyConfig"))?null:f2.touched))("border-gray-300",!(null!=(M2=N2.dspConfigForm.get("policyConfig"))&&M2.invalid&&null!=(M2=N2.dspConfigForm.get("policyConfig"))&&M2.touched)),e.R7$(),e.vxM(66,null!=(G2=N2.dspConfigForm.get("policyConfig"))&&G2.touched?66:-1)}}function yp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",254),e.nrm(1,"img",256),e.j41(2,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.removeImg())}),e.qSk(),e.j41(3,"svg",167),e.nrm(4,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.FS9("src",c.imgPreview,e.B4B)}}function Fp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function vp0(n,a){1&n&&(e.j41(0,"div",265),e.EFF(1),e.nI1(2,"translate"),e.nrm(3,"div",143),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_PROD_SPEC._file_name")," "))}function kp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",257)(1,"ngx-file-drop",258),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.dropped(l,"img"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.fileLeave(l))}),e.DNE(2,Fp0,10,6,"ng-template",157),e.k0s()(),e.j41(3,"label",259),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",260),e.DNE(7,vp0,4,3,"div",261),e.j41(8,"div",262)(9,"input",263,1),e.bIt("blur",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.attImageName.markAsTouched())}),e.k0s(),e.j41(11,"button",264),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveImgFromURL())}),e.qSk(),e.j41(12,"svg",167),e.nrm(13,"path",101),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,6,"UPDATE_PROD_SPEC._add_prod_img_url")),e.R7$(3),e.Y8G("ngIf",c.attImageName.invalid&&c.attImageName.touched),e.R7$(2),e.Y8G("formControl",c.attImageName)("ngClass",c.attImageName.invalid&&c.attImageName.touched?"border-red-500":"dark:border-secondary-200"),e.R7$(2),e.Y8G("disabled",!c.attImageName.valid)("ngClass",c.attImageName.valid?"hover:bg-primary-50":"opacity-50")}}function wp0(n,a){1&n&&(e.j41(0,"div",255)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_att")," "))}function Sp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s(),e.j41(5,"td",86)(6,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.removeAtt(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Np0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Sp0,9,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodAttachments)}}function Ep0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showNewAtt=!l.showNewAtt)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._new_att")," "))}function Dp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",158),e.qSk(),e.j41(1,"svg",159),e.nrm(2,"path",160),e.k0s(),e.joV(),e.j41(3,"div",161)(4,"p",162),e.EFF(5),e.nI1(6,"translate"),e.j41(7,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()()()}2&n&&(e.R7$(5),e.SpI("",e.bMT(6,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(9,4,"UPDATE_PROD_SPEC._select_files")))}function Tp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"ngx-file-drop",156),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.dropped(l,"attach"))})("onFileOver",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.fileLeave(l))}),e.DNE(1,Dp0,10,6,"ng-template",157),e.k0s()}}function Rp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",164)(1,"span",74),e.EFF(2,"Info"),e.k0s(),e.j41(3,"label",165),e.EFF(4),e.k0s(),e.j41(5,"button",166),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.clearAtt())}),e.qSk(),e.j41(6,"svg",167),e.nrm(7,"path",128),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(4),e.SpI(" ",c.attachToCreate.url," ")}}function Ap0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",146)(1,"div",147)(2,"div",148)(3,"label",266),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"input",267,2),e.k0s(),e.DNE(8,Tp0,2,0,"ngx-file-drop",151)(9,Rp0,8,1),e.k0s(),e.j41(10,"div",152)(11,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveAtt())}),e.EFF(12),e.nI1(13,"translate"),e.qSk(),e.j41(14,"svg",145),e.nrm(15,"path",154),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,7,"PROFILE._name")),e.R7$(2),e.Y8G("formControl",c.attFileName)("ngClass",1==c.attFileName.invalid?"border-red-600":"border-gray-300"),e.R7$(2),e.vxM(8,""==c.attachToCreate.url?8:9),e.R7$(3),e.Y8G("disabled",!c.attFileName.valid||""==c.attachToCreate.url)("ngClass",c.attFileName.valid&&""!=c.attachToCreate.url?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(13,9,"UPDATE_PROD_SPEC._save_att")," ")}}function Ip0(n,a){if(1&n&&(e.j41(0,"div",251)(1,"h4",252),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",253),e.qSk(),e.j41(5,"svg",103),e.nrm(6,"path",104),e.k0s()(),e.joV(),e.j41(7,"div",113)(8,"div",114)(9,"h3",115),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.j41(12,"div",116)(13,"p",117),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.nrm(16,"div",118),e.k0s()(),e.DNE(17,yp0,5,1,"div",254)(18,kp0,14,8),e.j41(19,"h4",252),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.DNE(22,wp0,9,3,"div",255)(23,Np0,16,9)(24,Ep0,6,3,"div",124)(25,Ap0,16,11)),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,7,"UPDATE_PROD_SPEC._add_prod_img")),e.R7$(8),e.SpI("",e.bMT(11,9,"UPDATE_PROD_SPEC._file_res")," "),e.R7$(4),e.SpI("",e.bMT(15,11,"UPDATE_PROD_SPEC._restrictions")," "),e.R7$(3),e.vxM(17,c.showImgPreview?17:18),e.R7$(3),e.JRh(e.bMT(21,13,"UPDATE_PROD_SPEC._add_att")),e.R7$(2),e.vxM(22,0==c.prodAttachments.length?22:23),e.R7$(2),e.vxM(24,0==c.showNewAtt?24:25)}}function Pp0(n,a){1&n&&(e.j41(0,"div",268)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_PROD_SPEC._no_relatioships")," "))}function jp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s(),e.j41(5,"td",86)(6,"button",171),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteRel(l))}),e.qSk(),e.j41(7,"svg",167),e.nrm(8,"path",128),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function $p0(n,a){if(1&n&&(e.j41(0,"div",75)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,jp0,9,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function Op0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",124)(1,"button",144),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateRel=!l.showCreateRel)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",145),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._add_relationship")," "))}function Bp0(n,a){1&n&&(e.j41(0,"div",70),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Vp0(n,a){1&n&&(e.j41(0,"div",168)(1,"div",139),e.qSk(),e.j41(2,"svg",140),e.nrm(3,"path",141),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod_rel")," "))}function Up0(n,a){1&n&&(e.j41(0,"span",84),e.EFF(1,"Simple"),e.k0s())}function Gp0(n,a){1&n&&(e.j41(0,"span",88),e.EFF(1,"Bundle"),e.k0s())}function Hp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",276),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(5);return e.Njj(i.selectRelationship(l))}),e.j41(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",83),e.DNE(4,Up0,2,0,"span",84)(5,Gp0,2,0),e.k0s(),e.j41(6,"td",85),e.EFF(7),e.nI1(8,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.Y8G("ngClass",c.id==t.selectedProdSpec.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(),e.Y8G("ngClass",e.l_i(8,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,0==c.isBundle?4:5),e.R7$(3),e.SpI(" ",e.i5U(8,5,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Yp0(n,a){if(1&n&&(e.j41(0,"div",274)(1,"table",76)(2,"thead",77)(3,"tr")(4,"th",78),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",79),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Hp0,9,11,"tr",275,e.fX1),e.k0s()()()),2&n){const c=e.XpG(4);e.R7$(5),e.SpI(" ",e.bMT(6,3,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecRels)}}function qp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",91)(1,"button",92),e.bIt("click",function(){e.eBV(c);const l=e.XpG(5);return e.Njj(l.nextProdSpecsRel())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",93),e.nrm(5,"path",94),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_PROD_SPEC._load_more")," "))}function Xp0(n,a){if(1&n&&e.DNE(0,qp0,6,3,"div",91),2&n){const c=e.XpG(4);e.vxM(0,c.prodSpecRelPageCheck?0:-1)}}function Wp0(n,a){1&n&&(e.j41(0,"div",95),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function Jp0(n,a){if(1&n&&e.DNE(0,Vp0,7,3,"div",168)(1,Yp0,16,9)(2,Xp0,1,1)(3,Wp0,6,0),2&n){const c=e.XpG(3);e.vxM(0,0==c.prodSpecRels.length?0:1),e.R7$(2),e.vxM(2,c.loadingprodSpecRel_more?3:2)}}function Qp0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"select",269),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onRelChange(l))}),e.j41(4,"option",270),e.EFF(5,"Migration"),e.k0s(),e.j41(6,"option",271),e.EFF(7,"Dependency"),e.k0s(),e.j41(8,"option",272),e.EFF(9,"Exclusivity"),e.k0s(),e.j41(10,"option",273),e.EFF(11,"Substitution"),e.k0s()(),e.DNE(12,Bp0,6,0,"div",70)(13,Jp0,4,2),e.j41(14,"div",152)(15,"button",153),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveRel())}),e.EFF(16),e.nI1(17,"translate"),e.qSk(),e.j41(18,"svg",145),e.nrm(19,"path",154),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"UPDATE_PROD_SPEC._relationship_type")),e.R7$(11),e.vxM(12,c.loadingprodSpecRel?12:13),e.R7$(3),e.Y8G("disabled",0==c.prodSpecRels.length||""==c.selectedProdSpec.id)("ngClass",0==c.prodSpecRels.length||""==c.selectedProdSpec.id?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(17,7,"UPDATE_PROD_SPEC._save_relationship")," ")}}function Zp0(n,a){if(1&n&&(e.j41(0,"div",21),e.DNE(1,Pp0,9,3,"div",268)(2,$p0,16,9)(3,Op0,6,3,"div",124)(4,Qp0,20,9),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,0===c.prodRelationships.length?1:2),e.R7$(2),e.vxM(3,0==c.showCreateRel?3:4)}}function Kp0(n,a){1&n&&(e.j41(0,"div",277),e.qSk(),e.j41(1,"svg",71),e.nrm(2,"path",72)(3,"path",73),e.k0s(),e.joV(),e.j41(4,"span",74),e.EFF(5,"Loading..."),e.k0s()())}function eh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"label",280),e.EFF(4),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._id_number")),e.R7$(3),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.productNumber," ")}}function ch0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function th0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function nh0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function lh0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)}}function sh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",283),e.nrm(4,"markdown",284),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description,20)))("data",null==c.productSpecToUpdate?null:c.productSpecToUpdate.description)}}function ah0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",254),e.nrm(4,"img",256),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._profile_pic")),e.R7$(3),e.FS9("src",c.imgPreview,e.B4B)}}function oh0(n,a){if(1&n&&(e.j41(0,"span",84),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function ih0(n,a){if(1&n&&(e.j41(0,"span",88),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function rh0(n,a){if(1&n&&(e.j41(0,"span",89),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function dh0(n,a){if(1&n&&(e.j41(0,"span",90),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function fh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s(),e.j41(3,"td",86),e.DNE(4,oh0,2,1,"span",84)(5,ih0,2,1)(6,rh0,2,1)(7,dh0,2,1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1)}}function uh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,fh0,8,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._bundle")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._status")," "),e.R7$(3),e.Dyx(c.prodSpecsBundle)}}function mh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value),", ")}}function ph0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit,t=e.XpG(5);e.SpI(" ",t.getValuePreview(c.value)," ")}}function hh0(n,a){if(1&n&&e.DNE(0,mh0,1,1)(1,ph0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function gh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function _h0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Lh0(n,a){if(1&n&&e.DNE(0,gh0,4,2)(1,_h0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ch0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function zh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Mh0(n,a){if(1&n&&e.DNE(0,Ch0,1,1)(1,zh0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function xh0(n,a){if(1&n&&e.DNE(0,hh0,2,1)(1,Lh0,2,1)(2,Mh0,2,1),2&n){const c=e.XpG().$implicit,t=e.XpG().$implicit,l=e.XpG(4);e.vxM(0,l.isDataSpaceCharacteristicType(t.valueType)?0:c.unitOfMeasure?1:2)}}function bh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function yh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Fh0(n,a){if(1&n&&e.DNE(0,bh0,4,3)(1,yh0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function vh0(n,a){if(1&n&&e.DNE(0,xh0,3,1)(1,Fh0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function kh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",170),e.EFF(4),e.k0s(),e.j41(5,"td",137),e.Z7z(6,vh0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,m8,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.productSpecCharacteristicValue)}}function wh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",80),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",78),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,kh0,8,10,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"UPDATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.productSpecToUpdate?null:c.productSpecToUpdate.productSpecCharacteristic)}}function Sh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Nh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Sh0,3,5,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._resource")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedResourceSpecs)}}function Eh0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",82),e.EFF(2),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Dh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,Eh0,3,5,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_PROD_SPEC._service")),e.R7$(7),e.SpI(" ",e.bMT(9,4,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.selectedServiceSpecs)}}function Th0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",169),e.EFF(2),e.k0s(),e.j41(3,"td",137),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.url," ")}}function Rh0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Th0,5,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._attachments")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._value")," "),e.R7$(3),e.Dyx(null==c.productSpecToUpdate?null:c.productSpecToUpdate.attachment)}}function Ah0(n,a){if(1&n&&(e.j41(0,"tr",81)(1,"td",86),e.EFF(2),e.k0s(),e.j41(3,"td",82),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(2),e.SpI(" ",c.relationshipType," "),e.R7$(),e.Y8G("ngClass",e.l_i(3,m8,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," ")}}function Ih0(n,a){if(1&n&&(e.j41(0,"label",174),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",285)(4,"table",76)(5,"thead",77)(6,"tr")(7,"th",78),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",78),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ah0,5,6,"tr",81,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"UPDATE_PROD_SPEC._relationships")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"UPDATE_PROD_SPEC._relationship_type")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"UPDATE_PROD_SPEC._product_name")," "),e.R7$(3),e.Dyx(c.prodRelationships)}}function Ph0(n,a){if(1&n&&(e.j41(0,"div",278)(1,"div")(2,"label",174),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"label",279),e.EFF(6),e.k0s(),e.j41(7,"label",39),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"label",280),e.EFF(11),e.k0s()(),e.j41(12,"div")(13,"label",174),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"label",279),e.EFF(17),e.k0s(),e.DNE(18,eh0,5,4),e.k0s()(),e.j41(19,"div",281)(20,"label",282),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.DNE(23,ch0,2,1,"span",84)(24,th0,2,1)(25,nh0,2,1)(26,lh0,2,1),e.k0s(),e.DNE(27,sh0,5,8)(28,ah0,5,4)(29,uh0,16,9)(30,wh0,19,12)(31,Nh0,13,6)(32,Dh0,13,6)(33,Rh0,16,9)(34,Ih0,16,9)),2&n){const c=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,19,"UPDATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(27,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.name,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.name," "),e.R7$(2),e.JRh(e.bMT(9,21,"UPDATE_PROD_SPEC._product_version")),e.R7$(3),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.version," "),e.R7$(3),e.JRh(e.bMT(15,23,"UPDATE_PROD_SPEC._product_brand")),e.R7$(2),e.Y8G("ngClass",e.l_i(30,m8,c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand,20),!c.hasLongWord(null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand,20))),e.R7$(),e.SpI(" ",null==c.productSpecToUpdate?null:c.productSpecToUpdate.brand," "),e.R7$(),e.vxM(18,""!=(null==c.productSpecToUpdate?null:c.productSpecToUpdate.productNumber)?18:-1),e.R7$(3),e.JRh(e.bMT(22,25,"UPDATE_PROD_SPEC._status")),e.R7$(2),e.vxM(23,"Active"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?23:"Launched"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?24:"Retired"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?25:"Obsolete"==(null==c.productSpecToUpdate?null:c.productSpecToUpdate.lifecycleStatus)?26:-1),e.R7$(4),e.vxM(27,""!=(null==c.productSpecToUpdate?null:c.productSpecToUpdate.description)?27:-1),e.R7$(),e.vxM(28,""!=c.imgPreview?28:-1),e.R7$(),e.vxM(29,c.prodSpecsBundle.length>0?29:-1),e.R7$(),e.vxM(30,c.prodChars.length>0?30:-1),e.R7$(),e.vxM(31,c.selectedResourceSpecs.length>0?31:-1),e.R7$(),e.vxM(32,c.selectedServiceSpecs.length>0?32:-1),e.R7$(),e.vxM(33,c.prodAttachments.length>0?33:-1),e.R7$(),e.vxM(34,c.prodRelationships.length>0?34:-1)}}function jh0(n,a){if(1&n&&(e.j41(0,"div",22),e.DNE(1,Kp0,6,0,"div",277)(2,Ph0,35,33),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function $h0(n,a){if(1&n){const c=e.RV6();e.qSk(),e.j41(0,"svg",159),e.nrm(1,"path",160),e.k0s(),e.joV(),e.j41(2,"p",296),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"button",163),e.bIt("click",function(){const l=e.eBV(c).openFileSelector;return e.Njj(l())}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI("",e.bMT(4,2,"UPDATE_PROD_SPEC._drop_files")," "),e.R7$(3),e.JRh(e.bMT(7,4,"UPDATE_PROD_SPEC._select_files")))}function Oh0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"div",286),e.bIt("click",function(l){return e.eBV(c),e.Njj(l.stopPropagation())}),e.j41(2,"div",287)(3,"button",288),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.qSk(),e.j41(4,"svg",289),e.nrm(5,"path",290),e.k0s(),e.joV(),e.j41(6,"span",74),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"ngx-file-drop",291),e.bIt("onFileDrop",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.dropped(l,i.selectedISO))})("onFileOver",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileOver(l))})("onFileLeave",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.fileLeave(l))}),e.DNE(10,$h0,8,6,"ng-template",292),e.k0s(),e.j41(11,"div",293)(12,"button",294),e.bIt("click",function(l){return e.eBV(c),e.XpG().showUploadFile=!1,e.Njj(l.stopPropagation())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",295),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.uploadFile())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()()()()()}if(2&n){const c=e.XpG();e.Y8G("ngClass",c.showUploadFile?"backdrop-blur-sm":""),e.R7$(7),e.JRh(e.bMT(8,4,"UPDATE_PROD_SPEC._close_modal")),e.R7$(6),e.SpI(" ",e.bMT(14,6,"UPDATE_PROD_SPEC._cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(17,8,"UPDATE_PROD_SPEC._upload")," ")}}function Bh0(n,a){if(1&n&&e.nrm(0,"error-message",33),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}const Vh0=["endpointUrl","upstreamAddress","targetSpecification","serviceConfiguration","credentialsConfig","authorizationPolicy","transferPath","transferType"];let Uh0=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}constructor(c,t,l,i,u,C,b,T){this.prodSpecService=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.attachmentService=u,this.servSpecService=C,this.resSpecService=b,this.paginationService=T,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.DOME_TRUST_LINK=g1.c.DOME_TRUST_LINK,this.BUNDLE_ENABLED=g1.c.BUNDLE_ENABLED,this.DATA_SPACE_ENABLED=g1.c.DATA_SPACE_ENABLED,this.MAX_FILE_SIZE=g1.c.MAX_FILE_SIZE,this.showGeneral=!0,this.showBundle=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.stepsElements=["general-info","bundle","compliance","chars","resource","service","attach","relationships","summary"],this.stepsCircles=["general-circle","bundle-circle","compliance-circle","chars-circle","resource-circle","service-circle","attach-circle","relationships-circle","summary-circle"],this.currentStepIdx=0,this.highestStepIdx=0,this.steps=[],this.showPreview=!1,this.showEmoji=!1,this.description="",this.partyId="",this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),brand:new p.MJ("",[p.k0.required,O3]),version:new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]),number:new p.MJ(""),description:new p.MJ("",p.k0.maxLength(1e5))}),this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="",this.endpointUrls=[],this.transferTypes=["HttpData-PULL","HttpData-PUSH"],this.dspConfigForm=new p.gE({upstreamAddress:new p.MJ("",[p.k0.required]),transferPath:new p.MJ(""),transferType:new p.MJ("HttpData-PULL",[p.k0.required]),targetSpecification:new p.MJ("",[p.k0.required,D5]),serviceConfiguration:new p.MJ("",[p.k0.required,D5]),credentialsConfig:new p.MJ("",[p.k0.required,D5]),policyConfig:new p.MJ("",[p.k0.required,D5])}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",[p.k0.maxLength(500)])}),this.charTypeSelected="string",this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.prodChars=[],this.finishChars=[],this.creatingChars=[],this.showCreateChar=!1,this.bundleChecked=!1,this.bundlePage=0,this.bundlePageCheck=!1,this.loadingBundle=!1,this.loadingBundle_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.prodSpecsBundle=[],this.buttonISOClicked=!1,this.availableISOS=[],this.selectedISOS=[],this.additionalISOS=[],this.verifiedISO=[],this.complianceLevel="NL",this.complianceVC=null,this.complianceVCId="",this.showUploadFile=!1,this.showRequestValidationModal=!1,this.checkExistingSelfAtt=!1,this.showUploadAtt=!1,this.isoToCreate="",this.showCert=!1,this.initialComplianceEvidenceSignature="",this.serviceSpecPage=0,this.serviceSpecPageCheck=!1,this.loadingServiceSpec=!1,this.loadingServiceSpec_more=!1,this.serviceSpecs=[],this.nextServiceSpecs=[],this.selectedServiceSpecs=[],this.resourceSpecPage=0,this.resourceSpecPageCheck=!1,this.loadingResourceSpec=!1,this.loadingResourceSpec_more=!1,this.resourceSpecs=[],this.nextResourceSpecs=[],this.selectedResourceSpecs=[],this.showCreateRel=!1,this.prodSpecRelPage=0,this.prodSpecRelPageCheck=!1,this.loadingprodSpecRel=!1,this.loadingprodSpecRel_more=!1,this.prodSpecRels=[],this.nextProdSpecRels=[],this.selectedProdSpec={id:""},this.selectedRelType="migration",this.prodRelationships=[],this.showImgPreview=!1,this.showNewAtt=!1,this.imgPreview="",this.prodAttachments=[],this.attachToCreate={url:"",attachmentType:""},this.attFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.certFileName=new p.MJ("",[p.k0.required,p.k0.pattern("[a-zA-Z0-9 _.-]*")]),this.attImageName=new p.MJ("",[p.k0.required,p.k0.pattern("^https?:\\/\\/.*\\.(?:png|jpg|jpeg|gif|bmp|webp)$")]),this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.dataSpaceCharacteristicTypes=["credentialsConfiguration","authorizationPolicy"],this.filenameRegex=/^[A-Za-z0-9_.-]+$/,this.destroy$=new S.B,this.files=[];for(let W=0;W{"ChangedSession"===W.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges()),1==this.showUploadFile&&(this.showUploadFile=!1,this.cdr.detectChanges())}ngOnInit(){this.steps=this.getFormSteps(),this.initPartyInfo(),console.log(this.prod),this.populateProductInfo(),D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateProductInfo(){if(this.generalForm.controls.name.setValue(this.prod.name),this.generalForm.controls.description.setValue(this.prod.description),this.generalForm.controls.brand.setValue(this.prod.brand?this.prod.brand:""),this.generalForm.controls.version.setValue(this.prod.version?this.prod.version:""),this.generalForm.controls.number.setValue(this.prod.productNumber?this.prod.productNumber:""),this.prodStatus=this.prod.lifecycleStatus,1==this.prod.isBundle&&(this.toggleBundleCheck(),this.prodSpecsBundle=this.prod.bundledProductSpecification,console.log("is bundle")),this.prod.productSpecCharacteristic){console.log(R5),console.log("--"),console.log(this.prod.productSpecCharacteristic);for(let c=0;ci.name===t);-1!==l?(console.log("adding sel iso"),this.selectedISOS.push({id:this.prod.productSpecCharacteristic[c].id,name:this.prod.productSpecCharacteristic[c].name,url:this.prod.productSpecCharacteristic[c].productSpecCharacteristicValue[0].value,mandatory:this.availableISOS[l].mandatory,domesupported:this.availableISOS[l].domesupported}),this.availableISOS.splice(l,1)):"Compliance:SelfAtt"==this.prod.productSpecCharacteristic[c].name?(this.selfAtt=JSON.parse(JSON.stringify(this.prod.productSpecCharacteristic[c])),this.checkExistingSelfAtt=!0):this.prod.productSpecCharacteristic[c].name.startsWith("Compliance:")&&(console.log("--- additional isos"),console.log(this.prod.productSpecCharacteristic[c]),this.additionalISOS.push({id:this.prod.productSpecCharacteristic[c].id,name:this.prod.productSpecCharacteristic[c].name,url:this.prod.productSpecCharacteristic[c].productSpecCharacteristicValue[0].value}))}console.log("selected isos"),console.log(this.selectedISOS),console.log("available"),console.log(this.availableISOS),console.log("API PROD ISOS"),console.log(this.prod.productSpecCharacteristic)}if(this.initialComplianceEvidenceSignature=this.getCurrentComplianceEvidenceSignature(),this.prod.productSpecCharacteristic){let c=this.prod.productSpecCharacteristic;this.prod.externalId&&(c=c.filter(t=>!Vh0.includes(t.valueType))),c.forEach(t=>{-1==this.selectedISOS.findIndex(i=>i.name===t.name)&&this.prodChars.push({id:t.id?t.id:"urn:ngsi-ld:characteristic:"+L4(),name:t.name,description:t.description?t.description:"",valueType:t.valueType,"@schemaLocation":t["@schemaLocation"],productSpecCharacteristicValue:t.productSpecCharacteristicValue})})}if(this.prod.resourceSpecification&&(this.selectedResourceSpecs=this.prod.resourceSpecification),this.prod.serviceSpecification&&(this.selectedServiceSpecs=this.prod.serviceSpecification),this.prod.attachment){this.prodAttachments=this.prod.attachment;const c=this.prodAttachments.findIndex(t=>"Profile Picture"===t.name);-1!==c&&(this.imgPreview=this.prodAttachments[c].url,this.showImgPreview=!0)}if(console.log("----- RELACIONES"),console.log(this.prod.productSpecificationRelationship),this.prod.productSpecificationRelationship)for(let c=0;c{this.prodRelationships.push({id:this.prod.productSpecificationRelationship[c].id,href:this.prod.productSpecificationRelationship[c].id,relationshipType:this.prod.productSpecificationRelationship[c].relationshipType??this.selectedRelType,name:this.prod.productSpecificationRelationship[c].name,productSpec:t})});this.prod.externalId&&this.addDspConfigStep()}setProdStatus(c){this.prodStatus=c,this.cdr.detectChanges()}goBack(){this.eventMessage.emitSellerProductSpec(!1)}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showBundle=!1,this.showGeneral=!0,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}toggleBundle(){this.selectStep("bundle","bundle-circle"),this.showBundle=!0,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}toggleBundleCheck(){this.prodSpecs=[],this.bundlePage=0,this.bundleChecked=!this.bundleChecked,1==this.bundleChecked?(this.loadingBundle=!0,this.getProdSpecs(!1)):this.prodSpecsBundle=[]}getProdSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingBundle=!0),t.paginationService.getItemsPaginated(t.bundlePage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.bundlePageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.bundlePage=i.page,t.loadingBundle=!1,t.loadingBundle_more=!1})})()}nextBundle(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecs(!0)})()}addProdToBundle(c){const t=this.prodSpecsBundle.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.prodSpecsBundle.splice(t,1)):(console.log("a\xf1adir"),this.prodSpecsBundle.push({id:c.id,href:c.href,lifecycleStatus:c.lifecycleStatus,name:c.name})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}isProdInBundle(c){return-1!==this.prodSpecsBundle.findIndex(l=>l.id===c.id)}toggleCompliance(){this.selectStep("compliance","compliance-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!0,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}addISO(c){const t=this.availableISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("seleccionar"),this.availableISOS.splice(t,1),this.selectedISOS.push({name:"Compliance:"+c.name,url:"",mandatory:c.mandatory,domesupported:c.domesupported})),this.buttonISOClicked=!this.buttonISOClicked,this.cdr.detectChanges(),console.log(this.availableISOS),console.log(this.selectedISOS)}removeISO(c){const t=c.name.replace("Compliance:","").trim(),l=this.selectedISOS.findIndex(i=>i.name===c.name);-1!==l&&(console.log("seleccionar"),this.selectedISOS.splice(l,1),this.availableISOS.push({name:t,mandatory:c.mandatory,domesupported:c.domesupported})),this.cdr.detectChanges(),console.log(this.prodSpecsBundle)}removeCert(c){const t=this.additionalISOS.findIndex(l=>l.name===c.name);-1!==t&&(console.log("eliminar additional cert"),this.additionalISOS.splice(t,1),console.log(this.additionalISOS)),this.cdr.detectChanges()}removeSelfAtt(){const c=this.finishChars.findIndex(t=>t.name===this.selfAtt.name);-1!==c&&(console.log("seleccionar"),this.finishChars.splice(c,1)),this.selfAtt="",this.cdr.detectChanges(),console.log(this.finishChars)}checkValidISOS(){return!!this.selectedISOS.find(t=>""===t.url)}addISOValue(c){this.selectedISOS.findIndex(i=>i.name===c.name),document.getElementById("iso-"+c.name),console.log(c.url),console.log(this.selectedISOS)}applyComplianceDataFromVcToken(c){if(!c||"string"!=typeof c)return void(this.complianceLevel="NL");const t=["NL","BL","P","PP"];try{const l=(0,qf0.s)(c);let i=null;"verifiableCredential"in l?i=l.verifiableCredential:"vc"in l&&(i=l.vc);const u=i?.credentialSubject;if(!u)return void(this.complianceLevel="NL");const C=u["gx:labelLevel"];this.complianceLevel="string"==typeof C&&t.includes(C)?C:"NL"}catch(l){this.complianceLevel="NL",console.log(l)}}openRequestValidationModal(){this.showRequestValidationModal=!0}closeRequestValidationModal(){this.showRequestValidationModal=!1}hasSelfAttestation(){const c=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value;return"string"==typeof c?""!==c.trim():!!c}hasUnsavedComplianceProfileChanges(){return this.getCurrentComplianceEvidenceSignature()!==this.initialComplianceEvidenceSignature}isVerified(c){return this.verifiedISO.indexOf(c.name)>-1}dropped(c,t){this.files=c;for(const l of c)l.fileEntry.isFile?l.fileEntry.file(u=>{if(console.log("dropped"),u){const C=new FileReader;C.onload=b=>{const T=b.target.result.split(",")[1];console.log("BASE 64...."),console.log(T);null!=this.generalForm.value.name&&this.generalForm.value.name.replaceAll(/\s/g,"");let u1={content:{name:L4()+"_"+u.name,data:T},contentType:u.type,isPublic:!0};if(!this.isValidFilename(u1.content.name))return this.errorMessage="File names can only include alphabetical characters (A-Z, a-z) and a limited set of symbols, such as underscores (_), hyphens (-), and periods (.)",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(u.size>this.MAX_FILE_SIZE)return this.errorMessage="File size must be under 3MB.",console.error("There was an error while uploading file!"),this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);if(this.isCurrentStep("compliance")&&!this.showUploadAtt){const a1=this.selectedISOS.findIndex(T1=>T1.name===t.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{console.log(T1),-1!==a1?(this.selectedISOS[a1].url=T1.content,this.showUploadFile=!1,this.cdr.detectChanges(),console.log("uploaded")):this.isoToCreate=T1.content},error:T1=>{console.error("There was an error while uploading file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}if(this.isCurrentStep("compliance")&&this.showUploadAtt){const a1=this.finishChars.findIndex(T1=>T1.name===this.selfAtt.name);this.attachmentService.uploadFile(u1).subscribe({next:T1=>{-1!==a1?(this.selfAtt.productSpecCharacteristicValue=[{isDefault:!0,value:T1.content}],this.finishChars[a1]=this.selfAtt):(this.selfAtt={id:"urn:ngsi-ld:characteristic:"+L4(),name:"Compliance:SelfAtt",productSpecCharacteristicValue:[{isDefault:!0,value:T1.content}]},this.finishChars.push(this.selfAtt)),this.showUploadFile=!1,this.showUploadAtt=!1,this.cdr.detectChanges(),console.log("uploaded")},error:T1=>{console.error("There was an error while uploading the file!",T1),T1.error.error?(console.log(T1),this.errorMessage="Error: "+T1.error.error):this.errorMessage="There was an error while uploading the file!",413===T1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}this.isCurrentStep("attachments")&&(console.log(u),this.attachmentService.uploadFile(u1).subscribe({next:a1=>{console.log(a1),"img"==t?u.type.startsWith("image")?(this.showImgPreview=!0,this.imgPreview=a1.content,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:u.type})):(this.errorMessage="File must have a valid image format!",this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)):this.attachToCreate={url:a1.content,attachmentType:u.type},this.cdr.detectChanges(),console.log("uploaded")},error:a1=>{console.error("There was an error while uploading file!",a1),a1.error.error?(console.log(a1),this.errorMessage="Error: "+a1.error.error):this.errorMessage="There was an error while uploading the file!",413===a1.status&&(this.errorMessage="File size too large! Must be under 3MB."),this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}}))},C.readAsDataURL(u)}}):console.log(l.relativePath,l.fileEntry)}isValidFilename(c){return this.filenameRegex.test(c)}fileOver(c){console.log(c)}fileLeave(c){console.log("leave"),console.log(c)}toggleUploadSelfAtt(){this.showUploadFile=!0,this.showUploadAtt=!0}toggleUploadFile(c){this.showUploadFile=!0,this.selectedISO=c}uploadFile(){console.log("uploading...")}toggleChars(){this.selectStep("chars","chars-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!0,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showCreateChar=!1,this.charTypeSelected="string",this.showPreview=!1,this.refreshChars(),D2()}toggleCreateCharacteristicForm(){this.showCreateChar=!this.showCreateChar,this.showCreateChar&&(this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.creatingChars=[],this.isOptional=!1,this.optionalDftTrue=!1,this.booleanDefaultTrue=!0,"boolean"===this.charTypeSelected&&this.setBooleanDefaultValues())}toggleResource(){this.loadingResourceSpec=!0,this.resourceSpecs=[],this.resourceSpecPage=0,this.getResSpecs(!1),this.selectStep("resource","resource-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!0,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingResourceSpec=!0),t.paginationService.getItemsPaginated(t.resourceSpecPage,t.RES_SPEC_LIMIT,c,t.resourceSpecs,t.nextResourceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.resSpecService.getResourceSpecByUser.bind(t.resSpecService)).then(i=>{t.resourceSpecPageCheck=i.page_check,t.resourceSpecs=i.items,t.nextResourceSpecs=i.nextItems,t.resourceSpecPage=i.page,t.loadingResourceSpec=!1,t.loadingResourceSpec_more=!1})})()}nextRes(){var c=this;return(0,C1.A)(function*(){yield c.getResSpecs(!0)})()}addResToSelected(c){const t=this.selectedResourceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedResourceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedResourceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedResourceSpecs)}isResSelected(c){return-1!==this.selectedResourceSpecs.findIndex(l=>l.id===c.id)}toggleService(){this.loadingServiceSpec=!0,this.serviceSpecs=[],this.serviceSpecPage=0,this.getServSpecs(!1),this.selectStep("service","service-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!0,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingServiceSpec=!0),t.paginationService.getItemsPaginated(t.serviceSpecPage,t.SERV_SPEC_LIMIT,c,t.serviceSpecs,t.nextServiceSpecs,{filters:["Active","Launched"],partyId:t.partyId},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.serviceSpecPageCheck=i.page_check,t.serviceSpecs=i.items,t.nextServiceSpecs=i.nextItems,t.serviceSpecPage=i.page,t.loadingServiceSpec=!1,t.loadingServiceSpec_more=!1})})()}nextServ(){var c=this;return(0,C1.A)(function*(){c.loadingServiceSpec_more=!0,c.serviceSpecPage=c.serviceSpecPage+c.SERV_SPEC_LIMIT,console.log(c.serviceSpecPage),yield c.getServSpecs(!0)})()}addServToSelected(c){const t=this.selectedServiceSpecs.findIndex(l=>l.id===c.id);-1!==t?(console.log("eliminar"),this.selectedServiceSpecs.splice(t,1)):(console.log("a\xf1adir"),this.selectedServiceSpecs.push({id:c.id,href:c.href,name:c.name})),this.cdr.detectChanges(),console.log(this.selectedServiceSpecs)}isServSelected(c){return-1!==this.selectedServiceSpecs.findIndex(l=>l.id===c.id)}toggleAttach(){this.selectStep("attach","attach-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!0,this.showRelationships=!1,this.showSummary=!1,this.showPreview=!1,setTimeout(()=>{D2()},100),this.refreshChars()}removeImg(){this.showImgPreview=!1;const c=this.prodAttachments.findIndex(t=>t.url===this.imgPreview);-1!==c&&(console.log("eliminar"),this.prodAttachments.splice(c,1)),this.imgPreview="",this.cdr.detectChanges()}saveImgFromURL(){this.showImgPreview=!0,this.imgPreview=this.imgURL.nativeElement.value,this.prodAttachments.push({name:"Profile Picture",url:this.imgPreview,attachmentType:"Picture"}),this.attImageName.reset(),this.cdr.detectChanges()}removeAtt(c){const t=this.prodAttachments.findIndex(l=>l.url===c.url);-1!==t&&(console.log("eliminar"),"Profile Picture"==this.prodAttachments[t].name&&(this.showImgPreview=!1,this.imgPreview="",this.cdr.detectChanges()),this.prodAttachments.splice(t,1)),this.cdr.detectChanges()}saveAtt(){console.log("saving"),this.prodAttachments.push({name:this.attachName.nativeElement.value,url:this.attachToCreate.url,attachmentType:this.attachToCreate.attachmentType}),this.attachName.nativeElement.value="",this.attachToCreate={url:"",attachmentType:""},this.showNewAtt=!1,this.attFileName.reset()}clearAtt(){this.attachToCreate={url:"",attachmentType:""}}saveAdditionalCert(){console.log("saving"),this.additionalISOS.push({name:"Compliance:"+this.certificationName.nativeElement.value,url:this.isoToCreate}),this.certificationName.nativeElement.value="",this.isoToCreate="",this.certFileName.reset(),this.showCert=!1}clearAdditionalCert(c){c||(this.certificationName.nativeElement.value="",this.certFileName.reset()),this.isoToCreate=""}toggleRelationship(){this.prodSpecRels=[],this.prodSpecRelPage=0,this.showCreateRel=!1,this.loadingprodSpecRel=!0,this.getProdSpecsRel(!1),this.selectStep("relationships","relationships-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),D2()}getProdSpecsRel(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingprodSpecRel=!0),t.paginationService.getItemsPaginated(t.prodSpecRelPage,t.PROD_SPEC_LIMIT,c,t.prodSpecRels,t.nextProdSpecRels,{filters:["Active","Launched"],partyId:t.partyId},t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService)).then(i=>{t.prodSpecRelPageCheck=i.page_check,t.prodSpecRels=i.items,t.nextProdSpecRels=i.nextItems,t.prodSpecRelPage=i.page,t.loadingprodSpecRel=!1,t.loadingprodSpecRel_more=!1})})()}selectRelationship(c){this.selectedProdSpec=c}nextProdSpecsRel(){var c=this;return(0,C1.A)(function*(){yield c.getProdSpecsRel(!0)})()}onRelChange(c){console.log("relation type changed"),this.selectedRelType=c.target.value,this.cdr.detectChanges()}saveRel(){this.showCreateRel=!1,this.prodRelationships.push({id:this.selectedProdSpec.id,href:this.selectedProdSpec.href,relationshipType:this.selectedRelType,name:this.selectedProdSpec.name}),this.selectedRelType="migration",console.log(this.prodRelationships)}deleteRel(c){const t=this.prodRelationships.findIndex(l=>l.id===c.id);-1!==t&&(console.log("eliminar"),this.prodRelationships.splice(t,1)),this.cdr.detectChanges()}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.jsonValue="",this.charTypeSelected=this.getInitialCharacteristicTypeForCurrentStep(),this.booleanDefaultTrue=!0,this.isOptional=!1,this.optionalDftTrue=!1,this.creatingChars=[]}setBooleanDefaultValues(){this.creatingChars=[{isDefault:this.booleanDefaultTrue,value:!0},{isDefault:!this.booleanDefaultTrue,value:!1}]}onBooleanDefaultChange(){"boolean"==this.charTypeSelected&&this.setBooleanDefaultValues()}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u!t.name?.startsWith("Compliance:"));return this.isDataspaceConfigurationStep()?c.filter(t=>this.isDataSpaceCharacteristicType(t.valueType)):c.filter(t=>!this.isDataSpaceCharacteristicType(t.valueType))}getInitialCharacteristicTypeForCurrentStep(){return this.isDataspaceConfigurationStep()?"credentialsConfiguration":"string"}getFormSteps(){const c=[{label:"General Info",id:"general"}];return this.BUNDLE_ENABLED&&c.push({label:"Bundle",id:"bundle"}),c.push({label:"Compliance profile",id:"compliance"}),c.push({label:"Characteristics",id:"characteristics"}),this.DATA_SPACE_ENABLED&&!this.prod.externalId&&c.push({label:"Dataspace Configuration",id:"dataspace"}),c.push({label:"Resource specifications",id:"resource"}),c.push({label:"Service specifications",id:"service"}),c.push({label:"Attachments",id:"attachments"}),c.push({label:"Relationships",id:"relationships"}),c.push({label:"Summary",id:"summary"}),c}isCurrentStep(c){return this.currentStep?.id===c}getSchemaLocationForType(c){return"credentialsConfiguration"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json":"authorizationPolicy"===c?"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json":null}addCharValue(){if(this.isTextCharacteristicType(this.charTypeSelected))console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue="";else if("number"==this.charTypeSelected)console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue="";else if("range"==this.charTypeSelected){if(console.log("range"),Number(this.fromValue)>=Number(this.toValue))return console.log("range validation error: valueFrom >= valueTo"),this.errorMessage='Invalid range: "From" value must be less than "To" value',this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})}else if(this.isDataSpaceCharacteristicType(this.charTypeSelected)){if(this.creatingChars.length>0)return this.errorMessage="Only one JSON value is allowed",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3);try{const c=JSON.parse(this.jsonValue);this.creatingChars.push({isDefault:!0,value:c}),this.jsonValue=""}catch{return this.errorMessage="Invalid JSON format",this.showError=!0,void setTimeout(()=>{this.showError=!1},3e3)}}else{if("boolean"==this.charTypeSelected)return void console.log("boolean values are fixed");console.log("nothing")}}removeCharValue(c,t){"boolean"!=this.charTypeSelected&&(console.log(this.creatingChars),this.creatingChars.splice(t,1),console.log(this.creatingChars))}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);if(-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),!c.name.endsWith("- enabled")){const l=this.prodChars.findIndex(i=>i.name===c.name+" - enabled");-1!==l&&(console.log("eliminar related enabled"),this.prodChars.splice(l,1))}this.cdr.detectChanges(),console.log(this.prodChars)}checkInput(c){return 0===c.trim().length}showFinish(){this.setProductData(),this.selectStep("summary","summary-circle"),this.showBundle=!1,this.showGeneral=!1,this.showCompliance=!1,this.showChars=!1,this.showResource=!1,this.showService=!1,this.showAttach=!1,this.showRelationships=!1,this.showSummary=!0,this.showPreview=!1,this.refreshChars(),D2()}setProductData(){this.finishChars=[],console.log("--- set product data"),console.log(this.prodChars);for(let c=0;cl.name===this.prodChars[c].name)){const l=this.prodChars[c]?.name?.replace("Compliance:","").trim();-1==this.availableISOS.findIndex(u=>u.name===l)&&"Compliance:SelfAtt"!=this.prodChars[c].name?(console.log("--- check if deleted additional cert"),console.log(this.prodChars[c].name),-1!=this.additionalISOS.findIndex(C=>C.name===l)&&this.finishChars.push(this.prodChars[c]),this.prodChars[c].name?.startsWith("Compliance:")||this.finishChars.push(this.prodChars[c])):this.finishChars.push(this.prodChars[c])}for(let c=0;cl.name===this.selectedISOS[c].name)&&this.finishChars.push({id:this.selectedISOS[c].id?this.selectedISOS[c].id:"urn:ngsi-ld:characteristic:"+L4(),name:this.selectedISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.selectedISOS[c].url}]});for(let c=0;cl.name===this.additionalISOS[c].name)&&this.finishChars.push({id:this.additionalISOS[c].id?this.additionalISOS[c].id:"urn:ngsi-ld:characteristic:"+L4(),name:this.additionalISOS[c].name,productSpecCharacteristicValue:[{isDefault:!0,value:this.additionalISOS[c].url}]}),console.log(this.finishChars);if(this.hasSelfAttestation()){const c="Compliance:SelfAtt",t=this.selfAtt?.productSpecCharacteristicValue?.[0]?.value,l=this.finishChars.findIndex(C=>C.name===c),u={id:this.selfAtt?.id?this.selfAtt.id:-1!==l&&this.finishChars[l]?.id?this.finishChars[l].id:`urn:ngsi-ld:characteristic:${L4()}`,name:c,productSpecCharacteristicValue:[{isDefault:!0,value:t}]};-1===l?this.finishChars.push(u):this.finishChars[l]=u}if(null!=this.complianceVC&&this.finishChars.push({id:this.complianceVCId?this.complianceVCId:`urn:ngsi-ld:characteristic:${L4()}`,name:"Compliance:VC",productSpecCharacteristicValue:[{isDefault:!0,value:this.complianceVC}]}),this.prod.externalId){this.endpointUrls.forEach(t=>{this.finishChars.push({id:t.id,description:t.description,valueType:"endpointUrl",name:t.name,productSpecCharacteristicValue:[{value:t.url,isDefault:!0}]})});const c=this.dspConfigForm.value;this.finishChars.push({id:"upstreamAddress",name:"Address of the upstream serving the data",valueType:"upstreamAddress",productSpecCharacteristicValue:[{value:c.upstreamAddress,isDefault:!0}]},{id:"targetSpecification",name:"Detailed specification of the ODRL target. Allows to over services via OID4VC",valueType:"targetSpecification",productSpecCharacteristicValue:[{value:JSON.parse(c.targetSpecification),isDefault:!0}]},{id:"serviceConfiguration",name:"Service config to be used in the credentials config service when provisioning transfers through OID4VC",valueType:"serviceConfiguration",productSpecCharacteristicValue:[{value:JSON.parse(c.serviceConfiguration),isDefault:!0}]},{id:"credentialsConfig",name:"Credentials Config",valueType:"credentialsConfig","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/main/schemas/credentials/credentialConfigCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(c.credentialsConfig),isDefault:!0}]},{id:"policyConfig",name:"Policy for creation of K8S clusters.",valueType:"authorizationPolicy","@schemaLocation":"https://raw.githubusercontent.com/FIWARE/contract-management/refs/heads/policy-support/schemas/odrl/policyCharacteristic.json",productSpecCharacteristicValue:[{value:JSON.parse(c.policyConfig),isDefault:!0}]},{id:"transferType",name:"transferType",valueType:"transferType",productSpecCharacteristicValue:[{value:c.transferType,isDefault:!0}]}),c.transferPath&&this.finishChars.push({id:"transferPath",name:"transferPath",valueType:"transferPath",productSpecCharacteristicValue:[{value:c.transferPath,isDefault:!0}]})}if(null!=this.generalForm.value.name&&null!=this.generalForm.value.version&&null!=this.generalForm.value.brand){let c=[];for(let t=0;t{this.loading=!1,this.goBack(),console.log("actualiado producto")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while uploading the product!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}isStepDisabled(){switch(this.currentStep.id){case"general":return!this.generalForm?.valid||!1;case"bundle":return this.prodSpecsBundle.length<2&&this.bundleChecked;case"compliance":return this.checkValidISOS();default:return!1}}addBold(){this.generalForm.patchValue({description:this.generalForm.value.description+" **bold text** "})}addItalic(){this.generalForm.patchValue({description:this.generalForm.value.description+" _italicized text_ "})}addList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n- First item\n- Second item"})}addOrderedList(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n1. First item\n2. Second item"})}addCode(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n`code`"})}addCodeBlock(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n```\ncode\n```"})}addBlockquote(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n> blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}getValuePreview(c,t=80){if(null==c)return"";let l="";if("string"==typeof c)l=c;else try{l=JSON.stringify(c)}catch{l=String(c)}return l.length>t?`${l.slice(0,t)}...`:l}goToStep(c){this.currentStepIdx=c,this.currentStepIdx>this.highestStepIdx&&(this.highestStepIdx=this.currentStepIdx),this.refreshChars(),this.isCurrentStep("compliance")&&setTimeout(()=>{D2()},100),this.isCurrentStep("resource")&&this.getResSpecs(!1),this.isCurrentStep("service")&&this.getServSpecs(!1),this.isCurrentStep("attachments")&&setTimeout(()=>{D2()},100),this.isCurrentStep("relationships")&&this.getProdSpecsRel(!1),this.isCurrentStep("summary")&&this.showFinish()}validateCurrentStep(){return"general"!==this.currentStep.id||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}normalizeName(c){return c?.replace(/compliance:/i,"").trim()??""}getCurrentComplianceEvidenceSignature(){const c=[],t=this.normalizeComplianceValue(this.selfAtt?.productSpecCharacteristicValue?.[0]?.value);t&&c.push(this.toComplianceEntrySignature("Compliance:SelfAtt",t));for(const l of this.selectedISOS){const i=this.normalizeComplianceName(l?.name);if(!i)continue;const u=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(i,u))}for(const l of this.additionalISOS){const i=this.normalizeComplianceName(l?.name);if(!i)continue;const u=this.normalizeComplianceValue(l?.url);c.push(this.toComplianceEntrySignature(i,u))}return c.sort().join("|")}normalizeComplianceName(c){const t=this.normalizeComplianceValue(c);return t?t.toLowerCase().startsWith("compliance:")?t:`Compliance:${t}`:""}normalizeComplianceValue(c){return null==c?"":String(c).trim()}toComplianceEntrySignature(c,t){return`${c.toLowerCase()}::${t}`}addEndpointUrl(){const c=this.newEndpointUrl.trim(),t=this.newEndpointDescription.trim(),l=this.newEndpointName.trim();!c||!t||(this.endpointUrls=[...this.endpointUrls,{url:c,description:t,name:l,id:L4()}],this.newEndpointUrl="",this.newEndpointDescription="",this.newEndpointName="")}removeEndpointUrl(c){this.endpointUrls=this.endpointUrls.filter((t,l)=>l!==c)}addDspConfigStep(){if(this.steps.some(i=>"dsp_config"===i.id))return;const t=this.steps.findIndex(i=>"service"===i.id);this.steps=[...this.steps.slice(0,t+1),{label:"DSP Config",id:"dsp_config"},...this.steps.slice(t+1)];const l={};this.prod?.productSpecCharacteristic&&this.prod.productSpecCharacteristic.forEach(i=>{const u=i.productSpecCharacteristicValue?.[0]?.value??"";switch(i.valueType){case"endpointUrl":this.endpointUrls.push({name:i.name??"",url:u,description:i.description??"",id:i.id});break;case"upstreamAddress":case"transferPath":case"transferType":l[i.valueType]=u;break;case"targetSpecification":case"serviceConfiguration":case"credentialsConfig":l[i.valueType]=JSON.stringify(u);break;case"authorizationPolicy":l.policyConfig=JSON.stringify(u)}}),this.dspConfigForm.patchValue(l)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(wn),e.rXU(J6),e.rXU(f6),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-product-spec"]],viewQuery:function(t,l){if(1&t&&(e.GBs(nu0,5),e.GBs(lu0,5),e.GBs(su0,5)),2&t){let i;e.mGM(i=e.lsd())&&(l.attachName=i.first),e.mGM(i=e.lsd())&&(l.imgURL=i.first),e.mGM(i=e.lsd())&&(l.certificationName=i.first)}},hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{prod:"prod"},decls:53,vars:47,consts:[["certificationName",""],["imgURL",""],["attachName",""],[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","pb-4","dark:text-white"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],[1,"m-4"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","btnNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","productSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[3,"closeModal","showModal","productSpec","selfAtt","selectedISOS","additionalISOS"],["id","upload-file-modal","tabindex","-1","aria-hidden","true",1,"flex","overflow-y-auto","overflow-x-hidden","fixed","top-0","right-0","left-0","z-40","justify-center","items-center","w-full","md:inset-0","h-modal","md:h-full","shadow-2xl",3,"ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["formControlName","version","type","text","id","prod-version",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-brand",1,"font-bold","text-lg","dark:text-white"],["formControlName","brand","type","text","id","prod-brand",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-number",1,"font-bold","text-lg","dark:text-white"],["formControlName","number","type","text","id","prod-number",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[1,"mb-2","col-span-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["for","prod-name",1,"font-bold","text-lg","col-span-2","dark:text-white"],["formControlName","description",1,"col-span-2"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","productSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"col-span-2","flex","align-items-middle","h-fit","m-4"],[1,"inline-flex","items-center","me-5","ml-4"],["type","checkbox","disabled","","value","",1,"sr-only","peer",3,"checked"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","lg:table-cell","px-6","py-4"],[1,"px-6","py-4"],["id","select-checkbox","type","checkbox","value","","disabled","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"checked"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],[1,"flex","w-full","items-center","px-4","mb-3"],["src","assets/logos/baseline.png","alt","Baseline logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],[1,"ml-auto","flex","items-center","gap-2"],["type","button",1,"flex","text-white","justify-end","bg-primary-100","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 11.917 9.724 16.5 19 7.5"],[1,"flex"],["data-popover-target","popover-default","clip-rule","evenodd","aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"flex","self-center","w-6","h-6","text-primary-100"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M10 11h2v5m-2 0h4m-2.592-8.5h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"],["role","alert",1,"mx-4","mb-3","p-3","text-sm","text-amber-800","rounded-lg","bg-amber-100","dark:bg-amber-900","dark:text-amber-200"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","ml-4"],[1,"flex","items-center","justify-between","ml-4","border","border-1","p-2","rounded-lg","shadow","bg-white","dark:bg-secondary-200","shadow-md"],[1,"mb-2","text-gray-800","dark:text-gray-200"],[1,"flex","items-center","justify-between"],["type","button",1,"text-white","file-select-button","mr-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 5v9m-5 0H5a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2M8 9l4-5 4 5m1 8h.01"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center"],["data-popover","","id","popover-default","role","tooltip",1,"absolute","z-10","invisible","inline-block","w-64","text-sm","text-gray-500","transition-opacity","duration-300","bg-white","border","border-gray-200","rounded-lg","shadow-sm","opacity-0","dark:text-gray-400","dark:border-gray-600","dark:bg-gray-800"],[1,"px-3","py-2","bg-gray-100","border-b","border-gray-200","rounded-t-lg","dark:border-gray-600","dark:bg-gray-700"],[1,"font-semibold","text-gray-900","dark:text-white"],[1,"px-3","py-2","inline-block"],[1,"inline-block"],["data-popper-arrow",""],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","m-4"],[1,"flex","justify-center","w-full","m-4","dark:bg-secondary-300"],[1,"relative","flex","w-full","justify-end","ml-4"],[1,"relative","inline-block","group"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2\n bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50\n transition-opacity duration-200 w-max max-w-xs whitespace-normal break-words\n opacity-0 invisible group-hover:opacity-100 group-hover:visible",4,"ngIf"],[1,"flex","w-full","justify-items-center","justify-center"],["src","assets/logos/prof.png","alt","Professional logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],["src","assets/logos/profplus.png","alt","Professional plus logo",1,"h-[1.9rem]","max-w-[12rem]","object-contain","rounded-md"],["type","button",1,"text-white","bg-red-600","hover:bg-red-700","focus:ring-4","focus:outline-none","focus:ring-red-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["id","dropdownButtonISO","data-dropdown-toggle","dropdownISO","type","button",1,"text-white","w-full","m-4","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center","justify-between",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 10 6",1,"w-2.5","h-2.5","ms-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 4 4 4-4"],["id","dropdownISO",1,"z-10","w-full","ml-4","mr-4","bg-secondary-50","dark:bg-secondary-300","divide-y","divide-gray-100","rounded-lg","shadow"],["aria-labelledby","dropdownButtonISO",1,"p-3","space-y-3","text-sm","text-gray-700"],["for","checkbox-item-1",1,"ms-2","text-sm",3,"ngClass"],["type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","18","height","18","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4","inline-flex"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50","transition-opacity","duration-200","w-max","max-w-xs","whitespace-normal","break-words","opacity-0","invisible","group-hover:opacity-100","group-hover:visible"],[1,"absolute","left-1/2","transform","-translate-x-1/2","translate-y-1","w-2","h-2","bg-gray-900","rotate-45"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],[1,"m-4","w-full"],[1,"lg:flex","lg:grid","lg:grid-cols-2","w-full","gap-4","align-items-middle","align-middle","border","border-gray-200","rounded-lg","p-4"],[1,"h-fit"],["for","cert-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","cert-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],["dropZoneLabel","Drop files here",1,"p-4","w-full"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["type","button",1,"flex","ml-4","text-gray-900","justify-end","bg-gray-400","hover:bg-primary-50","focus:ring-4","focus:outline-none","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["dropZoneLabel","Drop files here",1,"p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp","",1,"w-full"],[1,"w-full","flex","flex-col","justify-items-center","justify-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-12","h-12","text-primary-100","mx-auto"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M15 17h3a3 3 0 0 0 0-6h-.025a5.56 5.56 0 0 0 .025-.5A5.5 5.5 0 0 0 7.207 9.021C7.137 9.017 7.071 9 7 9a4 4 0 1 0 0 8h2.167M12 19v-9m0 0-2 2m2-2 2 2"],[1,"flex","w-full","justify-center"],[1,"text-gray-500","mr-2","w-fit"],[1,"font-medium","text-primary-100","dark:text-primary-50","hover:underline",3,"click"],["role","alert",1,"relative","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],[1,"text-wrap","break-all"],[1,"z-10","absolute","top-2","right-2","p-1","font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],[1,"m-4","grid","grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","charType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4","maxLength","500",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],["data-cy","btnSaveCharacteristic","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["value","credentialsConfiguration"],["value","authorizationPolicy"],["value","string"],["value","number"],["value","range"],["value","boolean"],[1,"col-span-2","flex","align-items-middle","h-fit"],["for","is-optional",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","is-optional",1,"sr-only","peer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel","ngModelOptions"],[3,"value"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["for","boolean-default",1,"font-bold","text-lg","dark:text-white"],["data-cy","charBooleanDefault","id","boolean-default","type","checkbox",1,"sr-only","peer",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],[1,"flex","flex-col","w-full"],["for","json-value",1,"font-bold","text-sm","dark:text-white","mb-2"],["id","json-value","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-4","py-2","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","mr-2","text-white"],["id","select-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500","dark:focus:ring-blue-600","dark:ring-offset-gray-800","focus:ring-2","dark:bg-gray-700","dark:border-gray-600",3,"click","checked"],[1,"font-bold","text-primary-100","dark:text-primary-50","text-left","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","mb-4"],[1,"flex","flex-col","gap-2"],[1,"flex","gap-4"],[1,"flex","flex-col","w-1/2"],["type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["type","url",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],["rows","3","maxlength","100000",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"input","value","placeholder"],[1,"flex","justify-center"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","ml-2","text-white"],[1,"mt-2","text-sm","text-red-500"],[1,"my-6","border-gray-200","dark:border-gray-700"],[1,"flex","flex-col","gap-4",3,"formGroup"],[1,"w-3/6"],["formControlName","upstreamAddress","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"w-2/6"],["formControlName","transferPath","type","text",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","transferType",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[3,"value",4,"ngFor","ngForOf"],["formControlName","targetSpecification","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","serviceConfiguration","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","credentialsConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["formControlName","policyConfig","rows","4","placeholder",'{"key": "value"}',1,"font-mono","bg-gray-50","dark:bg-secondary-300","border","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"table-fixed","w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],["scope","col",1,"w-96","px-6","py-3"],["scope","col",1,"w-48","px-2","py-3","text-center"],[1,"px-6","py-4","break-all"],[1,"px-6","py-4","break-words"],[1,"px-2","py-4","text-center"],[1,"mt-1","text-sm","text-red-500"],[1,"inline-flex"],[1,"text-lg","font-bold","ml-4","dark:text-white"],[1,"ml-4","flex"],[1,"relative","isolate","flex","flex-col","justify-end","overflow-hidden","rounded-2xl","px-8","pb-8","pt-40","max-w-sm","mx-auto","m-4","shadow-lg"],[1,"flex","justify-center","w-full","ml-6","mt-2","mb-2","mr-4"],[1,"absolute","inset-0","h-full","w-full","object-cover",3,"src"],[1,"flex","w-full","justify-center","justify-items-center"],["dropZoneLabel","Drop files here",1,"m-4","p-4","w-full",3,"onFileDrop","onFileOver","onFileLeave"],[1,"font-bold","ml-6","dark:text-white"],[1,"relative","w-full","ml-6","mt-2","mb-2"],["class","absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 w-max bg-gray-900 text-white text-xs rounded-lg p-2 shadow-lg z-50",4,"ngIf"],[1,"flex","items-center","h-fit","w-full","justify-between"],["type","text","id","att-name",1,"w-full","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","p-2.5",3,"blur","formControl","ngClass"],[1,"text-white","bg-primary-100","rounded-3xl","p-1","ml-2","h-fit",3,"click","disabled","ngClass"],[1,"absolute","bottom-full","left-1/2","transform","-translate-x-1/2","mb-2","w-max","bg-gray-900","text-white","text-xs","rounded-lg","p-2","shadow-lg","z-50"],["for","att-name",1,"font-bold","text-lg","dark:text-white"],["type","text","id","att-name",1,"mb-2","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl","ngClass"],[1,"flex","justify-center","w-full","mb-4"],["id","type",1,"shadow","bg-white","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","migration"],["value","dependency"],["value","exclusivity"],["value","substitution"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"mb-4","md:grid","md:grid-cols-2","gap-4"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:text-white","text-gray-900",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"relative","p-4","w-full","max-w-md","h-full","md:h-auto",3,"click"],[1,"relative","p-4","text-center","bg-secondary-50","rounded-lg","shadow","sm:p-5"],["type","button",1,"text-gray-400","absolute","top-2.5","right-2.5","bg-transparent","hover:bg-gray-200","hover:text-gray-900","rounded-lg","text-sm","p-1.5","ml-auto","inline-flex","items-center",3,"click"],["aria-hidden","true","fill","currentColor","viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",1,"w-5","h-5"],["fill-rule","evenodd","d","M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule","evenodd"],["dropZoneLabel","Drop files here",1,"m-4","p-4",3,"onFileDrop","onFileOver","onFileLeave"],["ngx-file-drop-content-tmp",""],[1,"flex","justify-center","items-center","space-x-4"],["type","button",1,"py-2","px-3","text-sm","font-medium","text-gray-500","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","focus:ring-4","focus:outline-none","focus:ring-primary-300","hover:text-gray-900","focus:z-10",3,"click"],["type","submit",1,"py-2","px-3","text-sm","font-medium","text-center","text-white","bg-primary-100","hover:bg-primary-50","rounded-lg","focus:ring-4","focus:outline-none","focus:ring-primary-50",3,"click"],[1,"text-gray-500","mr-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",3)(2,"nav",4)(3,"ol",5)(4,"li",6)(5,"button",7),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",8),e.nrm(7,"path",9),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",10)(11,"div",11),e.qSk(),e.j41(12,"svg",12),e.nrm(13,"path",13),e.k0s(),e.joV(),e.j41(14,"span",14),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",15)(18,"h2",16),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",17),e.Z7z(22,iu0,5,12,"li",18,e.Vm6),e.k0s(),e.j41(24,"div",19)(25,"div"),e.DNE(26,_u0,36,26,"form",20)(27,Eu0,8,5)(28,Ju0,58,26)(29,Rm0,4,2)(30,qm0,4,2)(31,ap0,4,2)(32,bp0,67,61,"div",21)(33,Ip0,26,15)(34,Zp0,5,2,"div",21)(35,jh0,3,1,"div",22),e.k0s(),e.j41(36,"div",23)(37,"button",24),e.bIt("click",function(){return l.goToStep(l.currentStepIdx-1)}),e.qSk(),e.j41(38,"svg",25),e.nrm(39,"path",26),e.k0s(),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.joV(),e.j41(42,"button",27),e.bIt("click",function(){return l.goToStep(l.currentStepIdx+1)}),e.EFF(43),e.nI1(44,"translate"),e.qSk(),e.j41(45,"svg",28),e.nrm(46,"path",29),e.k0s()(),e.joV(),e.j41(47,"button",30),e.bIt("click",function(){return l.updateProduct()}),e.EFF(48),e.nI1(49,"translate"),e.k0s()()()()(),e.j41(50,"request-validation-modal",31),e.bIt("closeModal",function(){return l.closeRequestValidationModal()}),e.k0s(),e.DNE(51,Oh0,18,10,"div",32)(52,Bh0,1,1,"error-message",33)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,29,"UPDATE_PROD_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,31,"UPDATE_PROD_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,33,"UPDATE_PROD_SPEC._update_prod")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,"general"===l.currentStep.id?26:-1),e.R7$(),e.vxM(27,"bundle"===l.currentStep.id?27:-1),e.R7$(),e.vxM(28,l.isCurrentStep("compliance")?28:-1),e.R7$(),e.vxM(29,l.isCurrentStep("characteristics")||l.isCurrentStep("dataspace")?29:-1),e.R7$(),e.vxM(30,l.isCurrentStep("resource")?30:-1),e.R7$(),e.vxM(31,l.isCurrentStep("service")?31:-1),e.R7$(),e.vxM(32,"dsp_config"===l.currentStep.id?32:-1),e.R7$(),e.vxM(33,l.isCurrentStep("attachments")?33:-1),e.R7$(),e.vxM(34,l.isCurrentStep("relationships")?34:-1),e.R7$(),e.vxM(35,l.isCurrentStep("summary")?35:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStepIdx)("ngClass",e.l_i(41,au0,0!==l.currentStepIdx,0===l.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(41,35,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStepIdx===l.steps.length-1||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())("ngClass",e.l_i(44,ou0,l.currentStepIdx!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStepIdx)),l.currentStepIdx===l.steps.length-1||!l.canNavigate(l.currentStepIdx)||l.isStepDisabled())),e.R7$(),e.SpI(" ",e.bMT(44,37,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",l.isStepDisabled()||l.loading)("ngClass",l.loading||l.isStepDisabled()?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(49,39,"UPDATE_PROD_SPEC._update_prod")," "),e.R7$(2),e.Y8G("showModal",l.showRequestValidationModal)("productSpec",l.prod)("selfAtt",l.selfAtt)("selectedISOS",l.selectedISOS)("additionalISOS",l.additionalISOS),e.R7$(),e.vxM(51,l.showUploadFile?51:-1),e.R7$(),e.vxM(52,l.showError?52:-1))},dependencies:[_.YU,_.Sq,_.bT,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.R_,p.vS,p.l_,p.j4,p.JD,z0,R4,N0,me,E0,tu0,_.vh,s1.D9]})}}return n})();const Gh0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Hh0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),tw=(n,a)=>({"break-all":n,"break-words":a});function Yh0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function qh0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",33),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_RES_SPEC._description"))}}function Xh0(n,a){1&n&&(e.j41(0,"div",34)(1,"div",36),e.qSk(),e.j41(2,"svg",37),e.nrm(3,"path",38),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_RES_SPEC._no_chars")," "))}function Wh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Jh0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Qh0(n,a){if(1&n&&e.DNE(0,Wh0,4,2)(1,Jh0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Zh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Kh0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function eg0(n,a){if(1&n&&e.DNE(0,Zh0,1,1)(1,Kh0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function cg0(n,a){if(1&n&&e.DNE(0,Qh0,2,1)(1,eg0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function tg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ng0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lg0(n,a){if(1&n&&e.DNE(0,tg0,4,3)(1,ng0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function sg0(n,a){if(1&n&&e.DNE(0,cg0,2,1)(1,lg0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ag0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,sg0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",49)(9,"button",50),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,tw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function og0(n,a){if(1&n&&(e.j41(0,"div",40)(1,"table",41)(2,"thead",42)(3,"tr")(4,"th",43),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ag0,12,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_RES_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_RES_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_RES_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_RES_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function ig0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"button",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",54),e.nrm(5,"path",55),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_RES_SPEC._new_char")," "))}function rg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",77),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function dg0(n,a){if(1&n&&e.Z7z(0,rg0,11,4,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function fg0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ug0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function mg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,fg0,5,2,"label",80)(4,ug0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function pg0(n,a){if(1&n&&e.Z7z(0,mg0,8,2,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function hg0(n,a){if(1&n&&(e.j41(0,"label",72),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",73),e.DNE(4,dg0,2,0)(5,pg0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"CREATE_RES_SPEC._values")),e.R7$(3),e.vxM(4,c.rangeCharSelected?4:5)}}function gg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function _g0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",87),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",83),e.nrm(13,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_RES_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Lg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",89),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",90),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",85)(12,"span",86),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",83),e.nrm(18,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_RES_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_RES_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function Cg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",56)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",57),e.k0s(),e.j41(6,"div")(7,"label",58),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",59),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",60),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",61),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",62),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",63)(18,"label",64),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",65),e.k0s()(),e.j41(22,"div",66),e.DNE(23,hg0,6,4),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,gg0,5,3,"div",68)(28,_g0,14,10)(29,Lg0,19,14),e.j41(30,"div",69)(31,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",54),e.nrm(35,"path",71),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"CREATE_RES_SPEC._name")),e.R7$(5),e.JRh(e.bMT(9,13,"CREATE_RES_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"CREATE_RES_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"CREATE_RES_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"CREATE_RES_SPEC._save_char")," ")}}function zg0(n,a){if(1&n&&e.DNE(0,Xh0,9,3,"div",34)(1,og0,19,12)(2,ig0,6,3,"div",35)(3,Cg0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function Mg0(n,a){1&n&&(e.j41(0,"div",91),e.qSk(),e.j41(1,"svg",92),e.nrm(2,"path",93)(3,"path",94),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Loading..."),e.k0s()())}function xg0(n,a){if(1&n&&(e.j41(0,"span",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function bg0(n,a){if(1&n&&(e.j41(0,"span",99),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function yg0(n,a){if(1&n&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function Fg0(n,a){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)}}function vg0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",102),e.nrm(4,"markdown",103),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,tw,c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.description,20),!c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.description,20)))("data",null==c.resourceToCreate?null:c.resourceToCreate.description)}}function kg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function wg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Sg0(n,a){if(1&n&&e.DNE(0,kg0,4,2)(1,wg0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Ng0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function Eg0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function Dg0(n,a){if(1&n&&e.DNE(0,Ng0,1,1)(1,Eg0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Tg0(n,a){if(1&n&&e.DNE(0,Sg0,2,1)(1,Dg0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function Rg0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ag0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Ig0(n,a){if(1&n&&e.DNE(0,Rg0,4,3)(1,Ag0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Pg0(n,a){if(1&n&&e.DNE(0,Tg0,2,1)(1,Ig0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function jg0(n,a){if(1&n&&(e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",46),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,Pg0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,tw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,tw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function $g0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",104)(4,"table",41)(5,"thead",42)(6,"tr")(7,"th",43),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,jg0,8,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.resourceToCreate?null:c.resourceToCreate.resourceSpecCharacteristic)}}function Og0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",95),e.EFF(5),e.k0s()(),e.j41(6,"div",96)(7,"label",97),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,xg0,2,1,"span",98)(11,bg0,2,1)(12,yg0,2,1)(13,Fg0,2,1),e.k0s(),e.DNE(14,vg0,5,8)(15,$g0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,tw,c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.name,20),!c.hasLongWord(null==c.resourceToCreate?null:c.resourceToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.resourceToCreate?null:c.resourceToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?10:"Launched"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?11:"Retired"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.resourceToCreate?null:c.resourceToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.resourceToCreate?null:c.resourceToCreate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function Bg0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,Mg0,6,0,"div",91)(2,Og0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Vg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",105),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createResource())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_RES_SPEC._create_res")," ")}}function Ug0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Gg0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.resSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalDone=!1,this.charsDone=!1,this.finishDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerResourceSpec(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.charsDone=!0,this.finishDone=!0,null!=this.generalForm.value.name&&(this.resourceToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",resourceSpecCharacteristic:this.prodChars,relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("SERVICE TO CREATE:"),console.log(this.resourceToCreate),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars()),this.showPreview=!1}createResource(){this.loading=!0,this.resSpecService.postResSpec(this.resourceToCreate).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv created")},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the resource!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),2==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(f6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-resource-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:42,vars:30,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","resSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","resSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","resSpecDescription","formControlName","description"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","resSpecNewChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["data-cy","resSpecCharName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecCharType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","resSpecCharDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","resSpecSaveChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","resSpecCharValueString","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecAddCharValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md","dark:text-white"],["data-cy","resSpecCharValueNumber","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","resSpecCharValueTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],["data-cy","resSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,Yh0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,qh0,9,8,"form",17)(27,zg0,4,2)(28,Bg0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.DNE(40,Vg0,3,5,"button",26),e.k0s()()()(),e.DNE(41,Ug0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,14,"CREATE_RES_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,16,"CREATE_RES_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,18,"CREATE_RES_SPEC._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(24,Gh0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,20,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))("ngClass",e.l_i(27,Hh0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(37,22,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(40,2===l.currentStep?40:-1),e.R7$(),e.vxM(41,l.showError?41:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const Hg0=(n,a)=>a.id,Yg0=(n,a)=>({"break-all":n,"break-words":a});function qg0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function Xg0(n,a){if(1&n&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Wg0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Jg0(n,a){if(1&n&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Qg0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Zg0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",40)(1,"td",42),e.EFF(2),e.k0s(),e.j41(3,"td",43),e.DNE(4,Xg0,2,1,"span",44)(5,Wg0,2,1)(6,Jg0,2,1)(7,Qg0,2,1),e.k0s(),e.j41(8,"td",45),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",43)(12,"button",46),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,Yg0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Kg0(n,a){1&n&&(e.j41(0,"div",41)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_res")," "))}function e_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",55)(1,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2," Load more "),e.qSk(),e.j41(3,"svg",57),e.nrm(4,"path",8),e.k0s()()()}}function c_0(n,a){if(1&n&&e.DNE(0,e_0,5,0,"div",55),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function t_0(n,a){1&n&&(e.j41(0,"div",58),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function n_0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,Zg0,15,10,"tr",40,Hg0,!1,Kg0,7,3,"div",41),e.k0s()()(),e.DNE(21,c_0,1,1)(22,t_0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.resSpecs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let l_0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.resSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.resSpecs=[],this.nextResSpecs=[],this.page=0,this.RES_SPEC_LIMIT=g1.c.RES_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getResSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initResources()})}ngOnInit(){this.initResources();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initResources(){this.loading=!0,this.resSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getResSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateResourceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateResourceSpec(c)}getResSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0);let l={filters:t.status,partyId:t.partyId,sort:t.sort};try{const i=yield t.paginationService.getItemsPaginated(t.page,t.RES_SPEC_LIMIT,c,t.resSpecs,t.nextResSpecs,l,t.resSpecService.getResourceSpecByUser.bind(t.resSpecService));t.page_check=i.page_check,t.resSpecs=i.items,t.nextResSpecs=i.nextItems,t.page=i.page}finally{t.loading=!1,t.loading_more=!1}})()}next(){var c=this;return(0,C1.A)(function*(){c.loading_more=!0,yield c.getResSpecs(!0)})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getResSpecs(!1)}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getResSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(f6),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-resource-spec"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createResSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","resSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","resSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","resourceSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["data-cy","loadMoreLoading","role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,qg0,6,0,"div",29)(52,n_0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._res_spec")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_res")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const s_0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),a_0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),nw=(n,a)=>({"break-all":n,"break-words":a});function o_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function i_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function r_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function d_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function f_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function u_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function m_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function p_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function h_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setResStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function g_0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,i_0,5,0,"li",36)(11,r_0,3,0)(12,d_0,5,0,"li",37)(13,f_0,3,0)(14,u_0,5,0,"li",38)(15,m_0,3,0)(16,p_0,5,0,"li",39)(17,h_0,3,0),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_RES_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(10,"Active"==t.resStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.resStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.resStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.resStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_RES_SPEC._description"))}}function __0(n,a){1&n&&(e.j41(0,"div",53)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_RES_SPEC._no_chars")," "))}function L_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function C_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function z_0(n,a){if(1&n&&e.DNE(0,L_0,4,2)(1,C_0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function M_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function x_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function b_0(n,a){if(1&n&&e.DNE(0,M_0,1,1)(1,x_0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function y_0(n,a){if(1&n&&e.DNE(0,z_0,2,1)(1,b_0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function F_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function v_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function k_0(n,a){if(1&n&&e.DNE(0,F_0,4,3)(1,v_0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function w_0(n,a){if(1&n&&e.DNE(0,y_0,2,1)(1,k_0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function S_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,w_0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",68)(9,"button",69),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function N_0(n,a){if(1&n&&(e.j41(0,"div",59)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",63),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",62),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,S_0,12,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_RES_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_RES_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_RES_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_RES_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function E_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",73),e.nrm(5,"path",74),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_RES_SPEC._new_char")," "))}function D_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",95),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function T_0(n,a){if(1&n&&e.Z7z(0,D_0,11,4,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function R_0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function A_0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function I_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,R_0,5,2,"label",98)(4,A_0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function P_0(n,a){if(1&n&&e.Z7z(0,I_0,8,2,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function j_0(n,a){if(1&n&&(e.j41(0,"label",90),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",91),e.DNE(4,T_0,2,0)(5,P_0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,2,"UPDATE_RES_SPEC._values")),e.R7$(3),e.vxM(4,c.rangeCharSelected?4:5)}}function $_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function O_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",101),e.nrm(13,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_RES_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function B_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",103)(12,"span",107),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",101),e.nrm(18,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_RES_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_RES_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_RES_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function V_0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",75)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",76),e.k0s(),e.j41(6,"div")(7,"label",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",77),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",78),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",79),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",80),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",81)(18,"label",82),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",83),e.k0s()(),e.j41(22,"div",84),e.DNE(23,j_0,6,4),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,$_0,5,3,"div",86)(28,O_0,14,10)(29,B_0,19,14),e.j41(30,"div",87)(31,"button",88),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",73),e.nrm(35,"path",89),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"UPDATE_RES_SPEC._name")),e.R7$(5),e.JRh(e.bMT(9,13,"UPDATE_RES_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"UPDATE_RES_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"UPDATE_RES_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"UPDATE_RES_SPEC._save_char")," ")}}function U_0(n,a){if(1&n&&e.DNE(0,__0,9,3,"div",53)(1,N_0,19,12)(2,E_0,6,3,"div",54)(3,V_0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function G_0(n,a){1&n&&(e.j41(0,"div",108),e.qSk(),e.j41(1,"svg",109),e.nrm(2,"path",110)(3,"path",111),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function H_0(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function Y_0(n,a){if(1&n&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function q_0(n,a){if(1&n&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function X_0(n,a){if(1&n&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)}}function W_0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",119),e.nrm(4,"markdown",120),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,nw,c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.description,20),!c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.description,20)))("data",null==c.resourceToUpdate?null:c.resourceToUpdate.description)}}function J_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Q_0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Z_0(n,a){if(1&n&&e.DNE(0,J_0,4,2)(1,Q_0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function K_0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function eL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function cL0(n,a){if(1&n&&e.DNE(0,K_0,1,1)(1,eL0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tL0(n,a){if(1&n&&e.DNE(0,Z_0,2,1)(1,cL0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function nL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sL0(n,a){if(1&n&&e.DNE(0,nL0,4,3)(1,lL0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function aL0(n,a){if(1&n&&e.DNE(0,tL0,2,1)(1,sL0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function oL0(n,a){if(1&n&&(e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,aL0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,nw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,nw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.resourceSpecCharacteristicValue)}}function iL0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",121)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,oL0,8,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.resourceToUpdate?null:c.resourceToUpdate.resourceSpecCharacteristic)}}function rL0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",112),e.EFF(5),e.k0s()(),e.j41(6,"div",113)(7,"label",114),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,H_0,2,1,"span",115)(11,Y_0,2,1)(12,q_0,2,1)(13,X_0,2,1),e.k0s(),e.DNE(14,W_0,5,8)(15,iL0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,nw,c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.name,20),!c.hasLongWord(null==c.resourceToUpdate?null:c.resourceToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.resourceToUpdate?null:c.resourceToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?10:"Launched"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?11:"Retired"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.resourceToUpdate?null:c.resourceToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.resourceToUpdate?null:c.resourceToUpdate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function dL0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,G_0,6,0,"div",108)(2,rL0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function fL0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let uL0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.resSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.res),this.populateResInfo(),D2()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateResInfo(){this.generalForm.controls.name.setValue(this.res.name),this.generalForm.controls.description.setValue(this.res.description),this.resStatus=this.res.lifecycleStatus,this.prodChars=this.res.resourceSpecCharacteristic}goBack(){this.eventMessage.emitSellerResourceSpec(!0)}setResStatus(c){this.resStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars(),setTimeout(()=>{D2()},100)}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.setResourceData(),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars(),this.showPreview=!1}setResourceData(){null!=this.generalForm.value.name&&(this.resourceToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.resStatus,resourceSpecCharacteristic:this.prodChars})}updateResource(){this.setResourceData(),this.loading=!0,this.resSpecService.updateResSpec(this.resourceToUpdate,this.res.id).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv updated")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the resource!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{D2()},100),2==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(f6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-resource-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{res:"res"},decls:44,vars:34,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-700","hover:text-blue-600",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","resSpecUpdateNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","resourceSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","resourceSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,o_0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,g_0,22,15,"form",17)(27,U_0,4,2)(28,dL0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.joV(),e.j41(40,"button",26),e.bIt("click",function(){return l.updateResource()}),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()(),e.DNE(43,fL0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,16,"UPDATE_RES_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"UPDATE_RES_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,20,"UPDATE_RES_SPEC._update_res")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(28,s_0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,22,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(31,a_0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(37,24,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(42,26,"UPDATE_RES_SPEC._update_res")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const mL0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),pL0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),lw=(n,a)=>({"break-all":n,"break-words":a});function hL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function gL0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",31),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.nrm(8,"app-markdown-textarea",33),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,4,"CREATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,6,"CREATE_SERV_SPEC._description"))}}function _L0(n,a){1&n&&(e.j41(0,"div",34)(1,"div",36),e.qSk(),e.j41(2,"svg",37),e.nrm(3,"path",38),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_SERV_SPEC._no_chars")," "))}function LL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function CL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zL0(n,a){if(1&n&&e.DNE(0,LL0,4,2)(1,CL0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function ML0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function xL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function bL0(n,a){if(1&n&&e.DNE(0,ML0,1,1)(1,xL0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function yL0(n,a){if(1&n&&e.DNE(0,zL0,2,1)(1,bL0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function FL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function vL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function kL0(n,a){if(1&n&&e.DNE(0,FL0,4,3)(1,vL0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function wL0(n,a){if(1&n&&e.DNE(0,yL0,2,1)(1,kL0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function SL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,wL0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",49)(9,"button",50),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",51),e.nrm(11,"path",52),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function NL0(n,a){if(1&n&&(e.j41(0,"div",40)(1,"table",41)(2,"thead",42)(3,"tr")(4,"th",43),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",44),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",43),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,SL0,12,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"CREATE_SERV_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"CREATE_SERV_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_SERV_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_SERV_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function EL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"button",53),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",54),e.nrm(5,"path",55),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_SERV_SPEC._new_char")," "))}function DL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",76),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",77),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",51),e.nrm(10,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function TL0(n,a){if(1&n&&e.Z7z(0,DL0,11,4,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function RL0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function AL0(n,a){if(1&n&&(e.j41(0,"label",80),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function IL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",74)(1,"div",75)(2,"input",79),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,RL0,5,2,"label",80)(4,AL0,2,1),e.k0s(),e.j41(5,"button",78),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",51),e.nrm(7,"path",52),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function PL0(n,a){if(1&n&&e.Z7z(0,IL0,8,2,"div",74,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function jL0(n,a){if(1&n&&(e.j41(0,"label",72),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",73),e.DNE(3,TL0,2,0)(4,PL0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function $L0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",68)(1,"input",81),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",83),e.nrm(4,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function OL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",84)(1,"div",85)(2,"span",86),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",87),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",86),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",83),e.nrm(13,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"CREATE_SERV_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"CREATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function BL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",89)(1,"div",85)(2,"span",90),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",91),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",85)(7,"span",90),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",92),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",85)(12,"span",90),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",88),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",82),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",83),e.nrm(18,"path",55),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"CREATE_SERV_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"CREATE_SERV_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"CREATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function VL0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",56)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",57),e.k0s(),e.j41(6,"div")(7,"label",58),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",59),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",60),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",61),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",62),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",63)(18,"label",64),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",65),e.k0s()(),e.j41(22,"div",66),e.DNE(23,jL0,5,1),e.j41(24,"label",67),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,$L0,5,3,"div",68)(28,OL0,14,10)(29,BL0,19,14),e.j41(30,"div",69)(31,"button",70),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",54),e.nrm(35,"path",71),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"PROFILE._name")),e.R7$(5),e.JRh(e.bMT(9,13,"CREATE_SERV_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"CREATE_SERV_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"CREATE_SERV_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"CREATE_SERV_SPEC._save_char")," ")}}function UL0(n,a){if(1&n&&e.DNE(0,_L0,9,3,"div",34)(1,NL0,19,12)(2,EL0,6,3,"div",35)(3,VL0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function GL0(n,a){1&n&&(e.j41(0,"div",93),e.qSk(),e.j41(1,"svg",94),e.nrm(2,"path",95)(3,"path",96),e.k0s(),e.joV(),e.j41(4,"span",39),e.EFF(5,"Loading..."),e.k0s()())}function HL0(n,a){if(1&n&&(e.j41(0,"span",100),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function YL0(n,a){if(1&n&&(e.j41(0,"span",101),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function qL0(n,a){if(1&n&&(e.j41(0,"span",102),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function XL0(n,a){if(1&n&&(e.j41(0,"span",103),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)}}function WL0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",104),e.nrm(4,"markdown",105),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,lw,c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.description,20),!c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.description,20)))("data",null==c.serviceToCreate?null:c.serviceToCreate.description)}}function JL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function QL0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function ZL0(n,a){if(1&n&&e.DNE(0,JL0,4,2)(1,QL0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function KL0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function eC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function cC0(n,a){if(1&n&&e.DNE(0,KL0,1,1)(1,eC0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function tC0(n,a){if(1&n&&e.DNE(0,ZL0,2,1)(1,cC0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function nC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function sC0(n,a){if(1&n&&e.DNE(0,nC0,4,3)(1,lC0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function aC0(n,a){if(1&n&&e.DNE(0,tC0,2,1)(1,sC0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function oC0(n,a){if(1&n&&(e.j41(0,"tr",45)(1,"td",46),e.EFF(2),e.k0s(),e.j41(3,"td",47),e.EFF(4),e.k0s(),e.j41(5,"td",48),e.Z7z(6,aC0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,lw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,lw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function iC0(n,a){if(1&n&&(e.j41(0,"label",58),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",106)(4,"table",41)(5,"thead",42)(6,"tr")(7,"th",43),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",44),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",43),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,oC0,8,10,"tr",45,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.serviceToCreate?null:c.serviceToCreate.specCharacteristic)}}function rC0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",58),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",97),e.EFF(5),e.k0s()(),e.j41(6,"div",98)(7,"label",99),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,HL0,2,1,"span",100)(11,YL0,2,1)(12,qL0,2,1)(13,XL0,2,1),e.k0s(),e.DNE(14,WL0,5,8)(15,iC0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,lw,c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.name,20),!c.hasLongWord(null==c.serviceToCreate?null:c.serviceToCreate.name,20))),e.R7$(),e.SpI(" ",null==c.serviceToCreate?null:c.serviceToCreate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?10:"Launched"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?11:"Retired"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?12:"Obsolete"==(null==c.serviceToCreate?null:c.serviceToCreate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.serviceToCreate?null:c.serviceToCreate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function dC0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,GL0,6,0,"div",93)(2,rC0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function fC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",107),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.createService())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("disabled",!c.generalForm.valid||c.loading)("ngClass",c.loading||!c.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(2,3,"CREATE_SERV_SPEC._create_serv")," ")}}function uC0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let mC0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.servSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.generalDone=!1,this.charsDone=!1,this.finishDone=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.loading=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}goBack(){this.eventMessage.emitSellerServiceSpec(!0)}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.charsDone=!0,this.finishDone=!0,null!=this.generalForm.value.name&&(this.serviceToCreate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:"Active",specCharacteristic:this.prodChars,relatedParty:[{id:this.partyId,role:g1.c.SELLER_ROLE,"@referredType":""}]},console.log("SERVICE TO CREATE:"),console.log(this.serviceToCreate),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars()),this.showPreview=!1}createService(){this.loading=!0,this.servSpecService.postServSpec(this.serviceToCreate).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv created")},error:c=>{console.error("There was an error while creating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while creating the service!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){c>this.currentStep&&!this.validateCurrentStep()||(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),2==this.currentStep&&this.showFinish())}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid&&c<=this.currentStep||this.generalForm?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(J6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["create-service-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},decls:42,vars:30,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400","dark:text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","servSpecNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","servSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["data-cy","servSpecDescription","formControlName","description"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["data-cy","servSpecNewChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["data-cy","servSpecCharName","formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecCharType","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["data-cy","servSpecCharDescription","id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["data-cy","servSpecSaveChar","type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["data-cy","servSpecCharValueString","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecAddCharValue","type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","servSpecCharValueNumber","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecCharValueUnit","type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["data-cy","servSpecCharValueFrom","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["data-cy","servSpecCharValueTo","type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-2"],[1,"bg-gray-50","dark:bg-secondary-100","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],["data-cy","servSpecFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,hL0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,gL0,9,8,"form",17)(27,UL0,4,2)(28,dC0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.DNE(40,fC0,3,5,"button",26),e.k0s()()()(),e.DNE(41,uC0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,14,"CREATE_SERV_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,16,"CREATE_SERV_SPEC._create")),e.R7$(4),e.JRh(e.bMT(20,18,"CREATE_SERV_SPEC._new")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(24,mL0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,20,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))("ngClass",e.l_i(27,pL0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.validateCurrentStep()||!l.canNavigate(l.currentStep))),e.R7$(),e.SpI(" ",e.bMT(37,22,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(40,2===l.currentStep?40:-1),e.R7$(),e.vxM(41,l.showError?41:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})();const pC0=(n,a)=>a.id,hC0=(n,a)=>({"break-all":n,"break-words":a});function gC0(n,a){1&n&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function _C0(n,a){if(1&n&&(e.j41(0,"span",44),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function LC0(n,a){if(1&n&&(e.j41(0,"span",49),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function CC0(n,a){if(1&n&&(e.j41(0,"span",50),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function zC0(n,a){if(1&n&&(e.j41(0,"span",51),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function MC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",40)(1,"td",42),e.EFF(2),e.k0s(),e.j41(3,"td",43),e.DNE(4,_C0,2,1,"span",44)(5,LC0,2,1)(6,CC0,2,1)(7,zC0,2,1),e.k0s(),e.j41(8,"td",45),e.EFF(9),e.nI1(10,"date"),e.k0s(),e.j41(11,"td",43)(12,"button",46),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(2);return e.Njj(i.goToUpdate(l))}),e.qSk(),e.j41(13,"svg",47),e.nrm(14,"path",48),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(7,hC0,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.vxM(4,"Active"==c.lifecycleStatus?4:"Launched"==c.lifecycleStatus?5:"Retired"==c.lifecycleStatus?6:"Obsolete"==c.lifecycleStatus?7:-1),e.R7$(5),e.SpI(" ",e.i5U(10,4,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function xC0(n,a){1&n&&(e.j41(0,"div",41)(1,"div",52),e.qSk(),e.j41(2,"svg",53),e.nrm(3,"path",54),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_serv")," "))}function bC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",55)(1,"button",56),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.next())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",57),e.nrm(5,"path",8),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"OFFERINGS._load_more")," "))}function yC0(n,a){if(1&n&&e.DNE(0,bC0,6,3,"div",55),2&n){const c=e.XpG(2);e.vxM(0,c.page_check?0:-1)}}function FC0(n,a){1&n&&(e.j41(0,"div",58),e.qSk(),e.j41(1,"svg",59),e.nrm(2,"path",31)(3,"path",32),e.k0s(),e.joV(),e.j41(4,"span",33),e.EFF(5,"Loading..."),e.k0s()())}function vC0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"div",35)(2,"table",36)(3,"thead",37)(4,"tr")(5,"th",38),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",38),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",39),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",38),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody"),e.Z7z(18,MC0,15,10,"tr",40,pC0,!1,xC0,7,3,"div",41),e.k0s()()(),e.DNE(21,yC0,1,1)(22,FC0,6,0),e.k0s()),2&n){const c=e.XpG();e.R7$(6),e.SpI(" ",e.bMT(7,6,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,8,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,10,"OFFERINGS._last_update")," "),e.R7$(3),e.SpI(" ",e.bMT(16,12,"OFFERINGS._actions")," "),e.R7$(3),e.Dyx(c.servSpecs),e.R7$(3),e.vxM(21,c.loading_more?22:21)}}let kC0=(()=>{class n{constructor(c,t,l,i,u,C,b){this.router=c,this.api=t,this.servSpecService=l,this.cdr=i,this.localStorage=u,this.eventMessage=C,this.paginationService=b,this.faIdCard=A2.cKG,this.faSort=A2.OM7,this.faSwatchbook=A2.l8N,this.searchField=new p.MJ,this.servSpecs=[],this.nextServSpecs=[],this.page=0,this.SERV_SPEC_LIMIT=g1.c.SERV_SPEC_LIMIT,this.loading=!1,this.loading_more=!1,this.page_check=!0,this.filter=void 0,this.status=["Active","Launched"],this.sort=void 0,this.destroy$=new S.B,this.searchInputListener=T=>{console.log("Input updated"),""==this.searchField.value&&(this.filter=void 0,this.getServSpecs(!1))},this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(T=>{"ChangedSession"===T.type&&this.initServices()})}ngOnInit(){this.initServices();const c=document.querySelector("[type=search]");c?.addEventListener("input",this.searchInputListener)}ngOnDestroy(){const c=document.querySelector("[type=search]");c?.removeEventListener("input",this.searchInputListener),this.destroy$.next(),this.destroy$.complete()}initServices(){this.loading=!0,this.servSpecs=[];let c=this.localStorage.getObject("login_items");if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}this.getServSpecs(!1),D2()}ngAfterViewInit(){D2()}goToCreate(){this.eventMessage.emitSellerCreateServiceSpec(!0)}goToUpdate(c){this.eventMessage.emitSellerUpdateServiceSpec(c)}getServSpecs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loading=!0),t.paginationService.getItemsPaginated(t.page,t.SERV_SPEC_LIMIT,c,t.servSpecs,t.nextServSpecs,{filters:t.status,partyId:t.partyId,sort:t.sort},t.servSpecService.getServiceSpecByUser.bind(t.servSpecService)).then(i=>{t.page_check=i.page_check,t.servSpecs=i.items,t.nextServSpecs=i.nextItems,t.page=i.page,t.loading=!1,t.loading_more=!1})})()}filterInventoryByKeywords(){}onStateFilterChange(c){const t=this.status.findIndex(l=>l===c);-1!==t?(this.status.splice(t,1),console.log("elimina filtro"),console.log(this.status)):(console.log("a\xf1ade filtro"),console.log(this.status),this.status.push(c)),this.getServSpecs(!1)}next(){var c=this;return(0,C1.A)(function*(){yield c.getServSpecs(!0)})()}onSortChange(c){this.sort="name"==c.target.value?"name":void 0,this.getServSpecs(!1)}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(o0.F),e.rXU(J6),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["seller-service-spec"]],decls:53,vars:29,consts:[[1,"w-full","h-fit","mb-4","bg-secondary-50","rounded-lg","dark:bg-secondary-100","dark:border-gray-800","border-gray-300","border-secondary-50","border","flex","flex-col","shadow-lg"],[1,"flex","w-full","flex-cols","items-center","md:flex-row","justify-between"],[1,"mb-4","md:mb-0","md:w-1/4","p-8"],[1,"text-2xl","font-bold","mb-4","dark:text-white"],[1,"flex","flex-row","w-full","justify-end"],["data-cy","createServSpec","type","button",1,"ml-2","mr-8","mb-4","text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","align-middle","me-2",3,"click"],[1,"pl-2","pr-2"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"flex","w-full","flex-col","items-center","md:flex-row","justify-between"],[1,"p-8","w-full"],[1,"flex","flex-row","mb-1"],[1,"fa-base","text-primary-100","align-middle","mr-2",3,"icon"],[1,"text-base","font-bold","dark:text-white"],["id","dropdownDefault","data-dropdown-toggle","dropdown","type","button",1,"text-black","dark:text-white","w-full","justify-between","shadow","bg-white","dark:bg-secondary-200","hover:bg-gray-100","dark:hover:bg-secondary-300","focus:ring-4","focus:outline-none","focus:ring-primary-100","font-medium","rounded-lg","text-sm","p-2.5","text-center","inline-flex","items-center","shadow-lg"],["aria-hidden","true","fill","none","stroke","currentColor","viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"w-4","h-4","ml-2"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M19 9l-7 7-7-7"],["id","dropdown",1,"z-20","hidden","w-fit","md:w-1/5","p-3","bg-white","rounded-lg","shadow","dark:bg-secondary-200"],[1,"mb-3","text-sm","font-medium","text-gray-900","dark:text-white"],["aria-labelledby","dropdownDefault",1,"space-y-2","text-sm"],[1,"flex","items-center"],["id","active","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","active",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","launched","type","checkbox","value","","checked","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","launched",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","retired","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","retired",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["id","obsolete","type","checkbox","value","",1,"w-4","h-4","bg-gray-100","checked:bg-primary-100","dark:checked:bg-primary-100","border-gray-300","rounded","text-primary-600","focus:ring-primary-100",3,"change"],["for","obsolete",1,"ml-2","text-sm","font-medium","text-gray-900","dark:text-white"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-blue-600"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"bg-secondary-50","dark:bg-secondary-100","border","dark:border-gray-800","mt-8","p-4","rounded-lg"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300"],["data-cy","servSpecTable",1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","servSpecRow",1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"flex","justify-center","w-full","m-4"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","serviceSpecEdit","type","button",1,"text-white","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-2.5","text-center","inline-flex","items-center","me-2",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","currentColor","viewBox","0 0 24 24",1,"w-[18px]","h-[18px]","text-white"],["fill-rule","evenodd","d","M14 4.182A4.136 4.136 0 0 1 16.9 3c1.087 0 2.13.425 2.899 1.182A4.01 4.01 0 0 1 21 7.037c0 1.068-.43 2.092-1.194 2.849L18.5 11.214l-5.8-5.71 1.287-1.31.012-.012Zm-2.717 2.763L6.186 12.13l2.175 2.141 5.063-5.218-2.141-2.108Zm-6.25 6.886-1.98 5.849a.992.992 0 0 0 .245 1.026 1.03 1.03 0 0 0 1.043.242L10.282 19l-5.25-5.168Zm6.954 4.01 5.096-5.186-2.218-2.183-5.063 5.218 2.185 2.15Z","clip-rule","evenodd"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-gray-100","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"div",1)(3,"div",2)(4,"h2",3),e.EFF(5),e.nI1(6,"translate"),e.k0s()(),e.j41(7,"div",4)(8,"button",5),e.bIt("click",function(){return l.goToCreate()}),e.j41(9,"p",6),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.qSk(),e.j41(12,"svg",7),e.nrm(13,"path",8),e.k0s()()()(),e.joV(),e.j41(14,"div",9)(15,"div",10)(16,"div",11),e.nrm(17,"fa-icon",12),e.j41(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"button",14),e.EFF(22),e.nI1(23,"translate"),e.qSk(),e.j41(24,"svg",15),e.nrm(25,"path",16),e.k0s()(),e.joV(),e.j41(26,"div",17)(27,"h6",18),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"ul",19)(31,"li",20)(32,"input",21),e.bIt("change",function(){return l.onStateFilterChange("Active")}),e.k0s(),e.j41(33,"label",22),e.EFF(34),e.nI1(35,"translate"),e.k0s()(),e.j41(36,"li",20)(37,"input",23),e.bIt("change",function(){return l.onStateFilterChange("Launched")}),e.k0s(),e.j41(38,"label",24),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"li",20)(42,"input",25),e.bIt("change",function(){return l.onStateFilterChange("Retired")}),e.k0s(),e.j41(43,"label",26),e.EFF(44),e.nI1(45,"translate"),e.k0s()(),e.j41(46,"li",20)(47,"input",27),e.bIt("change",function(){return l.onStateFilterChange("Obsolete")}),e.k0s(),e.j41(48,"label",28),e.EFF(49),e.nI1(50,"translate"),e.k0s()()()()()()(),e.DNE(51,gC0,6,0,"div",29)(52,vC0,23,14),e.k0s()),2&t&&(e.R7$(5),e.JRh(e.bMT(6,11,"OFFERINGS._serv_spec")),e.R7$(5),e.JRh(e.bMT(11,13,"OFFERINGS._add_new_serv")),e.R7$(7),e.Y8G("icon",l.faSwatchbook),e.R7$(2),e.JRh(e.bMT(20,15,"OFFERINGS._filter_state")),e.R7$(3),e.SpI(" ",e.bMT(23,17,"OFFERINGS._filter_state")," "),e.R7$(6),e.SpI(" ",e.bMT(29,19,"OFFERINGS._status")," "),e.R7$(6),e.SpI(" ",e.bMT(35,21,"OFFERINGS._active")," "),e.R7$(5),e.SpI(" ",e.bMT(40,23,"OFFERINGS._launched")," "),e.R7$(5),e.SpI(" ",e.bMT(45,25,"OFFERINGS._retired")," "),e.R7$(5),e.SpI(" ",e.bMT(50,27,"OFFERINGS._obsolete")," "),e.R7$(2),e.vxM(51,l.loading?51:52))},dependencies:[_.YU,J2.aY,_.vh,s1.D9]})}}return n})();const wC0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),SC0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a}),sw=(n,a)=>({"break-all":n,"break-words":a});function NC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",28),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG();return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",29),e.EFF(2),e.k0s(),e.j41(3,"span",30),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG();e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function EC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Active"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",42),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Active "),e.k0s()()}}function DC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Active"))}),e.j41(1,"span",8),e.EFF(2," Active "),e.k0s()()}}function TC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",45),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Launched"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",46),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Launched "),e.k0s()()}}function RC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",47),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Launched"))}),e.j41(1,"span",8),e.EFF(2," Launched "),e.k0s()()}}function AC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",48),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Retired"))}),e.j41(1,"span",8),e.qSk(),e.j41(2,"svg",49),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Retired "),e.k0s()()}}function IC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Retired"))}),e.j41(1,"span",8),e.EFF(2," Retired "),e.k0s()()}}function PC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Obsolete"))}),e.j41(1,"span",51),e.qSk(),e.j41(2,"svg",52),e.nrm(3,"path",43),e.k0s(),e.EFF(4," Obsolete "),e.k0s()()}}function jC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",50),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.setServStatus("Obsolete"))}),e.j41(1,"span",8),e.EFF(2," Obsolete "),e.k0s()()}}function $C0(n,a){if(1&n&&(e.j41(0,"form",17)(1,"label",31),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",32),e.j41(5,"label",33),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34)(9,"ol",35),e.DNE(10,EC0,5,0,"li",36)(11,DC0,3,0)(12,TC0,5,0,"li",37)(13,RC0,3,0)(14,AC0,5,0,"li",38)(15,IC0,3,0)(16,PC0,5,0,"li",39)(17,jC0,3,0),e.k0s()(),e.j41(18,"label",31),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"app-markdown-textarea",40),e.k0s()),2&n){let c;const t=e.XpG();e.Y8G("formGroup",t.generalForm),e.R7$(2),e.JRh(e.bMT(3,9,"UPDATE_SERV_SPEC._name")),e.R7$(2),e.Y8G("ngClass",1==(null==(c=t.generalForm.get("name"))?null:c.invalid)&&""!=t.generalForm.value.name?"border-red-600":"border-gray-300"),e.R7$(2),e.JRh(e.bMT(7,11,"UPDATE_RES_SPEC._status")),e.R7$(4),e.vxM(10,"Active"==t.servStatus?10:11),e.R7$(2),e.vxM(12,"Launched"==t.servStatus?12:13),e.R7$(2),e.vxM(14,"Retired"==t.servStatus?14:15),e.R7$(2),e.vxM(16,"Obsolete"==t.servStatus?16:17),e.R7$(3),e.JRh(e.bMT(20,13,"UPDATE_SERV_SPEC._description"))}}function OC0(n,a){1&n&&(e.j41(0,"div",53)(1,"div",55),e.qSk(),e.j41(2,"svg",56),e.nrm(3,"path",57),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"UPDATE_SERV_SPEC._no_chars")," "))}function BC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function VC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function UC0(n,a){if(1&n&&e.DNE(0,BC0,4,2)(1,VC0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function GC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function HC0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function YC0(n,a){if(1&n&&e.DNE(0,GC0,1,1)(1,HC0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function qC0(n,a){if(1&n&&e.DNE(0,UC0,2,1)(1,YC0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function XC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function WC0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function JC0(n,a){if(1&n&&e.DNE(0,XC0,4,3)(1,WC0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function QC0(n,a){if(1&n&&e.DNE(0,qC0,2,1)(1,JC0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function ZC0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,QC0,2,1,null,null,e.fX1),e.k0s(),e.j41(8,"td",68)(9,"button",69),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.deleteChar(l))}),e.qSk(),e.j41(10,"svg",70),e.nrm(11,"path",71),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function KC0(n,a){if(1&n&&(e.j41(0,"div",59)(1,"table",60)(2,"thead",61)(3,"tr")(4,"th",62),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",63),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",62),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,ZC0,12,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,4,"UPDATE_SERV_SPEC._name")," "),e.R7$(3),e.SpI(" ",e.bMT(9,6,"UPDATE_SERV_SPEC._description")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"UPDATE_SERV_SPEC._values")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"UPDATE_SERV_SPEC._actions")," "),e.R7$(3),e.Dyx(c.prodChars)}}function ez0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",54)(1,"button",72),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showCreateChar=!l.showCreateChar)}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",73),e.nrm(5,"path",74),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"UPDATE_SERV_SPEC._new_char")," "))}function cz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",94),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.j41(3,"label",95),e.EFF(4),e.j41(5,"i"),e.EFF(6),e.k0s(),e.EFF(7,")"),e.k0s()(),e.j41(8,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(9,"svg",70),e.nrm(10,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(2),e.Lme("",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function tz0(n,a){if(1&n&&e.Z7z(0,cz0,11,4,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function nz0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.j41(2,"i"),e.EFF(3),e.k0s(),e.EFF(4,")"),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function lz0(n,a){if(1&n&&(e.j41(0,"label",98),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.value)}}function sz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",92)(1,"div",93)(2,"input",97),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.selectDefaultChar(i,u))}),e.k0s(),e.DNE(3,nz0,5,2,"label",98)(4,lz0,2,1),e.k0s(),e.j41(5,"button",96),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG(5);return e.Njj(C.removeCharValue(i,u))}),e.qSk(),e.j41(6,"svg",70),e.nrm(7,"path",71),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(5);e.R7$(2),e.Y8G("checked",null==c?null:c.isDefault),e.R7$(),e.vxM(3,t.numberCharSelected?3:4)}}function az0(n,a){if(1&n&&e.Z7z(0,sz0,8,2,"div",92,e.fX1),2&n){const c=e.XpG(4);e.Dyx(c.creatingChars)}}function oz0(n,a){if(1&n&&(e.j41(0,"label",90),e.EFF(1,"Values"),e.k0s(),e.j41(2,"div",91),e.DNE(3,tz0,2,0)(4,az0,2,0),e.k0s()),2&n){const c=e.XpG(3);e.R7$(3),e.vxM(3,c.rangeCharSelected?3:4)}}function iz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",86)(1,"input",99),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.stringValue,l)||(i.stringValue=l),e.Njj(l)}),e.k0s(),e.j41(2,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(3,"svg",101),e.nrm(4,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(),e.R50("ngModel",c.stringValue),e.R7$(),e.Y8G("disabled",!c.stringValue)("ngClass",c.stringValue?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function rz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",104),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberValue,l)||(i.numberValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",104),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.numberUnit,l)||(i.numberUnit=l),e.Njj(l)}),e.k0s()(),e.j41(11,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(12,"svg",101),e.nrm(13,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,6,"UPDATE_SERV_SPEC._value")," "),e.R7$(2),e.R50("ngModel",c.numberValue),e.R7$(3),e.SpI(" ",e.bMT(9,8,"UPDATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.numberUnit),e.R7$(),e.Y8G("disabled",""===c.numberValue||null==c.numberValue||!c.numberUnit)("ngClass",""!==c.numberValue&&null!=c.numberValue&&c.numberUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function dz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",102)(1,"div",103)(2,"span",107),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.fromValue,l)||(i.fromValue=l),e.Njj(l)}),e.k0s()(),e.j41(6,"div",103)(7,"span",107),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"input",105),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.toValue,l)||(i.toValue=l),e.Njj(l)}),e.k0s()(),e.j41(11,"div",103)(12,"span",107),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"input",106),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(3);return e.DH7(i.rangeUnit,l)||(i.rangeUnit=l),e.Njj(l)}),e.k0s()(),e.j41(16,"button",100),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.addCharValue())}),e.qSk(),e.j41(17,"svg",101),e.nrm(18,"path",74),e.k0s()()()}if(2&n){const c=e.XpG(3);e.R7$(3),e.SpI(" ",e.bMT(4,8,"UPDATE_SERV_SPEC._from")," "),e.R7$(2),e.R50("ngModel",c.fromValue),e.R7$(3),e.SpI(" ",e.bMT(9,10,"UPDATE_SERV_SPEC._to")," "),e.R7$(2),e.R50("ngModel",c.toValue),e.R7$(3),e.SpI(" ",e.bMT(14,12,"UPDATE_SERV_SPEC._unit")," "),e.R7$(2),e.R50("ngModel",c.rangeUnit),e.R7$(),e.Y8G("disabled",""===c.fromValue||null==c.fromValue||""===c.toValue||null==c.toValue||!c.rangeUnit)("ngClass",""!==c.fromValue&&null!=c.fromValue&&""!==c.toValue&&null!=c.toValue&&c.rangeUnit?"cursor-pointer":"opacity-50 cursor-not-allowed")}}function fz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",75)(1,"div")(2,"label",31),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.nrm(5,"input",76),e.k0s(),e.j41(6,"div")(7,"label",33),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"select",77),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.onTypeChange(l))}),e.j41(11,"option",78),e.EFF(12,"String"),e.k0s(),e.j41(13,"option",79),e.EFF(14,"Number"),e.k0s(),e.j41(15,"option",80),e.EFF(16,"Number range"),e.k0s()()(),e.j41(17,"div",81)(18,"label",82),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.nrm(21,"textarea",83),e.k0s()(),e.j41(22,"div",84),e.DNE(23,oz0,5,1),e.j41(24,"label",85),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.DNE(27,iz0,5,3,"div",86)(28,rz0,14,10)(29,dz0,19,14),e.j41(30,"div",87)(31,"button",88),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.saveChar())}),e.EFF(32),e.nI1(33,"translate"),e.qSk(),e.j41(34,"svg",73),e.nrm(35,"path",89),e.k0s()()()()}if(2&n){const c=e.XpG(2);e.Y8G("formGroup",c.charsForm),e.R7$(3),e.JRh(e.bMT(4,11,"PROFILE._name")),e.R7$(5),e.JRh(e.bMT(9,13,"UPDATE_SERV_SPEC._type")),e.R7$(11),e.JRh(e.bMT(20,15,"UPDATE_SERV_SPEC._description")),e.R7$(4),e.vxM(23,c.creatingChars.length>0?23:-1),e.R7$(),e.Y8G("ngClass",c.rangeCharSelected&&1==c.creatingChars.length?"hidden":""),e.R7$(),e.JRh(e.bMT(26,17,"UPDATE_SERV_SPEC._add_values")),e.R7$(2),e.vxM(27,c.stringCharSelected?27:c.numberCharSelected?28:c.rangeCharSelected&&0==c.creatingChars.length?29:-1),e.R7$(4),e.Y8G("disabled",!c.charsForm.valid||0==c.creatingChars.length)("ngClass",c.charsForm.valid&&0!=c.creatingChars.length?"hover:bg-primary-50":"opacity-50"),e.R7$(),e.SpI(" ",e.bMT(33,19,"UPDATE_SERV_SPEC._save_char")," ")}}function uz0(n,a){if(1&n&&e.DNE(0,OC0,9,3,"div",53)(1,KC0,19,12)(2,ez0,6,3,"div",54)(3,fz0,36,21),2&n){const c=e.XpG();e.vxM(0,0===c.prodChars.length?0:1),e.R7$(2),e.vxM(2,0==c.showCreateChar?2:3)}}function mz0(n,a){1&n&&(e.j41(0,"div",108),e.qSk(),e.j41(1,"svg",109),e.nrm(2,"path",110)(3,"path",111),e.k0s(),e.joV(),e.j41(4,"span",58),e.EFF(5,"Loading..."),e.k0s()())}function pz0(n,a){if(1&n&&(e.j41(0,"span",115),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function hz0(n,a){if(1&n&&(e.j41(0,"span",116),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function gz0(n,a){if(1&n&&(e.j41(0,"span",117),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function _z0(n,a){if(1&n&&(e.j41(0,"span",118),e.EFF(1),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)}}function Lz0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",119),e.nrm(4,"markdown",120),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_PROD_SPEC._product_description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sw,c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.description,20),!c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.description,20)))("data",null==c.serviceToUpdate?null:c.serviceToUpdate.description)}}function Cz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function zz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function Mz0(n,a){if(1&n&&e.DNE(0,Cz0,4,2)(1,zz0,4,2),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function xz0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value,", ")}}function bz0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(3).$implicit;e.SpI(" ",c.value," ")}}function yz0(n,a){if(1&n&&e.DNE(0,xz0,1,1)(1,bz0,1,1),2&n){const c=e.XpG(2);e.vxM(0,c.$index!==c.$count-1?0:1)}}function Fz0(n,a){if(1&n&&e.DNE(0,Mz0,2,1)(1,yz0,2,1),2&n){const c=e.XpG().$implicit;e.vxM(0,c.unitOfMeasure?0:1)}}function vz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,"), ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function kz0(n,a){if(1&n&&(e.EFF(0),e.j41(1,"i"),e.EFF(2),e.k0s(),e.EFF(3,") ")),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.valueFrom," - ",c.valueTo," ("),e.R7$(2),e.JRh(null==c?null:c.unitOfMeasure)}}function wz0(n,a){if(1&n&&e.DNE(0,vz0,4,3)(1,kz0,4,3),2&n){const c=e.XpG();e.vxM(0,c.$index!==c.$count-1?0:1)}}function Sz0(n,a){if(1&n&&e.DNE(0,Fz0,2,1)(1,wz0,2,1),2&n){const c=a.$implicit;e.vxM(0,c.value||0==c.value?0:1)}}function Nz0(n,a){if(1&n&&(e.j41(0,"tr",64)(1,"td",65),e.EFF(2),e.k0s(),e.j41(3,"td",66),e.EFF(4),e.k0s(),e.j41(5,"td",67),e.Z7z(6,Sz0,2,1,null,null,e.fX1),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(4,sw,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sw,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," "),e.R7$(2),e.Dyx(c.characteristicValueSpecification)}}function Ez0(n,a){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",121)(4,"table",60)(5,"thead",61)(6,"tr")(7,"th",62),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",63),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",62),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Nz0,8,10,"tr",64,e.fX1),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(),e.JRh(e.bMT(2,4,"CREATE_PROD_SPEC._chars")),e.R7$(7),e.SpI(" ",e.bMT(9,6,"CREATE_PROD_SPEC._product_name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"CREATE_PROD_SPEC._product_description")," "),e.R7$(3),e.SpI(" ",e.bMT(15,10,"CREATE_PROD_SPEC._values")," "),e.R7$(3),e.Dyx(null==c.serviceToUpdate?null:c.serviceToUpdate.specCharacteristic)}}function Dz0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",33),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",112),e.EFF(5),e.k0s()(),e.j41(6,"div",113)(7,"label",114),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.DNE(10,pz0,2,1,"span",115)(11,hz0,2,1)(12,gz0,2,1)(13,_z0,2,1),e.k0s(),e.DNE(14,Lz0,5,8)(15,Ez0,19,12)),2&n){const c=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,7,"CREATE_PROD_SPEC._product_name")),e.R7$(2),e.Y8G("ngClass",e.l_i(11,sw,c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.name,20),!c.hasLongWord(null==c.serviceToUpdate?null:c.serviceToUpdate.name,20))),e.R7$(),e.SpI(" ",null==c.serviceToUpdate?null:c.serviceToUpdate.name," "),e.R7$(3),e.JRh(e.bMT(9,9,"CREATE_PROD_SPEC._status")),e.R7$(2),e.vxM(10,"Active"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?10:"Launched"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?11:"Retired"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?12:"Obsolete"==(null==c.serviceToUpdate?null:c.serviceToUpdate.lifecycleStatus)?13:-1),e.R7$(4),e.vxM(14,""!=(null==c.serviceToUpdate?null:c.serviceToUpdate.description)?14:-1),e.R7$(),e.vxM(15,c.prodChars.length>0?15:-1)}}function Tz0(n,a){if(1&n&&(e.j41(0,"div",18),e.DNE(1,mz0,6,0,"div",108)(2,Dz0,16,14),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.vxM(1,c.loading?1:2)}}function Rz0(n,a){if(1&n&&e.nrm(0,"error-message",27),2&n){const c=e.XpG();e.Y8G("message",c.errorMessage)}}let Az0=(()=>{class n{constructor(c,t,l,i,u,C){this.router=c,this.cdr=t,this.localStorage=l,this.eventMessage=i,this.elementRef=u,this.servSpecService=C,this.partyId="",this.stepsElements=["general-info","chars","summary"],this.stepsCircles=["general-circle","chars-circle","summary-circle"],this.currentStep=0,this.highestStep=0,this.steps=["General Info","Characteristics","Summary"],this.showPreview=!1,this.showEmoji=!1,this.description="",this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.loading=!1,this.generalForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("",p.k0.maxLength(1e5))}),this.charsForm=new p.gE({name:new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3]),description:new p.MJ("")}),this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.prodChars=[],this.creatingChars=[],this.showCreateChar=!1,this.errorMessage="",this.showError=!1,this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.destroy$=new S.B,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(b=>{"ChangedSession"===b.type&&this.initPartyInfo()})}onClick(){1==this.showEmoji&&(this.showEmoji=!1,this.cdr.detectChanges())}ngOnInit(){this.initPartyInfo(),console.log(this.serv),this.populateResInfo()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}populateResInfo(){this.generalForm.controls.name.setValue(this.serv.name),this.generalForm.controls.description.setValue(this.serv.description),this.servStatus=this.serv.lifecycleStatus,this.prodChars=this.serv.specCharacteristic}goBack(){this.eventMessage.emitSellerServiceSpec(!0)}setServStatus(c){this.servStatus=c,this.cdr.detectChanges()}toggleGeneral(){this.selectStep("general-info","general-circle"),this.showGeneral=!0,this.showChars=!1,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}toggleChars(){this.selectStep("chars","chars-circle"),this.showGeneral=!1,this.showChars=!0,this.showSummary=!1,this.showPreview=!1,this.refreshChars()}onTypeChange(c){"string"==c.target.value?(this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1):"number"==c.target.value?(this.stringCharSelected=!1,this.numberCharSelected=!0,this.rangeCharSelected=!1):(this.stringCharSelected=!1,this.numberCharSelected=!1,this.rangeCharSelected=!0),this.creatingChars=[]}addCharValue(){this.stringCharSelected?(console.log("string"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.stringValue}:{isDefault:!1,value:this.stringValue}),this.stringValue=""):this.numberCharSelected?(console.log("number"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,value:this.numberValue,unitOfMeasure:this.numberUnit}:{isDefault:!1,value:this.numberValue,unitOfMeasure:this.numberUnit}),this.numberUnit="",this.numberValue=""):(console.log("range"),this.creatingChars.push(0==this.creatingChars.length?{isDefault:!0,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit}:{isDefault:!1,valueFrom:this.fromValue,valueTo:this.toValue,unitOfMeasure:this.rangeUnit})),this.fromValue="",this.toValue="",this.rangeUnit=""}selectDefaultChar(c,t){for(let l=0;ll.id===c.id);-1!==t&&(console.log("eliminar"),this.prodChars.splice(t,1)),this.cdr.detectChanges(),console.log(this.prodChars)}showFinish(){this.setServiceData(),this.showChars=!1,this.showGeneral=!1,this.showSummary=!0,this.selectStep("summary","summary-circle"),this.refreshChars(),this.showPreview=!1}setServiceData(){null!=this.generalForm.value.name&&(this.serviceToUpdate={name:this.generalForm.value.name,description:null!=this.generalForm.value.description?this.generalForm.value.description:"",lifecycleStatus:this.servStatus,specCharacteristic:this.prodChars})}updateService(){this.setServiceData(),this.loading=!0,this.servSpecService.updateServSpec(this.serviceToUpdate,this.serv.id).subscribe({next:c=>{this.loading=!1,this.goBack(),console.log("serv updated")},error:c=>{console.error("There was an error while updating!",c),c.error.error?(console.log(c),this.errorMessage="Error: "+c.error.error):this.errorMessage="There was an error while updating the service!",this.loading=!1,this.showError=!0,setTimeout(()=>{this.showError=!1},3e3)}})}refreshChars(){this.stringValue="",this.numberValue="",this.numberUnit="",this.fromValue="",this.toValue="",this.rangeUnit="",this.stringCharSelected=!0,this.numberCharSelected=!1,this.rangeCharSelected=!1,this.creatingChars=[]}removeClass(c,t){c.className=(" "+c.className+" ").replace(" "+t+" "," ").replace(/^\s+|\s+$/g,"")}addClass(c,t){c.className+=" "+t}unselectMenu(c,t){null!=c&&(c.className.match(t)?this.removeClass(c,t):console.log("already unselected"))}selectMenu(c,t){null!=c&&(c.className.match(t)?console.log("already selected"):this.addClass(c,t))}selectStep(c,t){const l=this.stepsElements.findIndex(u=>u===c);if(-1!==l){this.stepsElements.splice(l,1),this.selectMenu(document.getElementById(c),"text-primary-100 dark:text-primary-50"),this.unselectMenu(document.getElementById(c),"text-gray-500");for(let u=0;uu===t);if(-1!==l){this.stepsCircles.splice(i,1),this.selectMenu(document.getElementById(t),"border-primary-100 dark:border-primary-50"),this.unselectMenu(document.getElementById(t),"border-gray-400");for(let u=0;u blockquote"})}addLink(){this.generalForm.patchValue({description:this.generalForm.value.description+" [title](https://www.example.com) "})}addTable(){this.generalForm.patchValue({description:this.generalForm.value.description+"\n| Syntax | Description |\n| ----------- | ----------- |\n| Header | Title |\n| Paragraph | Text |"})}addEmoji(c){console.log(c),this.showEmoji=!1,this.generalForm.patchValue({description:this.generalForm.value.description+c.emoji.native})}togglePreview(){this.description=this.generalForm.value.description?this.generalForm.value.description:""}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}goToStep(c){this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep),this.refreshChars(),1==this.currentStep&&setTimeout(()=>{D2()},100),2==this.currentStep&&this.showFinish()}validateCurrentStep(){return 0!==this.currentStep||this.generalForm?.valid||!1}canNavigate(c){return this.generalForm?.valid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.Ix),e.rXU(e.gRc),e.rXU(z2.s),e.rXU(U2),e.rXU(e.aKT),e.rXU(J6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["update-service-spec"]],hostBindings:function(t,l){1&t&&e.bIt("click",function(){return l.onClick()},!1,e.EBC)},inputs:{serv:"serv"},decls:44,vars:34,consts:[[1,"pb-4"],["aria-label","Breadcrumb",1,"flex","px-5","py-3","text-gray-700","border","border-gray-200","rounded-lg","bg-secondary-50","dark:bg-secondary-100","dark:border-gray-800","dark:text-white"],[1,"inline-flex","items-center","space-x-1","md:space-x-2","rtl:space-x-reverse"],[1,"inline-flex","items-center"],[1,"inline-flex","items-center","text-sm","font-medium","text-gray-500","dark:text-white","hover:text-primary-100","dark:hover:text-primary-50",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 12 10",1,"w-3","h-3","mr-2","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2.5","d","M5 1 1 5l4 4m6-8L7 5l4 4"],["aria-current","page"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 6 10",1,"rtl:rotate-180","w-3","h-3","mx-1","text-gray-400"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 9 4-4-4-4"],[1,"ms-1","text-sm","font-medium","text-gray-500","dark:text-white","md:ms-2"],[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-8","rounded-lg"],[1,"text-3xl","font-bold","text-primary-100","ml-4","dark:text-white","pb-4"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"md:p-8"],[1,"m-4","gap-4",3,"formGroup"],[1,"m-8"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","servSpecUpdateNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","serviceSpecUpdate",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50",3,"message"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400","sm:text-base"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10"],[1,"cursor-pointer","flex","items-center"],["formControlName","description"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-blue-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-blue-500"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M8.737 8.737a21.49 21.49 0 0 1 3.308-2.724m0 0c3.063-2.026 5.99-2.641 7.331-1.3 1.827 1.828.026 6.591-4.023 10.64-4.049 4.049-8.812 5.85-10.64 4.023-1.33-1.33-.736-4.218 1.249-7.253m6.083-6.11c-3.063-2.026-5.99-2.641-7.331-1.3-1.827 1.828-.026 6.591 4.023 10.64m3.308-9.34a21.497 21.497 0 0 1 3.308 2.724m2.775 3.386c1.985 3.035 2.579 5.923 1.248 7.253-1.336 1.337-4.245.732-7.295-1.275M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-green-700","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-green-700"],["data-cy","serviceSpecStatusLaunched",1,"cursor-pointer","flex","w-fit","md:w-full","items-center","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],[1,"cursor-pointer","flex","w-fit","md:w-full","items-center","text-yellow-500","after:w-full","after:h-1","after:border-b","after:border-gray-700","dark:after:border-gray-400","after:border-1","after:mx-2","md:after:mx-6","xl:after:mx-10",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-yellow-500"],[1,"cursor-pointer","flex","items-center",3,"click"],[1,"flex","items-center","text-red-800"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-red-800"],[1,"flex","justify-center","w-full","m-4"],[1,"flex","w-full","justify-items-center","justify-center"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","m-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","lg:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","lg:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4","text-wrap","break-all"],[1,"px-6","py-4"],[1,"font-bold","text-white","bg-red-500","rounded-3xl",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-4","h-4","text-white"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18 17.94 6M18 18 6.06 6"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"rtl:rotate-180","w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],[1,"m-4","md:grid","md:grid-cols-2","gap-4",3,"formGroup"],["formControlName","name","type","text","id","prod-name","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["selected","","value","string"],["value","number"],["value","range"],[1,"col-span-2"],["for","description",1,"font-bold","text-lg","dark:text-white"],["id","description","formControlName","description","rows","4",1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"m-4"],["for","values",1,"font-bold","text-lg","dark:text-white",3,"ngClass"],[1,"flex","flex-row","items-center","align-items-middle"],[1,"flex","w-full","justify-items-center","justify-center","mt-4"],["type","button",1,"flex","text-white","justify-center","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-lg","text-sm","px-5","py-2.5","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["stroke","currentColor","stroke-linecap","round","stroke-width","2","d","M11 16h2m6.707-9.293-2.414-2.414A1 1 0 0 0 16.586 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V7.414a1 1 0 0 0-.293-.707ZM16 20v-6a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v6h8ZM9 4h6v3a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V4Z"],["for","values",1,"font-bold","text-lg","dark:text-white"],[1,"flex","flex-col","items-start","pl-4","shadow-md","sm:rounded-lg","w-full","bg-white","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","mb-2"],[1,"flex","w-full","justify-between"],[1,"align-items-middle","align-middle"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"align-middle","w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","align-middle","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],[1,"m-2","text-white","bg-red-500","rounded-3xl",3,"click"],["id","disabled-checked-checkbox","type","checkbox","value","",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded-full","focus:ring-blue-500","focus:ring-2",3,"click","checked"],["for","disabled-checked-checkbox",1,"ms-2","text-sm","font-medium","text-gray-700","dark:text-white","text-wrap","break-all"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","button",1,"text-white","w-fit","h-full","bg-primary-100","hover:bg-primary-50","focus:ring-4","focus:outline-none","focus:ring-blue-300","font-medium","rounded-full","text-sm","p-1","text-center","inline-flex","items-center",3,"click","disabled","ngClass"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none","viewBox","0 0 24 24",1,"w-6","h-6","text-white"],[1,"flex","flex-col","md:flex-row","items-center","align-items-middle"],[1,"flex","w-full","mb-2","md:mb-0"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","bg-gray-200","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["type","number","pattern","[0-9]*","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],["type","text","id","value",1,"mr-4","bg-gray-50","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-r-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngModelChange","ngModel"],[1,"inline-flex","items-center","px-3","text-sm","text-gray-900","bg-gray-200","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","rounded-e-0","border-gray-300","border-e-0","rounded-s-md"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-100","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-100","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-100","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","dark:bg-secondary-300","border","dark:border-secondary-200","rounded-lg","p-4","mb-4"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"]],template:function(t,l){1&t&&(e.j41(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"button",4),e.bIt("click",function(){return l.goBack()}),e.qSk(),e.j41(6,"svg",5),e.nrm(7,"path",6),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.joV(),e.j41(10,"li",7)(11,"div",8),e.qSk(),e.j41(12,"svg",9),e.nrm(13,"path",10),e.k0s(),e.joV(),e.j41(14,"span",11),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()()()(),e.j41(17,"div",12)(18,"h2",13),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"ol",14),e.Z7z(22,NC0,5,12,"li",15,e.Vm6),e.k0s(),e.j41(24,"div",16)(25,"div"),e.DNE(26,$C0,22,15,"form",17)(27,uz0,4,2)(28,Tz0,3,1,"div",18),e.k0s(),e.j41(29,"div",19)(30,"button",20),e.bIt("click",function(){return l.goToStep(l.currentStep-1)}),e.qSk(),e.j41(31,"svg",21),e.nrm(32,"path",22),e.k0s(),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.joV(),e.j41(35,"button",23),e.bIt("click",function(){return l.goToStep(l.currentStep+1)}),e.EFF(36),e.nI1(37,"translate"),e.qSk(),e.j41(38,"svg",24),e.nrm(39,"path",25),e.k0s()(),e.joV(),e.j41(40,"button",26),e.bIt("click",function(){return l.updateService()}),e.EFF(41),e.nI1(42,"translate"),e.k0s()()()()(),e.DNE(43,Rz0,1,1,"error-message",27)),2&t&&(e.R7$(8),e.SpI(" ",e.bMT(9,16,"UPDATE_SERV_SPEC._back")," "),e.R7$(7),e.JRh(e.bMT(16,18,"UPDATE_SERV_SPEC._update")),e.R7$(4),e.JRh(e.bMT(20,20,"UPDATE_SERV_SPEC._update_serv")),e.R7$(3),e.Dyx(l.steps),e.R7$(4),e.vxM(26,0===l.currentStep?26:-1),e.R7$(),e.vxM(27,1===l.currentStep?27:-1),e.R7$(),e.vxM(28,2===l.currentStep?28:-1),e.R7$(2),e.Y8G("disabled",0===l.currentStep)("ngClass",e.l_i(28,wC0,0!==l.currentStep,0===l.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(34,22,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)("ngClass",e.l_i(31,SC0,l.currentStep!==l.steps.length-1&&(l.validateCurrentStep()||l.canNavigate(l.currentStep)),l.currentStep===l.steps.length-1||!l.canNavigate(l.currentStep)||!l.generalForm.valid)),e.R7$(),e.SpI(" ",e.bMT(37,24,"CREATE_OFFER._next_step")," "),e.R7$(4),e.Y8G("disabled",!l.generalForm.valid||l.loading)("ngClass",l.loading||!l.generalForm.valid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ",e.bMT(42,26,"UPDATE_SERV_SPEC._update_serv")," "),e.R7$(2),e.vxM(43,l.showError?43:-1))},dependencies:[_.YU,p.qT,p.xH,p.y7,p.me,p.Q0,p.BC,p.cb,p.R_,p.vS,p.j4,p.JD,N0,me,E0,s1.D9]})}}return n})(),zE1=(()=>{class n{constructor(c){this.http=c}init(){return new Promise((c,t)=>{const l={next:i=>{const u=i.ai??{};g1.c.SIOP_INFO=i.siop,g1.c.CHAT_API=i.chat,g1.c.MATOMO_SITE_ID=i.matomoId,g1.c.MATOMO_TRACKER_URL=i.matomoUrl,g1.c.KNOWLEDGE_BASE_URL=i.knowledgeBaseUrl,g1.c.TICKETING_SYSTEM_URL=i.ticketingUrl,g1.c.DOME_TRUST_LINK=i.domeTrust,g1.c.DOME_ABOUT_LINK=i.domeAbout,g1.c.DOME_REGISTER_LINK=i.domeRegister,g1.c.DOME_CUSTOMER_REGISTER_LINK=i.domeRegisterCustomer,g1.c.DOME_PUBLISH_LINK=i.domePublish,g1.c.KB_ONBOARDING_GUIDELINES_URL=i.domeOnboardingGuidelines,g1.c.KB_GUIDELNES_URL=i.domeGuidelines,g1.c.REGISTRATION_FORM_URL=i.domeRegistrationForm,g1.c.DFT_CATALOG_ID=i.defaultId,g1.c.SELLER_ROLE=i.roles?.seller,g1.c.BUYER_ROLE=i.roles?.customer,g1.c.ADMIN_ROLE=i.roles?.admin,g1.c.ORG_ADMIN_ROLE=i.roles?.orgAdmin,g1.c.CERTIFIER_ROLE=i.roles?.certifier,g1.c.quoteApi=i.quoteApi??g1.c.quoteApi,g1.c.analyticsEnabled=i.analyticsEnabled??!1,g1.c.analytics=this.getAnalyticsUrl(i),g1.c.feedbackCampaign=i.feedbackCampaign??!1,g1.c.feedbackCampaignExpiration=i.feedbackCampaign??$2()().add(1,"week").unix(),g1.c.documentApi=i.documentApi??g1.c.documentApi,g1.c.googleTagManagerId=i.googleTagManagerId??"",g1.c.providerThemeName=i.theme??"default",g1.c.LEAR_URL=i.learUrl??"",g1.c.AI_SEARCH_API_KEY=u.aiApiKey??i.aiApiKey??"",g1.c.AI_SEARCH_API_URL=u.aiApiUrl??i.aiApiUrl??"",g1.c.AI_SEARCH_PROFILE=u.aiSearchProfile??i.aiSearchProfile??"",g1.c.DSP_CONTRACT_DEFINITION_SCHEMA=i.dspContractDefinitionSchema||g1.c.DSP_CONTRACT_DEFINITION_SCHEMA,g1.c.DSP_SCHEMA=i.dspSchema||g1.c.DSP_SCHEMA,Iw1(i),(0,aF.Wh)(i),c(i)},error:i=>{t(i)},complete:()=>{}};this.http.get(`${g1.c.BASE_URL}/config`).subscribe(l)})}getAnalyticsUrl(c){return"string"==typeof c?.analytics?c.analytics:c?.analytics&&"object"==typeof c.analytics?c.analytics.link??c.analytics.url??c.analytics.domain??"":""}static{this.\u0275fac=function(t){return new(t||n)(e.KVO(g.Qq))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Iz0=(()=>{class n{constructor(){this.loadedContainerId=""}init(c){const t=(c??"").trim();if(!this.isValidContainerId(t)||this.loadedContainerId===t)return;this.loadedContainerId=t;const l=window;l.dataLayer=l.dataLayer??[],l.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js"});const i=document.createElement("script");i.async=!0,i.src=`https://www.googletagmanager.com/gtm.js?id=${encodeURIComponent(t)}`,document.head.insertBefore(i,document.head.firstChild)}isValidContainerId(c){return/^GTM-[A-Z0-9]+$/.test(c)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Pz0=y(9437);class jz0{constructor(a,c){this.http=a,this.themeService=c}getTranslation(a){const c=this.themeService.getCurrentThemeConfig()?.name,t=`assets/i18n/themes/${a}-${c}.json`;return(0,C6.p)([this.http.get(`assets/i18n/${a}.json`),this.http.get(t).pipe((0,Pz0.W)(()=>(0,o1.of)({})))]).pipe((0,P2.T)(([i,u])=>this.deepMerge(i,u)))}deepMerge(a,c){const t={...a};return this.isObject(a)&&this.isObject(c)&&Object.keys(c).forEach(l=>{this.isObject(c[l])?l in a?t[l]=this.deepMerge(a[l],c[l]):Object.assign(t,{[l]:c[l]}):Object.assign(t,{[l]:c[l]})}),t}isObject(a){return a&&"object"==typeof a&&!Array.isArray(a)}}function $z0(n,a){1&n&&(e.j41(0,"span",18),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_yes")))}function Oz0(n,a){1&n&&(e.j41(0,"span",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"_no")))}function Bz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",5)(1,"td",7),e.EFF(2),e.k0s(),e.j41(3,"td",7),e.EFF(4),e.k0s(),e.j41(5,"td",8),e.DNE(6,$z0,3,3,"span",9)(7,Oz0,3,3,"span",10),e.k0s(),e.j41(8,"td",11)(9,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.editPricePlan(l))}),e.qSk(),e.j41(10,"svg",13),e.nrm(11,"path",14),e.k0s()(),e.joV(),e.j41(12,"button",15),e.bIt("click",function(){const l=e.eBV(c),i=l.$implicit,u=l.$index,C=e.XpG();return e.Njj(C.confirmDelete(i,u))}),e.qSk(),e.j41(13,"svg",16),e.nrm(14,"path",17),e.k0s()()()()}if(2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.Y8G("ngIf",c.paymentOnline),e.R7$(),e.Y8G("ngIf",!c.paymentOnline)}}function Vz0(n,a){1&n&&(e.j41(0,"tr")(1,"td",20)(2,"div",21),e.nrm(3,"img",22),e.j41(4,"span",23),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()()),2&n&&(e.R7$(5),e.JRh(e.bMT(6,1,"FORMS.PRICE_PLANS._no_price_plans")))}function Uz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",24)(1,"div",25)(2,"h2",26),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",27),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",28)(9,"button",29),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDeleteModal=!1)}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deletePricePlan())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()}2&n&&(e.R7$(3),e.JRh(e.bMT(4,4,"FORMS.PRICE_PLANS._sure_delete")),e.R7$(3),e.JRh(e.bMT(7,6,"FORMS.PRICE_PLANS._cant_be_undone")),e.R7$(4),e.JRh(e.bMT(11,8,"FORMS.PRICE_PLANS._cancel")),e.R7$(3),e.JRh(e.bMT(14,10,"FORMS.PRICE_PLANS._delete")))}let Gz0=(()=>{class n{constructor(){this._pricePlans=[],this.edit=new e.bkB,this.delete=new e.bkB,this.showDeleteModal=!1,this.pricePlanToDelete=null}set pricePlans(c){this._pricePlans=Array.isArray(c)?c:[]}get pricePlans(){return this._pricePlans}editPricePlan(c){this.edit.emit(c)}confirmDelete(c,t){this.pricePlanToDelete=c,this.planIndex=t,this.showDeleteModal=!0}deletePricePlan(){this.pricePlanToDelete&&this.planIndex>=0&&(this.delete.emit(this.planIndex),this.showDeleteModal=!1,this.pricePlanToDelete=null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plans-table"]],inputs:{pricePlans:"pricePlans"},outputs:{edit:"edit",delete:"delete"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"overflow-x-auto","mt-2"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],[1,"border-b","dark:border-gray-600","hover:bg-gray-100","dark:hover:bg-gray-800","transition-colors"],["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center",4,"ngIf"],[1,"px-6","py-4"],[1,"px-6","py-4","text-center"],["class","text-green-500 font-semibold",4,"ngIf"],["class","text-red-500 font-semibold",4,"ngIf"],[1,"px-6","py-4","text-center","flex","justify-center","gap-3"],[1,"text-blue-500","hover:text-secondary-400","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4\n 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2\n 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4\n 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3\n 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25\n 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6\n 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"],[1,"text-red-500","hover:text-red-700","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32\n 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128l384\n 0L394.8 467c-1.6 25.3-22.6 45-47.9 45l-245.8 0c-25.3 0-46.3-19.7-47.9-45L32 128zM143 239c-9.4\n 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4\n 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47\n 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"],[1,"text-green-500","font-semibold"],[1,"text-red-500","font-semibold"],["colspan","4",1,"text-center","py-4","text-gray-500"],["role","alert",1,"flex","items-center","justify-center","p-4","mb-4","text-sm","text-green-800","rounded-lg","bg-green-50","dark:bg-gray-800","dark:text-green-400"],["alt","","src","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJDYXBhXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgNTEyLjAwMSA1MTIuMDAxIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIuMDAxIDUxMi4wMDE7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBkPSJNMzk2LjczOSwxMTQuODQ2Yy0yLjE1OS0yLjE1OS00Ljk5NC0zLjIzOS03LjgzMS0zLjIzOWMtMi44MzUsMC01LjY3MSwxLjA3OS03LjgzLDMuMjM4DQoJCQljLTQuMzE4LDQuMzE4LTQuMzE4LDExLjM0NCwwLDE1LjY2MWM0LjMxOSw0LjMyLDExLjM0NCw0LjMxOCwxNS42Niwwdi0wLjAwMWMyLjA5Mi0yLjA5MiwzLjI0NC00Ljg3MiwzLjI0NC03LjgzDQoJCQlDMzk5Ljk4MywxMTkuNzE5LDM5OC44MzEsMTE2LjkzOCwzOTYuNzM5LDExNC44NDZ6Ii8+DQoJPC9nPg0KPC9nPg0KPGc+DQoJPGc+DQoJCTxwYXRoIGQ9Ik0yMTMuNDA5LDI3Ny4zN2MtMi45OTgtMi45OTgtNS44MjktNC40NDktOC40OTctNC4zNjFjLTIuNjY3LDAuMDkxLTUuMzIsMS40NTMtNy45NTcsNC4wOTFsLTguOTAyLDguOTAybDE2LjcyNCwxNi43MjQNCgkJCWw4LjkwMi04LjkwMmMyLjYzNy0yLjYzNyw0LTUuMjg5LDQuMDkxLTcuOTU3QzIxNy44NiwyODMuMjAxLDIxNi40MDcsMjgwLjM2OSwyMTMuNDA5LDI3Ny4zN3oiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCgk8Zz4NCgkJPHBhdGggZD0iTTUxMS4yNTcsMTk3LjY0NEw0ODYuODYzLDYyLjcxOWMtMy40NDEtMTkuMDM3LTE4LjU0My0zNC4xNC0zNy41OC0zNy41ODJMMzE0LjM1NywwLjc0NA0KCQkJYy0xNS4wMzgtMi43MTktMzAuNDU3LDIuMTA5LTQxLjI1OCwxMi45MUwxMy42NTUsMjczLjA5OUM0Ljg1LDI4MS45MDQsMCwyOTMuNjExLDAsMzA2LjA2M2MwLDEyLjQ1Miw0Ljg0OSwyNC4xNiwxMy42NTUsMzIuOTY0DQoJCQlsMTU5LjMyLDE1OS4zMTljOC44MDUsOC44MDYsMjAuNTEyLDEzLjY1NSwzMi45NjQsMTMuNjU1czI0LjE2LTQuODQ5LDMyLjk2NC0xMy42NTVsMjU5LjQ0NC0yNTkuNDQ0DQoJCQlDNTA5LjE0OCwyMjguMSw1MTMuOTc0LDIxMi42NzYsNTExLjI1NywxOTcuNjQ0eiBNMTkyLjA1MywzODYuNzQ4Yy0wLjYzLDIuMTI5LTEuOTAzLDQuMTUxLTMuODIsNi4wNjgNCgkJCWMtMS45MiwxLjkyLTMuOTQxLDMuMTkzLTYuMDY5LDMuODIxYy0yLjEyOCwwLjYzMS0zLjg3OSwwLjI1NS01LjI2LTEuMTI1bC01Ny4wOTQtNTcuMDk0Yy0xLjM3OC0xLjM3OC0xLjg0NC0zLjA0LTEuMzk0LTQuOTg4DQoJCQljMC40NDgtMS45NDgsMS41MTMtMy43NjEsMy4xOTItNS40NDFsMzEuMi0zMS4yYzEuMzc4LTEuMzc4LDMuMDI4LTEuODI4LDQuOTQ0LTEuMzVjMS45MiwwLjQ4LDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5DQoJCQljMS43MzgsMS43MzksMi44MzMsMy41ODIsMy4yODMsNS41MjljMC40NDgsMS45NSwwLjAxMywzLjU4Mi0xLjMwNSw0LjlsLTIzLjI4OCwyMy4yODhsMTUuMTk2LDE1LjE5NmwxMy41NzctMTMuNTc3DQoJCQljMS4zMTctMS4zMTcsMi44OTEtMS44MTMsNC43Mi0xLjQ4NGMxLjgyOCwwLjMzLDMuNDkyLDEuMjQ2LDQuOTg5LDIuNzQzYzEuMzc5LDEuMzc5LDIuMjQ4LDIuOTY4LDIuNjA4LDQuNzY1DQoJCQljMC4zNTgsMS43OTgtMC4xNSwzLjM4OC0xLjUyOCw0Ljc2NmwtMTMuNTc3LDEzLjU3N2wyMy4xOTcsMjMuMTk3QzE5Mi4zMSwzODIuODY4LDE5Mi42ODMsMzg0LjYyMSwxOTIuMDUzLDM4Ni43NDh6DQoJCQkgTTI2OC40NzksMzA4Ljk3M2MtMC4zMjksMy40NDctMS41NDQsNi4yMi0zLjY0Miw4LjMxOGMtMi4wOTksMi4wOTktNC40NjUsMi43MjctNy4xMDMsMS44ODhMMjIxLjUsMzA3LjU4MWwtNS45MzQsNS45MzQNCgkJCWwyMS42NjgsMjEuNjY4YzEuMzgsMS4zOCwxLjc1MywzLjEzNCwxLjEyNCw1LjI2MWMtMC42MzEsMi4xMy0xLjkwNCw0LjE1Mi0zLjgyMSw2LjA2OWMtMS45MTksMS45MTktMy45NDEsMy4xOTItNi4wNjgsMy44Mg0KCQkJYy0yLjEyOSwwLjYzMi0zLjg4LDAuMjU2LTUuMjYtMS4xMjRsLTU3LjE4NC01Ny4xODRjLTEuMTM5LTEuMTM5LTEuNzIyLTIuNTMxLTEuNzUzLTQuMTgyYy0wLjAyOS0xLjY0NywwLjU4Ni0zLjEwMiwxLjg0NS00LjM2DQoJCQlsMTguNjEyLTE4LjYxMmMxNC43NDUtMTQuNzQ1LDI4LjUzMy0xNS43MDUsNDEuMzYtMi44NzhjOS4zNSw5LjM1MiwxMS44MDcsMTkuMDYzLDcuMzcyLDI5LjEzMWwzMC44MzksOC45MDMNCgkJCWMwLjcyMSwwLjEyLDEuNDA5LDAuNTEsMi4wNjgsMS4xNjlDMjY4LjEwNSwzMDIuOTM2LDI2OC44MDksMzA1LjUyNywyNjguNDc5LDMwOC45NzN6IE0zMTguMTU2LDI2Mi44OTRsLTMyLjAwOCwzMi4wMDgNCgkJCWMtMS42NzksMS42NzktMy40OTEsMi43NDItNS40NDEsMy4xOTJjLTEuOTQ4LDAuNDUtMy42MDktMC4wMTUtNC45ODktMS4zOTVsLTU3LjA5NC01Ny4wOTRjLTEuMzc4LTEuMzc4LTEuODQ0LTMuMDQtMS4zOTQtNC45ODgNCgkJCWMwLjQ0OS0xLjk0OSwxLjUxMy0zLjc2MSwzLjE5Mi01LjQ0MWwzMi4wMDktMzIuMDA4YzEuMzc4LTEuMzc4LDMuMDI4LTEuODI4LDQuOTQ0LTEuMzVjMS45MiwwLjQ4LDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5DQoJCQljMS43MzgsMS43MzksMi44MzMsMy41ODIsMy4yODMsNS41MjljMC40NDgsMS45NSwwLjAxMywzLjU4Mi0xLjMwNSw0LjlsLTI0LjA5NywyNC4wOTdsMTUuMTk2LDE1LjE5NmwxMy40ODgtMTMuNDg4DQoJCQljMS4zMTctMS4zMTcsMi44OTItMS44MTMsNC43Mi0xLjQ4NGMxLjgyOCwwLjMzLDMuNDkzLDEuMjQ1LDQuOTksMi43NDJjMS4zNzksMS4zNzksMi4yNDgsMi45NjgsMi42MDcsNC43NjYNCgkJCWMwLjM1OCwxLjc5OC0wLjE1LDMuMzg4LTEuNTI4LDQuNzY2bC0xMy40ODgsMTMuNDg4bDE1LjI4NCwxNS4yODRsMjQuMDk3LTI0LjA5N2MxLjMxNy0xLjMxNywyLjk1Mi0xLjc1Miw0LjktMS4zMDQNCgkJCWMxLjk0OSwwLjQ1MSwzLjc5LDEuNTQ0LDUuNTI5LDMuMjgzYzEuNjE3LDEuNjE3LDIuNjY4LDMuMzg2LDMuMTQ4LDUuMzA0QzMxOS45ODUsMjU5Ljg2OCwzMTkuNTM0LDI2MS41MTUsMzE4LjE1NiwyNjIuODk0eg0KCQkJIE0zNjYuNjE3LDIxNC40MzJsLTMyLjAxLDMyLjAxYy0xLjY3OSwxLjY3OS0zLjQ5MiwyLjc0My01LjQ0MSwzLjE5MmMtMS45NDgsMC40NS0zLjYwOS0wLjAxNS00Ljk4OS0xLjM5NWwtNTcuMDk0LTU3LjA5NA0KCQkJYy0xLjM3OC0xLjM3OC0xLjg0NC0zLjA0LTEuMzk0LTQuOTg4YzAuNDQ5LTEuOTQ5LDEuNTEzLTMuNzYxLDMuMTkyLTUuNDQxbDMyLjAwOC0zMi4wMDhjMS4zNzgtMS4zNzgsMy4wMjgtMS44MjgsNC45NDQtMS4zNQ0KCQkJYzEuOTE5LDAuNDgxLDMuNjg2LDEuNTI5LDUuMzA1LDMuMTQ5YzEuNzM4LDEuNzM5LDIuODMzLDMuNTgyLDMuMjgzLDUuNTI5YzAuNDQ4LDEuOTUsMC4wMTMsMy41ODItMS4zMDUsNC45bC0yNC4wOTcsMjQuMDk3DQoJCQlsMTUuMTk2LDE1LjE5NmwxMy40ODgtMTMuNDg4YzEuMzE3LTEuMzE3LDIuODkxLTEuODEzLDQuNzItMS40ODRjMS44MjgsMC4zMywzLjQ5MiwxLjI0Niw0Ljk4OSwyLjc0Mw0KCQkJYzEuMzc5LDEuMzc5LDIuMjQ4LDIuOTY4LDIuNjA4LDQuNzY1YzAuMzU4LDEuNzk4LTAuMTUsMy4zODgtMS41MjgsNC43NjZsLTEzLjQ4OCwxMy40ODhsMTUuMjg0LDE1LjI4NGwyNC4wOTctMjQuMDk3DQoJCQljMS4zMTctMS4zMTcsMi45NTItMS43NTEsNC45LTEuMzAzYzEuOTUsMC40NSwzLjc5MSwxLjU0Myw1LjUzLDMuMjgyYzEuNjE3LDEuNjE3LDIuNjY3LDMuMzg3LDMuMTQ4LDUuMzA0DQoJCQlDMzY4LjQ0NywyMTEuNDA2LDM2Ny45OTYsMjEzLjA1NCwzNjYuNjE3LDIxNC40MzJ6IE00MTcuOTcxLDE1MS43NGMtOC4wMTIsOC4wMTItMTguNTM3LDEyLjAxOC0yOS4wNjEsMTIuMDE4DQoJCQljLTEwLjUyNiwwLTIxLjA1LTQuMDA2LTI5LjA2Mi0xMi4wMTljLTE2LjAyNi0xNi4wMjUtMTYuMDI2LTQyLjA5OSwwLTU4LjEyNGMxNi4wMjQtMTYuMDI1LDQyLjA5OS0xNi4wMjYsNTguMTIzLDANCgkJCWM3Ljc2NCw3Ljc2MywxMi4wMzgsMTguMDg0LDEyLjAzOCwyOS4wNjJDNDMwLjAwOSwxMzMuNjU1LDQyNS43MzQsMTQzLjk3Niw0MTcuOTcxLDE1MS43NHoiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==",1,"h-8","max-h-8","mr-2"],[1,"font-medium"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center"],[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-lg","font-semibold","text-gray-700","dark:text-white"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","justify-end","mt-4","space-x-3"],[1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],[1,"px-4","py-2","bg-red-500","text-white","rounded",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",3),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",4),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",4),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Bz0,15,4,"tr",5,e.Vm6,!1,Vz0,7,3,"tr"),e.k0s()()(),e.DNE(20,Uz0,15,12,"div",6)),2&t&&(e.R7$(5),e.JRh(e.bMT(6,6,"FORMS.PRICE_PLANS._name")),e.R7$(3),e.JRh(e.bMT(9,8,"FORMS.PRICE_PLANS._description")),e.R7$(3),e.JRh(e.bMT(12,10,"FORMS.PRICE_PLANS._online_payment")),e.R7$(3),e.JRh(e.bMT(15,12,"FORMS.PRICE_PLANS._actions")),e.R7$(3),e.Dyx(l.pricePlans),e.R7$(3),e.Y8G("ngIf",l.showDeleteModal))},dependencies:[_.bT,s1.h,s1.D9]})}}return n})();const Hz0=(n,a)=>a.id;function Yz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",5)(1,"td",7),e.EFF(2),e.k0s(),e.j41(3,"td",7),e.EFF(4),e.k0s(),e.j41(5,"td",7),e.EFF(6),e.k0s(),e.j41(7,"td",8)(8,"button",9),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.editPriceComponent(l))}),e.qSk(),e.j41(9,"svg",10),e.nrm(10,"path",11),e.k0s()(),e.joV(),e.j41(11,"button",12),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.confirmDelete(l))}),e.qSk(),e.j41(12,"svg",13),e.nrm(13,"path",14),e.k0s()()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.R7$(2),e.JRh(c.name),e.R7$(2),e.JRh(c.description),e.R7$(2),e.JRh(t.getPriceTypeLabel(c.priceType))}}function qz0(n,a){1&n&&(e.j41(0,"tr")(1,"td",15)(2,"div",16),e.qSk(),e.j41(3,"svg",10),e.nrm(4,"path",17),e.k0s(),e.joV(),e.j41(5,"span",18),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()()),2&n&&(e.R7$(6),e.JRh(e.bMT(7,1,"FORMS.PRICE_PLANS._no_price_plans_components")))}function Xz0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",19)(1,"div",20)(2,"h2",21),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"p",22),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",23)(9,"button",24),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showDeleteModal=!1)}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.deletePriceComponent())}),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()()}2&n&&(e.R7$(3),e.JRh(e.bMT(4,4,"FORMS.PRICE_PLAN_COMPONENT._delete_price_comp")),e.R7$(3),e.JRh(e.bMT(7,6,"FORMS.PRICE_PLAN_COMPONENT._unable_undone")),e.R7$(4),e.JRh(e.bMT(11,8,"FORMS.PRICE_PLAN_COMPONENT._cancel")),e.R7$(3),e.JRh(e.bMT(14,10,"FORMS.PRICE_PLAN_COMPONENT._delete")))}let Wz0=(()=>{class n{constructor(){this.priceComponents=[],this.edit=new e.bkB,this.delete=new e.bkB,this.showDeleteModal=!1,this.componentToDelete=null}editPriceComponent(c){this.edit.emit(c)}confirmDelete(c){this.componentToDelete=c,this.showDeleteModal=!0}deletePriceComponent(){this.componentToDelete&&(console.log("delete"),this.delete.emit(this.componentToDelete.id),this.showDeleteModal=!1,this.componentToDelete=null)}getPriceTypeLabel(c){return{"one time":"One time",recurring:"Recurring","recurring-prepaid":"Recurring Prepaid",usage:"Usage"}[c]||"Unknown"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-components-table"]],inputs:{priceComponents:"priceComponents"},outputs:{edit:"edit",delete:"delete"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"overflow-x-auto"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],[1,"border-b","dark:border-gray-600","hover:bg-gray-100","dark:hover:bg-gray-800","transition-colors"],["class","fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center",4,"ngIf"],[1,"px-6","py-4"],[1,"px-6","py-4","text-center","flex","justify-center","gap-3"],["data-cy","ppEditPriceComponent",1,"text-blue-500","hover:text-secondary-400","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4\n 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2\n 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4\n 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3\n 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25\n 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6\n 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"],["data-cy","ppDeletePriceComponent",1,"text-red-500","hover:text-red-700","transition",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 448 512",1,"min-w-4","w-4","h-4"],["fill","currentColor","d","M163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32\n 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3C140.6 6.8 151.7 0 163.8 0zM32 128l384\n 0L394.8 467c-1.6 25.3-22.6 45-47.9 45l-245.8 0c-25.3 0-46.3-19.7-47.9-45L32 128zM143 239c-9.4\n 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4\n 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47\n 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"],["colspan","4",1,"text-center","py-4","text-gray-500"],["role","alert",1,"flex","justify-center","items-center","p-4","mb-4","text-sm","text-yellow-800","rounded-lg","bg-yellow-50","dark:bg-gray-800","dark:text-yellow-300"],["fill","currentColor","d","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40\n 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3\n 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32\n 32 0 1 0 -64 0 32 32 0 1 0 64 0z"],[1,"font-medium"],[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","items-center","justify-center"],[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-lg","font-semibold","text-gray-700","dark:text-white"],[1,"text-gray-500","dark:text-gray-300"],[1,"flex","justify-end","mt-4","space-x-3"],[1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],[1,"px-4","py-2","bg-red-500","text-white","rounded",3,"click"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr")(4,"th",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",3),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",3),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",4),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody"),e.Z7z(17,Yz0,14,3,"tr",5,Hz0,!1,qz0,8,3,"tr"),e.k0s()()(),e.DNE(20,Xz0,15,12,"div",6)),2&t&&(e.R7$(5),e.JRh(e.bMT(6,6,"FORMS.PRICE_PLAN_COMPONENT._name")),e.R7$(3),e.JRh(e.bMT(9,8,"FORMS.PRICE_PLAN_COMPONENT._description")),e.R7$(3),e.JRh(e.bMT(12,10,"FORMS.PRICE_PLAN_COMPONENT._price_type")),e.R7$(3),e.JRh(e.bMT(15,12,"FORMS.PRICE_PLAN_COMPONENT._actions")),e.R7$(3),e.Dyx(l.priceComponents),e.R7$(3),e.Y8G("ngIf",l.showDeleteModal))},dependencies:[_.bT,s1.h,s1.D9]})}}return n})();const Jz0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),Qz0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),Zz0=()=>({standalone:!0});function Kz0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_required")," "))}function eM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_limit")," "))}function cM0(n,a){1&n&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._price_positive")," "))}function tM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,Kz0,3,3,"div")(2,eM0,3,3)(3,cM0,3,3),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.required?1:null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.max?2:null!=(c=t.priceComponentForm.get("price"))&&null!=c.errors&&c.errors.min&&(null!=(c=t.priceComponentForm.get("price"))&&c.touched||null!=(c=t.priceComponentForm.get("price"))&&c.dirty)?3:-1)}}function nM0(n,a){1&n&&(e.j41(0,"div",31)(1,"div",36),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,2,"FORMS.PRICE_PLAN_COMPONENT._product_char")," "),e.R7$(3),e.SpI(" ",e.bMT(6,4,"FORMS.PRICE_PLAN_COMPONENT._prod_char_info")," "))}function lM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function sM0(n,a){if(1&n&&(e.j41(0,"option",37),e.EFF(1,"Select a characteristic"),e.k0s(),e.Z7z(2,lM0,2,2,"option",38,e.fX1)),2&n){const c=e.XpG(2);e.R7$(2),e.Dyx(c.filteredChars)}}function aM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function oM0(n,a){if(1&n&&e.DNE(0,aM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,t.selectedCharacteristic.id!=c.id?0:-1)}}function iM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,oM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(2);e.FS9("value",c.selectedCharacteristic.id),e.R7$(),e.JRh(c.selectedCharacteristic.name),e.R7$(),e.Dyx(c.filteredChars)}}function rM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.Lme("",c.value," (",c.unitOfMeasure,")")}}function dM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.value),e.R7$(),e.JRh(c.value)}}function fM0(n,a){if(1&n&&e.DNE(0,rM0,2,3,"option",38)(1,dM0,2,2),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,t.hasKey(c,"unitOfMeasure")?0:1)}}function uM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",39),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.changePriceComponentCharValue(l))}),e.Z7z(1,fM0,2,1,null,null,e.fX1),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.Dyx(c.selectedCharacteristic.productSpecCharacteristicValue)}}function mM0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",40),e.EFF(2),e.k0s(),e.j41(3,"div",41),e.nrm(4,"div",42),e.j41(5,"div",43),e.nrm(6,"div",44),e.j41(7,"span",45),e.EFF(8),e.k0s()(),e.j41(9,"div",46),e.nrm(10,"div",44),e.j41(11,"span",45),e.EFF(12),e.k0s()()()()),2&n){const c=e.XpG(2);e.R7$(2),e.Lme(" Selected Range: [",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,",",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,"]. Not modifiable, in case you want Tiering range prices go to price plan modal and click on Tier Pricing button "),e.R7$(6),e.SpI(" ",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom," "),e.R7$(4),e.SpI(" ",c.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo," ")}}function pM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"label",25),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",26),e.bIt("mouseenter",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showPopover=!0)})("mouseleave",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showPopover=!1)}),e.qSk(),e.j41(6,"svg",27),e.nrm(7,"circle",28)(8,"line",29)(9,"line",30),e.k0s(),e.DNE(10,nM0,7,6,"div",31),e.k0s()()(),e.joV(),e.j41(11,"div",32)(12,"select",33),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.changePriceComponentChar(l))}),e.DNE(13,sM0,4,0)(14,iM0,4,2),e.k0s(),e.DNE(15,uM0,3,0,"select",34),e.k0s(),e.DNE(16,mM0,13,4,"div",35)}if(2&n){const c=e.XpG();e.R7$(3),e.SpI(" ",e.bMT(4,5,"FORMS.PRICE_PLAN_COMPONENT._apply_to_char")," "),e.R7$(7),e.vxM(10,c.showPopover?10:-1),e.R7$(3),e.vxM(13,c.selectedCharacteristic?14:13),e.R7$(2),e.vxM(15,c.showValueSelect?15:-1),e.R7$(),e.vxM(16,c.selectedCharacteristic&&null!=c.selectedCharacteristic.productSpecCharacteristicValue&&c.selectedCharacteristic.productSpecCharacteristicValue[0]&&c.hasKey(c.selectedCharacteristic.productSpecCharacteristicValue[0],"valueFrom")&&c.hasKey(c.selectedCharacteristic.productSpecCharacteristicValue[0],"valueTo")?16:-1)}}function hM0(n,a){1&n&&(e.j41(0,"div")(1,"label",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"select",47)(5,"option",48),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"option",49),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"option",50),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"option",51),e.EFF(15),e.nI1(16,"translate"),e.k0s()()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,5,"FORMS.PRICE_PLAN_COMPONENT.recurring_period")),e.R7$(4),e.JRh(e.bMT(7,7,"FORMS.PRICE_PLAN_COMPONENT._daily")),e.R7$(3),e.JRh(e.bMT(10,9,"FORMS.PRICE_PLAN_COMPONENT._weekly")),e.R7$(3),e.JRh(e.bMT(13,11,"FORMS.PRICE_PLAN_COMPONENT._monthly")),e.R7$(3),e.JRh(e.bMT(16,13,"FORMS.PRICE_PLAN_COMPONENT._yearly")))}function gM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function _M0(n,a){if(1&n&&(e.j41(0,"option",37),e.EFF(1,"Select a usage specification"),e.k0s(),e.Z7z(2,gM0,2,2,"option",38,e.fX1)),2&n){const c=e.XpG(2);e.R7$(2),e.Dyx(c.usageSpecs)}}function LM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.id),e.R7$(),e.JRh(c.name)}}function CM0(n,a){if(1&n&&e.DNE(0,LM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(3);e.vxM(0,c.name!=t.selectedUsageSpec.name?0:-1)}}function zM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s(),e.Z7z(2,CM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(2);e.FS9("value",c.selectedUsageSpec.id),e.R7$(),e.JRh(c.selectedUsageSpec.name),e.R7$(),e.Dyx(c.usageSpecs)}}function MM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function xM0(n,a){if(1&n&&e.Z7z(0,MM0,2,2,"option",38,e.fX1),2&n){const c=e.XpG(3);e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function bM0(n,a){if(1&n&&(e.j41(0,"option",38),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.FS9("value",c.name),e.R7$(),e.JRh(c.name)}}function yM0(n,a){if(1&n&&e.DNE(0,bM0,2,2,"option",38),2&n){const c=a.$implicit,t=e.XpG(4);e.vxM(0,c.name!=t.selectedMetric?0:-1)}}function FM0(n,a){if(1&n&&(e.j41(0,"option",55),e.EFF(1),e.k0s(),e.Z7z(2,yM0,1,1,null,null,e.fX1)),2&n){const c=e.XpG(3);e.R7$(),e.JRh(c.selectedMetric),e.R7$(),e.Dyx(c.selectedUsageSpec.specCharacteristic)}}function vM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",54),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.changePriceComponentMetric(l))}),e.DNE(1,xM0,2,0)(2,FM0,4,1),e.k0s()}if(2&n){const c=e.XpG(2);e.R7$(),e.vxM(1,c.selectedMetric?2:1)}}function kM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"select",52),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.changePriceComponentUsageSpec(l))}),e.DNE(2,_M0,4,0)(3,zM0,4,2),e.k0s(),e.DNE(4,vM0,3,1,"select",53),e.k0s()}if(2&n){const c=e.XpG();e.R7$(2),e.vxM(2,c.selectedUsageSpec?3:2),e.R7$(2),e.vxM(4,c.showMetricSelect?4:-1)}}function wM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_positive")," "))}function SM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._discount_limit")," "))}function NM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,wM0,3,3,"div")(2,SM0,3,3),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.min?1:null!=(c=t.priceComponentForm.get("discountValue"))&&null!=c.errors&&c.errors.max?2:-1)}}function EM0(n,a){1&n&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"FORMS.PRICE_PLAN_COMPONENT._duration_positive")," "))}function DM0(n,a){if(1&n&&(e.j41(0,"div",11),e.DNE(1,EM0,3,3,"div"),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,null!=(c=t.priceComponentForm.get("discountDuration"))&&null!=c.errors&&c.errors.min?1:-1)}}function TM0(n,a){if(1&n&&(e.j41(0,"div")(1,"label",6),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",56),e.nrm(5,"input",57),e.j41(6,"select",58)(7,"option",59),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"option",60),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.DNE(13,NM0,3,1,"div",11),e.k0s(),e.j41(14,"div")(15,"label",6),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"div",56),e.nrm(19,"input",61),e.j41(20,"select",62)(21,"option",63),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"option",64),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"option",65),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"option",66),e.EFF(31),e.nI1(32,"translate"),e.k0s()()(),e.DNE(33,DM0,2,1,"div",11),e.k0s()),2&n){let c,t,l,i;const u=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,12,"FORMS.PRICE_PLAN_COMPONENT._add_discount")," "),e.R7$(3),e.Y8G("ngClass",1==(null==(c=u.priceComponentForm.get("discountValue"))?null:c.invalid)&&""!=u.priceComponentForm.value.discountValue||null!=(c=u.priceComponentForm.get("discountValue"))&&c.touched&&""==u.priceComponentForm.value.discountValue?"border-red-600":"dark:border-gray-600"),e.R7$(3),e.JRh(e.bMT(9,14,"FORMS.PRICE_PLAN_COMPONENT._percentage")),e.R7$(3),e.JRh(e.bMT(12,16,"FORMS.PRICE_PLAN_COMPONENT._fixed")),e.R7$(2),e.vxM(13,null!=(t=u.priceComponentForm.get("discountValue"))&&t.invalid&&null!=(t=u.priceComponentForm.get("discountValue"))&&t.touched?13:-1),e.R7$(3),e.SpI(" ",e.bMT(17,18,"FORMS.PRICE_PLAN_COMPONENT._discount_duration")," "),e.R7$(3),e.Y8G("ngClass",1==(null==(l=u.priceComponentForm.get("discountDuration"))?null:l.invalid)&&""!=u.priceComponentForm.value.discountDuration||null!=(l=u.priceComponentForm.get("discountDuration"))&&l.touched&&""==u.priceComponentForm.value.discountDuration?"border-red-600":"dark:border-gray-600"),e.R7$(3),e.JRh(e.bMT(23,20,"FORMS.PRICE_PLAN_COMPONENT._days")),e.R7$(3),e.JRh(e.bMT(26,22,"FORMS.PRICE_PLAN_COMPONENT._weeks")),e.R7$(3),e.JRh(e.bMT(29,24,"FORMS.PRICE_PLAN_COMPONENT._months")),e.R7$(3),e.JRh(e.bMT(32,26,"FORMS.PRICE_PLAN_COMPONENT._years")),e.R7$(2),e.vxM(33,null!=(i=u.priceComponentForm.get("discountDuration"))&&i.invalid&&null!=(i=u.priceComponentForm.get("discountDuration"))&&i.touched?33:-1)}}let RM0=(()=>{class n{constructor(c,t,l,i){this.fb=c,this.cdr=t,this.usageService=l,this.localStorage=i,this.component=null,this.prodChars=[],this.profileData=!1,this.close=new e.bkB,this.save=new e.bkB,this.isOpen=!1,this.initialized=!1,this.showValueSelect=!1,this.selectedCharacteristic=void 0,this.touchedCharCheck=!1,this.showDiscount=!1,this.filteredChars=[],this.usageSpecs=[],this.showMetricSelect=!1,this.partyId="",this.showPopover=!1}ngOnInit(){this.initialized=!1,setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50);for(let c=0;ct.name===this.prodChars[c].name)&&!this.prodChars[c].name.startsWith("Compliance:")&&!this.prodChars[c].name.endsWith(" - enabled")&&"credentialsConfiguration"!=this.prodChars[c].valueType&&"authorizationPolicy"!=this.prodChars[c].valueType&&this.filteredChars.push(this.prodChars[c]);if(this.priceComponentForm=this.fb.group({name:["",p.k0.required],price:["",[p.k0.required,p.k0.min(.01),p.k0.max(1e9)]],description:[""],priceType:["one time",p.k0.required],discountValue:[null,[p.k0.min(0),p.k0.max(100)]],discountUnit:["percentage"],discountDuration:[null,[p.k0.min(1)]],discountDurationUnit:["days"],recurringPeriod:["month"],usageUnit:[""],usageSpecId:[""],selectedCharacteristic:[void 0]}),this.component){this.priceComponentForm.patchValue(this.component),this.cdr.detectChanges(),console.log("---- Editing the following price component..."),console.log(this.priceComponentForm.value);const t=this.priceComponentForm.get("selectedCharacteristic")?.value;if(Array.isArray(t)&&t.length>0){const i=t[0]?.productSpecCharacteristicValue;this.showValueSelect=!(Array.isArray(i)&&i.length>0&&"valueFrom"in i[0])}null!=this.priceComponentForm.get("discountValue")?.value&&(this.showDiscount=!0);const l=this.priceComponentForm.get("selectedCharacteristic")?.value?.[0];l&&(console.log(l),this.selectedCharacteristic=l,console.log("selected char"),console.log(this.selectedCharacteristic))}this.initPartyInfo(),this.usageService.getAllUsageSpecs(this.partyId).then(c=>{this.usageSpecs=c,this.priceComponentForm.get("usageSpecId")&&(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==this.priceComponentForm.get("usageSpecId")?.value),this.selectedMetric=this.priceComponentForm.get("usageUnit")?.value,this.showMetricSelect=!0)})}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}submitForm(){this.priceComponentForm.valid&&(this.save.emit(this.priceComponentForm.value),console.log("----------- SAVED PRICE COMP"),console.log(this.priceComponentForm.value),this.closeDrawer())}changePriceComponentChar(c){if(""==c.target.value)return void(this.showValueSelect=!1);let t=this.prodChars.find(l=>l.id===c.target.value);this.selectedCharacteristic=t,this.cdr.detectChanges(),"valueFrom"in this.selectedCharacteristic.productSpecCharacteristicValue[0]?this.showValueSelect=!1:(this.selectedCharacteristicVal=this.selectedCharacteristic.productSpecCharacteristicValue[0].value,this.showValueSelect=!0),this.priceComponentForm.patchValue({selectedCharacteristic:[this.mapChars(this.selectedCharacteristicVal)]})}mapChars(c){console.log(this.selectedCharacteristic);const t={id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",valueType:this.selectedCharacteristic.valueType};return this.showValueSelect?t.productSpecCharacteristicValue=[this.selectedCharacteristic.productSpecCharacteristicValue.find(l=>String(l.value)===String(c))]:this.selectedCharacteristic.productSpecCharacteristicValue?.[0]&&(t.productSpecCharacteristicValue=[{valueFrom:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueFrom,valueTo:this.selectedCharacteristic.productSpecCharacteristicValue[0].valueTo,isDefault:!0}]),t}changePriceComponentCharValue(c){this.selectedCharacteristicVal=c.target.value,this.priceComponentForm.patchValue({selectedCharacteristic:[this.mapChars(c.target.value)]})}changePriceComponentUsageSpec(c){""!=c.target.value?(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==c.target.value),this.selectedMetric=this.selectedUsageSpec.specCharacteristic.length>0?this.selectedUsageSpec.specCharacteristic[0].name:"",this.priceComponentForm.patchValue({usageUnit:this.selectedMetric}),this.showMetricSelect=!0,this.priceComponentForm.patchValue({usageSpecId:this.selectedUsageSpec.id}),console.log(this.selectedUsageSpec),console.log(this.priceComponentForm)):this.showValueSelect=!1}changePriceComponentMetric(c){this.selectedMetric=c.target.value,console.log(this.selectedMetric),this.priceComponentForm.patchValue({usageUnit:this.selectedMetric})}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(null),500)}handleEscapeKey(c){c.stopPropagation(),this.closeDrawer()}hasKey(c,t){return t in c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(c5),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-component-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{component:"component",prodChars:"prodChars",profileData:"profileData"},outputs:{close:"close",save:"save"},standalone:!0,features:[e.aNF],decls:56,vars:54,consts:[[1,"fixed","inset-0","flex","justify-end","transition-opacity","duration-500","z-[52]",3,"ngClass"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-[52]"],[1,"w-full","md:w-2/3","lg:w-1/2","bg-secondary-50","dark:bg-gray-800","h-screen","transform","transition-transform","duration-500","flex","flex-col","relative","z-[53]",3,"ngClass"],[1,"p-6","flex-1","overflow-y-auto"],[1,"text-xl","font-semibold","text-gray-700","dark:text-white"],[1,"mt-4","space-y-4",3,"ngSubmit","formGroup"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300"],["data-cy","priceComponentName","formControlName","name","type","text",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["data-cy","priceComponentDescription"],["formControlName","description"],["data-cy","price","formControlName","price","type","number","step","0.1",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","text-sm","rounded-lg","block","w-full","p-2.5","text-gray-900","dark:text-gray-100","focus:ring-blue-500","focus:border-blue-500",3,"blur","ngClass"],[1,"text-red-500","text-sm","mt-1"],["data-cy","priceType","formControlName","priceType",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","one time"],["value","recurring"],["value","recurring-prepaid"],["value","usage"],[1,"flex","items-center","mb-4"],["data-cy","offerPriceComponentDiscount","type","checkbox",1,"w-4","h-4","text-blue-600","border-gray-300","rounded","cursor-pointer","focus:ring-blue-500","dark:border-gray-600","dark:bg-gray-700","checked:bg-blue-600","checked:border-blue-600",3,"ngModelChange","ngModel","ngModelOptions"],["for","showDiscount",1,"ml-2","font-medium","text-base","text-gray-900","dark:text-white"],[1,"flex","justify-end","space-x-3","mt-6"],["data-cy","cancelPriceComponent","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","dark-text:white","rounded",3,"click"],["data-cy","savePriceComponent","type","submit",1,"px-4","py-2","bg-blue-500","text-white","rounded",3,"disabled","ngClass"],[1,"relative","w-full"],[1,"flex","items-center","space-x-2"],[1,"font-bold","text-lg","dark:text-white"],[1,"relative",3,"mouseenter","mouseleave"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-5","h-5","text-primary-100","cursor-pointer"],["cx","12","cy","12","r","10"],["x1","12","y1","16","x2","12","y2","12"],["x1","12","y1","8","x2","12.01","y2","8"],[1,"absolute","bottom-full","mb-2","left-1/2","-translate-x-1/2","z-50","w-64","p-3","text-sm","bg-white","border","border-gray-300","rounded","shadow-lg","dark:bg-gray-800","dark:text-gray-100","dark:border-gray-600"],[1,"flex","flex-row"],["data-cy","selectPriceSpecChar","id","type",1,"mb-2","mr-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["data-cy","selectPriceSpecCharValue","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"bg-blue-50","dark:bg-gray-900","p-3","rounded","border","border-blue-200","dark:border-blue-800","mb-4"],[1,"font-semibold","mb-1","text-gray-900","dark:text-white"],["value",""],[3,"value"],["data-cy","selectPriceSpecCharValue","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],[1,"block","text-xs","font-medium","text-gray-700","dark:text-gray-300","mb-2"],[1,"relative","w-full","h-12","bg-gray-200","dark:bg-gray-700","rounded","px-4"],[1,"absolute","top-1/2","left-4","right-4","h-2","bg-blue-500","dark:bg-blue-400","rounded","transform","-translate-y-1/2"],[1,"absolute","top-1/2","left-4","transform","-translate-y-1/2","-translate-x-1/2"],[1,"w-3","h-3","bg-blue-600","dark:bg-blue-500","rounded-full","border-2","border-white"],[1,"absolute","top-5","left-1/2","transform","-translate-x-1/2","text-xs","font-semibold","text-blue-700","dark:text-blue-300","whitespace-nowrap"],[1,"absolute","top-1/2","right-4","transform","-translate-y-1/2","translate-x-1/2"],["data-cy","recurringType","formControlName","recurringPeriod",1,"w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","day"],["value","week"],["value","month"],["value","year"],["id","type","data-cy","usageInput",1,"mb-2","mr-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["data-cy","usageMetric","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["data-cy","usageMetric","id","type",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-gray-100","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change"],["value","selectedMetric"],[1,"flex","space-x-2"],["data-cy","offerDiscountAmount","formControlName","discountValue","type","number","placeholder","Amount",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],["data-cy","offerDiscountUnit","formControlName","discountUnit",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","percentage"],["value","fixed"],["data-cy","offerDiscountDuration","formControlName","discountDuration","type","number","placeholder","Duration",1,"w-1/2","p-2","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],["data-cy","offerDiscountDurationUnit","formControlName","discountDurationUnit",1,"w-1/2","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","days"],["value","weeks"],["value","months"],["value","years"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.k0s(),e.j41(6,"form",5),e.bIt("ngSubmit",function(){return l.submitForm()}),e.j41(7,"div")(8,"label",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.nrm(11,"input",7),e.k0s(),e.j41(12,"div",8)(13,"label",6),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.nrm(16,"app-markdown-textarea",9),e.k0s(),e.j41(17,"div")(18,"label",6),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"input",10),e.bIt("blur",function(){let u;return null==(u=l.priceComponentForm.get("price"))?null:u.markAsTouched()}),e.k0s(),e.DNE(22,tM0,4,1,"div",11),e.k0s(),e.DNE(23,pM0,17,7),e.j41(24,"div")(25,"label",6),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"select",12)(29,"option",13),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.j41(32,"option",14),e.EFF(33),e.nI1(34,"translate"),e.k0s(),e.j41(35,"option",15),e.EFF(36),e.nI1(37,"translate"),e.k0s(),e.j41(38,"option",16),e.EFF(39),e.nI1(40,"translate"),e.k0s()()(),e.DNE(41,hM0,17,15,"div")(42,kM0,5,2),e.j41(43,"div",17)(44,"input",18),e.mxI("ngModelChange",function(u){return e.DH7(l.showDiscount,u)||(l.showDiscount=u),u}),e.k0s(),e.j41(45,"label",19),e.EFF(46),e.nI1(47,"translate"),e.k0s()(),e.DNE(48,TM0,34,28),e.j41(49,"div",20)(50,"button",21),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(51),e.nI1(52,"translate"),e.k0s(),e.j41(53,"button",22),e.EFF(54),e.nI1(55,"translate"),e.k0s()()()()()()),2&t){let i,u,C;e.Y8G("ngClass",e.l_i(46,Jz0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(49,Qz0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",l.component?"Update Price Component":"New Price Component"," "),e.R7$(),e.Y8G("formGroup",l.priceComponentForm),e.R7$(3),e.JRh(e.bMT(10,24,"FORMS.PRICE_PLAN_COMPONENT._name")),e.R7$(5),e.JRh(e.bMT(15,26,"FORMS.PRICE_PLAN_COMPONENT._description")),e.R7$(5),e.JRh(e.bMT(20,28,"FORMS.PRICE_PLAN_COMPONENT._base_price")),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.priceComponentForm.get("price"))?null:i.invalid)&&""!=l.priceComponentForm.value.price||null!=(i=l.priceComponentForm.get("price"))&&i.touched&&""==l.priceComponentForm.value.price?"border-red-600":"dark:border-gray-600"),e.R7$(),e.vxM(22,null!=(u=l.priceComponentForm.get("price"))&&u.invalid&&(null!=(u=l.priceComponentForm.get("price"))&&u.touched||null!=(u=l.priceComponentForm.get("price"))&&u.dirty)?22:-1),e.R7$(),e.vxM(23,l.profileData?23:-1),e.R7$(3),e.JRh(e.bMT(27,30,"FORMS.PRICE_PLAN_COMPONENT._type_of_price")),e.R7$(4),e.JRh(e.bMT(31,32,"FORMS.PRICE_PLAN_COMPONENT._one_time")),e.R7$(3),e.JRh(e.bMT(34,34,"FORMS.PRICE_PLAN_COMPONENT._recurring")),e.R7$(3),e.JRh(e.bMT(37,36,"FORMS.PRICE_PLAN_COMPONENT._recurring_prepaid")),e.R7$(3),e.JRh(e.bMT(40,38,"FORMS.PRICE_PLAN_COMPONENT._usage")),e.R7$(2),e.vxM(41,"recurring"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)||"recurring-prepaid"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)?41:"usage"===(null==(C=l.priceComponentForm.get("priceType"))?null:C.value)?42:-1),e.R7$(3),e.R50("ngModel",l.showDiscount),e.Y8G("ngModelOptions",e.lJ4(53,Zz0)),e.R7$(2),e.SpI(" ",e.bMT(47,40,"FORMS.PRICE_PLAN_COMPONENT._includes_discount")," "),e.R7$(2),e.vxM(48,l.showDiscount?48:-1),e.R7$(3),e.JRh(e.bMT(52,42,"FORMS.PRICE_PLAN_COMPONENT._cancel")),e.R7$(2),e.Y8G("disabled",l.priceComponentForm.invalid)("ngClass",l.priceComponentForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer"),e.R7$(),e.JRh(e.bMT(55,44,"FORMS.PRICE_PLAN_COMPONENT._save"))}},dependencies:[p.YN,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.vS,p.X1,p.j4,p.JD,me,s1.h,s1.D9,_.YU]})}}return n})();const AM0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),IM0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),PM0=(n,a)=>({"bg-primary-100 hover:bg-primary-50":n,"bg-gray-400 cursor-not-allowed":a});function jM0(n,a){if(1&n&&(e.j41(0,"span",17),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Lme("",null==c?null:c.value.selectedValue," ",null==c?null:c.value.options[0].unitOfMeasure,"")}}function $M0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",13)(1,"label",14),e.EFF(2,"Labels range"),e.k0s(),e.j41(3,"input",15),e.bIt("change",function(l){e.eBV(c);const i=e.XpG().$index,u=e.XpG(2);return e.Njj(u.changeProfileValue(i,l))}),e.k0s(),e.j41(4,"span",16),e.EFF(5),e.k0s(),e.DNE(6,jM0,2,2,"span",17),e.j41(7,"span",18),e.EFF(8),e.k0s()()}if(2&n){const c=e.XpG().$implicit;e.R7$(3),e.Y8G("min",c.value.options[0].valueFrom)("max",c.value.options[0].valueTo)("value",c.value.selectedValue),e.R7$(2),e.SpI("Min (",null==c?null:c.value.options[0].valueFrom,")"),e.R7$(),e.vxM(6,(null==c||null==c.value.options?null:c.value.options.length)>0?6:-1),e.R7$(2),e.SpI("Max (",null==c?null:c.value.options[0].valueTo,")")}}function OM0(n,a){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.SpI("(",c.unitOfMeasure,")")}}function BM0(n,a){if(1&n&&(e.j41(0,"option",22),e.EFF(1),e.DNE(2,OM0,2,1,"span",23),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.value)("selected",c.isDefault),e.R7$(),e.SpI(" ",c.value," "),e.R7$(),e.Y8G("ngIf",c.unitOfMeasure)}}function VM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"select",20),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(2).$index,u=e.XpG(2);return e.Njj(u.changeProfileValue(i,l))}),e.DNE(1,BM0,3,4,"option",21),e.k0s()}if(2&n){const c=e.XpG(2).$implicit;e.R7$(),e.Y8G("ngForOf",c.value.options)}}function UM0(n,a){if(1&n&&e.DNE(0,VM0,2,1,"select",19),2&n){const c=e.XpG().$implicit;e.Y8G("ngIf",!(null!=c.value.options&&null!=c.value.options[0]&&c.value.options[0].valueFrom))}}function GM0(n,a){if(1&n&&(e.j41(0,"div",8)(1,"h5",12),e.EFF(2),e.k0s(),e.DNE(3,$M0,9,6,"div",13)(4,UM0,1,1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(2),e.SpI("",c.value.name,":"),e.R7$(),e.vxM(3,t.hasKey(null==c?null:c.value.options[0],"valueFrom")?3:4)}}function HM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",7),e.Z7z(1,GM0,5,2,"div",8,e.Vm6),e.k0s(),e.j41(3,"div",9)(4,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",11),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.saveProfile())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(),e.Dyx(c.characteristics.controls),e.R7$(4),e.JRh(e.bMT(6,3,"FORMS.PRICE_PLANS._cancel")),e.R7$(2),e.Y8G("ngClass",e.l_i(7,PM0,c.form.valid,c.form.invalid)),e.R7$(),e.SpI(" ",e.bMT(9,5,"FORMS.PRICE_PLANS._save")," ")}}function YM0(n,a){1&n&&(e.j41(0,"div",24)(1,"span",25),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._prod_spec_no_chars")))}let qM0=(()=>{class n{constructor(c){this.fb=c,this.profileData=[],this.save=new e.bkB,this.close=new e.bkB,this.isOpen=!1,this.initialized=!1}ngOnInit(){console.log("Profile Data:",this.profileData);let c=[];for(let l=0;lC.name===i)&&!i.startsWith("Compliance:")&&!u&&"credentialsConfiguration"!=this.profileData[l].valueType&&"authorizationPolicy"!=this.profileData[l].valueType&&c.push(this.profileData[l])}this.form=this.fb.group({characteristics:this.fb.array((c||[]).map(l=>this.createCharacteristicForm(l)))}),setTimeout(()=>{this.isOpen=!0,this.initialized=!0},50)}createCharacteristicForm(c){const t=c.productSpecCharacteristicValue.find(i=>i.isDefault),l=t?.value??t?.valueFrom??"";return this.fb.group({id:new p.MJ(c.id),name:new p.MJ(c.name),selectedValue:new p.MJ(l),options:new p.MJ(c.productSpecCharacteristicValue||[])})}get characteristics(){return this.form.get("characteristics")}changeProfileValue(c,t){const l=t.target.value;let i=l;"true"===l?i=!0:"false"===l&&(i=!1),this.characteristics.at(c).patchValue({selectedValue:i}),console.log(this.characteristics.at(c))}mapFormToProfile(){return this.characteristics.value.map(t=>({id:t.id,name:t.name,description:t.description||"",productSpecCharacteristicValue:t.options.map(l=>((!("value"in l)||"valueFrom"in l)&&(l.value="unitOfMeasure"in l?Number(t.selectedValue):t.selectedValue),{...l,isDefault:String(l.value)===String(t.selectedValue)}))}))}hasKey(c,t){return c?.hasOwnProperty(t)}saveProfile(){if(this.form.invalid)return;const c=this.mapFormToProfile();this.save.emit(c),this.closeDrawer()}closeDrawer(){this.isOpen=!1,setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){this.closeDrawer()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-configuration-profile-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{profileData:"profileData"},outputs:{save:"save",close:"close"},standalone:!0,features:[e.aNF],decls:11,vars:13,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-500","z-50",3,"ngClass"],[1,"w-full","md:w-5/6","bg-secondary-50","dark:bg-gray-800","h-full","p-6","overflow-y-auto","transform","transition-transform","duration-500",3,"ngClass"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white","mb-4"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47\n 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9\n 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"p-4","grid","grid-cols-2","gap-4"],[1,"min-h-19","pb-2"],[1,"flex","justify-end","space-x-3","p-4"],["data-cy","offerProfileCancel","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded","dark:text-white",3,"click"],["data-cy","offerProfileSave","type","button",1,"px-4","py-2","rounded","text-white","transition",3,"click","ngClass"],[1,"text-xl","font-semibold","tracking-tight","text-primary-100"],[1,"relative","mb-6"],["for","default-range",1,"sr-only"],["id","default-range","type","range",1,"w-full","h-2","bg-gray-200","rounded-lg","appearance-none","cursor-pointer","dark:bg-gray-700","dark:text-gray-100",3,"change","min","max","value"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","start-0","-bottom-6"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","start-1/2","-bottom-6"],[1,"text-sm","text-gray-500","dark:text-gray-400","absolute","end-0","-bottom-6"],["data-cy","offerProfileSelect","class","mb-2 bg-gray-50 dark:bg-secondary-300 border text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:text-gray-100",3,"change",4,"ngIf"],["data-cy","offerProfileSelect",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","dark:text-gray-100",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[4,"ngIf"],["role","alert",1,"p-4","my-2","text-sm","text-center","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"font-medium"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"button",4),e.bIt("click",function(){return l.closeDrawer()}),e.qSk(),e.j41(7,"svg",5),e.nrm(8,"path",6),e.k0s()()(),e.DNE(9,HM0,10,10)(10,YM0,4,3),e.k0s()()),2&t&&(e.Y8G("ngClass",e.l_i(6,AM0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngClass",e.sMw(9,IM0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",e.bMT(5,4,"FORMS.PRICE_PLANS._configure_profile_chars")," "),e.R7$(5),e.vxM(9,l.characteristics.length>0?9:10))},dependencies:[_.YU,_.bT,_.Sq,s1.h,s1.D9]})}}return n})();const XM0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),WM0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),JM0=()=>({standalone:!0});function QM0(n,a){if(1&n&&(e.j41(0,"option",15),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.E5c(" ",c.name," (",c.productSpecCharacteristicValue[0].valueFrom," - ",c.productSpecCharacteristicValue[0].valueTo,") ")}}function ZM0(n,a){1&n&&(e.j41(0,"div",16)(1,"span",17),e.EFF(2,"Please select a range characteristic to start creating tier pricing."),e.k0s()())}function KM0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",32)(1,"div",33)(2,"div",34),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeMarker(l))}),e.k0s(),e.j41(3,"span",28),e.EFF(4),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG(2);e.xc7("left",(c-t.rangeMin)/(t.rangeMax-t.rangeMin)*100,"%"),e.R7$(4),e.SpI(" ",c," ")}}function ex0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",39)(1,"span",40),e.EFF(2),e.k0s(),e.j41(3,"input",41),e.bIt("input",function(l){const i=e.eBV(c).index,u=e.XpG(3);return e.Njj(u.onMarkerChange(i,l))}),e.k0s(),e.j41(4,"button",42),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(3);return e.Njj(i.removeMarker(l))}),e.qSk(),e.j41(5,"svg",43),e.nrm(6,"path",44),e.k0s()()()}if(2&n){const c=a.$implicit,t=a.index,l=e.XpG(3);e.R7$(2),e.SpI("Marker ",t+1,":"),e.R7$(),e.Y8G("value",c)("min",l.rangeMin+1)("max",l.rangeMax-1)}}function cx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",37),e.DNE(4,ex0,7,4,"div",38),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" Adjust Markers (",c.sliderMarkers.length,") "),e.R7$(2),e.Y8G("ngForOf",c.sliderMarkers)("ngForTrackBy",c.trackByIndex)}}function tx0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",57),e.nrm(1,"path",58),e.k0s())}function nx0(n,a){1&n&&(e.qSk(),e.j41(0,"svg",59),e.nrm(1,"path",60),e.k0s())}function lx0(n,a){if(1&n&&(e.j41(0,"div",61),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.Lme(" Price: ",c.priceComponent.price," | Type: ",c.priceComponent.priceType," ")}}function sx0(n,a){1&n&&(e.qSk(),e.nrm(0,"path",23))}function ax0(n,a){1&n&&(e.qSk(),e.nrm(0,"path",65))}function ox0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){e.eBV(c);const l=e.XpG().index,i=e.XpG(3);return e.Njj(i.openPriceForm(l))}),e.qSk(),e.j41(1,"svg",22),e.DNE(2,sx0,1,0,"path",63)(3,ax0,1,0,"path",64),e.k0s(),e.EFF(4),e.k0s()}if(2&n){const c=e.XpG().$implicit;e.Y8G("ngClass",c.priceComponent?"bg-blue-500 hover:bg-blue-600 text-white":"bg-orange-500 hover:bg-orange-600 text-white"),e.R7$(2),e.Y8G("ngIf",!c.priceComponent),e.R7$(),e.Y8G("ngIf",c.priceComponent),e.R7$(),e.SpI(" ",c.priceComponent?"Edit":"Configure"," ")}}function ix0(n,a){1&n&&(e.j41(0,"div")(1,"label",68),e.EFF(2,"Recurring Period"),e.k0s(),e.j41(3,"select",85)(4,"option",86),e.EFF(5,"Daily"),e.k0s(),e.j41(6,"option",87),e.EFF(7,"Weekly"),e.k0s(),e.j41(8,"option",88),e.EFF(9,"Monthly"),e.k0s(),e.j41(10,"option",89),e.EFF(11,"Yearly"),e.k0s()()())}function rx0(n,a){if(1&n&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(6);e.Y8G("value",c.id)("selected",(null==t.selectedUsageSpec?null:t.selectedUsageSpec.id)===c.id),e.R7$(),e.SpI(" ",c.name," ")}}function dx0(n,a){if(1&n&&(e.j41(0,"option",93),e.EFF(1),e.k0s()),2&n){const c=a.$implicit,t=e.XpG(7);e.Y8G("value",c.name)("selected",t.selectedMetric===c.name),e.R7$(),e.SpI(" ",c.name," ")}}function fx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"label",68),e.EFF(2,"Metric"),e.k0s(),e.j41(3,"select",91),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(6);return e.Njj(i.changePriceComponentMetric(l))}),e.DNE(4,dx0,2,3,"option",92),e.k0s()()}if(2&n){const c=e.XpG(6);e.R7$(4),e.Y8G("ngForOf",c.selectedUsageSpec.specCharacteristic)}}function ux0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",90)(1,"div")(2,"label",68),e.EFF(3,"Usage Specification"),e.k0s(),e.j41(4,"select",91),e.bIt("change",function(l){e.eBV(c);const i=e.XpG(5);return e.Njj(i.changePriceComponentUsageSpec(l))}),e.j41(5,"option",8),e.EFF(6,"Select a usage specification"),e.k0s(),e.DNE(7,rx0,2,3,"option",92),e.k0s()(),e.DNE(8,fx0,5,1,"div",11),e.k0s()}if(2&n){const c=e.XpG(5);e.R7$(7),e.Y8G("ngForOf",c.usageSpecs),e.R7$(),e.Y8G("ngIf",c.showMetricSelect)}}function mx0(n,a){1&n&&(e.j41(0,"div",94)(1,"div",95)(2,"div",49)(3,"label",68),e.EFF(4,"Discount Value"),e.k0s(),e.nrm(5,"input",96),e.k0s(),e.j41(6,"div",49)(7,"label",68),e.EFF(8,"Unit"),e.k0s(),e.j41(9,"select",97)(10,"option",98),e.EFF(11,"Percentage"),e.k0s(),e.j41(12,"option",99),e.EFF(13,"Fixed"),e.k0s()()()(),e.j41(14,"div",95)(15,"div",49)(16,"label",68),e.EFF(17,"Duration"),e.k0s(),e.nrm(18,"input",100),e.k0s(),e.j41(19,"div",49)(20,"label",68),e.EFF(21,"Unit"),e.k0s(),e.j41(22,"select",101)(23,"option",102),e.EFF(24,"Days"),e.k0s(),e.j41(25,"option",103),e.EFF(26,"Weeks"),e.k0s(),e.j41(27,"option",104),e.EFF(28,"Months"),e.k0s(),e.j41(29,"option",105),e.EFF(30,"Years"),e.k0s()()()()())}function px0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",66)(1,"form",67)(2,"div")(3,"label",68),e.EFF(4,"Name"),e.k0s(),e.nrm(5,"input",69),e.k0s(),e.j41(6,"div")(7,"label",68),e.EFF(8,"Price"),e.k0s(),e.nrm(9,"input",70),e.k0s(),e.j41(10,"div")(11,"label",68),e.EFF(12,"Description (optional)"),e.k0s(),e.nrm(13,"textarea",71),e.k0s(),e.j41(14,"div")(15,"label",68),e.EFF(16,"Price Type"),e.k0s(),e.j41(17,"select",72)(18,"option",73),e.EFF(19,"One Time"),e.k0s(),e.j41(20,"option",74),e.EFF(21,"Recurring"),e.k0s(),e.j41(22,"option",75),e.EFF(23,"Recurring Prepaid"),e.k0s(),e.j41(24,"option",76),e.EFF(25,"Usage"),e.k0s()()(),e.DNE(26,ix0,12,0,"div",11)(27,ux0,9,2,"div",77),e.j41(28,"div",78)(29,"input",79),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(4);return e.DH7(i.showDiscount,l)||(i.showDiscount=l),e.Njj(l)}),e.k0s(),e.j41(30,"label",80),e.EFF(31," Include Discount "),e.k0s()(),e.DNE(32,mx0,31,0,"div",81),e.j41(33,"div",82)(34,"button",83),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.cancelPriceForm())}),e.EFF(35," Cancel "),e.k0s(),e.j41(36,"button",84),e.bIt("click",function(){e.eBV(c);const l=e.XpG(4);return e.Njj(l.savePriceForm())}),e.EFF(37," Save "),e.k0s()()()()}if(2&n){let c,t,l;const i=e.XpG(4);e.R7$(),e.Y8G("formGroup",i.priceForm),e.R7$(8),e.Y8G("ngClass",null!=(c=i.priceForm.get("price"))&&c.invalid&&null!=(c=i.priceForm.get("price"))&&c.touched?"border-red-500":""),e.R7$(17),e.Y8G("ngIf","recurring"===(null==(t=i.priceForm.get("priceType"))?null:t.value)||"recurring-prepaid"===(null==(t=i.priceForm.get("priceType"))?null:t.value)),e.R7$(),e.Y8G("ngIf","usage"===(null==(l=i.priceForm.get("priceType"))?null:l.value)),e.R7$(2),e.R50("ngModel",i.showDiscount),e.Y8G("ngModelOptions",e.lJ4(9,JM0)),e.R7$(3),e.Y8G("ngIf",i.showDiscount),e.R7$(4),e.Y8G("disabled",i.priceForm.invalid)("ngClass",i.priceForm.invalid?"opacity-50 cursor-not-allowed":"cursor-pointer")}}function hx0(n,a){if(1&n&&(e.j41(0,"div",47)(1,"div",48)(2,"div",49)(3,"div",39),e.DNE(4,tx0,2,0,"svg",50)(5,nx0,2,0,"svg",51),e.j41(6,"span",52),e.EFF(7),e.k0s()(),e.j41(8,"span",53),e.EFF(9),e.k0s(),e.DNE(10,lx0,2,2,"div",54),e.k0s(),e.DNE(11,ox0,5,4,"button",55),e.k0s(),e.DNE(12,px0,38,10,"div",56),e.k0s()),2&n){const c=a.$implicit,t=a.index;e.Y8G("ngClass",c.priceComponent?"border-green-500 dark:border-green-600":"border-gray-300 dark:border-gray-600"),e.R7$(4),e.Y8G("ngIf",c.priceComponent),e.R7$(),e.Y8G("ngIf",!c.priceComponent),e.R7$(2),e.Lme(" Tier ",t+1,": ",c.name," "),e.R7$(2),e.Lme(" Range: ",c.valueFrom," - ",c.valueTo," "),e.R7$(),e.Y8G("ngIf",c.priceComponent&&!c.isEditing),e.R7$(),e.Y8G("ngIf",!c.isEditing),e.R7$(),e.Y8G("ngIf",c.isEditing)}}function gx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"label",36),e.EFF(2),e.k0s(),e.j41(3,"div",45),e.DNE(4,hx0,13,10,"div",46),e.k0s()()),2&n){const c=e.XpG(2);e.R7$(2),e.SpI(" Configure Pricing for Each Subrange (",c.subRanges.length,") "),e.R7$(2),e.Y8G("ngForOf",c.subRanges)("ngForTrackBy",c.trackBySubRangeId)}}function _x0(n,a){if(1&n&&(e.j41(0,"li"),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.R7$(),e.JRh(c)}}function Lx0(n,a){if(1&n&&(e.j41(0,"div",35)(1,"div",106)(2,"span",17),e.EFF(3,"Validation Errors:"),e.k0s(),e.j41(4,"ul",107),e.DNE(5,_x0,2,1,"li",108),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(5),e.Y8G("ngForOf",c.validationErrors)}}function Cx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div")(1,"div",18)(2,"label",6),e.EFF(3),e.k0s(),e.j41(4,"p",19),e.EFF(5," Add markers to divide the range into subranges. Each subrange will become a separate price component. "),e.k0s()(),e.j41(6,"div",20)(7,"button",21),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addMarker())}),e.qSk(),e.j41(8,"svg",22),e.nrm(9,"path",23),e.k0s(),e.EFF(10," Add Marker "),e.k0s()(),e.joV(),e.j41(11,"div",24),e.nrm(12,"div",25),e.j41(13,"div",26),e.nrm(14,"div",27),e.j41(15,"span",28),e.EFF(16),e.k0s()(),e.DNE(17,KM0,5,3,"div",29),e.j41(18,"div",30),e.nrm(19,"div",27),e.j41(20,"span",28),e.EFF(21),e.k0s()()(),e.DNE(22,cx0,5,3,"div",31)(23,gx0,5,3,"div",31)(24,Lx0,6,1,"div",31),e.k0s()}if(2&n){const c=e.XpG();e.R7$(3),e.Lme(" Divide Range: ",c.rangeMin," - ",c.rangeMax," "),e.R7$(13),e.SpI(" ",c.rangeMin," "),e.R7$(),e.Y8G("ngForOf",c.sliderMarkers)("ngForTrackBy",c.trackByIndex),e.R7$(4),e.SpI(" ",c.rangeMax," "),e.R7$(),e.Y8G("ngIf",c.sliderMarkers.length>0),e.R7$(),e.Y8G("ngIf",c.subRanges.length>0),e.R7$(),e.Y8G("ngIf",c.validationErrors.length>0)}}let zx0=(()=>{class n{constructor(c,t,l,i){this.cdr=c,this.fb=t,this.usageService=l,this.localStorage=i,this.prodChars=[],this.close=new e.bkB,this.saveTierPricing=new e.bkB,this.isOpen=!1,this.initialized=!1,this.rangeCharacteristics=[],this.selectedCharacteristic=null,this.rangeMin=0,this.rangeMax=100,this.sliderMarkers=[],this.subRanges=[],this.editingSubRangeIndex=null,this.showDiscount=!1,this.usageSpecs=[],this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.partyId="",this.validationErrors=[]}ngOnInit(){this.initialized=!1,setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50),this.rangeCharacteristics=this.prodChars.filter(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t}),this.initPartyInfo(),this.usageService.getAllUsageSpecs(this.partyId).then(c=>{this.usageSpecs=c})}initPartyInfo(){let c=this.localStorage.getObject("login_items");if("{}"!=JSON.stringify(c)&&c.expire-$2()().unix()-4>0)if(c.logged_as==c.id)this.partyId=c.partyId;else{let t=c.organizations.find(l=>l.id==c.logged_as);this.partyId=t.partyId}}onCharacteristicChange(c){const t=c.target.value;if(!t)return this.selectedCharacteristic=null,void this.resetSlider();if(this.selectedCharacteristic=this.rangeCharacteristics.find(l=>l.id===t),this.selectedCharacteristic){const l=this.selectedCharacteristic.productSpecCharacteristicValue[0];this.rangeMin=parseInt(l.valueFrom,10),this.rangeMax=parseInt(l.valueTo,10),this.resetSlider()}}resetSlider(){this.sliderMarkers=[],this.subRanges=[],this.validationErrors=[]}addMarker(){if(0===this.sliderMarkers.length){const c=Math.floor((this.rangeMin+this.rangeMax)/2);this.sliderMarkers.push(c)}else{const c=[this.rangeMin,...this.sliderMarkers.sort((u,C)=>u-C),this.rangeMax];let t=0,l=0;for(let u=0;ut&&(t=C,l=u)}const i=Math.floor((c[l]+c[l+1])/2);this.sliderMarkers.push(i)}this.updateSubRanges()}removeMarker(c){this.sliderMarkers.splice(c,1),this.updateSubRanges()}onMarkerChange(c,t){const l=parseInt(t.target.value,10);this.sliderMarkers[c]=l,this.updateSubRanges()}updateSubRanges(){if(!this.selectedCharacteristic)return;const c=[this.rangeMin,...this.sliderMarkers.sort((l,i)=>l-i),this.rangeMax],t=[];for(let l=0;lT.valueFrom===i&&T.valueTo===C);t.push({id:`temp-tier-${l}`,valueFrom:i,valueTo:C,name:`${this.selectedCharacteristic.name} ${i}-${C}`,priceComponent:b?.priceComponent||null})}this.subRanges=t,this.validateSubRanges(),this.cdr.detectChanges()}validateSubRanges(){if(this.validationErrors=[],this.subRanges.length<2)return void this.validationErrors.push("At least 2 subranges are required for tier pricing");const c=this.subRanges.filter(i=>!i.priceComponent);c.length>0&&this.validationErrors.push(`${c.length} subrange(s) need price configuration`);for(let i=0;i=C.valueFrom&&this.validationErrors.push(`Subranges cannot overlap: ${u.name} and ${C.name}`)}}openPriceForm(c){this.subRanges.forEach(i=>i.isEditing=!1);const t=this.subRanges[c];this.editingSubRangeIndex=c,t.isEditing=!0;const l=t.priceComponent;this.priceForm=this.fb.group({name:[l?.name||t.name,p.k0.required],price:[l?.price||"",[p.k0.required,p.k0.min(.01)]],description:[l?.description||""],priceType:[l?.priceType||"one time",p.k0.required],recurringPeriod:[l?.recurringPeriod||"month"],usageUnit:[l?.usageUnit||""],usageSpecId:[l?.usageSpecId||""],discountValue:[l?.discountValue||null,[p.k0.min(0),p.k0.max(100)]],discountUnit:[l?.discountUnit||"percentage"],discountDuration:[l?.discountDuration||null,[p.k0.min(1)]],discountDurationUnit:[l?.discountDurationUnit||"days"]}),this.showDiscount=null!=l?.discountValue,l?.usageSpecId?(this.selectedUsageSpec=this.usageSpecs.find(i=>i.id==l.usageSpecId),this.selectedMetric=l.usageUnit,this.showMetricSelect=!0):(this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1),this.cdr.detectChanges()}cancelPriceForm(){null!==this.editingSubRangeIndex&&(this.subRanges[this.editingSubRangeIndex].isEditing=!1,this.editingSubRangeIndex=null),this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.cdr.detectChanges()}changePriceComponentUsageSpec(c){""!=c.target.value?(this.selectedUsageSpec=this.usageSpecs.find(t=>t.id==c.target.value),this.selectedMetric=this.selectedUsageSpec.specCharacteristic.length>0?this.selectedUsageSpec.specCharacteristic[0].name:"",this.priceForm.patchValue({usageUnit:this.selectedMetric,usageSpecId:this.selectedUsageSpec.id}),this.showMetricSelect=!0):this.showMetricSelect=!1}changePriceComponentMetric(c){this.selectedMetric=c.target.value,this.priceForm.patchValue({usageUnit:this.selectedMetric})}savePriceForm(){if(!this.priceForm.valid||null===this.editingSubRangeIndex)return;const c=this.subRanges[this.editingSubRangeIndex],t=this.priceForm.value,l={id:c.priceComponent?.id||`temp-tier-${Date.now()}-${this.editingSubRangeIndex}`,name:t.name,price:t.price,description:t.description,priceType:t.priceType,recurringPeriod:t.recurringPeriod,discountValue:this.showDiscount?t.discountValue:null,discountUnit:this.showDiscount?t.discountUnit:null,discountDuration:this.showDiscount?t.discountDuration:null,discountDurationUnit:this.showDiscount?t.discountDurationUnit:null,selectedCharacteristic:[{id:this.selectedCharacteristic.id,name:this.selectedCharacteristic.name,description:this.selectedCharacteristic.description||"",productSpecCharacteristicValue:[{valueFrom:c.valueFrom,valueTo:c.valueTo,isDefault:!0}]}]};"usage"===t.priceType&&(l.usageUnit=t.usageUnit,l.usageSpecId=t.usageSpecId),this.subRanges[this.editingSubRangeIndex].priceComponent=l,this.subRanges[this.editingSubRangeIndex].isEditing=!1,this.validateSubRanges(),this.editingSubRangeIndex=null,this.selectedUsageSpec=null,this.selectedMetric=null,this.showMetricSelect=!1,this.cdr.detectChanges()}confirmTierPricing(){if(this.validateSubRanges(),this.validationErrors.length>0)return;const c=this.subRanges.filter(t=>null!==t.priceComponent).map(t=>t.priceComponent);this.saveTierPricing.emit(c),this.closeDrawer()}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){c.stopPropagation(),this.closeDrawer()}get canConfirm(){return 0===this.validationErrors.length&&this.subRanges.length>=2&&this.subRanges.every(c=>null!==c.priceComponent)}trackByIndex(c){return c}trackBySubRangeId(c,t){return t.id}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(p.ok),e.rXU(c5),e.rXU(z2.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-tier-pricing-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{prodChars:"prodChars"},outputs:{close:"close",saveTierPricing:"saveTierPricing"},standalone:!0,features:[e.aNF],decls:21,vars:14,consts:[[1,"fixed","inset-0","flex","justify-end","transition-opacity","duration-500","z-[52]",3,"ngClass"],[1,"fixed","inset-0","bg-black","bg-opacity-50","z-[52]"],[1,"w-full","md:w-2/3","lg:w-1/2","bg-secondary-50","dark:bg-gray-800","h-screen","transform","transition-transform","duration-500","flex","flex-col","relative","z-[53]",3,"ngClass"],[1,"p-6","flex-1","overflow-y-auto"],[1,"text-xl","font-semibold","text-gray-700","dark:text-white"],[1,"mt-4","space-y-4"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300"],[1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],["class","p-4 text-sm text-blue-800 rounded-lg bg-blue-50 dark:bg-secondary-100 dark:text-blue-400",4,"ngIf"],[4,"ngIf"],[1,"flex","justify-end","space-x-3","mt-6"],["type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","dark-text:white","rounded",3,"click"],["type","button",1,"px-4","py-2","text-white","rounded",3,"click","disabled","ngClass"],[3,"value"],[1,"p-4","text-sm","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"font-medium"],[1,"mb-2"],[1,"text-xs","text-gray-500","dark:text-gray-400","mt-1"],[1,"flex","space-x-2","mb-4"],["type","button",1,"px-3","py-1","bg-green-500","text-white","rounded","text-sm","flex","items-center",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-4","h-4","mr-1"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],[1,"relative","w-full","h-32","bg-gray-200","dark:bg-gray-700","rounded-lg","p-4","mb-4"],[1,"absolute","top-1/2","left-4","right-4","h-2","bg-blue-300","dark:bg-blue-700","rounded","transform","-translate-y-1/2"],[1,"absolute","top-1/2","left-4","transform","-translate-y-1/2","-translate-x-1/2"],[1,"w-4","h-4","bg-blue-600","rounded-full","border-2","border-white"],[1,"absolute","top-6","left-1/2","transform","-translate-x-1/2","text-xs","font-semibold","text-gray-700","dark:text-gray-300"],["class","absolute top-1/2 transform -translate-y-1/2",3,"left",4,"ngFor","ngForOf","ngForTrackBy"],[1,"absolute","top-1/2","right-4","transform","-translate-y-1/2","translate-x-1/2"],["class","mb-4",4,"ngIf"],[1,"absolute","top-1/2","transform","-translate-y-1/2"],[1,"relative"],["title","Click to remove",1,"w-4","h-4","bg-red-500","rounded-full","border-2","border-white","cursor-pointer","hover:bg-red-600",3,"click"],[1,"mb-4"],[1,"block","text-sm","font-medium","text-gray-700","dark:text-gray-300","mb-2"],[1,"grid","grid-cols-2","gap-2"],["class","flex items-center space-x-2",4,"ngFor","ngForOf","ngForTrackBy"],[1,"flex","items-center","space-x-2"],[1,"text-sm","text-gray-600","dark:text-gray-400"],["type","number",1,"w-20","p-1","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100","text-sm",3,"input","value","min","max"],["type","button","title","Remove marker",1,"text-red-500","hover:text-red-700",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-4","h-4"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"space-y-3"],["class","bg-white dark:bg-gray-700 border rounded overflow-hidden",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[1,"bg-white","dark:bg-gray-700","border","rounded","overflow-hidden",3,"ngClass"],[1,"p-3","flex","justify-between","items-center"],[1,"flex-1"],["class","w-5 h-5 text-green-500","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",4,"ngIf"],["class","w-5 h-5 text-gray-400","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",4,"ngIf"],[1,"text-sm","font-semibold","text-gray-700","dark:text-gray-300"],[1,"text-xs","text-gray-500","dark:text-gray-400","ml-7"],["class","text-xs text-green-600 dark:text-green-400 ml-7 mt-1",4,"ngIf"],["type","button","class","px-3 py-1 rounded text-sm flex items-center",3,"ngClass","click",4,"ngIf"],["class","border-t border-gray-200 dark:border-gray-600 p-4 bg-gray-50 dark:bg-gray-800",4,"ngIf"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-5","h-5","text-green-500"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"w-5","h-5","text-gray-400"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"],[1,"text-xs","text-green-600","dark:text-green-400","ml-7","mt-1"],["type","button",1,"px-3","py-1","rounded","text-sm","flex","items-center",3,"click","ngClass"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z",4,"ngIf"],["fill","currentColor","d","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z",4,"ngIf"],["fill","currentColor","d","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"],[1,"border-t","border-gray-200","dark:border-gray-600","p-4","bg-gray-50","dark:bg-gray-800"],[1,"space-y-3",3,"formGroup"],[1,"block","text-xs","font-medium","text-gray-700","dark:text-gray-300"],["formControlName","name","type","text",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","price","type","number","step","0.01",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"ngClass"],["formControlName","description","rows","2",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","priceType",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","one time"],["value","recurring"],["value","recurring-prepaid"],["value","usage"],["class","space-y-2",4,"ngIf"],[1,"flex","items-center"],["type","checkbox",1,"w-4","h-4","text-blue-600","border-gray-300","rounded","cursor-pointer",3,"ngModelChange","ngModel","ngModelOptions"],[1,"ml-2","text-xs","font-medium","text-gray-700","dark:text-gray-300"],["class","space-y-2 pl-6 border-l-2 border-blue-300",4,"ngIf"],[1,"flex","justify-end","space-x-2","mt-4"],["type","button",1,"px-3","py-1","text-sm","bg-gray-300","dark:bg-gray-600","text-gray-700","dark:text-white","rounded","hover:bg-gray-400",3,"click"],["type","button",1,"px-3","py-1","text-sm","bg-blue-500","text-white","rounded","hover:bg-blue-600",3,"click","disabled","ngClass"],["formControlName","recurringPeriod",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","day"],["value","week"],["value","month"],["value","year"],[1,"space-y-2"],[1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100",3,"change"],[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"],[1,"space-y-2","pl-6","border-l-2","border-blue-300"],[1,"flex","space-x-2"],["formControlName","discountValue","type","number",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","discountUnit",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","percentage"],["value","fixed"],["formControlName","discountDuration","type","number",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["formControlName","discountDurationUnit",1,"mt-1","w-full","p-2","text-sm","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],["value","days"],["value","weeks"],["value","months"],["value","years"],[1,"p-4","text-sm","text-red-800","rounded-lg","bg-red-50","dark:bg-red-900","dark:text-red-200"],[1,"list-disc","list-inside","mt-2"],[4,"ngFor","ngForOf"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.nrm(1,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5," Create Tier Pricing "),e.k0s(),e.j41(6,"div",5)(7,"div")(8,"label",6),e.EFF(9," Select Range Characteristic "),e.k0s(),e.j41(10,"select",7),e.bIt("change",function(u){return l.onCharacteristicChange(u)}),e.j41(11,"option",8),e.EFF(12,"-- Select a characteristic --"),e.k0s(),e.DNE(13,QM0,2,4,"option",9),e.k0s()(),e.DNE(14,ZM0,3,0,"div",10)(15,Cx0,25,9,"div",11),e.j41(16,"div",12)(17,"button",13),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(18," Cancel "),e.k0s(),e.j41(19,"button",14),e.bIt("click",function(){return l.confirmTierPricing()}),e.EFF(20," Save Tier Pricing "),e.k0s()()()()()()),2&t&&(e.Y8G("ngClass",e.l_i(7,XM0,l.isOpen,!l.isOpen)),e.R7$(2),e.Y8G("ngClass",e.sMw(10,WM0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(11),e.Y8G("ngForOf",l.rangeCharacteristics),e.R7$(),e.Y8G("ngIf",!l.selectedCharacteristic),e.R7$(),e.Y8G("ngIf",l.selectedCharacteristic),e.R7$(4),e.Y8G("disabled",!l.canConfirm)("ngClass",l.canConfirm?"bg-blue-500 hover:bg-blue-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50"))},dependencies:[p.YN,p.qT,p.xH,p.y7,p.me,p.Q0,p.Zm,p.wz,p.BC,p.cb,p.vS,p.X1,p.j4,p.JD,s1.h,_.YU,_.bT,_.Sq]})}}return n})();const Mx0=(n,a)=>a.code,xx0=(n,a)=>({"opacity-100":n,"opacity-0 pointer-events-none":a}),bx0=(n,a,c)=>({"translate-x-0":n,"translate-x-full":a,"-translate-x-full":c}),yx0=(n,a)=>({"bg-primary-100 hover:bg-primary-50":n,"bg-gray-400 cursor-not-allowed":a});function Fx0(n,a){1&n&&e.nrm(0,"div",21)}function vx0(n,a){1&n&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._unique")))}function kx0(n,a){1&n&&(e.j41(0,"p",12)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._mandatory")))}function wx0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2).$implicit;e.Lme(" ",c.selectedValue.value," ",c.selectedValue.unitOfMeasure||""," ")}}function Sx0(n,a){if(1&n&&e.EFF(0),2&n){const c=e.XpG(2).$implicit;e.SpI(" ",c.selectedValue," ")}}function Nx0(n,a){if(1&n&&e.DNE(0,wx0,1,2)(1,Sx0,1,1),2&n){const c=e.XpG().$implicit;e.vxM(0,void 0!==(null==c.selectedValue?null:c.selectedValue.value)?0:1)}}function Ex0(n,a){1&n&&(e.EFF(0),e.nI1(1,"translate")),2&n&&e.SpI(" ",e.bMT(1,1,"FORMS.PRICE_PLANS._no_value_selected")," ")}function Dx0(n,a){if(1&n&&(e.j41(0,"tr",50)(1,"td",51),e.EFF(2),e.k0s(),e.j41(3,"td",51),e.DNE(4,Nx0,2,1)(5,Ex0,2,3),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.JRh(c.name),e.R7$(2),e.vxM(4,null!=c.selectedValue?4:5)}}function Tx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",35)(1,"table",36)(2,"thead",37)(3,"tr")(4,"th",38),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",38),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.DNE(11,Dx0,6,2,"tr",39),e.k0s()()(),e.j41(12,"div",40)(13,"button",41),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openConfigurationProfileDrawer())}),e.qSk(),e.j41(14,"svg",6),e.nrm(15,"path",42),e.k0s(),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.joV(),e.j41(18,"div",43)(19,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.prevPage())}),e.qSk(),e.j41(20,"svg",45),e.nrm(21,"path",46),e.k0s(),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.joV(),e.j41(24,"span",47),e.EFF(25),e.k0s(),e.j41(26,"button",44),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextPage())}),e.EFF(27),e.nI1(28,"translate"),e.qSk(),e.j41(29,"svg",48),e.nrm(30,"path",49),e.k0s()()()()}if(2&n){const c=e.XpG(3);e.R7$(5),e.JRh(e.bMT(6,10,"FORMS.PRICE_PLANS._char_name")),e.R7$(3),e.JRh(e.bMT(9,12,"FORMS.PRICE_PLANS._char_value")),e.R7$(3),e.Y8G("ngForOf",c.paginatedProfileData),e.R7$(5),e.SpI(" ",e.bMT(17,14,c.configurationProfileButtonText)," "),e.R7$(3),e.Y8G("disabled",0===c.currentPage),e.R7$(3),e.SpI(" ",e.bMT(23,16,"FORMS.PRICE_PLANS._prev")," "),e.R7$(3),e.Lme(" ",c.currentPage+1," / ",c.totalPages," "),e.R7$(),e.Y8G("disabled",c.currentPage>=c.totalPages-1),e.R7$(),e.SpI(" ",e.bMT(28,18,"FORMS.PRICE_PLANS._next")," ")}}function Rx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()(),e.j41(4,"div",53)(5,"button",54),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.openConfigurationProfileDrawer())}),e.qSk(),e.j41(6,"svg",6),e.nrm(7,"path",42),e.k0s(),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const c=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"FORMS.PRICE_PLANS._profile_desc")),e.R7$(6),e.SpI(" ",e.bMT(9,4,c.configurationProfileButtonText)," ")}}function Ax0(n,a){if(1&n&&e.DNE(0,Tx0,31,20)(1,Rx0,10,6),2&n){const c=e.XpG(2);e.vxM(0,c.getProcessedProfileData().length>0?0:1)}}function Ix0(n,a){1&n&&(e.j41(0,"div",52)(1,"span",22),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"FORMS.PRICE_PLANS._price_comp_with_chars")))}function Px0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-configuration-profile-drawer",55),e.bIt("save",function(l){e.eBV(c);const i=e.XpG(2);return e.Njj(i.updateConfigurationProfile(l))})("close",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.showConfigurationDrawer=!1)}),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("profileData",c.getProfileData())}}function jx0(n,a){if(1&n&&(e.j41(0,"option",27),e.EFF(1),e.k0s()),2&n){let c;const t=a.$implicit,l=e.XpG(2);e.FS9("value",t.code),e.Y8G("selected",t.code===(null==(c=l.formGroup.get("currency"))?null:c.value)),e.R7$(),e.Lme("(",t.code,") ",t.name,"")}}function $x0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"h3",10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Ax0,2,1)(5,Ix0,4,3)(6,Px0,1,1,"app-configuration-profile-drawer",23),e.k0s(),e.j41(7,"div",9)(8,"h3",10),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",24)(12,"label",25),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"select",26),e.Z7z(16,jx0,2,4,"option",27,Mx0),e.k0s()(),e.j41(18,"div",28)(19,"app-price-components-table",29),e.bIt("edit",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.editPriceComponent(l))})("delete",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.deletePriceComponent(l))}),e.k0s(),e.j41(20,"div",30)(21,"button",31),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openPriceComponentDrawer())}),e.qSk(),e.j41(22,"svg",6),e.nrm(23,"path",32),e.k0s(),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.joV(),e.j41(26,"button",33),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openTierPricingDrawer())}),e.qSk(),e.j41(27,"svg",6),e.nrm(28,"path",34),e.k0s(),e.EFF(29),e.nI1(30,"translate"),e.k0s()()()()}if(2&n){let c;const t=e.XpG();e.R7$(2),e.SpI(" ",e.bMT(3,11,"FORMS.PRICE_PLANS._config_profile")," "),e.R7$(2),e.vxM(4,t.checkPriceCompChars()?5:4),e.R7$(2),e.Y8G("ngIf",t.showConfigurationDrawer),e.R7$(3),e.SpI(" ",e.bMT(10,13,"FORMS.PRICE_PLANS._price_components")," "),e.R7$(4),e.SpI(" ",e.bMT(14,15,"FORMS.PRICE_PLANS._currency")," "),e.R7$(3),e.Dyx(t.currencies),e.R7$(3),e.Y8G("priceComponents",null==(c=t.formGroup.get("priceComponents"))?null:c.value),e.R7$(5),e.SpI(" ",e.bMT(25,17,"FORMS.PRICE_PLANS._add_price_component")," "),e.R7$(2),e.Y8G("disabled",!t.hasRangeCharacteristics()||t.hasProfilePricePlan())("ngClass",t.hasRangeCharacteristics()&&!t.hasProfilePricePlan()?"bg-green-500 hover:bg-green-600 cursor-pointer":"bg-gray-400 cursor-not-allowed opacity-50")("title",t.hasProfilePricePlan()?"Tier pricing is not available when a configuration profile is set":t.hasRangeCharacteristics()?"Create tier pricing based on range characteristics":"No range characteristics available in product specification"),e.R7$(3),e.SpI(" ",e.bMT(30,19,"FORMS.PRICE_PLANS._add_tier_pricing")," ")}}function Ox0(n,a){if(1&n&&(e.j41(0,"div",14)(1,"span",22),e.EFF(2),e.k0s()()),2&n){const c=e.XpG();e.R7$(2),e.JRh(c.rangeValidationError)}}function Bx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-component-drawer",56),e.bIt("save",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closePriceComponentDrawer(l))})("close",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closePriceComponentDrawer(l))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("component",c.editingComponent)("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)("profileData",c.checkProfileData())}}function Vx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-tier-pricing-drawer",57),e.bIt("saveTierPricing",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.closeTierPricingDrawer(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeTierPricingDrawer(null))}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("prodChars",null==c.prodSpec?null:c.prodSpec.productSpecCharacteristic)}}let Ux0=(()=>{class n{constructor(c){this.fb=c,this.prodSpec=null,this.action="create",this.save=new e.bkB,this.close=new e.bkB,this.isOpen=!1,this.initialized=!1,this.showPriceComponentDrawer=!1,this.showConfigurationDrawer=!1,this.showTierPricingDrawer=!1,this.editingComponent=null,this.currencies=[sD.currencies[2]],this.destroy$=new S.B,this.rangeValidationError=null,this.currentPage=0,this.pageSize=5}ngOnInit(){if(this.initialized=!1,console.log("--- PROD PROF ----"),console.log(this.formGroup?.get("productProfile")?.value),console.log(" --- --- "),setTimeout(()=>{this.isOpen=!0,this.initialized=!0,document.body.style.overflow="hidden"},50),!this.formGroup)return void console.error("\u274c Error: `formGroup` is not a FormGroup!",this.formGroup);this.formGroup.get("paymentOnline")?.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{t?this.formGroup.get("priceType")?.setValue(""):this.formGroup.get("priceType")?.setValue("custom")}),this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.formGroup.markAsTouched()});const c=this.formGroup.get("paymentOnline");c&&c.disable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}savePricePlan(){if(!this.formGroup.invalid){if(!this.validateRangeCharacteristicsCoverage())return void console.log("Range characteristics validation failed");this.rangeValidationError=null,this.save.emit(this.formGroup.getRawValue()),this.closeDrawer()}}validateRangeCharacteristicsCoverage(){const c={},t={},l=this.getRangeCharacteristics();for(const u of l){const C=u.productSpecCharacteristicValue[0];c[u.id]={totalRange:{from:Number(C.valueFrom),to:Number(C.valueTo)}},t[u.id]=u.name}const i=this.formGroup.get("priceComponents")?.value||[];for(const u of i){const C=u.selectedCharacteristic?.[0];if(C&&c[C.id]){const b=C.productSpecCharacteristicValue?.[0];if(b&&"valueFrom"in b&&"valueTo"in b){const T=Number(b.valueFrom),W=Number(b.valueTo);c[C.id][T]||(c[C.id][T]=[]),c[C.id][T].push(W)}}}for(const[u,C]of Object.entries(c)){const b=C,T=Object.keys(b);if(1===T.length&&"totalRange"===T[0])continue;const W=b.totalRange;if(!this.hasCompletePathDFS(b,W.from,W.to))return this.rangeValidationError=`The range characteristic "${t[u]||u}" does not have complete coverage from ${W.from} to ${W.to}. Please ensure all ranges are continuous and cover the full specification range.`,console.log(`Range characteristic with ID "${u}" does not have complete coverage`),console.log(" Range data:",b),!1}return!0}getRangeCharacteristics(){return this.prodSpec?.productSpecCharacteristic?this.prodSpec.productSpecCharacteristic.filter(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t}):[]}hasCompletePathDFS(c,t,l){const i=new Set,u=C=>{const b=c[C];if(!b||0===b.length)return!1;for(const T of b){if(T===l)return!0;const W=T+1;if(!i.has(W)&&(i.add(W),c[W]&&u(W)))return!0}return!1};return u(t)}openPriceComponentDrawer(c=null){this.editingComponent=c,this.showPriceComponentDrawer=!0}closePriceComponentDrawer(c){if(c){const t=this.formGroup.get("priceComponents")?.value||[];if(this.editingComponent){const l=t.findIndex(i=>i.id===this.editingComponent.id);l>-1&&(this.editingComponent.id?.startsWith("temp-id")||(c.id=this.editingComponent.id),t[l]=c)}else t.push(c);this.formGroup.get("priceComponents")?.setValue(t),console.log(this.formGroup.get("priceComponents")?.value)}this.showPriceComponentDrawer=!1,this.editingComponent=null}editPriceComponent(c){this.openPriceComponentDrawer(c)}deletePriceComponent(c){const t=this.formGroup.get("priceComponents")?.value||[];this.formGroup.get("priceComponents")?.setValue(t.filter(l=>l.id!==c))}checkPriceCompChars(){return(this.formGroup.get("priceComponents")?.value??[]).some(l=>null!=l.selectedCharacteristic)}get pricePlanTranslationKey(){return"create"===this.action?"FORMS.PRICE_PLANS._new_price_plan":"FORMS.PRICE_PLANS._edit_price_plan"}closeDrawer(){this.isOpen=!1,document.body.style.overflow="",setTimeout(()=>this.close.emit(),500)}handleEscapeKey(c){this.showConfigurationDrawer?this.showConfigurationDrawer=!1:this.showPriceComponentDrawer||this.closeDrawer()}openConfigurationProfileDrawer(){this.showConfigurationDrawer=!0}updateConfigurationProfile(c){this.formGroup.get("prodSpecCharValueUse")?.setValue(c),this.showConfigurationDrawer=!1}get configurationProfileButtonText(){return this.formGroup?.get("prodSpecCharValueUse")?.value?.length>0?"FORMS.PRICE_PLANS._edit_profile":"FORMS.PRICE_PLANS._add_profile"}isOptionalToggleCharacteristicName(c){return(c??"").toString().trim().toLowerCase().endsWith("- enabled")}get paginatedProfileData(){const c=this.getProcessedProfileData(),t=this.currentPage*this.pageSize;return c.slice(t,t+this.pageSize)}get totalPages(){const c=this.getProcessedProfileData();return Math.ceil(c.length/this.pageSize)}nextPage(){this.currentPage0&&this.currentPage--}getProcessedProfileData(){return this.formGroup?.get("prodSpecCharValueUse")?.value?this.formGroup?.get("prodSpecCharValueUse")?.value?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name)).map(c=>({...c,selectedValue:c.productSpecCharacteristicValue?.find(t=>t.isDefault)||null}))||[]:this.formGroup?.get("productProfile")?.value?.selectedValues?.filter(c=>!this.isOptionalToggleCharacteristicName(c?.name))||[]}updateIsDefault(c,t){return c.map(l=>{const i=t.find(u=>u.id===l.id);return i?{...l,productSpecCharacteristicValue:l.productSpecCharacteristicValue.map(u=>({...u,isDefault:String(u.value)===String(i.selectedValue)}))}:l})}getProfileData(){let c=this.formGroup?.get("prodSpecCharValueUse")?.value;return(!c||0===c.length)&&(c=this.formGroup?.get("productProfile")?.value?.selectedValues.length>0?this.updateIsDefault(this.prodSpec?.productSpecCharacteristic,this.formGroup?.get("productProfile")?.value?.selectedValues):this.prodSpec?.productSpecCharacteristic||[]),c}checkProfileData(){let c=this.formGroup?.get("prodSpecCharValueUse")?.value;return!c&&this.formGroup?.get("productProfile")?.value&&(c=this.formGroup?.get("productProfile")?.value.selectedValues),!c||0===c.length}openTierPricingDrawer(){this.showTierPricingDrawer=!0}closeTierPricingDrawer(c){if(c&&Array.isArray(c)){const t=this.formGroup.get("priceComponents")?.value||[];t.push(...c),this.formGroup.get("priceComponents")?.setValue(t),console.log("Tier pricing components added:",c)}this.showTierPricingDrawer=!1}hasRangeCharacteristics(){return!!this.prodSpec?.productSpecCharacteristic&&this.prodSpec.productSpecCharacteristic.some(c=>{const t=c.productSpecCharacteristicValue?.[0];return t&&"valueFrom"in t&&"valueTo"in t})}hasProfilePricePlan(){const c=this.formGroup?.get("prodSpecCharValueUse")?.value;return c&&c.length>0}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plan-drawer"]],hostBindings:function(t,l){1&t&&e.bIt("keydown.escape",function(u){return l.handleEscapeKey(u)},!1,e.EBC)},inputs:{formGroup:"formGroup",prodSpec:"prodSpec",action:"action"},outputs:{save:"save",close:"close"},standalone:!0,features:[e.aNF],decls:36,vars:38,consts:[[1,"fixed","inset-0","bg-black","bg-opacity-50","flex","justify-end","transition-opacity","duration-1000","z-50",3,"ngClass"],["class","fixed inset-0 bg-black bg-opacity-30 pointer-events-none z-[51]",4,"ngIf"],[1,"w-full","md:w-5/6","bg-secondary-50","dark:bg-gray-800","h-full","p-6","overflow-y-auto","transform","transition-transform","duration-1000","relative","z-50",3,"ngClass"],[1,"flex","justify-between","items-center"],[1,"text-2xl","font-semibold","text-primary-100","dark:text-white","mb-4"],["type","button",1,"text-gray-500","hover:text-gray-700","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47\n 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9\n 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"],[1,"bg-white","dark:bg-gray-800","p-8","rounded-lg",3,"formGroup"],[1,"mb-4"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","pricePlanName","formControlName","name","type","text",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:text-gray-100",3,"ngClass"],[1,"text-sm","text-red-600","dark:text-red-500"],["formControlName","description"],["role","alert",1,"mb-4","p-4","text-sm","text-red-800","rounded-lg","bg-red-50","dark:bg-red-900","dark:text-red-200"],[1,"flex","justify-end","space-x-3"],["data-cy","cancelPricePlan","type","button",1,"px-4","py-2","bg-gray-300","dark:bg-gray-600","rounded",3,"click"],["type","submit","data-cy","savePricePlan",1,"px-4","py-2","rounded","text-white","flex","items-center","transition",3,"click","disabled","ngClass"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM128 272l16 0c-.6-5-.9-10.1-.9-15.2c0-5.7\n .4-11.3 1.1-16.8L128 240c-8.8 0-16-7.2-16-16s7.2-16 16-16l24.7 0c19.2-46.9 65.4-80 119.2-80l41.1 0c13.3\n 0 24 10.7 24 24s-10.7 24-24 24l-41.1 0c-26.3 0-49.6 12.6-64.4 32l80.5 0c8.8 0 16 7.2 16 16s-7.2 16-16\n 16l-95.1 0c-1.1 5.4-1.7 11-1.7 16.8c0 5.2 .5 10.3 1.4 15.2l95.4 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-81.6\n 0c14.7 20.3 38.5 33.5 65.5 33.5l41.1 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-41.1 0c-54.4\n 0-101-33.8-119.8-81.5L128 304c-8.8 0-16-7.2-16-16s7.2-16 16-16z"],[3,"component","prodChars","profileData","save","close",4,"ngIf"],[3,"prodChars","saveTierPricing","close",4,"ngIf"],[1,"fixed","inset-0","bg-black","bg-opacity-30","pointer-events-none","z-[51]"],[1,"font-medium"],[3,"profileData","save","close",4,"ngIf"],[1,"mb-4","p-2"],[1,"font-medium","text-base","dark:text-white"],["formControlName","currency",1,"mt-1","w-full","p-2","border","rounded","dark:bg-gray-700","dark:border-gray-600","dark:text-gray-100"],[3,"value","selected"],[1,"p-2"],[3,"edit","delete","priceComponents"],[1,"px-4","flex","flex-wrap","gap-2"],["data-cy","newPriceComponent","type","button",1,"mt-2","px-4","py-2","bg-blue-500","text-white","rounded","flex","items-center","hover:bg-blue-600",3,"click"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24\n 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64\n 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],["data-cy","newTierPricing","type","button",1,"mt-2","px-4","py-2","text-white","rounded","flex","items-center",3,"click","disabled","ngClass","title"],["fill","currentColor","d","M448 160l-128 0 0-32 128 0 0 32zM48 64C21.5 64 0 85.5 0 112l0 64c0 26.5 21.5 48 48 48l416 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48L48 64zM448 352l-256 0 0-32 256 0 0 32zM48 256c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l416 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48L48 256z"],[1,"overflow-x-auto"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-400"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-gray-700","dark:text-gray-400"],[1,"px-4","py-2"],["class","bg-white dark:bg-gray-800 border-b",4,"ngFor","ngForOf"],[1,"flex","justify-between","items-center","mt-2"],["type","button",1,"px-4","py-1","bg-blue-500","text-white","rounded","flex","items-center",3,"click"],["fill","currentColor","d","M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0\n 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7\n 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1\n 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3\n 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7\n 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7\n 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5\n 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z"],[1,"flex","justify-end","items-center","space-x-1"],[1,"flex","items-center","justify-center","px-4","py-1","bg-gray-300","dark:bg-gray-600","rounded","disabled:opacity-50",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],[1,"text-gray-700","dark:text-gray-300"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],[1,"bg-white","dark:bg-gray-800","border-b"],[1,"px-4","py-1"],["role","alert",1,"p-4","my-2","text-sm","text-center","text-blue-800","rounded-lg","bg-blue-50","dark:bg-secondary-100","dark:text-blue-400"],[1,"px-4"],["data-cy","configProfile","type","button",1,"mt-2","px-4","py-1","bg-blue-500","text-white","rounded","flex","items-center",3,"click"],[3,"save","close","profileData"],[3,"save","close","component","prodChars","profileData"],[3,"saveTierPricing","close","prodChars"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0),e.DNE(1,Fx0,1,0,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"h2",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"button",5),e.bIt("click",function(){return l.closeDrawer()}),e.qSk(),e.j41(8,"svg",6),e.nrm(9,"path",7),e.k0s()()(),e.joV(),e.j41(10,"div",8)(11,"div",9)(12,"label",10),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"input",11),e.DNE(16,vx0,4,3,"p",12)(17,kx0,4,3,"p",12),e.k0s(),e.j41(18,"div",9)(19,"label",10),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"app-markdown-textarea",13),e.k0s(),e.DNE(23,$x0,31,21)(24,Ox0,3,1,"div",14),e.j41(25,"div",15)(26,"button",16),e.bIt("click",function(){return l.closeDrawer()}),e.EFF(27),e.nI1(28,"translate"),e.k0s(),e.j41(29,"button",17),e.bIt("click",function(){return l.savePricePlan()}),e.qSk(),e.j41(30,"svg",6),e.nrm(31,"path",18),e.k0s(),e.EFF(32),e.nI1(33,"translate"),e.k0s()()()(),e.DNE(34,Bx0,1,3,"app-price-component-drawer",19)(35,Vx0,1,1,"app-tier-pricing-drawer",20),e.k0s()),2&t){let i,u,C,b;e.Y8G("ngClass",e.l_i(28,xx0,l.isOpen,!l.isOpen)),e.R7$(),e.Y8G("ngIf",l.showPriceComponentDrawer||l.showTierPricingDrawer),e.R7$(),e.Y8G("ngClass",e.sMw(31,bx0,l.isOpen,!l.isOpen,!l.initialized)),e.R7$(3),e.SpI(" ",e.bMT(6,18,l.pricePlanTranslationKey)," "),e.R7$(5),e.Y8G("formGroup",l.formGroup),e.R7$(3),e.SpI(" ",e.bMT(14,20,"FORMS.PRICE_PLANS._name")," "),e.R7$(2),e.Y8G("ngClass",1==(null==(i=l.formGroup.get("name"))?null:i.invalid)&&""!=l.formGroup.value.name||null!=(i=l.formGroup.get("name"))&&i.touched&&""==l.formGroup.value.name||l.formGroup.hasError("nonUniqueName")&&null!=(i=l.formGroup.get("name"))&&i.touched?"border-red-600":"border-gray-300 dark:border-gray-600"),e.R7$(),e.vxM(16,l.formGroup.hasError("nonUniqueName")&&null!=(u=l.formGroup.get("name"))&&u.touched?16:-1),e.R7$(),e.vxM(17,null!=(C=l.formGroup.get("name"))&&C.invalid&&null!=(C=l.formGroup.get("name"))&&null!=C.errors&&C.errors.required&&null!=(C=l.formGroup.get("name"))&&C.touched&&""==l.formGroup.value.name?17:-1),e.R7$(3),e.SpI(" ",e.bMT(21,22,"FORMS.PRICE_PLANS._description")," "),e.R7$(3),e.vxM(23,null!=(b=l.formGroup.get("paymentOnline"))&&b.value?23:-1),e.R7$(),e.vxM(24,l.rangeValidationError?24:-1),e.R7$(3),e.SpI(" ",e.bMT(28,24,"FORMS.PRICE_PLANS._cancel")," "),e.R7$(2),e.Y8G("disabled",l.formGroup.invalid)("ngClass",e.l_i(35,yx0,l.formGroup.valid,l.formGroup.invalid)),e.R7$(3),e.SpI(" ",e.bMT(33,26,"FORMS.PRICE_PLANS._save")," "),e.R7$(2),e.Y8G("ngIf",l.showPriceComponentDrawer),e.R7$(),e.Y8G("ngIf",l.showTierPricingDrawer)}},dependencies:[p.X1,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,s1.h,s1.D9,_.YU,me,_.bT,RM0,Wz0,qM0,zx0,_.Sq]})}}return n})();function Gx0(n,a){1&n&&(e.j41(0,"option",9),e.EFF(1,"Tailored price"),e.k0s())}function Hx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"label",6),e.EFF(1," Select the price type that best suits for you: "),e.k0s(),e.j41(2,"select",7),e.bIt("change",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.onPaymentOnlineChange(l))}),e.j41(3,"option",8),e.EFF(4,"Free"),e.k0s(),e.DNE(5,Gx0,2,0,"option",9),e.j41(6,"option",10),e.EFF(7,"Online paid price"),e.k0s()()}if(2&n){const c=e.XpG();e.R7$(2),e.Y8G("value",c.priceType),e.R7$(3),e.vxM(5,c.custom?-1:5)}}function Yx0(n,a){if(1&n&&(e.j41(0,"label",11),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" You've selected a ","free"===c.priceType?"free":"tailored"===c.priceType?"tailored":"online paid"," price type. If you want to change it you need to delete all your price plans before. ")}}function qx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.openPricePlanDrawer())}),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14),e.k0s(),e.joV(),e.j41(3,"span",15),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}2&n&&(e.R7$(4),e.JRh(e.bMT(5,1,"FORMS.PRICE_PLANS._add")))}function Xx0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-plan-drawer",16),e.bIt("save",function(l){e.eBV(c);const i=e.XpG();return e.Njj(i.savePricePlan(l))})("close",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.closeDrawer())}),e.k0s()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.selectedPricePlan)("prodSpec",c.prodSpec)("action",c.action)}}let ME1=(()=>{class n{constructor(c,t,l){this.fb=c,this.cdr=t,this.eventMessage=l,this.prodSpec=null,this.custom=!1,this.formChange=new e.bkB,this.pricePlansForm=this.fb.array([],{validators:[]}),this.paymentOnline=!1,this.paymentOnlineControl=new p.MJ({value:!1,disabled:!1}),this.pricePlans=[],this.existingPlanNames=[],this.selectedPricePlan=null,this.showDrawer=!1,this.action="create",this.formSubscription=null,this.priceType="free",this.originalPricePlans=[],this.originalPriceComponents={},this.lastKnownState=[],this.destroy$=new S.B,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){console.log("\u{1f504} Initializing PricePlansComponent"),this.pricePlanForm=this.createPricePlanForm();const c=this.form.get("pricePlans")?.value||[];console.log("\u{1f4cb} Existing plans:",c),this.pricePlansForm=this.fb.array(c.map(t=>this.createPricePlanForm(t))),this.pricePlans=this.pricePlansForm.value,console.log("\u{1f4b0} Initial price plans:",this.pricePlans),this.pricePlans.length>0?(this.paymentOnline=this.pricePlans[0].paymentOnline,this.priceType=this.paymentOnline?"paid":"tailored"):this.priceType="free",this.originalPricePlans=this.pricePlans.map(t=>({id:t.id,name:t.name,description:t.description,isBundle:t.isBundle,lastUpdate:t.lastUpdate,lifecycleStatus:t.lifecycleStatus,paymentOnline:t.paymentOnline,priceType:t.priceType,currency:t.currency,unitOfMeasure:t.unitOfMeasure,validFor:t.validFor,priceComponents:t.priceComponents?.map(l=>({id:l.id,name:l.name,price:l.price,currency:l.currency,recurringPeriod:l.recurringPeriod,usageUnit:l.usageUnit}))||[]})),this.lastKnownState=this.pricePlans.map(t=>({id:t.id,name:t.name,description:t.description,isBundle:t.isBundle,lastUpdate:t.lastUpdate,lifecycleStatus:t.lifecycleStatus,paymentOnline:t.paymentOnline,priceType:t.priceType,currency:t.currency,unitOfMeasure:t.unitOfMeasure,validFor:t.validFor,priceComponents:t.priceComponents?.map(l=>({id:l.id,name:l.name,price:l.price,currency:l.currency,recurringPeriod:l.recurringPeriod,usageUnit:l.usageUnit}))||[]})),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),console.log("\u{1f4dd} Original state:",this.originalPricePlans),console.log("\u{1f50d} Last known state:",this.lastKnownState),this.formSubscription=this.pricePlansForm.valueChanges.pipe(GG(500),u2(),(0,U6.p)(()=>this.pricePlansForm.dirty),(0,O1.Q)(this.destroy$)).subscribe(t=>{console.log("\u{1f4ca} Form array value changed:",t),this.checkChanges()}),this.pricePlansForm.controls.forEach((t,l)=>{t.valueChanges.pipe(GG(500),u2(),(0,O1.Q)(this.destroy$)).subscribe(i=>{console.log(`\u{1f4c8} Price plan ${l} changed:`,i),this.checkChanges()})})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}checkChanges(){console.log("\u{1f50d} Checking for changes...");const c=this.pricePlansForm.getRawValue();console.log("\u{1f4ca} Current form value:",c);const t=this.getDetailedChanges(c);console.log("\u{1f4dd} Detailed changes:",t);const l={subformType:"pricePlans",isDirty:this.pricePlansForm.dirty,dirtyFields:Object.keys(this.pricePlansForm.controls).filter(i=>this.pricePlansForm.get(i)?.dirty),originalValue:this.originalValue,currentValue:c,priceComponentsChanged:t.some(i=>i.priceComponents.added.length>0||i.priceComponents.modified.length>0||i.priceComponents.deleted.length>0),profileChanged:this.checkProfileChanges(),modifiedPricePlans:t};console.log("\u{1f680} Emitting price plans change state:",l),this.formChange.emit(l),this.lastKnownState=c.map(i=>({id:i.id,name:i.name,description:i.description,isBundle:i.isBundle,lastUpdate:i.lastUpdate,lifecycleStatus:i.lifecycleStatus,paymentOnline:i.paymentOnline,priceType:i.priceType,currency:i.currency,unitOfMeasure:i.unitOfMeasure,validFor:i.validFor,priceComponents:i.priceComponents?.map(C=>({id:C.id,name:C.name,price:C.price,currency:C.currency,recurringPeriod:C.recurringPeriod,usageUnit:C.usageUnit}))||[]}))}getDetailedChanges(c){const t=[];return c.forEach(l=>{const i=this.originalPricePlans.find(T1=>T1.id===l.id),u=this.lastKnownState.find(T1=>T1.id===l.id),C=this.getModifiedFields(i,l),b=this.getModifiedFields(u,l),a1=this.getDetailedComponentChanges(i?.priceComponents||[],u?.priceComponents||[],l.priceComponents||[]);(C.length>0||b.length>0||a1.added.length>0||a1.modified.length>0||a1.deleted.length>0)&&t.push({id:l.id,isNew:!i,modifiedFields:C,oldValue:u,newValue:l,priceComponents:a1})}),t}getDetailedComponentChanges(c,t,l){const i=l.filter(b=>!c.find(T=>T.id===b.id)).map(b=>({id:b.id,name:b.name,price:b.price,currency:b.currency,recurringPeriod:b.recurringPeriod,usageUnit:b.usageUnit,modifiedFields:Object.keys(b),newValue:b})),u=c.filter(b=>!l.find(T=>T.id===b.id)).map(b=>b.id);return{added:i,modified:l.filter(b=>{const T=c.find(u1=>u1.id===b.id),W=t.find(u1=>u1.id===b.id);return T&&(this.getModifiedFields(T,b).length>0||this.getModifiedFields(W,b).length>0)}).map(b=>{c.find(u1=>u1.id===b.id);const W=t.find(u1=>u1.id===b.id);return{id:b.id,name:b.name,price:b.price,currency:b.currency,recurringPeriod:b.recurringPeriod,usageUnit:b.usageUnit,modifiedFields:this.getModifiedFields(W,b),oldValue:W,newValue:b}}),deleted:u}}getModifiedFields(c,t){return c?Object.keys(t).filter(l=>{if("priceComponents"===l||"productProfile"===l||"controls"===l||"_parent"===l)return!1;const i=c[l],u=t[l];return i instanceof p.gE||u instanceof p.gE||i instanceof p.Yp||u instanceof p.Yp?JSON.stringify(i?.value)!==JSON.stringify(u?.value):JSON.stringify(i)!==JSON.stringify(u)}):Object.keys(t)}checkProfileChanges(){return(this.pricePlansForm.get("pricePlans")?.value||[]).some(t=>t.productProfile?.dirty||t.productProfile?.touched)}onPaymentOnlineChange(c){"paid"==c.target.value?(this.paymentOnline=!0,this.priceType="paid"):"free"==c.target.value?(this.priceType="free",this.paymentOnline=!1):(this.priceType="tailored",this.paymentOnline=!1),this.cdr.detectChanges()}createPricePlanForm(c=null){return this.fb.group({id:[c?.id||this.generateId()],href:[c?.href||null],name:[c?.name||"",{validators:[p.k0.required]}],description:[c?.description||"",{validators:[p.k0.required]}],isBundle:[c?.isBundle||!1],lastUpdate:[c?.lastUpdate||null],lifecycleStatus:[c?.lifecycleStatus||"Active"],paymentOnline:[c?.paymentOnline??this.paymentOnline],priceType:[c?.priceType||"custom"],prodSpecCharValueUse:[c?.prodSpecCharValueUse||null],currency:[c?.price?.unit||"EUR"],unitOfMeasure:[c?.unitOfMeasure||null],productProfile:c?.productProfile?c.productProfile:this.mapProductProfile(c?.prodSpecCharValueUse||[]),priceComponents:[c?.priceComponents||[]],validFor:[c?.validFor||null]},{validators:[BX2,VX2(()=>this.existingPlanNames)]})}mapProductProfile(c){return this.fb.group({selectedValues:this.fb.array(c.map(t=>this.fb.group({id:[t.id],name:[t.name],selectedValue:[t.productSpecCharacteristicValue.find(l=>l.isDefault)?.value??null,p.k0.required]})))})}addPricePlan(c){console.log("add plan");const t=c?.paymentOnline??this.paymentOnline,l=this.createPricePlanForm({...c,paymentOnline:t});this.pricePlansForm.push(l),this.existingPlanNames=this.pricePlans.map(i=>i.name).filter(i=>!!i),this.form.updateValueAndValidity(),this.syncPricePlans()}removePricePlan(c){-1!==c&&(this.pricePlansForm.removeAt(c),console.log(this.pricePlansForm),this.syncPricePlans(),this.checkChanges(),0===this.pricePlans.length&&(this.paymentOnline=!1,this.priceType="free",this.cdr.detectChanges()))}savePricePlan(c){const t=this.pricePlansForm.controls.findIndex(u=>u.getRawValue().id===this.selectedPricePlan?.getRawValue().id),i={...c,paymentOnline:"edit"===this.action?this.selectedPricePlan?.getRawValue().paymentOnline:this.paymentOnline};t>-1?this.pricePlansForm.at(t).patchValue(i):this.addPricePlan(i),this.syncPricePlans(),this.showDrawer=!1,this.selectedPricePlan=null}generateId(){return`temp-id:${L4()}`}openPricePlanDrawer(c=null){if(c){console.log("\u{1f4dd} Editing existing price plan:",c);const t=this.pricePlansForm.controls.findIndex(l=>l.value.id===c.id);console.log(t),-1!==t?this.selectedPricePlan=this.pricePlansForm.at(t):(this.selectedPricePlan=this.createPricePlanForm(c),this.existingPlanNames=this.pricePlans.filter(l=>l.id!==this.selectedPricePlan.value.id).map(l=>l.name).filter(l=>!!l),this.form.updateValueAndValidity()),this.action="edit"}else console.log("\u2795 Creating a new price plan"),this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity(),this.pricePlansForm.push(this.selectedPricePlan);this.showDrawer=!0}closeDrawer(){this.showDrawer=!1,"create"==this.action&&this.removePricePlan(this.pricePlansForm.length-1)}editPricePlan(c){console.log("Editing Price Plan:",c),c?(this.action="edit",this.selectedPricePlan=this.createPricePlanForm({...c,paymentOnline:c.paymentOnline}),this.existingPlanNames=this.pricePlans.filter(t=>t.id!==this.selectedPricePlan.value.id).map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity()):(this.action="create",this.selectedPricePlan=this.createPricePlanForm({paymentOnline:this.paymentOnline}),this.existingPlanNames=this.pricePlans.map(t=>t.name).filter(t=>!!t),this.form.updateValueAndValidity()),console.log("\u{1f4dd} Form after patching:",this.selectedPricePlan.value),this.cdr.detectChanges(),this.showDrawer=!0}syncPricePlans(){this.pricePlans=this.pricePlansForm.controls.map(c=>c.getRawValue()),this.form.get("pricePlans")?.setValue(this.pricePlans),this.onChange(this.pricePlans),0===this.pricePlans.length&&(this.priceType="free"),this.cdr.detectChanges()}writeValue(c){this.pricePlansForm.clear(),c?.forEach(t=>this.addPricePlan(t))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(e.gRc),e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-price-plans-form"]],inputs:{form:"form",prodSpec:"prodSpec",custom:"custom"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:10,vars:7,consts:[[1,"bg-white","dark:bg-gray-800","p-6","rounded-lg","shadow-lg"],[1,"text-xl","font-semibold","text-secondary-100","dark:text-white"],[1,"mb-4","flex","flex-col"],[3,"edit","delete","pricePlans"],["data-cy","newPricePlan","type","button",1,"mt-2","px-4","py-2","flex","items-center","justify-center","text-base","font-medium","bg-secondary-50","dark:bg-secondary-100","text-primary-100","dark:text-primary-50","rounded"],["data-cy","pricePlanDrawer",3,"formGroup","prodSpec","action"],[1,"ms-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["id","pricePlanType","data-cy","pricePlanType",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"change","value"],["value","free"],["value","tailored"],["value","paid"],[1,"mb-2","text-sm","font-medium","text-gray-900","dark:text-gray-300"],["data-cy","newPricePlan","type","button",1,"mt-2","px-4","py-2","flex","items-center","justify-center","text-base","font-medium","bg-secondary-50","dark:bg-secondary-100","text-primary-100","dark:text-primary-50","rounded",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 512 512",1,"min-w-4","w-4","h-4","md:mr-2"],["fill","currentColor","d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24\n 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64\n 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"],[1,"hidden","md:block"],["data-cy","pricePlanDrawer",3,"save","close","formGroup","prodSpec","action"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",2),e.DNE(5,Hx0,8,2)(6,Yx0,2,1),e.k0s(),e.j41(7,"app-price-plans-table",3),e.bIt("edit",function(u){return l.editPricePlan(u)})("delete",function(u){return l.removePricePlan(u)}),e.k0s(),e.DNE(8,qx0,6,3,"button",4),e.k0s(),e.DNE(9,Xx0,1,3,"app-price-plan-drawer",5)),2&t&&(e.R7$(2),e.JRh(e.bMT(3,5,"FORMS.PRICE_PLANS._price_plans")),e.R7$(3),e.vxM(5,0==l.pricePlans.length?5:6),e.R7$(2),e.Y8G("pricePlans",l.pricePlans),e.R7$(),e.vxM(8,"free"!=l.priceType?8:-1),e.R7$(),e.vxM(9,l.showDrawer?9:-1))},dependencies:[Gz0,s1.h,s1.D9,Ux0,p.X1,p.xH,p.y7,p.cb,p.j4]})}}return n})();const Wx0=(n,a)=>a.id;function Jx0(n,a){if(1&n&&(e.j41(0,"option",6),e.EFF(1),e.k0s()),2&n){const c=a.$implicit;e.Y8G("value",c.id),e.R7$(),e.JRh(c.name)}}function Qx0(n,a){if(1&n&&(e.j41(0,"div",7)(1,"label",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"input",10),e.k0s()),2&n){const c=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"CREATE_OFFER._ext_billing")),e.R7$(2),e.Y8G("formControl",c.extBillingEnabledControl)}}function Zx0(n,a){1&n&&(e.j41(0,"p",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"CREATE_OFFER._pla_spec_id_required")))}function Kx0(n,a){if(1&n&&(e.j41(0,"label",11),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",12),e.DNE(4,Zx0,3,3,"p",13)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,5,"CREATE_OFFER._pla_spec_id")),e.R7$(2),e.AVh("border-red-500",c.plaSpecIdControl.invalid&&c.plaSpecIdControl.touched),e.Y8G("formControl",c.plaSpecIdControl),e.R7$(),e.vxM(4,c.plaSpecIdControl.invalid&&c.plaSpecIdControl.touched?4:-1)}}function eb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",8)(1,"div",14)(2,"button",15),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.showProcurementError=!1)}),e.qSk(),e.j41(3,"svg",16),e.nrm(4,"path",17),e.k0s()(),e.joV(),e.j41(5,"div",18),e.qSk(),e.j41(6,"svg",19),e.nrm(7,"path",20),e.k0s(),e.joV(),e.j41(8,"h3",21),e.EFF(9,"Warning!"),e.k0s()(),e.j41(10,"div",22),e.EFF(11),e.j41(12,"p",23)(13,"a",24),e.EFF(14," Check the payment gateway here. "),e.k0s()()()()()}if(2&n){const c=e.XpG();e.R7$(11),e.SpI(" ",c.errorMessage," "),e.R7$(2),e.FS9("href",c.gatewayUrl,e.B4B)}}let xE1=(()=>{class n{constructor(c,t,l){this.cdr=c,this.eventMessage=t,this.http=l,this.formChange=new e.bkB,this.procurementModes=[{id:"manual",name:"Manual"},{id:"payment-automatic",name:"Payment Automatic - Procurement Manual"},{id:"automatic",name:"Automatic"}],this.procurementMode="manual",this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.showProcurementError=!1,this.errorMessage="",this.gatewayUrl="",this.gatewayCount=0,this.onChange=()=>{},this.onTouched=()=>{},console.log("\u{1f504} Initializing ProcurementModeComponent"),this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if("UpdateOffer"===i.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const u={id:this.procurementMode,name:this.procurementModes.find(C=>C.id===this.procurementMode)?.name||"Manual",extBillingEnabled:this.formGroup.get("extBillingEnabled")?.value??!1,plaSpecId:this.formGroup.get("plaSpecId")?.value??""};JSON.stringify(u)!==JSON.stringify(this.originalValue)&&(console.log("\u{1f4dd} Emitting changes on destroy"),this.formChange.emit({subformType:"procurement",isDirty:!0,dirtyFields:["id","name"],originalValue:this.originalValue,currentValue:u}))}})}writeValue(c){if(console.log("\u{1f4dd} writeValue - Input value:",c),c){const t=c.id||c;console.log("\u{1f4dd} writeValue - Selected mode:",t),this.procurementMode=t,console.log("\u{1f4dd} writeValue - Updated procurementMode:",this.procurementMode),this.formGroup&&this.formGroup.patchValue({mode:t});const l=this.procurementModes.find(i=>i.id===t);this.onChange(l||{id:t,name:"Manual"})}}get formGroup(){return this.form}get modeControl(){const c=this.formGroup.get("mode");return c instanceof p.MJ?c:null}get extBillingEnabledControl(){const c=this.formGroup.get("extBillingEnabled");return c instanceof p.MJ?c:null}get plaSpecIdControl(){const c=this.formGroup.get("plaSpecId");return c instanceof p.MJ?c:null}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}getInitialProcurementMode(){return"update"===this.formType&&this.data?.productOfferingTerm&&this.data.productOfferingTerm.find(t=>"procurement"===t.name)?.description||"manual"}ngOnInit(){console.log("\u{1f4dd} ngOnInit - Form type:",this.formType),console.log("\u{1f4dd} ngOnInit - Form value:",this.data);const c=this.getInitialProcurementMode();console.log("\u{1f4dd} ngOnInit - Initial value:",c),this.isEditMode="update"===this.formType,this.formGroup.addControl("mode",new p.MJ(c,[p.k0.required]));const t=this.data?.pricingLogicAlgorithm?.[0]?.plaSpecId??"";this.formGroup.addControl("extBillingEnabled",new p.MJ(!!t)),this.formGroup.addControl("plaSpecId",new p.MJ(t,t?[p.k0.required]:[])),this.formGroup.get("extBillingEnabled").valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{const u=this.formGroup.get("plaSpecId");i?u.setValidators([p.k0.required]):u.clearValidators(),u.updateValueAndValidity()}),this.isEditMode&&(this.originalValue={id:c,name:this.procurementModes.find(i=>i.id===c)?.name||"Manual",extBillingEnabled:!!t,plaSpecId:t},console.log("\u{1f4dd} Original value stored:",this.originalValue)),this.formSub=this.form.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if(console.log("\u{1f4dd} Form value changed in subscription:",i),i){if(i.mode){if("manual"!=i.mode&&0==this.gatewayCount)return this.errorMessage="You can't select this procurement mode as you are not registered on the payment gateway.",this.showProcurementError=!0,this.form.setErrors({invalidProcurement:!0}),void this.formGroup.patchValue({mode:"manual"},{emitEvent:!1});this.errorMessage="",this.showProcurementError=!1,this.form.setErrors(null);const u=this.procurementModes.find(C=>C.id===i.mode)||this.procurementModes[0];console.log("\u{1f4dd} Found mode:",u),this.procurementMode=u.id,console.log("\u{1f4dd} Current procurementMode:",this.procurementMode)}this.hasBeenModified=!0}}),(0,e0.s)(this.http.get(`${g1.c.BASE_URL}/paymentInfo`)).then(i=>{this.gatewayUrl=i.providerUrl,this.gatewayCount=i.gatewaysCount}).catch(()=>{this.gatewayCount=0})}changeProcurement(c){console.log("\u{1f504} changeProcurement - Event value:",c.target.value),this.procurementMode=c.target.value,console.log("\u{1f504} changeProcurement - Updated procurementMode:",this.procurementMode);let t=this.procurementModes.find(l=>l.id===c.target.value);console.log("\u{1f504} changeProcurement - Found mode:",t),t&&(this.formGroup.patchValue({mode:c.target.value}),this.hasBeenModified=!0,this.onChange(t))}ngAfterViewInit(){setTimeout(()=>{console.log("\u{1f4dd} AfterViewInit - Current procurementMode:",this.procurementMode),this.cdr.detectChanges()},0)}ngOnDestroy(){if(this.formSub?.unsubscribe(),this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={id:this.procurementMode,name:this.procurementModes.find(t=>t.id===this.procurementMode)?.name||"Manual"};JSON.stringify(c)!==JSON.stringify(this.originalValue)&&(console.log("\u{1f4dd} Emitting changes on destroy"),this.formChange.emit({subformType:"procurement",isDirty:!0,dirtyFields:["id","name"],originalValue:this.originalValue,currentValue:c}))}this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(e.gRc),e.rXU(U2),e.rXU(g.Qq))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-procurement-mode"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:14,vars:7,consts:[[1,"mb-3","text-gray-500","dark:text-gray-400"],[1,"flex","flex-col","gap-4"],[1,"flex","flex-col","gap-2"],[1,"text-sm","font-medium","text-gray-700","dark:text-gray-300"],[3,"formGroup"],["data-cy","procurement","formControlName","mode",1,"w-full","p-2","border","rounded-md","dark:bg-gray-700","dark:border-gray-600","dark:text-white"],[3,"value"],[1,"mt-4","flex","items-center","gap-3"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],[1,"font-bold","text-lg","dark:text-white"],["data-cy","extBillingToggle","type","checkbox",1,"w-4","h-4","text-primary-100","bg-gray-100","border-gray-300","rounded","focus:ring-primary-100","dark:focus:ring-primary-50","dark:ring-offset-gray-800","dark:bg-gray-700","dark:border-gray-600",3,"formControl"],["for","plaSpecId",1,"font-bold","text-lg","dark:text-white"],["data-cy","plaSpecId","id","plaSpecId","type","url","placeholder","https://external-billing-engine.example.com",1,"bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"text-red-500","text-sm","mt-1","mb-2"],["id","alert-additional-content-2","role","alert",1,"relative","p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],["type","button","aria-label","Close",1,"absolute","top-2","right-2","text-red-500","hover:text-red-700","dark:text-white","dark:hover:text-gray-300",3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor",1,"w-4","h-4"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"],[1,"mt-2"],["target","_blank",1,"text-sm","font-medium","text-red-600","hover:underline","dark:text-red-300",3,"href"]],template:function(t,l){1&t&&(e.j41(0,"p",0),e.EFF(1,"Define which parts of the procurement/activation process will be performed automatically and which ones will be performed manually by the provider"),e.k0s(),e.j41(2,"div",1)(3,"div",2)(4,"label",3),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"div",4)(8,"select",5),e.Z7z(9,Jx0,2,2,"option",6,Wx0),e.k0s()()()(),e.DNE(11,Qx0,5,4,"div",7)(12,Kx0,5,7)(13,eb0,15,2,"div",8)),2&t&&(e.R7$(5),e.SpI(" ",e.bMT(6,5,"FORMS.PROCUREMENT_MODE._title")," "),e.R7$(2),e.Y8G("formGroup",l.formGroup),e.R7$(2),e.Dyx(l.procurementModes),e.R7$(2),e.vxM(11,l.extBillingEnabledControl?11:-1),e.R7$(),e.vxM(12,null!=l.extBillingEnabledControl&&l.extBillingEnabledControl.value&&l.plaSpecIdControl?12:-1),e.R7$(),e.vxM(13,l.showProcurementError?13:-1))},dependencies:[s1.h,s1.D9,p.X1,p.xH,p.y7,p.me,p.Zm,p.wz,p.BC,p.cb,p.l_,p.j4,p.JD]})}}return n})();function cb0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function tb0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"path",8),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function nb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(3);return l.stopPropagation(),e.Njj(u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(3);e.Y8G("ngClass",t.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",t.isSelected(c.id)),e.R7$(2),e.JRh(c.tradingName)}}function lb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"input",10),e.mxI("ngModelChange",function(l){e.eBV(c);const i=e.XpG(2);return e.DH7(i.searchTerm,l)||(i.searchTerm=l),e.Njj(l)}),e.k0s()(),e.j41(2,"div",11)(3,"table",12)(4,"thead",13)(5,"tr"),e.nrm(6,"th",14),e.j41(7,"th",15),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody"),e.Z7z(11,nb0,5,3,"tr",16,e.Vm6),e.k0s()()()}if(2&n){const c=e.XpG(2);e.R7$(),e.R50("ngModel",c.searchTerm),e.R7$(7),e.JRh(e.bMT(9,2,"OFFERINGS._name")),e.R7$(3),e.Dyx(c.filteredParties)}}function sb0(n,a){if(1&n&&e.DNE(0,tb0,7,3,"div",5)(1,lb0,13,4),2&n){const c=e.XpG();e.vxM(0,0==c.parties.length?0:1)}}let ab0=(()=>{class n{constructor(c,t){this.accService=c,this.cdr=t,this.formChange=new e.bkB,this.loading=!1,this.parties=[],this.selectedParty=null,this.searchTerm="",this.incomingValue=null,this.onChange=()=>{},this.onTouched=()=>{}}get filteredParties(){const c=this.searchTerm.toLowerCase().trim();return c?this.parties.filter(t=>t.tradingName?.toLowerCase().includes(c)):this.parties}ngOnInit(){var c=this;return(0,C1.A)(function*(){c.loading=!0;try{c.parties=yield c.accService.getOrgList(),console.log("Parties loaded:",c.parties);const t=c.incomingValue?.id??c.partyId;if(t){if(c.selectedParty=c.parties.find(l=>l.id===t)??null,!c.selectedParty)try{const l=yield c.accService.getOrgInfo(t);l?.id&&(c.parties=[l,...c.parties.filter(i=>i.id!==l.id)],c.selectedParty=l)}catch(l){console.error("Unable to load requested party by id:",t,l)}}else c.incomingValue?.id&&(c.selectedParty=c.incomingValue);c.onChange(c.selectedParty??null),c.onTouched(),c.cdr.detectChanges(),console.log("Selected party after init:",c.selectedParty)}finally{c.loading=!1}})()}isSelected(c){return this.selectedParty?.id===c}toggleSelection(c){this.selectedParty=c,this.onChange(c),this.onTouched()}getRowClass(c){return c===this.selectedParty?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}writeValue(c){console.log("writeValue called with:",c),this.incomingValue=c}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(x0.O),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-related-party-id"]],inputs:{partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"flex","w-full","mb-4"],["type","text","placeholder","Search party...",1,"w-full","p-2","text-sm","text-gray-900","bg-gray-50","rounded-lg","border","border-gray-300","focus:ring-blue-500","focus:border-blue-500","dark:bg-gray-700","dark:border-gray-600","dark:placeholder-gray-400","dark:text-white","dark:focus:border-blue-500",3,"ngModelChange","ngModel"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4","mb-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","partySelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked"],[1,"px-6","py-4"]],template:function(t,l){1&t&&e.DNE(0,cb0,6,0,"div",0)(1,sb0,2,1),2&t&&e.vxM(0,l.loading?0:1)},dependencies:[s1.h,s1.D9,_.YU,p.YN,p.me,p.BC,p.vS]})}}return n})();const ob0=(n,a)=>a.id,ib0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),rb0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function db0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function fb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep===t),e.R7$(),e.AVh("bg-primary-100",l.currentStep===t)("text-white",l.currentStep===t),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c)}}function ub0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function mb0(n,a){if(1&n&&e.nrm(0,"app-related-party-id",24),2&n){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function pb0(n,a){if(1&n&&e.nrm(0,"app-price-plans-form",25),2&n){let c;const t=e.XpG(3);e.Y8G("form",t.productOfferForm)("prodSpec",null==(c=t.productOfferForm.get("prodSpec"))?null:c.value)("custom",!0)}}function hb0(n,a){if(1&n&&e.nrm(0,"app-procurement-mode",26),2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("form",c.productOfferForm.controls.procurementMode)}}function gb0(n,a){if(1&n&&(e.j41(0,"h2",33),e.EFF(1,"Exclusive ad-hoc offer created for "),e.j41(2,"b"),e.EFF(3),e.k0s(),e.EFF(4,"."),e.k0s()),2&n){let c;const t=e.XpG(4);e.R7$(3),e.JRh(null==(c=t.productOfferForm.get("partyInfo"))?null:c.value.tradingName)}}function _b0(n,a){if(1&n&&(e.j41(0,"tr",39)(1,"td",40),e.EFF(2),e.k0s(),e.j41(3,"td",41),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit;e.R7$(2),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",c.description," ")}}function Lb0(n,a){if(1&n&&(e.j41(0,"h2",29),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",34)(4,"table",35)(5,"thead",36)(6,"tr")(7,"th",37),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",38),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,_b0,5,2,"tr",39,ob0),e.k0s()()()),2&n){let c;const t=e.XpG(4);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._price_plans")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._description")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("pricePlans"))?null:c.value)}}function Cb0(n,a){if(1&n&&(e.j41(0,"div",27)(1,"div",28)(2,"div")(3,"label",29),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"label",30),e.EFF(7),e.k0s()(),e.j41(8,"div")(9,"label",31),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"label",32),e.EFF(13),e.k0s()()(),e.DNE(14,gb0,5,1,"h2",33)(15,Lb0,16,9),e.k0s()),2&n){let c,t;const l=e.XpG(3);e.R7$(4),e.JRh(e.bMT(5,6,"CREATE_OFFER._name")),e.R7$(3),e.SpI(" ",null==l.offer?null:l.offer.name," "),e.R7$(3),e.JRh(e.bMT(11,8,"CREATE_OFFER._version")),e.R7$(3),e.SpI(" ",null==l.offer?null:l.offer.version," "),e.R7$(),e.vxM(14,null!=(c=l.productOfferForm.get("partyInfo"))&&c.value?14:-1),e.R7$(),e.vxM(15,null!=(t=l.productOfferForm.get("pricePlans"))&&t.value?15:-1)}}function zb0(n,a){if(1&n&&(e.j41(0,"div",23),e.DNE(1,mb0,1,1,"app-related-party-id",24)(2,pb0,1,3)(3,hb0,1,2)(4,Cb0,16,10),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.vxM(1,0===c.currentStep?1:1===c.currentStep?2:2===c.currentStep?3:3===c.currentStep?4:-1)}}function Mb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",42),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.createOffer())}),e.EFF(1," Create Offer "),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",c.loading)("ngClass",c.loading?"opacity-50":"hover:bg-primary-50")}}function xb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,fb0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,ub0,6,0,"div",2)(7,zb0,5,1),e.j41(8,"div",12)(9,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep-1))}),e.qSk(),e.j41(10,"svg",14),e.nrm(11,"path",15),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.joV(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStep+1))}),e.EFF(15),e.nI1(16,"translate"),e.qSk(),e.j41(17,"svg",17),e.nrm(18,"path",18),e.k0s()(),e.DNE(19,Mb0,2,2,"button",19),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.productOfferForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.steps[c.currentStep]),e.R7$(),e.vxM(6,c.loading?6:7),e.R7$(3),e.Y8G("disabled",0===c.currentStep)("ngClass",e.l_i(14,ib0,0!==c.currentStep,0===c.currentStep)),e.R7$(3),e.SpI(" ",e.bMT(13,10,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStep===c.steps.length-1||!c.validateCurrentStep()||!c.canNavigate(c.currentStep))("ngClass",e.l_i(17,rb0,c.currentStep!==c.steps.length-1&&c.validateCurrentStep()||c.canNavigate(c.currentStep),c.currentStep===c.steps.length-1||!c.validateCurrentStep()||!c.canNavigate(c.currentStep))),e.R7$(),e.SpI(" ",e.bMT(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,3===c.currentStep?19:-1)}}function bb0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",43)(2,"div",44),e.qSk(),e.j41(3,"svg",45),e.nrm(4,"path",46),e.k0s(),e.joV(),e.j41(5,"h3",47),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",48),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}let bE1=(()=>{class n{constructor(c,t,l,i){this.api=c,this.eventMessage=t,this.fb=l,this.quoteService=i,this.offer={},this.currentStep=0,this.highestStep=0,this.steps=["Party Info","Price Plans","Procurement Mode","Summary"],this.isFormValid=!1,this.pricePlans=[],this.errorMessage="",this.showError=!1,this.loading=!1,this.loadingData=!1,this.bundleChecked=!1,this.offersBundle=[],this.productOfferForm=this.fb.group({prodSpec:new p.MJ(null,[p.k0.required]),partyInfo:new p.MJ(null,[p.k0.required]),pricePlans:new p.MJ([]),procurementMode:this.fb.group({})})}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--------- OFFER DATA ----------"),console.log(c.offer),console.log(c.partyId),console.log("-------------------------------"),yield c.loadOfferData(),c.loadingData=!1})()}loadOfferData(){var c=this;return(0,C1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const t=c.offer.productOfferingTerm.find(l=>"procurement"===l.name);if(t){const l={id:t.description,name:t.description};console.log("Setting procurement value:",l),c.productOfferForm.patchValue({procurementMode:l})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}})}c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.productOfferForm.patchValue({prodSpec:l||null})});return function(l){return t.apply(this,arguments)}}()))})()}createOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0;const t=c.productOfferForm.value.pricePlans;if(console.log("---- party info value ----"),console.log(c.productOfferForm.get("partyInfo")?.value),console.log("---- full form value ----"),console.log(c.productOfferForm.value),0!==t.length)for(let l=0;lc.createPriceComponent(u1,i.currency))),T=c.createBundledPricePlan(i,b);C=(yield(0,e0.s)(c.api.postOfferingPrice(T))).id,c.productOfferForm.value.pricePlans[l].id=C,l===t.length-1&&c.saveOfferInfo()}catch(C){c.handleApiError(C)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,t=c.pricePlans.map(b=>({id:b.id,href:b.id})),l=this.offer.productOfferingTerm.find(b=>"License"===b.name);let i=this.offer.name;this.productOfferForm.get("partyInfo")?.value.tradingName&&(i=`${this.offer.name} - ${this.productOfferForm.get("partyInfo")?.value.tradingName}`);const u={name:i,description:this.offer?.description||"",lifecycleStatus:"Active",isBundle:this.bundleChecked,isSellable:!1,bundledProductOffering:this.offersBundle,place:[],version:this.offer.version,category:this.offer.category,productOfferingPrice:t,validFor:{startDateTime:(new Date).toISOString()},relatedParty:[{role:g1.c.BUYER_ROLE,href:this.productOfferForm.get("partyInfo")?.value.id,id:this.productOfferForm.get("partyInfo")?.value.id}],productOfferingTerm:[{name:"License",description:l?.description||""},{name:"procurement",description:c.procurementMode.mode}]};this.bundleChecked||(u.productSpecification=this.offer.productSpecification),this.offerToCreate=u,console.log("---- Offer to create -----"),console.log(this.offerToCreate),this.api.postProductOffering(u,null).subscribe({next:b=>{console.log("product offer created:"),console.log(b),this.loading=!1,this.goBack()},error:b=>{console.error("Error during offer save/update:",b),this.errorMessage=b?.error?.error?"Error: "+b.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}createPriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("component format"),console.log(c);let i={name:c.name,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:t,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},u=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(u)&&(i.recurringChargePeriodType=c.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===u&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},i["@baseType"]="ProductOfferingPrice",i["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",i.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(i)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(i.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(i.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const b=yield l.createPriceAlteration(c,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("create price comp"),console.log(i);const C=yield(0,e0.s)(l.api.postOfferingPrice(i));return{id:C.id,href:C.id,name:C.name}})()}createPriceAlteration(c,t){var l=this;return(0,C1.A)(function*(){const i={name:"discount",priceType:"discount",validFor:{startDateTime:$2()().toISOString(),endDateTime:$2()().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?i.percentage=c.discountValue:i.price={value:c.discountValue,unit:t},yield(0,e0.s)(l.api.postOfferingPrice(i))})()}createBundledPricePlan(c,t){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:t};return c?.priceType&&"custom"==c?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}goToStep(c){console.log("click go to step");const t=this.validateCurrentStep();console.log(!t),t&&(this.currentStep=c,this.currentStep>this.highestStep&&(this.highestStep=this.currentStep))}goBack(){this.eventMessage.emitSellerOffer(!0)}handleApiError(c){console.error("Error while creating offer price!",c),this.errorMessage=c?.error?.error?"Error: "+c.error.error:"Error creating offer price!",this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}validateCurrentStep(){switch(console.log("--- party"),console.log(this.productOfferForm.get("partyInfo")?.value),this.currentStep){case 0:const c=this.productOfferForm.get("partyInfo")?.value;return c&&0!=Object.keys(c).length;case 1:default:return!0;case 2:return this.productOfferForm.get("procurementMode")?.valid||!1}}canNavigate(c){return this.productOfferForm.get("partyInfo")?.valid&&c<=this.currentStep||this.productOfferForm.get("partyInfo")?.valid&&c<=this.highestStep}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok),e.rXU(L3.K))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-custom-offer"]],inputs:{offer:"offer",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:7,vars:5,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],[1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"flex","justify-end","mt-6","space-x-4"],[1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","offerNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[1,"md:p-8"],["formControlName","partyInfo",3,"partyId"],[3,"form","prodSpec","custom"],[3,"data","form"],[1,"m-8"],[1,"mb-4","grid","grid-cols-2","gap-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-all","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-all","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5"],[1,"text-md","dark:text-white","mb-4"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-all"],[1,"hidden","md:table-cell","px-6","py-4","text-wrap","break-all"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,db0,6,0,"div",2)(5,xb0,20,20),e.k0s(),e.DNE(6,bb0,9,1,"div",3)),2&t&&(e.R7$(2),e.SpI(" ",e.bMT(3,3,"CREATE_OFFER._create")," "),e.R7$(2),e.vxM(4,l.loadingData?4:5),e.R7$(2),e.vxM(6,l.showError?6:-1))},dependencies:[s1.h,s1.D9,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,ME1,xE1,ab0,_.YU]})}}return n})();const yb0=(n,a)=>({"break-all":n,"break-words":a});function Fb0(n,a){1&n&&(e.j41(0,"div",0),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function vb0(n,a){1&n&&(e.j41(0,"div",5)(1,"div",6),e.qSk(),e.j41(2,"svg",7),e.nrm(3,"path",8),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_cat")," "))}function kb0(n,a){if(1&n&&(e.j41(0,"span",22),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function wb0(n,a){if(1&n&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Sb0(n,a){if(1&n&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Nb0(n,a){if(1&n&&(e.j41(0,"span",25),e.EFF(1),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(),e.JRh(c.lifecycleStatus)}}function Eb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(3);return e.Njj(i.toggleSelection(l))}),e.j41(1,"td",18)(2,"input",19),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(3);return l.stopPropagation(),e.Njj(u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21),e.DNE(6,kb0,2,1,"span",22)(7,wb0,2,1)(8,Sb0,2,1)(9,Nb0,2,1),e.k0s(),e.j41(10,"td",21),e.EFF(11),e.k0s()()}if(2&n){let c;const t=a.$implicit,l=e.XpG(3);e.Y8G("ngClass",t.id==l.selectedCatalog.id?"bg-gray-300 dark:bg-secondary-200":"bg-white dark:bg-secondary-300"),e.R7$(2),e.Y8G("checked",l.isSelected(t.id)),e.R7$(),e.Y8G("ngClass",e.l_i(6,yb0,l.hasLongWord(t.name,20),!l.hasLongWord(t.name,20))),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.vxM(6,"Active"==t.lifecycleStatus?6:"Launched"==t.lifecycleStatus?7:"suspended"==t.lifecycleStatus?8:"terminated"==t.lifecycleStatus?9:-1),e.R7$(5),e.SpI(" ",null==t.relatedParty||null==(c=t.relatedParty.at(0))?null:c.role," ")}}function Db0(n,a){if(1&n&&(e.j41(0,"div",9)(1,"table",10)(2,"thead",11)(3,"tr"),e.nrm(4,"th",12),e.j41(5,"th",13),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",14),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"tbody",15),e.Z7z(15,Eb0,12,9,"tr",16,e.fX1),e.k0s()()()),2&n){const c=e.XpG(2);e.R7$(6),e.SpI(" ",e.bMT(7,3,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(10,5,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(13,7,"OFFERINGS._role")," "),e.R7$(3),e.Dyx(c.catalogs)}}function Tb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",26)(1,"button",27),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextCatalog())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",28),e.nrm(5,"path",29),e.k0s()()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"CREATE_PROD_SPEC._load_more")," "))}function Rb0(n,a){if(1&n&&e.DNE(0,Tb0,6,3,"div",26),2&n){const c=e.XpG(2);e.vxM(0,c.catalogPageCheck?0:-1)}}function Ab0(n,a){1&n&&(e.j41(0,"div",30),e.qSk(),e.j41(1,"svg",1),e.nrm(2,"path",2)(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function Ib0(n,a){if(1&n&&e.DNE(0,vb0,7,3,"div",5)(1,Db0,17,9)(2,Rb0,1,1)(3,Ab0,6,0),2&n){const c=e.XpG();e.vxM(0,0==c.catalogs.length?0:1),e.R7$(2),e.vxM(2,c.loadingCatalog_more?3:2)}}let Pb0=(()=>{class n{constructor(c,t,l){this.api=c,this.paginationService=t,this.cdr=l,this.CATALOG_LIMIT=g1.c.CATALOG_LIMIT,this.catalogPage=0,this.catalogPageCheck=!1,this.loadingCatalog=!1,this.loadingCatalog_more=!1,this.selectedCatalog={id:""},this.catalogs=[],this.nextCatalogs=[],this.selectedCatalogInternal=null,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(c){this.selectedCatalogInternal=c,this.onChange(c)}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}ngOnInit(){var c=this;return(0,C1.A)(function*(){yield c.getSellerCatalogs(!1)})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}getSellerCatalogs(c){var t=this;return(0,C1.A)(function*(){0==c&&(t.loadingCatalog=!0);let l={keywords:void 0,filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.catalogPage,t.CATALOG_LIMIT,c,t.catalogs,t.nextCatalogs,l,t.api.getCatalogsByUser.bind(t.api));t.catalogPageCheck=i.page_check,t.catalogs=i.items,t.nextCatalogs=i.nextItems,t.catalogPage=i.page}finally{t.loadingCatalog=!1,t.loadingCatalog_more=!1}})()}nextCatalog(){var c=this;return(0,C1.A)(function*(){c.loadingCatalog_more=!0,yield c.getSellerCatalogs(!0)})()}selectCatalog(c){this.selectedCatalog=c}isSelected(c){return this.selectedCatalogInternal?.id===c}toggleSelection(c){this.selectedCatalogInternal=this.selectedCatalogInternal?.id===c.id?null:c,this.onChange(this.selectedCatalogInternal),this.onTouched()}getRowClass(c){return c===this.selectedCatalogInternal?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(w6),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-catalogue"]],inputs:{partyId:"partyId"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","catalogList"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","catSelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked"],["data-cy","offerCatalogName",1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","dark:hover:bg-secondary-100","border","border-gray-300","dark:border-secondary-200","rounded-lg","hover:bg-gray-200",3,"click"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["role","status","data-cy","loadMoreLoading",1,"w-full","h-full","flex","justify-center","align-middle","mt-2"]],template:function(t,l){1&t&&e.DNE(0,Fb0,6,0,"div",0)(1,Ib0,4,2),2&t&&e.vxM(0,l.loadingCatalog?0:1)},dependencies:[s1.h,s1.D9,_.YU]})}}return n})();const jb0=(n,a)=>a.id,$b0=n=>({$implicit:n,level:0}),Ob0=(n,a,c)=>({"bg-gray-200 dark:bg-gray-700 hover:bg-gray-300 dark:hover:bg-gray-600":n,"bg-gray-100 dark:bg-gray-600 hover:bg-gray-200 dark:hover:bg-gray-500":a,"bg-blue-500 dark:bg-blue-900 transition-colors duration-300":c}),Bb0=(n,a)=>({"rotate-90":n,"rotate-0":a}),Vb0=(n,a)=>({$implicit:n,level:a});function Ub0(n,a){1&n&&(e.j41(0,"div",1),e.qSk(),e.j41(1,"svg",2),e.nrm(2,"path",3)(3,"path",4),e.k0s(),e.joV(),e.j41(4,"span",5),e.EFF(5,"Loading..."),e.k0s()())}function Gb0(n,a){1&n&&(e.j41(0,"div",6)(1,"div",7),e.qSk(),e.j41(2,"svg",8),e.nrm(3,"path",9),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_categories")," "))}function Hb0(n,a){1&n&&e.eu8(0)}function Yb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",23),e.bIt("click",function(l){e.eBV(c);const i=e.XpG().$implicit;return e.XpG(4).toggleCategory(i),e.Njj(l.stopPropagation())}),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25),e.k0s()()}if(2&n){const c=e.XpG().$implicit,t=e.XpG().level;e.xc7("padding-left",10*t,"px"),e.R7$(),e.Y8G("ngClass",e.l_i(3,Bb0,c.expanded,!c.expanded))}}function qb0(n,a){1&n&&e.eu8(0)}function Xb0(n,a){if(1&n&&e.DNE(0,qb0,1,0,"ng-container",16),2&n){const c=e.XpG().$implicit,t=e.XpG().level;e.XpG();const l=e.sdS(14);e.Y8G("ngTemplateOutlet",l)("ngTemplateOutletContext",e.l_i(2,Vb0,c.children,t+1))}}function Wb0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",17),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(i.manageCategory(l))}),e.j41(1,"td",18),e.DNE(2,Yb0,3,6,"button",19),e.k0s(),e.j41(3,"td",20),e.EFF(4),e.k0s(),e.j41(5,"td",21)(6,"input",22),e.bIt("click",function(l){const i=e.eBV(c).$implicit;return e.XpG(4).manageCategory(i),e.Njj(l.stopPropagation())}),e.k0s()()(),e.DNE(7,Xb0,1,5,"ng-container")}if(2&n){const c=a.$implicit,t=e.XpG().level,l=e.XpG(3);e.Y8G("ngClass",e.sMw(7,Ob0,0===t,t>0,l.isCategorySelected(c))),e.R7$(2),e.Y8G("ngIf",c.childrenLoaded||!c.childrenLoaded),e.R7$(),e.xc7("padding-left",20*t,"px"),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.Y8G("checked",l.isCategorySelected(c)),e.R7$(),e.vxM(7,c.expanded?7:-1)}}function Jb0(n,a){1&n&&(e.j41(0,"tr")(1,"td",26),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.JRh(e.bMT(3,1,"CREATE_OFFER._no_subcats")))}function Qb0(n,a){1&n&&e.Z7z(0,Wb0,8,11,null,null,jb0,!1,Jb0,4,3,"tr"),2&n&&e.Dyx(a.$implicit)}function Zb0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"table",11)(2,"thead",12)(3,"tr"),e.nrm(4,"th",13),e.j41(5,"th",13),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s()()(),e.j41(11,"tbody",15),e.DNE(12,Hb0,1,0,"ng-container",16),e.k0s()(),e.DNE(13,Qb0,3,1,"ng-template",null,0,e.C5r),e.k0s()),2&n){const c=e.sdS(14),t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,4,"CREATE_OFFER._name")),e.R7$(3),e.JRh(e.bMT(10,6,"CREATE_OFFER._select")),e.R7$(3),e.Y8G("ngTemplateOutlet",c)("ngTemplateOutletContext",e.eq3(8,$b0,t.categories))}}function Kb0(n,a){if(1&n&&e.DNE(0,Gb0,7,3,"div",6)(1,Zb0,15,10),2&n){const c=e.XpG();e.vxM(0,0==c.categories.length?0:1)}}let ey0=(()=>{class n{constructor(c,t){this.api=c,this.cdr=t,this.formChange=new e.bkB,this.loadingCategory=!1,this.selectedCategories=[],this.unformattedCategories=[],this.categories=[],this.originalValue=[],this.hasBeenModified=!1,this.isEditMode=!1,this.onChange=()=>{},this.onTouched=()=>{},this.JSON=JSON,console.log("\u{1f504} Initializing CategoryComponent")}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,yield c.getCategories()})()}writeValue(c){console.log("\u{1f4dd} Writing value to form:",c),this.selectedCategories=c||[],this.isEditMode&&c&&(this.originalValue=JSON.parse(JSON.stringify(c)),console.log("\u{1f4dd} Original value stored:",this.originalValue))}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}isCategorySelected(c){return this.selectedCategories.some(t=>t.id===c.id)}getCategories(){var c=this;return(0,C1.A)(function*(){console.log("Obteniendo categor\xedas..."),c.loadingCategory=!0,c.categories=[];try{const t=yield c.api.getDefaultCategories();if(!Array.isArray(t)||0===t.length)return console.error("No hay categor\xedas disponibles."),void(c.loadingCategory=!1);console.log("Datos recibidos:",t),c.categories=t.filter(l=>l.isRoot).map(l=>({...l,expanded:!1,childrenLoaded:!1,children:[]})),console.log("Categor\xedas ra\xedz:",c.categories),c.loadingCategory=!1,setTimeout(()=>c.cdr.detectChanges(),0)}catch(t){console.error("Error al obtener categor\xedas:",t),c.loadingCategory=!1}})()}loadChildren(c){var t=this;return(0,C1.A)(function*(){if(c){if(c.childrenLoaded)return void(c.expanded=!c.expanded);try{console.log(`Cargando hijos de ${c.name}...`);const l=yield t.api.getCategoriesByParentId(c.id);c.children=l.map(i=>({...i,expanded:!1,childrenLoaded:!1,children:[]})),c.childrenLoaded=!0,c.expanded=!0,setTimeout(()=>t.cdr.detectChanges(),0)}catch(l){console.error(`Error al cargar hijos de ${c.name}:`,l)}}})()}manageCategory(c){if(!c)return;const t=this.selectedCategories.findIndex(C=>C.id===c.id);t>-1?(this.selectedCategories.splice(t,1),this.removeChildren(c)):(this.selectedCategories.push(c),this.addParent(c.parentId)),this.isEditMode&&(this.hasBeenModified=!0),this.onChange([...this.selectedCategories]),this.onTouched();const l=[...this.selectedCategories],u={subformType:"category",isDirty:!0,dirtyFields:this.getDirtyFields(l),originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",u),this.formChange.emit(u)}removeChildren(c){if(c.children&&0!==c.children.length)for(let t of c.children){const l=this.selectedCategories.findIndex(i=>i.id===t.id);l>-1&&this.selectedCategories.splice(l,1),this.removeChildren(t)}}addParent(c){if(!c)return;const t=this.findCategoryById(c,this.categories);t&&(this.selectedCategories.find(i=>i.id===t.id)||(this.selectedCategories.push(t),this.addParent(t.parentId)))}findCategoryById(c,t){for(let l of t){if(l.id===c)return l;if(l.children&&l.children.length>0){const i=this.findCategoryById(c,l.children);if(i)return i}}return null}toggleCategory(c){var t=this;return(0,C1.A)(function*(){c&&(c.childrenLoaded?c.expanded=!c.expanded:yield t.loadChildren(c))})()}ngAfterViewInit(){setTimeout(()=>this.cdr.detectChanges(),0)}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying CategoryComponent"),this.isEditMode&&this.hasBeenModified){const c=[...this.selectedCategories],t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"category",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getDirtyFields(c){const t=[];return JSON.stringify(c)!==JSON.stringify(this.originalValue)&&t.push("selectedCategories"),t}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-category-form"]],inputs:{formType:"formType",data:"data",partyId:"partyId"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[["categoryRow",""],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766\n 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013\n 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50\n 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167\n 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666\n 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874\n 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928\n 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811\n 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1\n 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],[1,"px-6","py-3"],[1,"px-6","py-3","text-center"],["data-cy","categoryList"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"border-b","dark:border-gray-500","transition-all","duration-200","cursor-pointer",3,"click","ngClass"],["data-cy","offerCategoryExpand",1,"px-6","py-4"],["class","transition-transform duration-300 ease-in-out",3,"padding-left","click",4,"ngIf"],["data-cy","offerCategoryName",1,"px-6","py-4"],[1,"px-6","py-4","text-center"],["type","checkbox",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-2","focus:ring-blue-500","cursor-pointer","transition-all","duration-200","scale-100","checked:scale-110","checked:ring-2",3,"click","checked"],[1,"transition-transform","duration-300","ease-in-out",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","transition-transform","duration-300","ease-in-out",3,"ngClass"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8\n 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["colspan","3",1,"text-center","dark:bg-gray-800"]],template:function(t,l){1&t&&e.DNE(0,Ub0,6,0,"div",1)(1,Kb0,2,1),2&t&&e.vxM(0,l.loadingCategory?0:1)},dependencies:[s1.h,s1.D9,_.bT,_.T3,_.YU]})}}return n})();function cy0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Invalid JSON")))}function ty0(n,a){if(1&n&&(e.j41(0,"label",6),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"textarea",7),e.DNE(4,cy0,3,3,"p",5)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"Access Policy")),e.R7$(2),e.AVh("border-red-500",c.accessControl.invalid&&c.accessControl.touched),e.Y8G("formControl",c.accessControl),e.R7$(),e.vxM(4,c.accessControl.hasError("invalidJson")&&c.accessControl.touched?4:-1)}}function ny0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Invalid JSON")))}function ly0(n,a){if(1&n&&(e.j41(0,"label",6),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"textarea",8),e.DNE(4,ny0,3,3,"p",5)),2&n){const c=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,5,"Contract Policy")),e.R7$(2),e.AVh("border-red-500",c.contractControl.invalid&&c.contractControl.touched),e.Y8G("formControl",c.contractControl),e.R7$(),e.vxM(4,c.contractControl.hasError("invalidJson")&&c.contractControl.touched?4:-1)}}function sy0(n,a){1&n&&(e.j41(0,"p",5),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"Both Access Policy and Contract Policy are required if either is filled")))}function ay0(n,a){if(1&n&&e.DNE(0,ty0,5,7)(1,ly0,5,7)(2,sy0,3,3,"p",5),2&n){const c=e.XpG();e.vxM(0,c.accessControl?0:-1),e.R7$(),e.vxM(1,c.contractControl?1:-1),e.R7$(),e.vxM(2,c.formGroup.hasError("policiesRequired")&&(null!=c.accessControl&&c.accessControl.touched||null!=c.contractControl&&c.contractControl.touched)?2:-1)}}let oy0=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.destroy$=new S.B,this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{if("UpdateOffer"===t.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={name:"edc:contractDefinition",accessPolicy:this.accessControl?.value||"",contractPolicy:this.contractControl?.value||"",dspCompatible:this.dspCompatible},i=this.getDirtyFields(l);i.length>0&&this.formChange.emit({subformType:"contractDefinition",isDirty:!0,dirtyFields:i,originalValue:this.originalValue,currentValue:l})}})}get formGroup(){return this.form}get dspCompatible(){return!!this.formGroup.get("dspCompatible")?.value}get dspCompatibleControl(){return this.formGroup.get("dspCompatible")}get accessControl(){const c=this.formGroup.get("accessPolicy");return c instanceof p.MJ?c:null}get contractControl(){const c=this.formGroup.get("contractPolicy");return c instanceof p.MJ?c:null}updatePolicyValidators(c){const t=c?[p.k0.required,D5]:[D5];this.accessControl?.setValidators(t),this.accessControl?.updateValueAndValidity({emitEvent:!1}),this.contractControl?.setValidators(t),this.contractControl?.updateValueAndValidity({emitEvent:!1}),c||(this.accessControl?.reset("",{emitEvent:!1}),this.contractControl?.reset("",{emitEvent:!1}))}ngOnInit(){if(this.isEditMode="update"===this.formType,!this.formGroup.contains("accessPolicy")){let t=null;this.isEditMode&&this.data?.productOfferingTerm&&Array.isArray(this.data.productOfferingTerm)&&(t=this.data.productOfferingTerm.find(l=>"edc:contractDefinition"===l.name)),t?(this.formGroup.addControl("dspCompatible",new p.MJ(!0)),this.formGroup.addControl("name",new p.MJ("edc:contractDefinition")),this.formGroup.addControl("accessPolicy",new p.MJ(this.jsonToString(t.accessPolicy),[p.k0.required,D5])),this.formGroup.addControl("contractPolicy",new p.MJ(this.jsonToString(t.contractPolicy),[p.k0.required,D5])),this.originalValue={name:t.name,accessPolicy:t.accessPolicy,contractPolicy:t.contractPolicy,dspCompatible:!0}):(this.formGroup.addControl("dspCompatible",new p.MJ(!1)),this.formGroup.addControl("name",new p.MJ("edc:contractDefinition")),this.formGroup.addControl("accessPolicy",new p.MJ("",[D5])),this.formGroup.addControl("contractPolicy",new p.MJ("",[D5])))}this.updatePolicyValidators(this.dspCompatible),this.dspCompatibleControl.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{this.updatePolicyValidators(!!t),t&&!this.originalValue&&(this.originalValue={name:"edc:contractDefinition",accessPolicy:"",contractPolicy:"",dspCompatible:!1})}),this.isEditMode&&this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.hasBeenModified=!0})}ngOnDestroy(){if(this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={name:"edc:contractDefinition",accessPolicy:this.accessControl?.value||"",contractPolicy:this.contractControl?.value||"",dspCompatible:this.dspCompatible},t=this.getDirtyFields(c);t.length>0&&this.formChange.emit({subformType:"contractDefinition",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c})}this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){const t=[];return this.originalValue&&(c.name!==this.originalValue.name&&t.push("name"),c.accessPolicy!==this.originalValue.accessPolicy&&t.push("accessPolicy"),c.contractPolicy!==this.originalValue.contractPolicy&&t.push("contractPolicy")),t}jsonToString(c){try{return JSON.stringify(c,null,2)}catch(t){return console.error(`Unable to stringify json: ${c}`,t),""}}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-edc-contract-definition-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:7,vars:2,consts:[[1,"col-span-2","flex","items-center","h-fit"],["for","dsp-compatible",1,"font-bold","text-lg","dark:text-white"],[1,"inline-flex","items-center","me-5","cursor-pointer","ml-4"],["type","checkbox","id","dsp-compatible",1,"sr-only","peer",3,"formControl"],[1,"relative","w-11","h-6","bg-gray-400","dark:bg-gray-700","rounded-full","peer","peer-focus:ring-4","peer-focus:ring-primary-100","peer-checked:after:translate-x-full","rtl:peer-checked:after:-translate-x-full","peer-checked:after:border-white","after:content-['']","after:absolute","after:top-0.5","after:start-[2px]","after:bg-white","after:border-gray-300","after:border","after:rounded-full","after:h-5","after:w-5","after:transition-all","peer-checked:bg-primary-100"],[1,"mt-1","text-sm","text-red-500"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],["data-cy","dspAccessPolicy","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"formControl"],["data-cy","dspContractPolicy","rows","10","placeholder",'{"example": "Enter your JSON here"}',1,"mb-2","min-h-fit","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5","font-mono",3,"formControl"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"label",1),e.EFF(2,"DSP Compatible"),e.k0s(),e.j41(3,"label",2),e.nrm(4,"input",3)(5,"div",4),e.k0s()(),e.DNE(6,ay0,3,3)),2&t&&(e.R7$(4),e.Y8G("formControl",l.dspCompatibleControl),e.R7$(2),e.vxM(6,l.dspCompatible?6:-1))},dependencies:[p.X1,p.me,p.Zm,p.BC,p.l_,s1.h,s1.D9]})}}return n})();function iy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",10)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function ry0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",11)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function dy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",12)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function fy0(n,a){if(1&n&&(e.qSk(),e.nrm(0,"path",13)),2&n){const c=e.XpG().$implicit,t=e.XpG();e.BMQ("fill",t.getFillColor(c))}}function uy0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",3),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG();return e.Njj(i.selectStatus(l))}),e.j41(1,"span",4),e.qSk(),e.j41(2,"svg",5),e.DNE(3,iy0,1,1,"path",6)(4,ry0,1,1,"path",7)(5,dy0,1,1,"path",8)(6,fy0,1,1,"path",9),e.k0s(),e.joV(),e.j41(7,"span"),e.EFF(8),e.k0s()()()}if(2&n){const c=a.$implicit,t=e.XpG();e.Y8G("ngClass",t.getStatusClasses(c)),e.R7$(3),e.Y8G("ngIf","Active"===c),e.R7$(),e.Y8G("ngIf","Launched"===c),e.R7$(),e.Y8G("ngIf","Retired"===c),e.R7$(),e.Y8G("ngIf","Obsolete"===c),e.R7$(),e.BMQ("data-cy","offerStatus"+c),e.R7$(),e.JRh(c)}}let my0=(()=>{class n{constructor(){this.statuses=["Active","Launched","Retired","Obsolete"],this.disabledStatuses=[],this.selectedStatus="",this.onChange=c=>{},this.onTouched=()=>{}}writeValue(c){this.selectedStatus=c||""}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}selectStatus(c){this.disabledStatuses.includes(c)||(this.selectedStatus=c,this.onChange(c),this.onTouched())}getStatusClasses(c){if(this.disabledStatuses.includes(c))return"opacity-40 cursor-not-allowed flex items-center justify-center p-4 rounded-lg space-x-4 transition-all text-gray-500 dark:text-gray-200";const l="cursor-pointer flex items-center justify-center p-4 rounded-lg space-x-4 transition-all";return this.selectedStatus===c?`${l} bg-[#d2e0f0] dark:bg-primary-100 font-semibold ${{Active:"text-[#269c43]",Launched:"text-[#269c43]",Retired:"text-[#b40404]",Obsolete:"text-gray-800"}[c]||"text-gray-500"}`:`${l} text-gray-500 dark:text-gray-200 hover:bg-[#d2e0f0] dark:hover:bg-gray-700`}getFillColor(c){return this.selectedStatus===c?{Active:"#0f9d58",Launched:"#269c43",Retired:"#b40404",Obsolete:"#000000"}[c]:"#808080"}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-status-selector"]],inputs:{statuses:"statuses",disabledStatuses:"disabledStatuses"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:4,vars:0,consts:[[1,"mb-2","col-span-2"],[1,"flex","items-center","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-200","sm:text-base"],[3,"ngClass"],[3,"click","ngClass"],[1,"flex","items-center"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 640 512",1,"min-w-6","w-6","h-6"],["d","M319.6 0c7.5-.2 14.1 4.9 15.9 12.1l84 336 37.6-93.9c7.3-18.2 24.9-30.2 44.6-30.2L624\n 224c8.8 0 16 7.2 16 16s-7.2 16-16 16l-122.3 0c-6.5 0-12.4 4-14.9 10.1l-56 139.9c-2.6\n 6.4-9 10.5-15.9 10s-12.8-5.4-14.4-12.1l-78.7-315-82 410.2c-1.5 7.3-7.8 12.7-15.3\n 12.9s-14.1-4.9-15.9-12.1L150.5 268.1C148.8 261 142.4 256 135 256L16 256c-8.8\n 0-16-7.2-16-16s7.2-16 16-16l119 0c22 0 41.2 15 46.6 36.4l40.7 162.7 82-410.2C305.8\n 5.5 312.1 .2 319.6 0z",4,"ngIf"],["d","M197.9 253.9c12.9 6.4 24.7 14.8 35 25.2s18.8 22.2 25.2 35c105.8-30 156.7-79.5\n 181.5-126c25-46.8 27.3-97.6 22-137.7c-40.1-5.3-90.9-3-137.7 22c-46.5 24.8-96 75.8-126 181.5zM384\n 312.1l0 82.2c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1\n .2s-12.1-12.2-12.1-20.9l0-114.7c0-22.6-9-44.3-25-60.3s-37.7-25-60.3-25L24 288c-8.6\n 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.2\n 0C281.7-3.8 408.8-8.5 483.9 5.3c11.6 2.1 20.7 11.2 22.8 22.8c13.8 75.1 9.1 202.2-122.7\n 284zM28.3 511.9c-16 .4-28.6-12.2-28.2-28.2C1 446 7.7 379.7 42 345.5c34.4-34.4 90.1-34.4 124.5\n 0s34.4 90.1 0 124.5C132.3 504.3 66 511 28.3 511.9zm50.2-64.5c12.8-.7 31.2-3.7 41.3-13.7c11.4-11.4\n 11.4-30 0-41.4s-30-11.4-41.4 0c-10.1 10.1-13 28.5-13.7 41.3c-.5 8 5.9 14.3 13.9 13.9zM328 144a40\n 40 0 1 1 80 0 40 40 0 1 1 -80 0z",4,"ngIf"],["d","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6\n 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2\n 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-208z",4,"ngIf"],["d","M368 128c0 44.4-25.4 83.5-64 106.4l0 21.6c0 17.7-14.3 32-32 32l-96 0c-17.7\n 0-32-14.3-32-32l0-21.6c-38.6-23-64-62.1-64-106.4C80 57.3 144.5 0 224 0s144 57.3 144 128zM168 176a32\n 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM3.4 273.7c7.9-15.8\n 27.1-22.2 42.9-14.3L224 348.2l177.7-88.8c15.8-7.9 35-1.5 42.9 14.3s1.5 35-14.3 42.9L295.6 384l134.8\n 67.4c15.8 7.9 22.2 27.1 14.3 42.9s-27.1 22.2-42.9 14.3L224 419.8 46.3 508.6c-15.8 7.9-35\n 1.5-42.9-14.3s-1.5-35 14.3-42.9L152.4 384 17.7 316.6C1.9 308.7-4.5 289.5 3.4 273.7z",4,"ngIf"],["d","M319.6 0c7.5-.2 14.1 4.9 15.9 12.1l84 336 37.6-93.9c7.3-18.2 24.9-30.2 44.6-30.2L624\n 224c8.8 0 16 7.2 16 16s-7.2 16-16 16l-122.3 0c-6.5 0-12.4 4-14.9 10.1l-56 139.9c-2.6\n 6.4-9 10.5-15.9 10s-12.8-5.4-14.4-12.1l-78.7-315-82 410.2c-1.5 7.3-7.8 12.7-15.3\n 12.9s-14.1-4.9-15.9-12.1L150.5 268.1C148.8 261 142.4 256 135 256L16 256c-8.8\n 0-16-7.2-16-16s7.2-16 16-16l119 0c22 0 41.2 15 46.6 36.4l40.7 162.7 82-410.2C305.8\n 5.5 312.1 .2 319.6 0z"],["d","M197.9 253.9c12.9 6.4 24.7 14.8 35 25.2s18.8 22.2 25.2 35c105.8-30 156.7-79.5\n 181.5-126c25-46.8 27.3-97.6 22-137.7c-40.1-5.3-90.9-3-137.7 22c-46.5 24.8-96 75.8-126 181.5zM384\n 312.1l0 82.2c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1\n .2s-12.1-12.2-12.1-20.9l0-114.7c0-22.6-9-44.3-25-60.3s-37.7-25-60.3-25L24 288c-8.6\n 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.2\n 0C281.7-3.8 408.8-8.5 483.9 5.3c11.6 2.1 20.7 11.2 22.8 22.8c13.8 75.1 9.1 202.2-122.7\n 284zM28.3 511.9c-16 .4-28.6-12.2-28.2-28.2C1 446 7.7 379.7 42 345.5c34.4-34.4 90.1-34.4 124.5\n 0s34.4 90.1 0 124.5C132.3 504.3 66 511 28.3 511.9zm50.2-64.5c12.8-.7 31.2-3.7 41.3-13.7c11.4-11.4\n 11.4-30 0-41.4s-30-11.4-41.4 0c-10.1 10.1-13 28.5-13.7 41.3c-.5 8 5.9 14.3 13.9 13.9zM328 144a40\n 40 0 1 1 80 0 40 40 0 1 1 -80 0z"],["d","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6\n 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2\n 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16\n 16s-16-7.2-16-16l0-208z"],["d","M368 128c0 44.4-25.4 83.5-64 106.4l0 21.6c0 17.7-14.3 32-32 32l-96 0c-17.7\n 0-32-14.3-32-32l0-21.6c-38.6-23-64-62.1-64-106.4C80 57.3 144.5 0 224 0s144 57.3 144 128zM168 176a32\n 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM3.4 273.7c7.9-15.8\n 27.1-22.2 42.9-14.3L224 348.2l177.7-88.8c15.8-7.9 35-1.5 42.9 14.3s1.5 35-14.3 42.9L295.6 384l134.8\n 67.4c15.8 7.9 22.2 27.1 14.3 42.9s-27.1 22.2-42.9 14.3L224 419.8 46.3 508.6c-15.8 7.9-35\n 1.5-42.9-14.3s-1.5-35 14.3-42.9L152.4 384 17.7 316.6C1.9 308.7-4.5 289.5 3.4 273.7z"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"ol",1),e.Z7z(2,uy0,9,7,"li",2,e.Vm6),e.k0s()()),2&t&&(e.R7$(2),e.Dyx(l.statuses))},dependencies:[BL,_.YU,_.bT],styles:["svg[_ngcontent-%COMP%]{min-width:24px;width:24px;height:24px}"]})}}return n})();function py0(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("formControl",c.nameControl)}}function hy0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"input",3)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("formControl",c.versionControl)}}function gy0(n,a){if(1&n&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-status-selector",5)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._status")),e.R7$(2),e.Y8G("formControl",c.statusControl)("disabledStatuses",c.disabledStatuses)}}function _y0(n,a){if(1&n&&(e.j41(0,"label",4),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",6)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let Ly0=(()=>{class n{constructor(c,t){this.eventMessage=c,this.apiService=t,this.formChange=new e.bkB,this.hasBeenModified=!1,this.isEditMode=!1,this.destroy$=new S.B,this.disabledStatuses=[],this.FormControl=p.MJ,console.log("\u{1f504} Initializing GeneralInfoComponent")}get formGroup(){return this.form}get nameControl(){const c=this.formGroup.get("name");return c instanceof p.MJ?c:null}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}get versionControl(){const c=this.formGroup.get("version");return c instanceof p.MJ?c:null}get statusControl(){const c=this.formGroup.get("status");return c instanceof p.MJ?c:null}ngOnInit(){console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data?(console.log("Initializing form in update mode with data:",this.data),this.formGroup.addControl("name",new p.MJ(this.data.name,[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("status",new p.MJ(this.data.lifecycleStatus)),this.formGroup.addControl("description",new p.MJ(this.data.description,p.k0.maxLength(1e5))),this.formGroup.addControl("version",new p.MJ(this.data.version,[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3])),this.originalValue={name:this.data.name,status:this.data.lifecycleStatus,description:this.data.description,version:this.data.version},console.log("\u{1f4dd} Original value stored:",this.originalValue),g1.c.LAUNCH_VALIDATION_ENABLED&&this.data.id&&this.apiService.checkOfferingLaunch(this.data.id).then(c=>{c.canBeLaunched||(this.disabledStatuses=["Launched"])}).catch(()=>{this.disabledStatuses=["Launched"]})):(console.log("Initializing form in create mode"),this.formGroup.addControl("name",new p.MJ("",[p.k0.required,p.k0.maxLength(100),O3])),this.formGroup.addControl("status",new p.MJ("Active",[p.k0.required])),this.formGroup.addControl("description",new p.MJ("")),this.formGroup.addControl("version",new p.MJ("0.1",[p.k0.required,p.k0.pattern("^-?[0-9]\\d*(\\.\\d*)?$"),O3]))),this.isEditMode&&this.formGroup.valueChanges.pipe(GG(500),(0,O1.Q)(this.destroy$)).subscribe(c=>{console.log("\u{1f4dd} Form value changed:",c);const t=this.getDirtyFields(c);if(t.length>0){this.hasBeenModified=!0;const l={subformType:"generalInfo",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting change state:",l),this.eventMessage.emitSubformChange(l)}else this.hasBeenModified=!1})}ngOnDestroy(){console.log("\u{1f5d1}\ufe0f Destroying GeneralInfoComponent"),this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){return Object.keys(c).filter(t=>{const i=this.originalValue[t];return JSON.stringify(c[t])!==JSON.stringify(i)})}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2),e.rXU(o0.F))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-general-info-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:4,vars:4,consts:[["for","prod-name",1,"font-bold","text-lg","dark:text-white"],["data-cy","offerName","id","prod-name","type","text","maxLength","100",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],["data-cy","offerVersion","id","prod-version","type","text",1,"mb-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"formControl"],[1,"font-bold","text-lg","col-span-2","dark:text-white"],[3,"formControl","disabledStatuses"],[3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,py0,4,4)(1,hy0,4,4)(2,gy0,4,5)(3,_y0,4,4),2&t&&(e.vxM(0,l.nameControl?0:-1),e.R7$(),e.vxM(1,l.versionControl?1:-1),e.R7$(),e.vxM(2,l.statusControl&&"update"===l.formType?2:-1),e.R7$(),e.vxM(3,l.descControl?3:-1))},dependencies:[p.X1,p.me,p.BC,p.l_,BL,s1.D9,me,my0]})}}return n})();function Cy0(n,a){if(1&n&&(e.j41(0,"label",0),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.nrm(3,"app-markdown-textarea",1)),2&n){const c=e.XpG();e.R7$(),e.JRh(e.bMT(2,2,"CREATE_OFFER._description")),e.R7$(2),e.Y8G("formControl",c.descControl)}}let zy0=(()=>{class n{constructor(c){this.eventMessage=c,this.formChange=new e.bkB,this.destroy$=new S.B,this.freeLicenseSelected=!1,this.originalValue=null,this.hasBeenModified=!1,this.isEditMode=!1,this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(t=>{if("UpdateOffer"===t.type&&this.isEditMode&&this.hasBeenModified&&this.originalValue){const l={treatment:"License",description:this.descControl?.value||""},i=this.getDirtyFields(l);if(i.length>0){const u={subformType:"license",isDirty:!0,dirtyFields:i,originalValue:this.originalValue,currentValue:l};console.log("\u{1f680} Emitting final change state:",u),this.formChange.emit(u)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}})}get formGroup(){return this.form}get descControl(){const c=this.formGroup.get("description");return c instanceof p.MJ?c:null}ngOnInit(){if(console.log("\u{1f504} Initializing LicenseComponent"),console.log("\u{1f4dd} Initializing form in",this.formType,"mode"),this.isEditMode="update"===this.formType,this.isEditMode&&this.data)if(console.log("\u{1f4dd} Data received:",this.data),this.data.productOfferingTerm&&Array.isArray(this.data.productOfferingTerm)){let c=this.data.productOfferingTerm?.find(t=>"License"==t.name);c?(this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(c.description)),this.originalValue={treatment:c.name,description:c.description},console.log("\u{1f4dd} Original value stored:",this.originalValue)):(this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ("")))}else this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(""));else this.formGroup.addControl("treatment",new p.MJ("License")),this.formGroup.addControl("description",new p.MJ(""));this.isEditMode&&this.formGroup.valueChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(()=>{this.hasBeenModified=!0})}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying LicenseComponent"),this.isEditMode&&this.hasBeenModified&&this.originalValue){const c={treatment:"License",description:this.descControl?.value||""},t=this.getDirtyFields(c);if(t.length>0){const l={subformType:"license",isDirty:!0,dirtyFields:t,originalValue:this.originalValue,currentValue:c};console.log("\u{1f680} Emitting final change state:",l),this.formChange.emit(l)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection");this.destroy$.next(),this.destroy$.complete()}getDirtyFields(c){const t=[];return this.originalValue&&(c.treatment!==this.originalValue.treatment&&t.push("treatment"),c.description!==this.originalValue.description&&t.push("description")),t}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(U2))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-license-form"]],inputs:{form:"form",formType:"formType",data:"data"},outputs:{formChange:"formChange"},standalone:!0,features:[e.aNF],decls:1,vars:1,consts:[[1,"font-bold","text-lg","col-span-2","dark:text-white"],[3,"formControl"]],template:function(t,l){1&t&&e.DNE(0,Cy0,4,4),2&t&&e.vxM(0,l.descControl?0:-1)},dependencies:[me,p.X1,p.BC,p.l_,s1.h,s1.D9]})}}return n})();const yE1=(n,a)=>a.id,sf=(n,a)=>({"break-all":n,"break-words":a});function My0(n,a){if(1&n&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function xy0(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function by0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo"))||null==(c=c.get("status"))?null:c.value)}}function yy0(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(null==(c=t.productOfferForm.get("generalInfo.status"))||null==(c=c.get("status"))?null:c.value)}}function Fy0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",12),e.nrm(4,"markdown",13),e.k0s()),2&n){let c,t;const l=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sf,l.hasLongWord(null==(c=l.productOfferForm.get("generalInfo.description"))?null:c.value,20),!l.hasLongWord(null==(c=l.productOfferForm.get("generalInfo.description"))?null:c.value,20)))("data",null==(t=l.productOfferForm.get("generalInfo.description"))?null:t.value)}}function vy0(n,a){if(1&n&&(e.j41(0,"span",8),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function ky0(n,a){if(1&n&&(e.j41(0,"span",9),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function wy0(n,a){if(1&n&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function Sy0(n,a){if(1&n&&(e.j41(0,"span",11),e.EFF(1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.JRh(null==(c=t.productOfferForm.get("catalogue"))?null:c.value.lifecycleStatus)}}function Ny0(n,a){if(1&n&&(e.j41(0,"label",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",17),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"th",18),e.EFF(14),e.nI1(15,"translate"),e.k0s()()(),e.j41(16,"tbody")(17,"tr",19)(18,"td",20),e.EFF(19),e.k0s(),e.j41(20,"td",21),e.DNE(21,vy0,2,1,"span",8)(22,ky0,2,1)(23,wy0,2,1)(24,Sy0,2,1),e.k0s(),e.j41(25,"td",22),e.EFF(26),e.k0s()()()()()),2&n){let c,t,l,i;const u=e.XpG();e.R7$(),e.JRh(e.bMT(2,8,"CREATE_OFFER._catalog")),e.R7$(7),e.SpI(" ",e.bMT(9,10,"OFFERINGS._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,12,"OFFERINGS._status")," "),e.R7$(3),e.SpI(" ",e.bMT(15,14,"OFFERINGS._role")," "),e.R7$(4),e.Y8G("ngClass",e.l_i(16,sf,u.hasLongWord(null==(c=u.productOfferForm.get("catalogue"))?null:c.value.name,20),!u.hasLongWord(null==(c=u.productOfferForm.get("catalogue"))?null:c.value.name,20))),e.R7$(),e.SpI(" ",null==(t=u.productOfferForm.get("catalogue"))?null:t.value.name," "),e.R7$(2),e.vxM(21,"active"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?21:"Launched"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?22:"suspended"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?23:"terminated"==(null==(l=u.productOfferForm.get("catalogue"))?null:l.value.lifecycleStatus)?24:-1),e.R7$(5),e.SpI(" ",null==(i=u.productOfferForm.get("catalogue"))||null==i.value.relatedParty||null==(i=i.value.relatedParty.at(0))?null:i.role," ")}}function Ey0(n,a){if(1&n&&(e.j41(0,"tr",19)(1,"td",20),e.EFF(2),e.k0s(),e.j41(3,"td",22),e.EFF(4),e.nI1(5,"date"),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(6,sf,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(2),e.SpI(" ",e.i5U(5,3,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Dy0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",18),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ey0,6,9,"tr",19,yE1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._category")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._last_update")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("category"))?null:c.value)}}function Ty0(n,a){if(1&n&&(e.j41(0,"tr",19)(1,"td",23),e.EFF(2),e.k0s(),e.j41(3,"td",24),e.EFF(4),e.k0s()()),2&n){const c=a.$implicit,t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,sf,t.hasLongWord(c.name,20),!t.hasLongWord(c.name,20))),e.R7$(),e.SpI(" ",c.name," "),e.R7$(),e.Y8G("ngClass",e.l_i(7,sf,t.hasLongWord(c.description,20),!t.hasLongWord(c.description,20))),e.R7$(),e.SpI(" ",c.description," ")}}function Ry0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",14)(4,"table",15)(5,"thead",16)(6,"tr")(7,"th",17),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"th",18),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"tbody"),e.Z7z(14,Ty0,5,10,"tr",19,yE1),e.k0s()()()),2&n){let c;const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._price_plans")),e.R7$(7),e.SpI(" ",e.bMT(9,5,"CREATE_OFFER._name")," "),e.R7$(3),e.SpI(" ",e.bMT(12,7,"CREATE_OFFER._description")," "),e.R7$(3),e.Dyx(null==(c=t.productOfferForm.get("pricePlans"))?null:c.value)}}function Ay0(n,a){if(1&n&&(e.j41(0,"label",26),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div",27),e.nrm(4,"markdown",13),e.k0s()),2&n){let c,t;const l=e.XpG(2);e.R7$(),e.JRh(e.bMT(2,3,"CREATE_OFFER._description")),e.R7$(3),e.Y8G("ngClass",e.l_i(5,sf,l.hasLongWord(null==(c=l.productOfferForm.get("license"))||null==(c=c.get("description"))?null:c.value,20),!l.hasLongWord(null==(c=l.productOfferForm.get("license"))||null==(c=c.get("description"))?null:c.value,20)))("data",null==(t=l.productOfferForm.get("license"))||null==(t=t.get("description"))?null:t.value)}}function Iy0(n,a){if(1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"div")(4,"label",25),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"label",3),e.EFF(8),e.k0s(),e.DNE(9,Ay0,5,8),e.k0s()),2&n){let c,t,l;const i=e.XpG();e.R7$(),e.JRh(e.bMT(2,5,"CREATE_OFFER._license")),e.R7$(4),e.JRh(e.bMT(6,7,"CREATE_OFFER._treatment")),e.R7$(2),e.Y8G("ngClass",e.l_i(9,sf,i.hasLongWord(null==(c=i.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20),!i.hasLongWord(null==(c=i.productOfferForm.get("license"))||null==(c=c.get("treatment"))?null:c.value,20))),e.R7$(),e.SpI(" ",null==(t=i.productOfferForm.get("license"))||null==(t=t.get("treatment"))?null:t.value," "),e.R7$(),e.vxM(9,""!==(null==(l=i.productOfferForm.get("license"))||null==(l=l.get("description"))?null:l.value)?9:-1)}}let Py0=(()=>{class n{ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("--- INFO SUMMARY"),console.log(c.productOfferForm),console.log(c.productOfferForm.get("generalInfo")?.get("status")?.value),console.log(c.productOfferForm.get("catalogue")?.value),console.log(c.productOfferForm.get("category")?.value)})()}get isLicenseEmpty(){const c=this.productOfferForm.get("license")?.value;return!c||"object"==typeof c&&0===Object.keys(c).length}hasLongWord(c,t=20){return!!c&&c.split(/\s+/).some(l=>l.length>t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-offer-summary"]],inputs:{productOfferForm:"productOfferForm"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:27,vars:25,consts:[[1,"m-8"],[1,"mb-4","grid","grid-cols-2","gap-4"],[1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","border","border-gray-300","text-gray-900","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],["for","prod-version",1,"font-bold","text-lg","dark:text-white"],[1,"mb-2","bg-gray-50","text-wrap","break-words","border","border-gray-300","text-gray-900","dark:bg-secondary-300","dark:border-secondary-200","dark:text-white","text-sm","rounded-lg","focus:ring-blue-500","focus:border-blue-500","block","w-full","p-2.5",3,"ngClass"],[1,"mb-4"],[1,"font-bold","text-lg","mr-4","dark:text-white"],[1,"bg-blue-100","dark:bg-secondary-300","text-blue-600","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-blue-400"],[1,"bg-blue-100","dark:bg-secondary-300","text-green-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-green-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-yellow-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-yellow-500"],[1,"bg-blue-100","dark:bg-secondary-300","text-red-500","text-xs","font-medium","me-2","px-2.5","py-0.5","rounded","border","border-red-500"],[1,"px-4","py-2","bg-white","rounded-lg","p-4","mb-4","dark:bg-secondary-300","dark:text-white","border","dark:border-secondary-200"],[1,"bg-gray-50","dark:bg-secondary-300","dark:text-white","text-gray-900","text-wrap","break-words",3,"ngClass","data"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mb-4"],[1,"w-full","text-sm","text-left","rtl:text-right","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-white"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],[1,"border-b","hover:bg-gray-200","dark:bg-secondary-300","dark:border-gray-700","dark:hover:bg-secondary-200"],[1,"px-6","py-4","text-wrap","break-words",3,"ngClass"],[1,"px-6","py-4"],[1,"hidden","md:table-cell","px-6","py-4"],[1,"px-6","py-4","max-w-1/6","text-wrap","break-words",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4","text-wrap","break-words",3,"ngClass"],["for","treatment",1,"font-bold","text-base","dark:text-white"],[1,"font-bold","text-base","dark:text-white"],[1,"px-4","py-2","bg-gray-50","dark:bg-secondary-300","border","border-gray-300","dark:border-secondary-200","dark:text-white","rounded-lg","p-4"]],template:function(t,l){if(1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div")(3,"label",2),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"label",3),e.EFF(7),e.k0s()(),e.j41(8,"div")(9,"label",4),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"label",5),e.EFF(13),e.k0s()()(),e.j41(14,"div",6)(15,"label",7),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.DNE(18,My0,2,1,"span",8)(19,xy0,2,1)(20,by0,2,1)(21,yy0,2,1),e.k0s(),e.DNE(22,Fy0,5,8)(23,Ny0,27,19)(24,Dy0,16,9)(25,Ry0,16,9)(26,Iy0,10,12),e.k0s()),2&t){let i,u,C,b,T,W,u1,a1,T1;e.R7$(4),e.JRh(e.bMT(5,13,"CREATE_OFFER._name")),e.R7$(2),e.Y8G("ngClass",e.l_i(19,sf,l.hasLongWord(null==(i=l.productOfferForm.get("generalInfo.name"))?null:i.value,20),!l.hasLongWord(null==(i=l.productOfferForm.get("generalInfo.name"))?null:i.value,20))),e.R7$(),e.SpI(" ",null==(u=l.productOfferForm.get("generalInfo.name"))?null:u.value," "),e.R7$(3),e.JRh(e.bMT(11,15,"CREATE_OFFER._version")),e.R7$(2),e.Y8G("ngClass",e.l_i(22,sf,l.hasLongWord(null==(C=l.productOfferForm.get("generalInfo.version"))?null:C.value,20),!l.hasLongWord(null==(C=l.productOfferForm.get("generalInfo.version"))?null:C.value,20))),e.R7$(),e.SpI(" ",null==(b=l.productOfferForm.get("generalInfo.version"))?null:b.value," "),e.R7$(3),e.JRh(e.bMT(17,17,"CREATE_OFFER._status")),e.R7$(2),e.vxM(18,"Active"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?18:"Launched"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?19:"Retired"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?20:"Obsolete"==(null==(T=l.productOfferForm.get("generalInfo"))||null==(T=T.get("status"))?null:T.value)?21:-1),e.R7$(4),e.vxM(22,""!=(null==(W=l.productOfferForm.get("generalInfo.description"))?null:W.value)?22:-1),e.R7$(),e.vxM(23,null!=(u1=l.productOfferForm.get("catalogue"))&&u1.value?23:-1),e.R7$(),e.vxM(24,null!=(a1=l.productOfferForm.get("category"))&&a1.value?24:-1),e.R7$(),e.vxM(25,null!=(T1=l.productOfferForm.get("pricePlans"))&&T1.value?25:-1),e.R7$(),e.vxM(26,l.isLicenseEmpty?-1:26)}},dependencies:[s1.h,s1.D9,N0,_.YU,BL,_.vh]})}}return n})();function jy0(n,a){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Info"),e.k0s(),e.j41(6,"div"),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n&&(e.R7$(7),e.SpI(" ",e.bMT(8,1,"CREATE_OFFER._no_prod_spec")," "))}function $y0(n,a){1&n&&(e.j41(0,"div",5),e.qSk(),e.j41(1,"svg",6),e.nrm(2,"path",7)(3,"path",8),e.k0s(),e.joV(),e.j41(4,"span",4),e.EFF(5,"Loading..."),e.k0s()())}function Oy0(n,a){1&n&&(e.j41(0,"div",0)(1,"div",1),e.qSk(),e.j41(2,"svg",2),e.nrm(3,"path",3),e.k0s(),e.joV(),e.j41(4,"div"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()),2&n&&(e.R7$(5),e.SpI(" ",e.bMT(6,1,"OFFERINGS._no_prod")," "))}function By0(n,a){if(1&n){const c=e.RV6();e.j41(0,"tr",18),e.bIt("click",function(){const l=e.eBV(c).$implicit,i=e.XpG(4);return e.Njj(!i.isEditMode&&i.toggleSelection(l))}),e.j41(1,"td",19)(2,"input",20),e.bIt("click",function(l){const i=e.eBV(c).$implicit,u=e.XpG(4);return l.stopPropagation(),e.Njj(!u.isEditMode&&u.toggleSelection(i))}),e.k0s()(),e.j41(3,"td",21),e.EFF(4),e.k0s(),e.j41(5,"td",22)(6,"span",23),e.EFF(7),e.nI1(8,"translate"),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"td",22)(11,"span",23),e.EFF(12),e.k0s()(),e.j41(13,"td",24),e.EFF(14),e.nI1(15,"date"),e.k0s()()}if(2&n){const c=a.$implicit,t=e.XpG(4);e.Y8G("ngClass",t.getRowClass(c.id)),e.R7$(2),e.Y8G("checked",t.isSelected(c.id))("disabled",t.isEditMode),e.R7$(2),e.JRh(c.name),e.R7$(2),e.Y8G("ngClass",t.getBundleClass(c.isBundle)),e.R7$(),e.SpI(" ",c.isBundle?e.bMT(8,9,"OFFERINGS._bundle"):e.bMT(9,11,"OFFERINGS._simple")," "),e.R7$(4),e.Y8G("ngClass",t.getStatusClass(c.lifecycleStatus)),e.R7$(),e.SpI(" ",c.lifecycleStatus," "),e.R7$(2),e.SpI(" ",e.i5U(15,13,c.lastUpdate,"EEEE, dd/MM/yy, HH:mm")," ")}}function Vy0(n,a){if(1&n&&(e.j41(0,"div",10)(1,"table",11)(2,"thead",12)(3,"tr"),e.nrm(4,"th",13),e.j41(5,"th",14),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th",14),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"th",14),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"th",15),e.EFF(15),e.nI1(16,"translate"),e.k0s()()(),e.j41(17,"tbody",16),e.Z7z(18,By0,16,16,"tr",17,e.Vm6),e.k0s()()()),2&n){const c=e.XpG(3);e.R7$(6),e.JRh(e.bMT(7,4,"OFFERINGS._name")),e.R7$(3),e.JRh(e.bMT(10,6,"OFFERINGS._type")),e.R7$(3),e.JRh(e.bMT(13,8,"OFFERINGS._status")),e.R7$(3),e.SpI("",e.bMT(16,10,"OFFERINGS._last_update")," "),e.R7$(3),e.Dyx(c.prodSpecs)}}function Uy0(n,a){1&n&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30),e.k0s()())}function Gy0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",9)(1,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG(3);return e.Njj(l.nextProdSpec())}),e.EFF(2),e.nI1(3,"translate"),e.qSk(),e.j41(4,"svg",26),e.nrm(5,"path",27),e.k0s()(),e.DNE(6,Uy0,3,0,"div",28),e.k0s()}if(2&n){const c=e.XpG(3);e.R7$(),e.Y8G("disabled",c.loadingProdSpec_more),e.R7$(),e.SpI(" ",e.bMT(3,3,"CREATE_PROD_SPEC._load_more")," "),e.R7$(4),e.vxM(6,c.loadingProdSpec_more?6:-1)}}function Hy0(n,a){if(1&n&&e.DNE(0,Oy0,7,3,"div",0)(1,Vy0,20,12)(2,Gy0,7,5,"div",9),2&n){const c=e.XpG(2);e.vxM(0,0==c.prodSpecs.length?0:1),e.R7$(2),e.vxM(2,c.prodSpecPageCheck?2:-1)}}function Yy0(n,a){if(1&n&&e.DNE(0,$y0,6,0,"div",5)(1,Hy0,3,2),2&n){const c=e.XpG();e.vxM(0,c.loadingProdSpec?0:1)}}let qy0=(()=>{class n{constructor(c,t){this.prodSpecService=c,this.paginationService=t,this.bundleChecked=!1,this.formChange=new e.bkB,this.selectedProdSpecInternal=null,this.originalValue=null,this.formSubscription=null,this.hasBeenModified=!1,this.isEditMode=!1,this.PROD_SPEC_LIMIT=g1.c.PROD_SPEC_LIMIT,this.prodSpecPage=0,this.prodSpecPageCheck=!1,this.loadingProdSpec=!1,this.loadingProdSpec_more=!1,this.prodSpecs=[],this.nextProdSpecs=[],this.FormControl=p.MJ,this.onChange=()=>{},this.onTouched=()=>{},console.log("\u{1f504} Initializing ProdSpecComponent")}ngOnInit(){var c=this;return(0,C1.A)(function*(){console.log("\u{1f4dd} Initializing form in",c.formType,"mode"),c.isEditMode="update"===c.formType,yield c.getSellerProdSpecs(!1)})()}ngOnDestroy(){if(console.log("\u{1f5d1}\ufe0f Destroying ProdSpecComponent"),this.formSubscription&&this.formSubscription.unsubscribe(),this.isEditMode&&this.hasBeenModified){const c=this.getDirtyFields();if(c.length>0){const t={subformType:"productSpecification",isDirty:!0,dirtyFields:c,originalValue:this.originalValue,currentValue:this.selectedProdSpecInternal};console.log("\u{1f680} Emitting final change state:",t),this.formChange.emit(t)}else console.log("\u{1f4dd} No real changes detected, skipping emission")}else this.isEditMode||console.log("\u{1f4dd} Not in edit mode, skipping change detection")}getSellerProdSpecs(c){var t=this;return(0,C1.A)(function*(){c||(t.loadingProdSpec=!0);let l={filters:["Active","Launched"],partyId:t.partyId};try{const i=yield t.paginationService.getItemsPaginated(t.prodSpecPage,t.PROD_SPEC_LIMIT,c,t.prodSpecs,t.nextProdSpecs,l,t.prodSpecService.getProdSpecByUser.bind(t.prodSpecService));t.prodSpecPageCheck=i.page_check,t.prodSpecs=i.items,t.nextProdSpecs=i.nextItems,t.prodSpecPage=i.page}finally{t.loadingProdSpec=!1,t.loadingProdSpec_more=!1}})()}nextProdSpec(){var c=this;return(0,C1.A)(function*(){c.loadingProdSpec_more=!0,yield c.getSellerProdSpecs(!0)})()}getStatusClass(c){return{Active:"text-blue-600 border-blue-400",Launched:"text-green-500 border-green-500",Retired:"text-yellow-500 border-yellow-500",Obsolete:"text-red-500 border-red-500"}[c]||"text-gray-500 border-gray-400"}getBundleClass(c){return c?"text-green-500 border-green-500":"text-blue-600 border-blue-400"}writeValue(c){console.log("\u{1f4dd} Writing value:",c),this.selectedProdSpecInternal=c,this.isEditMode&&(this.originalValue=c,this.hasBeenModified=!1),this.onChange(c)}registerOnChange(c){this.onChange=c}registerOnTouched(c){this.onTouched=c}isSelected(c){return this.selectedProdSpecInternal?.id===c}toggleSelection(c){this.isEditMode?console.log("\u{1f4dd} Cannot change product spec in update mode"):(console.log("\u{1f504} Toggling selection:",c),this.selectedProdSpecInternal=this.selectedProdSpecInternal?.id===c.id?null:c,this.onChange(this.selectedProdSpecInternal),this.onTouched())}getRowClass(c){return c===this.selectedProdSpecInternal?.id?"bg-white dark:bg-secondary-100":"bg-white dark:bg-secondary-300"}getDirtyFields(){return this.selectedProdSpecInternal&&this.originalValue?Object.keys(this.selectedProdSpecInternal).filter(c=>{const l=this.originalValue[c];return JSON.stringify(this.selectedProdSpecInternal[c])!==JSON.stringify(l)}):[]}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(K3),e.rXU(w6))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-prod-spec-form"]],inputs:{formType:"formType",data:"data",partyId:"partyId",bundleChecked:"bundleChecked"},outputs:{formChange:"formChange"},standalone:!0,features:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>n),multi:!0}]),e.aNF],decls:2,vars:1,consts:[[1,"flex","justify-center","w-full","m-4"],["role","alert",1,"flex","w-full","items-center","p-4","text-sm","text-primary-100","rounded-lg","bg-blue-50","dark:bg-secondary-200","dark:text-primary-50"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","inline","w-4","h-4","me-3"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"sr-only"],["role","status",1,"w-full","h-fit","flex","justify-center","align-middle"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"flex","pt-6","pb-2","justify-center","align-middle"],[1,"relative","overflow-x-auto","shadow-md","sm:rounded-lg","w-full","bg-white","mt-4","mb-4"],[1,"w-full","text-sm","text-left","text-gray-500","dark:text-gray-200"],[1,"text-xs","text-gray-700","uppercase","bg-gray-100","dark:bg-secondary-200","dark:text-gray-300"],["scope","col",1,"px-4","py-3","w-12"],["scope","col",1,"px-6","py-3"],["scope","col",1,"hidden","md:table-cell","px-6","py-3"],["data-cy","prodSpecs"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"ngClass"],[1,"border-b","hover:bg-gray-200","dark:border-gray-700","dark:hover:bg-secondary-200",3,"click","ngClass"],[1,"px-4","py-3","w-12"],["type","radio","name","prodSpecSelection",1,"w-4","h-4","text-blue-600","bg-gray-100","border-gray-300","rounded","focus:ring-blue-500",3,"click","checked","disabled"],["data-cy","offerProductSpecName",1,"px-6","py-4"],[1,"px-6","py-4"],[1,"text-xs","font-medium","px-2.5","py-0.5","rounded","border",3,"ngClass"],[1,"hidden","md:table-cell","px-6","py-4"],["data-cy","loadMore",1,"flex","cursor-pointer","shadow-lg","items-center","justify-center","px-3","h-8","text-sm","font-medium","text-gray-500","dark:text-white","bg-white","dark:bg-primary-100","border","rounded-lg","hover:bg-gray-200",3,"click","disabled"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24",1,"w-3.5","h-3.5","ms-2"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 12h14m-7 7V5"],["data-cy","loadMoreLoading",1,"flex","items-center","justify-center","ml-2"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-6","h-6","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M93.9676 39.0409C96.393 38.4038...","fill","currentFill"]],template:function(t,l){1&t&&e.DNE(0,jy0,9,3,"div",0)(1,Yy0,2,1),2&t&&e.vxM(0,l.bundleChecked?0:1)},dependencies:[_.vh,s1.h,s1.D9,_.YU]})}}return n})();const Xy0=(n,a)=>({"text-gray-500 dark:text-gray-400 hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"text-gray-300 dark:text-gray-600 cursor-not-allowed":a}),Wy0=(n,a)=>({"hover:bg-gray-100 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white":n,"cursor-not-allowed opacity-50":a});function Jy0(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"UPDATE_OFFER._update")," "))}function Qy0(n,a){1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"CREATE_OFFER._create")," "))}function Zy0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function Ky0(n,a){if(1&n){const c=e.RV6();e.j41(0,"li",20),e.bIt("click",function(){const l=e.eBV(c).$index,i=e.XpG(2);return e.Njj(i.handleStepClick(l))}),e.j41(1,"span",21),e.EFF(2),e.k0s(),e.j41(3,"span",22),e.EFF(4),e.k0s()()}if(2&n){const c=a.$implicit,t=a.$index,l=e.XpG(2);e.AVh("cursor-not-allowed",!l.canNavigate(t))("opacity-50",!l.canNavigate(t))("text-primary-100",l.currentStep.id===c.id),e.R7$(),e.AVh("bg-primary-100",l.currentStep.id===c.id)("text-white",l.currentStep.id===c.id),e.R7$(),e.SpI(" ",t+1," "),e.R7$(2),e.JRh(c.label)}}function eF0(n,a){1&n&&(e.j41(0,"div",2),e.qSk(),e.j41(1,"svg",4),e.nrm(2,"path",5)(3,"path",6),e.k0s(),e.joV(),e.j41(4,"span",7),e.EFF(5,"Loading..."),e.k0s()())}function cF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-general-info-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.generalInfo)}}function tF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-prod-spec-form",25),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("partyId",c.partyId)("formType",c.formType)}}function nF0(n,a){if(1&n&&e.nrm(0,"app-catalogue",26),2&n){const c=e.XpG(3);e.Y8G("partyId",c.partyId)}}function lF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-category-form",27),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)}}function sF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-license-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.license)}}function aF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-edc-contract-definition-form",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.edcContractDefinition)}}function oF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-price-plans-form",28),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){let c;const t=e.XpG(3);e.Y8G("form",t.productOfferForm)("prodSpec",null==(c=t.productOfferForm.get("prodSpec"))?null:c.value)("custom",!1)}}function iF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"app-procurement-mode",24),e.bIt("formChange",function(l){e.eBV(c);const i=e.XpG(3);return e.Njj(i.handleSubformChange(l))}),e.k0s()}if(2&n){const c=e.XpG(3);e.Y8G("data",c.offer)("formType",c.formType)("form",c.productOfferForm.controls.procurementMode)}}function rF0(n,a){if(1&n&&e.nrm(0,"app-offer-summary",29),2&n){const c=e.XpG(3);e.Y8G("productOfferForm",c.productOfferForm)}}function dF0(n,a){if(1&n&&(e.j41(0,"div",23),e.DNE(1,cF0,1,3)(2,tF0,1,3)(3,nF0,1,1)(4,lF0,1,2)(5,sF0,1,3)(6,aF0,1,3)(7,oF0,1,3)(8,iF0,1,3)(9,rF0,1,1),e.k0s()),2&n){let c;const t=e.XpG(2);e.R7$(),e.vxM(1,(c=t.currentStep.id)===t.OfferStep.GENERAL_INFO?1:c===t.OfferStep.PROD_SPEC?2:c===t.OfferStep.CATALOGUE?3:c===t.OfferStep.CATEGORY?4:c===t.OfferStep.LICENSE?5:c===t.OfferStep.CONTRACT_DEFINITION?6:c===t.OfferStep.PRICE?7:c===t.OfferStep.PROCUREMENT?8:c===t.OfferStep.SUMMARY?9:-1)}}function fF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",30),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.submitForm())}),e.EFF(1),e.k0s()}if(2&n){const c=e.XpG(2);e.Y8G("disabled",!c.isFormValid||c.loading)("ngClass",c.loading||"update"===c.formType&&!c.isFormValid?"opacity-50":"hover:bg-primary-50"),e.R7$(),e.SpI(" ","create"===c.formType?"Create Offer":"Update Offer"," ")}}function uF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",8)(1,"ol",9),e.Z7z(2,Ky0,5,12,"li",10,e.Vm6),e.k0s(),e.j41(4,"h3",11),e.EFF(5),e.k0s(),e.DNE(6,eF0,6,0,"div",2)(7,dF0,10,1),e.j41(8,"div",12)(9,"button",13),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStepIdx-1))}),e.qSk(),e.j41(10,"svg",14),e.nrm(11,"path",15),e.k0s(),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.joV(),e.j41(14,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.goToStep(l.currentStepIdx+1))}),e.EFF(15),e.nI1(16,"translate"),e.qSk(),e.j41(17,"svg",17),e.nrm(18,"path",18),e.k0s()(),e.DNE(19,fF0,2,3,"button",19),e.k0s()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.productOfferForm),e.R7$(2),e.Dyx(c.steps),e.R7$(3),e.JRh(c.currentStep.label),e.R7$(),e.vxM(6,c.loading?6:7),e.R7$(3),e.Y8G("disabled",0===c.currentStepIdx)("ngClass",e.l_i(14,Xy0,0!==c.currentStepIdx,0===c.currentStepIdx)),e.R7$(3),e.SpI(" ",e.bMT(13,10,"CREATE_OFFER._previous")," "),e.R7$(2),e.Y8G("disabled",c.currentStepIdx===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStepIdx))("ngClass",e.l_i(17,Wy0,c.currentStepIdx!==c.steps.length-1&&("create"!==c.formType||c.validateCurrentStep()||c.canNavigate(c.currentStepIdx)),c.currentStepIdx===c.steps.length-1||"create"===c.formType&&!c.validateCurrentStep()||!c.canNavigate(c.currentStepIdx))),e.R7$(),e.SpI(" ",e.bMT(16,12,"CREATE_OFFER._next_step")," "),e.R7$(4),e.vxM(19,"create"===c.formType&&"summary"===c.currentStep.id||"update"===c.formType?19:-1)}}function mF0(n,a){if(1&n&&(e.j41(0,"div",3)(1,"div",31)(2,"div",32),e.qSk(),e.j41(3,"svg",33),e.nrm(4,"path",34),e.k0s(),e.joV(),e.j41(5,"h3",35),e.EFF(6,"Error"),e.k0s()(),e.j41(7,"div",36),e.EFF(8),e.k0s()()()),2&n){const c=e.XpG();e.R7$(8),e.SpI(" ",c.errorMessage," ")}}var S6=function(n){return n.GENERAL_INFO="general_info",n.PROD_SPEC="prod_spec",n.CATALOGUE="catalogue",n.CATEGORY="category",n.LICENSE="license",n.CONTRACT_DEFINITION="contract_definition",n.PRICE="price",n.PROCUREMENT="procurement",n.REPLICATION="replication",n.SUMMARY="summary",n}(S6||{});let gf1=(()=>{class n{get currentStep(){return this.steps[this.currentStepIdx]}get dspEnable(){return g1.c.DSP_ENABLED&&g1.c.DATA_SPACE_ENABLED}constructor(c,t,l){this.api=c,this.eventMessage=t,this.fb=l,this.formType="create",this.offer={},this.highestStepIdx=0,this.contractDefinitionStep={label:"Contract Definition",id:S6.CONTRACT_DEFINITION},this.steps=[{label:"General Info",id:S6.GENERAL_INFO},{label:"Product Specification",id:S6.PROD_SPEC},{label:"Catalogue",id:S6.CATALOGUE},{label:"Category",id:S6.CATEGORY},{label:"License",id:S6.LICENSE},{label:"Price Plans",id:S6.PRICE},{label:"Procurement Mode",id:S6.PROCUREMENT},{label:"Summary",id:S6.SUMMARY}],this.currentStepIdx=0,this.OfferStep=S6,this.isFormValid=!1,this.pricePlans=[],this.errorMessage="",this.showError=!1,this.loading=!1,this.bundleChecked=!1,this.offersBundle=[],this.loadingData=!1,this.formChanges={},this.formSubscription=null,this.destroy$=new S.B,this.hasChanges=!1,this.productOfferForm=this.fb.group({generalInfo:this.fb.group({}),prodSpec:new p.MJ(null,[p.k0.required]),catalogue:new p.MJ(null,[p.k0.required]),category:new p.MJ([]),license:this.fb.group({}),edcContractDefinition:this.fb.group({}),pricePlans:new p.MJ([]),procurementMode:this.fb.group({}),replicationMode:this.fb.group({})}),this.productOfferForm.statusChanges.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{this.isFormValid=!!(this.productOfferForm.controls.generalInfo.valid&&this.productOfferForm.get("procurementMode")?.valid&&this.productOfferForm.get("edcContractDefinition")?.valid)}),this.formSubscription=this.eventMessage.messages$.pipe((0,O1.Q)(this.destroy$)).subscribe(i=>{if(console.log("subform changed-----"),"SubformChange"===i.type){const u=i.value;console.log("Received subform change:",u),this.handleSubformChange(u)}})}handleSubformChange(c){console.log("\u{1f4dd} Subform change received:",c),this.formChanges[c.subformType]=c,this.hasChanges=Object.keys(this.formChanges).length>0,console.log("\u{1f4dd} Has changes:",this.hasChanges),console.log(this.formChanges[c.subformType])}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}goToStep(c){"create"===this.formType&&c>this.currentStepIdx&&!this.validateCurrentStep()||("prod_spec"===this.currentStep.id&&(this.isdEdcCompatible()&&this.dspEnable?this.enableContractDefinitionStep():this.disableContractDefinitionStep()),this.currentStepIdx=c,c>this.highestStepIdx&&(this.highestStepIdx=c))}validateCurrentStep(){switch(this.currentStep.id){case S6.GENERAL_INFO:return this.productOfferForm.get("generalInfo")?.valid||!1;case S6.PROD_SPEC:return!!this.productOfferForm.get("prodSpec")?.value;case S6.CATALOGUE:return!!this.productOfferForm.get("catalogue")?.value;case S6.CATEGORY:return!0;case S6.LICENSE:return this.productOfferForm.get("license")?.valid||!1;case S6.CONTRACT_DEFINITION:return this.productOfferForm.get("edcContractDefinition")?.valid||!1;case S6.PRICE:return!0;case S6.PROCUREMENT:return this.productOfferForm.get("procurementMode")?.valid||!1;default:return!0}}canNavigate(c){return"create"==this.formType?this.productOfferForm.get("generalInfo")?.valid&&c<=this.currentStepIdx||this.productOfferForm.get("generalInfo")?.valid&&c<=this.highestStepIdx:this.isFormValid}handleStepClick(c){this.canNavigate(c)&&this.goToStep(c)}enableContractDefinitionStep(){if(this.steps.some(l=>l.id===S6.CONTRACT_DEFINITION))return;const t=this.steps.findIndex(l=>l.id===S6.LICENSE);this.steps=[...this.steps.slice(0,t+1),this.contractDefinitionStep,...this.steps.slice(t+1)]}disableContractDefinitionStep(){this.steps=this.steps.filter(c=>c.id!==S6.CONTRACT_DEFINITION)}submitForm(){"update"===this.formType?(this.eventMessage.emitUpdateOffer(!0),console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",this.formChanges),this.updateOffer()):this.createOffer()}ngOnInit(){var c=this;return(0,C1.A)(function*(){"update"===c.formType&&c.offer&&(c.loadingData=!0,c.steps=c.steps.filter(t=>"catalogue"!==t.id),yield c.loadOfferData(),c.loadingData=!1)})()}loadOfferData(){var c=this;return(0,C1.A)(function*(){if(console.log("Loading offer into form...",c.offer),c.offer.productSpecification&&(yield c.api.getProductSpecification(c.offer.productSpecification.id).then(function(){var t=(0,C1.A)(function*(l){c.selectedProdSpec=l});return function(l){return t.apply(this,arguments)}}()),c.productOfferForm.patchValue({prodSpec:c.selectedProdSpec||null})),c.offer.category&&c.productOfferForm.patchValue({category:c.offer.category||null}),c.offer.productOfferingTerm){console.log("Found productOfferingTerm:",c.offer.productOfferingTerm);const t=c.offer.productOfferingTerm.find(i=>"License"===i.name);c.productOfferForm.patchValue(t?{license:{treatment:"License",description:t.description}}:{license:{treatment:"License",description:""}});const l=c.offer.productOfferingTerm.find(i=>"procurement"===i.name);if(l){const i={id:l.description,name:l.description};console.log("Setting procurement value:",i),c.productOfferForm.patchValue({procurementMode:i})}else c.productOfferForm.patchValue({procurementMode:{id:"manual",name:"Manual"}});if(g1.c.DSP_ENABLED){const i=c.offer.productOfferingTerm.find(u=>"edc:contractDefinition"===u.name)||{name:"edc:contractDefinition"};c.productOfferForm.patchValue({contractDefinition:{name:i.name,accessPolicy:i.accessPolicy?JSON.stringify(i.accessPolicy):"",contractPolicy:i.contractPolicy?JSON.stringify(i.contractPolicy):""}})}}if(Array.isArray(c.offer.productOfferingPrice)&&c.offer.productOfferingPrice.length>0){for(let t of c.offer.productOfferingPrice){let l=[];const i=yield c.api.getOfferingPrice(t.id);console.log("-- price plan ----"),console.log(i);let u=!1;u=!!(i?.prodSpecCharValueUse&&i?.prodSpecCharValueUse.length>0);let C={id:i.id,name:i.name,description:i.description,lifecycleStatus:i.lifecycleStatus,paymentOnline:i?.paymentOnline??!!i?.bundledPopRelationship,productProfile:u?c.mapProductProfile(i?.prodSpecCharValueUse||[]):[]};if(i.bundledPopRelationship)for(let b=0;bthis.fb.group({id:[t.id],name:[t.name],selectedValue:[t.productSpecCharacteristicValue.find(l=>l.isDefault)?.value||null,p.k0.required]})))})}handleApiError(c){console.error("Error while creating offer price!",c),this.errorMessage=c?.error?.error?"Error: "+c.error.error:"Error creating offer price!",this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}createPriceAlteration(c,t){var l=this;return(0,C1.A)(function*(){const i={name:"discount",priceType:"discount",validFor:{startDateTime:$2()().toISOString(),endDateTime:$2()().add(Number(c.discountDuration),c.discountDurationUnit).toISOString()},unitOfMeasure:{amount:c.discountDuration,units:c.discountDurationUnit}};return"percentage"===c.discountUnit?i.percentage=c.discountValue:i.price={value:c.discountValue,unit:t},yield(0,e0.s)(l.api.postOfferingPrice(i))})()}createPriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("component format"),console.log(c);let i={name:c.name,isBundle:!1,description:c.description??c?.newValue.description,lifecycleStatus:c?.lifecycleStatus??c?.newValue?.lifecycleStatus??"Active",priceType:c.priceType??c?.newValue?.priceType,price:{unit:t,value:c?.price??c?.newValue.price},recurringChargePeriodType:void 0,recurringChargePeriodLength:void 0,unitOfMeasure:void 0,prodSpecCharValueUse:void 0},u=c.priceType??c?.newValue?.priceType;if(["recurring","recurring-prepaid"].includes(u)&&(i.recurringChargePeriodType=c.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===u&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.usageUnit??c.newValue.usageUnit},i["@baseType"]="ProductOfferingPrice",i["@schemaLocation"]="https://raw.githubusercontent.com/laraminones/tmf-new-schemas/main/UsageSpecId.json",i.usageSpecId=c.usageSpecId??c?.newValue?.usageSpecId,console.log("-- here"),console.log(i)),(c?.selectedCharacteristic||c?.newValue?.selectedCharacteristic)&&(i.prodSpecCharValueUse=c.selectedCharacteristic??c.newValue.selectedCharacteristic),c?.unitOfMeasure&&(i.unitOfMeasure=c.usageUnit),null!=c?.discountValue){const b=yield l.createPriceAlteration(c,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("create price comp"),console.log(i);const C=yield(0,e0.s)(l.api.postOfferingPrice(i));return{id:C.id,href:C.id,name:C.name}})()}updatePriceComponent(c,t){var l=this;return(0,C1.A)(function*(){console.log("update function"),console.log(c),console.log(t),console.log("------");let i={name:c.newValue.name,isBundle:!1,description:c.newValue.description,lifecycleStatus:c.newValue.lifecycleStatus,priceType:c.newValue.priceType,price:{unit:t,value:c.newValue.price}};if(["recurring","recurring-prepaid"].includes(c.newValue.priceType)&&(i.recurringChargePeriodType=c.newValue.recurringPeriod,i.recurringChargePeriodLength=1),"usage"===c.newValue.priceType&&(console.log(c.newValue),i.unitOfMeasure={amount:1,units:c.newValue.usageUnit},i.usageSpecId=c.newValue.usageSpecId,console.log("----- here"),console.log(i)),c.newValue.selectedCharacteristic&&(i.prodSpecCharValueUse=c.newValue.selectedCharacteristic),c.newValue.unitOfMeasure&&(i.unitOfMeasure=c.newValue.usageUnit),null!=c.newValue.discountValue){let C={discountValue:c.newValue.discountValue};c.newValue.discountUnit&&(C.discountUnit=c.newValue.discountUnit),c.newValue.discountDuration&&(C.discountDuration=c.newValue.discountDuration),c.newValue.discountDurationUnit&&(C.discountDurationUnit=c.newValue.discountDurationUnit);const b=yield l.createPriceAlteration(C,t);i.popRelationship=[{id:b.id,href:b.id,name:b.name}]}console.log("update price comp"),console.log(i);const u=yield(0,e0.s)(l.api.updateOfferingPrice(i,c.id));return{id:u.id,href:u.id,name:u.name}})()}createBundledPricePlan(c,t){const l={name:c.name??c?.newValue?.name,isBundle:!0,description:c.description??c?.newValue?.description,lifecycleStatus:c.lifecycleStatus??c?.newValue?.lifecycleStatus,bundledPopRelationship:t};return c?.priceType?"custom"==c?.priceType&&(l.priceType="custom"):c?.newValue?.priceType&&"custom"==c?.newValue?.priceType&&(l.priceType="custom"),c.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),c?.newValue?.prodSpecCharValueUse&&(l.prodSpecCharValueUse=c?.newValue?.prodSpecCharValueUse.map(i=>({...i,productSpecCharacteristicValue:i.productSpecCharacteristicValue.filter(u=>u.isDefault)}))),console.log(l.prodSpecCharValueUse),c.usageUnit&&(l.unitOfMeasure=c.usageUnit),c?.newValue?.usageUnit&&(l.unitOfMeasure=c?.newValue?.usageUnit),l}updatePricePlan(c,t,l){var i=this;return(0,C1.A)(function*(){console.log("plan info"),console.log(c),console.log(c.id),console.log(t);let u={name:c.newValue.name,isBundle:!0,bundledPopRelationship:t};return l.includes("description")&&(u.description=c.newValue.description),l.includes("prodSpecCharValueUse")&&null!=c.newValue.prodSpecCharValueUse&&(u.prodSpecCharValueUse=c.newValue.prodSpecCharValueUse.map(b=>({...b,productSpecCharacteristicValue:b.productSpecCharacteristicValue.filter(T=>T.isDefault)}))),yield(0,e0.s)(i.api.updateOfferingPrice(u,c.id))})()}createOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0;const t=c.productOfferForm.value.pricePlans;if(0!==t.length)for(let l=0;lc.createPriceComponent(u1,i.currency))),T=c.createBundledPricePlan(i,b);C=(yield(0,e0.s)(c.api.postOfferingPrice(T))).id,c.productOfferForm.value.pricePlans[l].id=C,l===t.length-1&&c.saveOfferInfo()}catch(C){c.handleApiError(C)}}else c.saveOfferInfo()})()}saveOfferInfo(){const c=this.productOfferForm.value,t=c.category.map(T=>({id:T.id,href:T.id})),l=c.pricePlans.map(T=>({id:T.id,href:T.id})),i=c.generalInfo,C={name:i.name,description:i.description||"",lifecycleStatus:"update"===this.formType?i.status:"Active",isBundle:this.bundleChecked,bundledProductOffering:this.offersBundle,place:[],version:i.version,...c.procurementMode.extBillingEnabled&&c.procurementMode.plaSpecId?{pricingLogicAlgorithm:[{name:"external billing",plaSpecId:c.procurementMode.plaSpecId}]}:{},category:t,productOfferingPrice:l,validFor:{startDateTime:(new Date).toISOString()},productOfferingTerm:[{name:"License",description:c.license.description||""},{name:"procurement",description:c.procurementMode.mode}]};if(this.dspEnable&&this.isdEdcCompatible()){const T=c.edcContractDefinition;C.productOfferingTerm.push({name:T.name,contractPolicy:T.contractPolicy?JSON.parse(T.contractPolicy):"",accessPolicy:T.accessPolicy?JSON.parse(T.accessPolicy):"","@schemaLocation":g1.c.DSP_CONTRACT_DEFINITION_SCHEMA}),C.externalId=L4(),C["@schemaLocation"]=g1.c.DSP_SCHEMA}!this.bundleChecked&&"create"===this.formType&&(C.productSpecification={id:c.prodSpec.id,href:c.prodSpec.href}),this.offerToCreate=C,("create"===this.formType?this.api.postProductOffering(C,c.catalogue.id):this.api.updateProductOffering(C,this.offer.id)).subscribe({next:T=>{console.log("product offer created:"),console.log(T),this.loading=!1,this.goBack()},error:T=>{console.error("Error during offer save/update:",T),this.errorMessage=T?.error?.error?"Error: "+T.error.error:"An error occurred while saving the offer!",this.loading=!1,this.showError=!0,setTimeout(()=>this.showError=!1,3e3)}})}goBack(){this.eventMessage.emitSellerOffer(!0)}addToISOString(c,t){const i={day:"days",week:"weeks",month:"months",year:"years"}[t.toLowerCase()];if(i)return $2()().add(c,i).toISOString();throw new Error(`Invalid unit: ${t}. Must be one of day, week, month, or year.`)}calculateDiscountDuration(c,t){const l=$2()(c.startDateTime);return $2()(c.endDateTime).diff(l,t)}updateOffer(){var c=this;return(0,C1.A)(function*(){c.loading=!0,console.log("\u{1f504} Starting offer update process..."),console.log("\u{1f4dd} Current form changes:",c.formChanges);const t={name:c.offer.name,description:c.offer.description,lifecycleStatus:c.offer.lifecycleStatus,version:c.offer.version,category:c.offer.category,productOfferingPrice:c.offer.productOfferingPrice.map(l=>({id:l.id,href:l.href})),validFor:c.offer.validFor,productOfferingTerm:c.offer.productOfferingTerm};for(const[l,i]of Object.entries(c.formChanges))switch(console.log(`\u{1f4dd} Processing changes for ${l}:`,i),l){case"generalInfo":t.name=i.currentValue.name,t.description=i.currentValue.description,t.version=i.currentValue.version,t.lifecycleStatus=i.currentValue.status;break;case"productSpecification":t.productSpecification={id:i.currentValue.id,href:i.currentValue.id};break;case"category":t.category=i.currentValue.map(T=>({id:T.id,href:T.id}));break;case"license":const u=t.productOfferingTerm.find(T=>"License"===T.name);u?u.description=i.currentValue.description:t.productOfferingTerm.unshift({name:"License",description:i.currentValue.description});break;case"pricePlans":t.productOfferingPrice=i.currentValue.map(T=>({id:T.id,href:T.id})),console.log("Cambio en el plan de precios"),console.log(t.productOfferingPrice),console.log(i.modifiedPricePlans);let C=i.modifiedPricePlans;for(let T=0;T0){for(let u1=0;u10)for(let u1=0;u10),console.log(C[T].priceComponents.modified[u1].id==C[T].id),C[T].priceComponents.modified[u1].id==C[T].id&&!C[T]?.oldValue.isBundle&&C[T].priceComponents.added.length>0){console.log("Si entra en el check");let a1=yield c.createPriceComponent(C[T].priceComponents.modified[u1],C[T]?.newValue.currency);W.push(a1)}else if(C[T].priceComponents.modified[u1].id!=C[T].id){let a1=yield c.updatePriceComponent(C[T].priceComponents.modified[u1],C[T]?.newValue.currency);W.push(a1)}console.log("The following price comp has been updated:"),console.log(C[T].priceComponents.modified[u1])}if(C[T].id.startsWith("temp-id")){let u1=yield c.createBundledPricePlan(C[T],W);const a1=yield(0,e0.s)(c.api.postOfferingPrice(u1));let T1=t.productOfferingPrice.findIndex(Y1=>Y1.id===C[T].id);t.productOfferingPrice[T1].id=a1.id,t.productOfferingPrice[T1].href=a1.id,console.log("New price plan"),console.log(u1)}else{let u1=yield c.updatePricePlan(C[T],W,C[T].modifiedFields);console.log("Modified price plan"),console.log(u1)}}break;case"procurement":const b=t.productOfferingTerm.find(T=>"procurement"===T.name);b?b.description=i.currentValue.id:t.productOfferingTerm.push({name:"procurement",description:i.currentValue.id}),i.currentValue.extBillingEnabled&&i.currentValue.plaSpecId?t.pricingLogicAlgorithm=[{name:"external billing",plaSpecId:i.currentValue.plaSpecId}]:i.originalValue.extBillingEnabled&&!i.currentValue.extBillingEnabled&&(t.pricingLogicAlgorithm=[]);break;case"contractDefinition":if(i.currentValue.dspCompatible){const T=t.productOfferingTerm.find(W=>"edc:contractDefinition"===W.name);T?(T.accessPolicy=JSON.parse(i.currentValue.accessPolicy),T.contractPolicy=JSON.parse(i.currentValue.contractPolicy)):t.productOfferingTerm.push({name:i.currentValue.name,contractPolicy:i.currentValue.contractPolicy?JSON.parse(i.currentValue.contractPolicy):"",accessPolicy:i.currentValue.accessPolicy?JSON.parse(i.currentValue.accessPolicy):"","@schemaLocation":g1.c.DSP_CONTRACT_DEFINITION_SCHEMA})}else t.productOfferingTerm=t.productOfferingTerm.filter(T=>"edc:contractDefinition"!==T.name)}Object.keys(t).forEach(l=>{null==t[l]&&delete t[l]}),console.log("\u{1f4dd} Final update payload:",t);try{yield(0,e0.s)(c.api.updateProductOffering(t,c.offer.id)),console.log("\u2705 Offer updated successfully"),c.loading=!1,c.goBack()}catch(l){console.error("\u274c Error updating offer:",l),c.errorMessage=l?.error?.error?"Error: "+l.error.error:"An error occurred while updating the offer!",c.loading=!1,c.showError=!0,setTimeout(()=>c.showError=!1,3e3)}})()}isdEdcCompatible(){const c=this.productOfferForm.controls.prodSpec.value;return c&&c.externalId}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(o0.F),e.rXU(U2),e.rXU(p.ok))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-offer-form"]],inputs:{formType:"formType",offer:"offer",partyId:"partyId"},standalone:!0,features:[e.aNF],decls:6,vars:3,consts:[[1,"bg-secondary-50","dark:bg-secondary-100","border","border-secondary-50","dark:border-gray-800","mt-4","p-4","md:p-8","rounded-lg","w-full"],[1,"text-3xl","font-bold","text-primary-100","dark:text-white","pb-4"],["role","status",1,"w-full","h-full","flex","justify-center","align-middle"],[1,"flex","justify-center","items-center","fixed","w-fit","top-1/2","left-1/2","transform","-translate-x-1/2","-translate-y-1/2","z-50"],["aria-hidden","true","viewBox","0 0 100 101","fill","none","xmlns","http://www.w3.org/2000/svg",1,"w-12","h-12","text-gray-200","animate-spin","dark:text-gray-600","fill-secondary-400"],["d","M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z","fill","currentColor"],["d","M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z","fill","currentFill"],[1,"sr-only"],[3,"formGroup"],["data-cy","offerSteps",1,"flex","items-start","w-full","text-sm","font-medium","text-center","text-gray-500","dark:text-gray-400"],[1,"flex-1","cursor-pointer",3,"cursor-not-allowed","opacity-50","text-primary-100"],[1,"block","md:hidden","mt-2","text-center","text-2xl","text-primary-100","dark:text-white","pb-4"],[1,"flex","justify-end","mt-6","space-x-4"],["data-cy","offerPrevious",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","mr-2"],["fill","currentColor","d","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3\n 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"],["data-cy","offerNext",1,"px-4","py-2","flex","items-center","justify-center","text-base","font-medium","rounded-lg","text-gray-500","bg-white","border","border-gray-300","dark:bg-gray-800","dark:border-gray-700","dark:text-gray-400",3,"click","disabled","ngClass"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 320 512",1,"min-w-4","w-4","h-4","ml-2"],["fill","currentColor","d","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7\n 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"disabled","ngClass"],[1,"flex-1","cursor-pointer",3,"click"],[1,"flex","items-center","justify-center","w-8","h-8","md:w-10","md:h-10","mx-auto","border-2","border-primary-100","dark:border-primary-50","shrink-0","rounded-full"],[1,"md:block","mt-2","hidden"],[1,"md:p-8"],[3,"formChange","data","formType","form"],["formControlName","prodSpec",3,"formChange","data","partyId","formType"],["formControlName","catalogue",3,"partyId"],["formControlName","category",3,"formChange","data","formType"],[3,"formChange","form","prodSpec","custom"],[3,"productOfferForm"],["data-cy","offerFinish",1,"px-4","py-2","text-base","font-medium","text-white","rounded-lg","bg-primary-100",3,"click","disabled","ngClass"],["id","alert-additional-content-2","role","alert",1,"p-4","mb-4","text-red-800","border","border-red-300","rounded-lg","bg-red-50","dark:bg-red-900","dark:border-red-900","dark:text-white"],[1,"flex","items-center"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","currentColor","viewBox","0 0 20 20",1,"flex-shrink-0","w-4","h-4","me-2"],["d","M10 .5a9.5 9.5 0 1 0 9.5 9.5A9.51 9.51 0 0 0 10 .5ZM9.5 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3ZM12 15H8a1 1 0 0 1 0-2h1v-3H8a1 1 0 0 1 0-2h2a1 1 0 0 1 1 1v4h1a1 1 0 0 1 0 2Z"],[1,"text-lg","font-medium"],[1,"mt-2","mb-4","text-sm"]],template:function(t,l){1&t&&(e.j41(0,"div",0),e.DNE(1,Jy0,3,3,"h2",1)(2,Qy0,3,3)(3,Zy0,6,0,"div",2)(4,uF0,20,20),e.k0s(),e.DNE(5,mF0,9,1,"div",3)),2&t&&(e.R7$(),e.vxM(1,"update"===l.formType?1:2),e.R7$(2),e.vxM(3,l.loadingData?3:4),e.R7$(2),e.vxM(5,l.showError?5:-1))},dependencies:[Ly0,s1.h,s1.D9,qy0,p.X1,p.qT,p.BC,p.cb,p.j4,p.JD,ey0,zy0,ME1,Pb0,xE1,Py0,_.YU,oy0]})}}return n})();function pF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmCancel())}),e.EFF(1," Cancel "),e.k0s()}}function hF0(n,a){1&n&&(e.j41(0,"div",11),e.nrm(1,"div",12),e.k0s())}function gF0(n,a){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){const c=e.XpG();e.R7$(),e.SpI(" ",c.error," ")}}function _F0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27)(1,"div",28)(2,"div")(3,"label",29),e.EFF(4," Party ID "),e.k0s(),e.nrm(5,"input",30),e.k0s(),e.j41(6,"div")(7,"label",29),e.EFF(8," Party Type "),e.k0s(),e.nrm(9,"input",31),e.k0s()(),e.j41(10,"button",32),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeRelatedParty(l))}),e.EFF(11," Remove Party "),e.k0s()()}if(2&n){const c=a.index;e.Y8G("formGroupName",c),e.R7$(3),e.Y8G("for","partyId"+c),e.R7$(2),e.Y8G("id","partyId"+c),e.R7$(2),e.Y8G("for","partyType"+c),e.R7$(2),e.Y8G("id","partyType"+c)}}function LF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"div",27)(1,"div")(2,"label",29),e.EFF(3," State "),e.k0s(),e.j41(4,"select",33)(5,"option",34),e.EFF(6,"Select State"),e.k0s(),e.j41(7,"option",35),e.EFF(8,"Draft"),e.k0s(),e.j41(9,"option",36),e.EFF(10,"Pending"),e.k0s(),e.j41(11,"option",37),e.EFF(12,"Accepted"),e.k0s(),e.j41(13,"option",38),e.EFF(14,"Cancelled"),e.k0s()()(),e.j41(15,"button",32),e.bIt("click",function(){const l=e.eBV(c).index,i=e.XpG(2);return e.Njj(i.removeQuoteItem(l))}),e.EFF(16," Remove Item "),e.k0s()()}if(2&n){const c=a.index;e.Y8G("formGroupName",c),e.R7$(2),e.Y8G("for","itemState"+c),e.R7$(2),e.Y8G("id","itemState"+c)}}function CF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"form",14),e.bIt("ngSubmit",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.onSubmit())}),e.j41(1,"div",15)(2,"div")(3,"label",16),e.EFF(4," Description "),e.k0s(),e.j41(5,"div",17),e.nrm(6,"textarea",18),e.k0s()(),e.j41(7,"div")(8,"h3",19),e.EFF(9,"Related Parties"),e.k0s(),e.j41(10,"div",20),e.DNE(11,_F0,12,5,"div",21),e.k0s(),e.j41(12,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addRelatedParty())}),e.EFF(13," Add Related Party "),e.k0s()(),e.j41(14,"div")(15,"h3",19),e.EFF(16,"Quote Items"),e.k0s(),e.j41(17,"div",23),e.DNE(18,LF0,17,3,"div",21),e.k0s(),e.j41(19,"button",22),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.addQuoteItem())}),e.EFF(20," Add Quote Item "),e.k0s()(),e.j41(21,"div",24)(22,"button",25),e.bIt("click",function(){e.eBV(c);const l=e.XpG();return e.Njj(l.confirmCancel())}),e.EFF(23," Cancel "),e.k0s(),e.j41(24,"button",26),e.EFF(25),e.k0s()()()()}if(2&n){const c=e.XpG();e.Y8G("formGroup",c.quoteForm),e.R7$(11),e.Y8G("ngForOf",c.relatedPartyArray.controls),e.R7$(7),e.Y8G("ngForOf",c.quoteItemArray.controls),e.R7$(6),e.Y8G("disabled",c.quoteForm.invalid||c.isSubmitting),e.R7$(),e.SpI(" ",c.isSubmitting?"Saving...":"Save Quote"," ")}}let _f1=(()=>{class n{constructor(c,t,l,i,u){this.formBuilder=c,this.quoteService=t,this.router=l,this.route=i,this.notificationService=u,this.isEditMode=!1,this.isSubmitting=!1,this.isLoading=!1,this.error=null,this.showCancelConfirm=!1,this.quoteForm=this.formBuilder.group({description:[""],relatedParty:this.formBuilder.array([]),quoteItem:this.formBuilder.array([])})}ngOnInit(){const c=this.route.snapshot.paramMap.get("id");if(c){this.isEditMode=!0;const t=decodeURIComponent(c);this.loadQuote(t)}else this.addRelatedParty(),this.addQuoteItem()}get relatedPartyArray(){return this.quoteForm.get("relatedParty")}get quoteItemArray(){return this.quoteForm.get("quoteItem")}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:t=>{for(this.quoteForm.patchValue({description:t.description});this.relatedPartyArray.length;)this.relatedPartyArray.removeAt(0);for(;this.quoteItemArray.length;)this.quoteItemArray.removeAt(0);t.relatedParty?.forEach(l=>{this.relatedPartyArray.push(this.formBuilder.group({id:[l.id],"@type":[l["@type"]]}))}),t.quoteItem?.forEach(l=>{this.quoteItemArray.push(this.formBuilder.group({state:[l.state]}))}),this.isLoading=!1},error:t=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}addRelatedParty(){this.relatedPartyArray.push(this.formBuilder.group({id:[""],"@type":[""]}))}removeRelatedParty(c){this.relatedPartyArray.removeAt(c)}addQuoteItem(){this.quoteItemArray.push(this.formBuilder.group({state:[""]}))}removeQuoteItem(c){this.quoteItemArray.removeAt(c)}onSubmit(){if(this.quoteForm.invalid)return;this.isSubmitting=!0;const t={...this.quoteForm.value,quoteDate:(new Date).toISOString(),state:"draft"},l=this.route.snapshot.paramMap.get("id");(l?this.quoteService.updateQuote(decodeURIComponent(l),t):this.quoteService.createQuote(t)).subscribe({next:()=>{this.notificationService.showSuccess(`Quote ${this.isEditMode?"updated":"created"} successfully`),this.router.navigate(["/quotes"])},error:u=>{this.error=`Failed to ${this.isEditMode?"update":"create"} quote. Please try again.`,this.isSubmitting=!1,this.notificationService.showError(this.error)}})}confirmCancel(){this.quoteForm.dirty?this.showCancelConfirm=!0:this.cancel()}cancel(){this.router.navigate(["/quotes"])}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(p.ok),e.rXU(L3.K),e.rXU(E2.Ix),e.rXU(E2.nX),e.rXU(_4.J))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-form"]],standalone:!0,features:[e.aNF],decls:11,vars:6,consts:[[1,"container","mx-auto","px-4","py-8"],[1,"max-w-3xl","mx-auto"],[1,"bg-white","shadow-md","rounded-lg","p-6"],[1,"flex","justify-between","items-center","mb-6"],[1,"text-2xl","font-bold","text-gray-900"],["class","text-gray-600 hover:text-gray-900",3,"click",4,"ngIf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],[3,"formGroup","ngSubmit",4,"ngIf"],["title","Cancel Changes","message","Are you sure you want to cancel? Any unsaved changes will be lost.","confirmText","Yes, Cancel","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen"],[1,"text-gray-600","hover:text-gray-900",3,"click"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[3,"ngSubmit","formGroup"],[1,"space-y-6"],["for","description",1,"block","text-sm","font-medium","text-gray-700"],[1,"mt-1"],["id","description","formControlName","description","rows","3","placeholder","Enter quote description",1,"shadow-sm","focus:ring-blue-500","focus:border-blue-500","block","w-full","sm:text-sm","border-gray-300","rounded-md"],[1,"text-lg","font-medium","text-gray-900","mb-4"],["formArrayName","relatedParty"],["class","mb-4 p-4 bg-gray-50 rounded-md",3,"formGroupName",4,"ngFor","ngForOf"],["type","button",1,"mt-2","text-sm","text-blue-600","hover:text-blue-900",3,"click"],["formArrayName","quoteItem"],[1,"flex","justify-end","space-x-3"],["type","button",1,"bg-white","py-2","px-4","border","border-gray-300","rounded-md","shadow-sm","text-sm","font-medium","text-gray-700","hover:bg-gray-50","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500",3,"click"],["type","submit",1,"bg-blue-600","py-2","px-4","border","border-transparent","rounded-md","shadow-sm","text-sm","font-medium","text-white","hover:bg-blue-700","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-blue-500","disabled:opacity-50",3,"disabled"],[1,"mb-4","p-4","bg-gray-50","rounded-md",3,"formGroupName"],[1,"grid","grid-cols-2","gap-4"],[1,"block","text-sm","font-medium","text-gray-700",3,"for"],["type","text","formControlName","id",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["type","text","formControlName","@type",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["type","button",1,"mt-2","text-sm","text-red-600","hover:text-red-900",3,"click"],["formControlName","state",1,"mt-1","block","w-full","border-gray-300","rounded-md","shadow-sm","focus:ring-blue-500","focus:border-blue-500","sm:text-sm",3,"id"],["value",""],["value","draft"],["value","pending"],["value","accepted"],["value","cancelled"]],template:function(t,l){1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),e.EFF(5),e.k0s(),e.DNE(6,pF0,2,0,"button",5),e.k0s(),e.DNE(7,hF0,2,0,"div",6)(8,gF0,2,1,"div",7)(9,CF0,26,5,"form",8),e.k0s()()(),e.j41(10,"app-confirm-dialog",9),e.bIt("confirm",function(){return l.cancel()})("cancel",function(){return l.showCancelConfirm=!1}),e.k0s()),2&t&&(e.R7$(5),e.SpI(" ",l.isEditMode?"Edit Quote":"New Quote"," "),e.R7$(),e.Y8G("ngIf",l.isEditMode),e.R7$(),e.Y8G("ngIf",l.isLoading),e.R7$(),e.Y8G("ngIf",l.error),e.R7$(),e.Y8G("ngIf",!l.isLoading),e.R7$(),e.Y8G("isOpen",l.showCancelConfirm))},dependencies:[_.MD,_.Sq,_.bT,p.X1,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,p.$R,p.v8,q3.w],encapsulation:2})}}return n})();const zF0=[{path:"",component:e3},{path:"new",component:_f1},{path:":id/edit",component:_f1}],MF0=(n,a,c)=>({"px-2 inline-flex text-xs leading-5 font-semibold rounded-full":!0,"bg-green-100 text-green-800":n,"bg-red-100 text-red-800":a,"bg-blue-100 text-blue-800":c});function xF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",16),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.editQuote())}),e.EFF(1," Edit "),e.k0s()}}function bF0(n,a){if(1&n){const c=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(c);const l=e.XpG(2);return e.Njj(l.confirmDelete())}),e.EFF(1," Delete "),e.k0s()}}function yF0(n,a){1&n&&(e.j41(0,"div",18),e.nrm(1,"div",19),e.k0s())}function FF0(n,a){if(1&n&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&n){const c=e.XpG(2);e.R7$(),e.SpI(" ",c.error," ")}}function vF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"ID:"),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"div",31)(6,"span",32),e.EFF(7,"Type:"),e.k0s(),e.EFF(8),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.id||"-"," "),e.R7$(4),e.SpI(" ",c["@type"]||"-"," ")}}function kF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,vF0,9,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.relatedParty)}}function wF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No related parties"),e.k0s())}function SF0(n,a){if(1&n&&(e.j41(0,"div",21)(1,"div")(2,"h2",22),e.EFF(3,"Basic Information"),e.k0s(),e.j41(4,"dl",23)(5,"div")(6,"dt",24),e.EFF(7,"ID"),e.k0s(),e.j41(8,"dd",25),e.EFF(9),e.k0s()(),e.j41(10,"div")(11,"dt",24),e.EFF(12,"Description"),e.k0s(),e.j41(13,"dd",25),e.EFF(14),e.k0s()(),e.j41(15,"div")(16,"dt",24),e.EFF(17,"Date"),e.k0s(),e.j41(18,"dd",25),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div")(22,"dt",24),e.EFF(23,"Status"),e.k0s(),e.j41(24,"dd",26)(25,"span",27),e.EFF(26),e.k0s()()()()(),e.j41(27,"div")(28,"h2",22),e.EFF(29,"Related Parties"),e.k0s(),e.DNE(30,kF0,2,1,"div",28)(31,wF0,2,0,"ng-template",null,0,e.C5r),e.k0s()()),2&n){const c=e.sdS(32),t=e.XpG(2);e.R7$(9),e.JRh(t.quote.id),e.R7$(5),e.JRh(t.quote.description||"-"),e.R7$(5),e.JRh(e.i5U(20,7,t.quote.quoteDate,"dd/MM/yyyy")),e.R7$(6),e.Y8G("ngClass",e.sMw(10,MF0,!t.quoteService.isQuoteFinalized(t.quote),t.quoteService.isQuoteCancelled(t.quote),t.quoteService.isQuoteAccepted(t.quote))),e.R7$(),e.SpI(" ",t.getQuoteStatus()," "),e.R7$(4),e.Y8G("ngIf",null==t.quote.relatedParty?null:t.quote.relatedParty.length)("ngIfElse",c)}}function NF0(n,a){if(1&n&&(e.j41(0,"div",31)(1,"span",32),e.EFF(2,"Attachments:"),e.k0s(),e.EFF(3),e.k0s()),2&n){const c=e.XpG().$implicit;e.R7$(3),e.SpI(" ",c.attachment.length||0," ")}}function EF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"State:"),e.k0s(),e.EFF(4),e.k0s(),e.DNE(5,NF0,4,1,"div",35),e.k0s()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.state||"-"," "),e.R7$(),e.Y8G("ngIf",c.attachment&&c.attachment.length)}}function DF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,EF0,6,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.quoteItem)}}function TF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No items"),e.k0s())}function RF0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Quote Items"),e.k0s(),e.DNE(3,DF0,2,1,"div",28)(4,TF0,2,0,"ng-template",null,1,e.C5r),e.k0s()),2&n){const c=e.sdS(5),t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==t.quote.quoteItem?null:t.quote.quoteItem.length)("ngIfElse",c)}}function AF0(n,a){if(1&n&&(e.j41(0,"div",30)(1,"div",31)(2,"span",32),e.EFF(3,"Author:"),e.k0s(),e.EFF(4),e.k0s(),e.j41(5,"div",36),e.EFF(6),e.k0s()()),2&n){const c=a.$implicit;e.R7$(4),e.SpI(" ",c.author," "),e.R7$(2),e.SpI(" ",c.text," ")}}function IF0(n,a){if(1&n&&(e.j41(0,"div"),e.DNE(1,AF0,7,2,"div",29),e.k0s()),2&n){const c=e.XpG(3);e.R7$(),e.Y8G("ngForOf",c.quote.note)}}function PF0(n,a){1&n&&(e.j41(0,"p",33),e.EFF(1,"No notes"),e.k0s())}function jF0(n,a){if(1&n&&(e.j41(0,"div",34)(1,"h2",22),e.EFF(2,"Notes"),e.k0s(),e.DNE(3,IF0,2,1,"div",28)(4,PF0,2,0,"ng-template",null,2,e.C5r),e.k0s()),2&n){const c=e.sdS(5),t=e.XpG(2);e.R7$(3),e.Y8G("ngIf",null==t.quote.note?null:t.quote.note.length)("ngIfElse",c)}}function $F0(n,a){if(1&n&&(e.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h1",8),e.EFF(4,"Quote Details"),e.k0s(),e.j41(5,"div",9),e.DNE(6,xF0,2,0,"button",10)(7,bF0,2,0,"button",11),e.k0s()(),e.DNE(8,yF0,2,0,"div",12)(9,FF0,2,1,"div",13)(10,SF0,33,14,"div",14)(11,RF0,6,2,"div",15)(12,jF0,6,2,"div",15),e.k0s()()),2&n){const c=e.XpG();e.R7$(6),e.Y8G("ngIf",!c.quoteService.isQuoteFinalized(c.quote)),e.R7$(),e.Y8G("ngIf",!c.quoteService.isQuoteFinalized(c.quote)),e.R7$(),e.Y8G("ngIf",c.isLoading),e.R7$(),e.Y8G("ngIf",c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error),e.R7$(),e.Y8G("ngIf",!c.isLoading&&!c.error)}}let OF0=(()=>{class n{constructor(c,t,l,i){this.route=c,this.router=t,this.quoteService=l,this.notificationService=i,this.quote=null,this.isLoading=!1,this.error=null,this.showDeleteConfirm=!1,this.deleteConfirmMessage=""}ngOnInit(){const c=this.route.snapshot.paramMap.get("id");if(c){const t=decodeURIComponent(c);this.loadQuote(t)}}loadQuote(c){this.isLoading=!0,this.error=null,this.quoteService.getQuoteById(c).subscribe({next:t=>{this.quote=t,this.isLoading=!1},error:t=>{this.error="Failed to load quote. Please try again.",this.isLoading=!1,this.notificationService.showError(this.error)}})}getQuoteStatus(){return this.quote?this.quoteService.isQuoteCancelled(this.quote)?"Cancelled":this.quoteService.isQuoteAccepted(this.quote)?"Accepted":"Draft":""}editQuote(){this.quote&&this.router.navigate(["/quotes",encodeURIComponent(this.quote.id),"edit"])}confirmDelete(){this.quote&&(this.deleteConfirmMessage=`Are you sure you want to delete quote ${this.quote.id}? This action cannot be undone.`,this.showDeleteConfirm=!0)}deleteQuote(){this.quote?.id&&(this.quoteService.deleteQuote(this.quote.id).subscribe({next:()=>{this.notificationService.showSuccess("Quote deleted successfully"),this.router.navigate(["/quotes"])},error:c=>{this.notificationService.showError("Failed to delete quote. Please try again.")}}),this.showDeleteConfirm=!1)}static{this.\u0275fac=function(t){return new(t||n)(e.rXU(E2.nX),e.rXU(E2.Ix),e.rXU(L3.K),e.rXU(_4.J))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["app-quote-details"]],standalone:!0,features:[e.aNF],decls:2,vars:3,consts:[["noRelatedParties",""],["noItems",""],["noNotes",""],["class","container mx-auto px-4 py-8",4,"ngIf"],["title","Delete Quote","confirmText","Delete","confirmButtonClass","px-4 py-2 text-sm font-medium text-white bg-red-600 border border-transparent rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",3,"confirm","cancel","isOpen","message"],[1,"container","mx-auto","px-4","py-8"],[1,"bg-white","shadow-md","rounded-lg","p-6"],[1,"flex","justify-between","items-center","mb-6"],[1,"text-2xl","font-bold","text-gray-900"],[1,"flex","space-x-2"],["class","bg-indigo-600 text-white px-4 py-2 rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",3,"click",4,"ngIf"],["class","bg-red-600 text-white px-4 py-2 rounded-md hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2",3,"click",4,"ngIf"],["class","flex justify-center items-center py-8",4,"ngIf"],["class","bg-red-50 border border-red-200 text-red-700 px-4 py-3 rounded relative mb-4",4,"ngIf"],["class","grid grid-cols-2 gap-6",4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"bg-indigo-600","text-white","px-4","py-2","rounded-md","hover:bg-indigo-700","focus:outline-none","focus:ring-2","focus:ring-indigo-500","focus:ring-offset-2",3,"click"],[1,"bg-red-600","text-white","px-4","py-2","rounded-md","hover:bg-red-700","focus:outline-none","focus:ring-2","focus:ring-red-500","focus:ring-offset-2",3,"click"],[1,"flex","justify-center","items-center","py-8"],[1,"animate-spin","rounded-full","h-8","w-8","border-b-2","border-blue-600"],[1,"bg-red-50","border","border-red-200","text-red-700","px-4","py-3","rounded","relative","mb-4"],[1,"grid","grid-cols-2","gap-6"],[1,"text-lg","font-semibold","mb-4"],[1,"space-y-4"],[1,"text-sm","font-medium","text-gray-500"],[1,"mt-1","text-sm","text-gray-900"],[1,"mt-1"],[3,"ngClass"],[4,"ngIf","ngIfElse"],["class","mb-4 p-4 bg-gray-50 rounded-md",4,"ngFor","ngForOf"],[1,"mb-4","p-4","bg-gray-50","rounded-md"],[1,"text-sm"],[1,"font-medium"],[1,"text-gray-500"],[1,"mt-8"],["class","text-sm",4,"ngIf"],[1,"text-sm","mt-2"]],template:function(t,l){1&t&&(e.DNE(0,$F0,13,7,"div",3),e.j41(1,"app-confirm-dialog",4),e.bIt("confirm",function(){return l.deleteQuote()})("cancel",function(){return l.showDeleteConfirm=!1}),e.k0s()),2&t&&(e.Y8G("ngIf",l.quote),e.R7$(),e.Y8G("isOpen",l.showDeleteConfirm)("message",l.deleteConfirmMessage))},dependencies:[_.MD,_.YU,_.Sq,_.bT,_.vh,q3.w],encapsulation:2})}}return n})(),BF0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[_.MD,E2.iI.forChild(zF0),e3,OF0,_f1,Y4.z,q3.w]})}}return n})();function VF0(n,a){return new jz0(n,a)}let UF0=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=e.$C({type:n,bootstrap:[pa0]})}static{this.\u0275inj=e.G2t({providers:[zE1,{provide:e.hnV,useFactory:n0,deps:[zE1,V6,Iz0],multi:!0},{provide:g.a7,useClass:lf,multi:!0}],imports:[m.Bb,J2.dX,BL,oa0,J2.aY,p.YN,p.X1,T0,m6,Y4.z,BF0,i3.forRoot(),s1.h.forRoot({defaultLanguage:"en",loader:{provide:s1.Wr,useFactory:VF0,deps:[g.Qq,cF]}}),xG,P8.forRoot({mode:B.AUTO_DEFERRED}),Y0,HN1,cH,gf1,bE1,O8,me,rE1,Dw1,q3.w]})}}return n})();e.wjB(oE1,function(){return[bE1,Ha0,Yf0,kC0,l_0,Po0,Nf0,mC0,Gg0,gE1,Uh0,uL0,Az0,_E1,Ea0,mo0]},function(){return[s1.D9]}),e.wjB(gE1,function(){return[gf1,E0]},function(){return[s1.D9]}),e.wjB(_E1,function(){return[gf1,E0]},function(){return[s1.D9]}),m.sG().bootstrapModule(UF0).catch(n=>console.error(n))},4261:(y1,d1,y)=>{y1.exports={currencies:y(8184)}},1544:function(y1,d1,y){!function(m){"use strict";m.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,p,_){return e<12?_?"vm":"VM":_?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},2155:function(y1,d1,y){!function(m){"use strict";var g=function(A){return 0===A?0:1===A?1:2===A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5},e={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},p=function(A){return function($,Z,K,p1){var Y=g($),h1=e[A][g($)];return 2===Y&&(h1=h1[Z?0:1]),h1.replace(/%d/i,$)}},_=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar-dz",{months:_,monthsShort:_,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(A){return"\u0645"===A},meridiem:function(A,$,Z){return A<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:p("s"),ss:p("s"),m:p("m"),mm:p("m"),h:p("h"),hh:p("h"),d:p("d"),dd:p("d"),M:p("M"),MM:p("M"),y:p("y"),yy:p("y")},postformat:function(A){return A.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(y(7586))},3583:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(y(7586))},1638:function(y1,d1,y){!function(m){"use strict";var g={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},e=function($){return 0===$?0:1===$?1:2===$?2:$%100>=3&&$%100<=10?3:$%100>=11?4:5},p={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},_=function($){return function(Z,K,p1,Y){var h1=e(Z),e1=p[$][e(Z)];return 2===h1&&(e1=e1[K?0:1]),e1.replace(/%d/i,Z)}},S=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar-ly",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function($){return"\u0645"===$},meridiem:function($,Z,K){return $<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:_("s"),ss:_("s"),m:_("m"),mm:_("m"),h:_("h"),hh:_("h"),d:_("d"),dd:_("d"),M:_("M"),MM:_("M"),y:_("y"),yy:_("y")},preparse:function($){return $.replace(/\u060c/g,",")},postformat:function($){return $.replace(/\d/g,function(Z){return g[Z]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},7823:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(y(7586))},7712:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};m.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(_){return _.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(S){return e[S]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(y(7586))},8261:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};m.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(_){return"\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(_){return _.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(y(7586))},6703:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(y(7586))},3108:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},p=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},_={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(K,p1,Y,h1){var e1=p(K),r1=_[Z][p(K)];return 2===e1&&(r1=r1[p1?0:1]),r1.replace(/%d/i,K)}},A=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];m.defineLocale("ar",{months:A,monthsShort:A,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,K,p1){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(K){return e[K]}).replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(K){return g[K]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},6508:function(y1,d1,y){!function(m){"use strict";var g={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};m.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(p){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(p)},meridiem:function(p,_,S){return p<4?"gec\u0259":p<12?"s\u0259h\u0259r":p<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(p){if(0===p)return p+"-\u0131nc\u0131";var _=p%10;return p+(g[_]||g[p%100-_]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},6766:function(y1,d1,y){!function(m){"use strict";function e(_,S,A){return"m"===A?S?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===A?S?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":_+" "+function g(_,S){var A=_.split("_");return S%10==1&&S%100!=11?A[0]:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?A[1]:A[2]}({ss:S?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:S?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:S?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[A],+_)}m.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(_){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(_)},meridiem:function(_,S,A){return _<4?"\u043d\u043e\u0447\u044b":_<12?"\u0440\u0430\u043d\u0456\u0446\u044b":_<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(_,S){switch(S){case"M":case"d":case"DDD":case"w":case"W":return _%10!=2&&_%10!=3||_%100==12||_%100==13?_+"-\u044b":_+"-\u0456";case"D":return _+"-\u0433\u0430";default:return _}},week:{dow:1,doy:7}})}(y(7586))},8564:function(y1,d1,y){!function(m){"use strict";m.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var p=e%10,_=e%100;return 0===e?e+"-\u0435\u0432":0===_?e+"-\u0435\u043d":_>10&&_<20?e+"-\u0442\u0438":1===p?e+"-\u0432\u0438":2===p?e+"-\u0440\u0438":7===p||8===p?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(y(7586))},7462:function(y1,d1,y){!function(m){"use strict";m.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(y(7586))},3438:function(y1,d1,y){!function(m){"use strict";var g={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},e={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};m.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===S?_<4?_:_+12:"\u09ad\u09cb\u09b0"===S||"\u09b8\u0995\u09be\u09b2"===S?_:"\u09a6\u09c1\u09aa\u09c1\u09b0"===S?_>=3?_:_+12:"\u09ac\u09bf\u0995\u09be\u09b2"===S||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u09b0\u09be\u09a4":_<6?"\u09ad\u09cb\u09b0":_<12?"\u09b8\u0995\u09be\u09b2":_<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<18?"\u09ac\u09bf\u0995\u09be\u09b2":_<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(y(7586))},7107:function(y1,d1,y){!function(m){"use strict";var g={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},e={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};m.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(_){return _.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u09b0\u09be\u09a4"===S&&_>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===S&&_<5||"\u09ac\u09bf\u0995\u09be\u09b2"===S?_+12:_},meridiem:function(_,S,A){return _<4?"\u09b0\u09be\u09a4":_<10?"\u09b8\u0995\u09be\u09b2":_<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":_<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(y(7586))},9004:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},e={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};m.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(_){return _.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===S&&_>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===S&&_<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===S?_+12:_},meridiem:function(_,S,A){return _<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":_<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":_<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":_<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(y(7586))},927:function(y1,d1,y){!function(m){"use strict";function g(r1,M1,f1){return r1+" "+function _(r1,M1){return 2===M1?function S(r1){var M1={m:"v",b:"v",d:"z"};return void 0===M1[r1.charAt(0)]?r1:M1[r1.charAt(0)]+r1.substring(1)}(r1):r1}({mm:"munutenn",MM:"miz",dd:"devezh"}[f1],r1)}function p(r1){return r1>9?p(r1%10):r1}var A=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],$=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,h1=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];m.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h1,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:h1,monthsRegex:$,monthsShortRegex:$,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:A,longMonthsParse:A,shortMonthsParse:A,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:g,h:"un eur",hh:"%d eur",d:"un devezh",dd:g,M:"ur miz",MM:g,y:"ur bloaz",yy:function e(r1){switch(p(r1)){case 1:case 3:case 4:case 5:case 9:return r1+" bloaz";default:return r1+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(r1){return r1+(1===r1?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(r1){return"g.m."===r1},meridiem:function(r1,M1,f1){return r1<12?"a.m.":"g.m."}})}(y(7586))},7768:function(y1,d1,y){!function(m){"use strict";function e(_,S,A){var $=_+" ";switch(A){case"ss":return $+(1===_?"sekunda":2===_||3===_||4===_?"sekunde":"sekundi");case"mm":return $+(1===_?"minuta":2===_||3===_||4===_?"minute":"minuta");case"h":return"jedan sat";case"hh":return $+(1===_?"sat":2===_||3===_||4===_?"sata":"sati");case"dd":return $+(1===_?"dan":"dana");case"MM":return $+(1===_?"mjesec":2===_||3===_||4===_?"mjeseca":"mjeseci");case"yy":return $+(1===_?"godina":2===_||3===_||4===_?"godine":"godina")}}m.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:function g(_,S,A,$){if("m"===A)return S?"jedna minuta":$?"jednu minutu":"jedne minute"},mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},6291:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,p){var _=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(_="a"),e+_},week:{dow:1,doy:4}})}(y(7586))},5301:function(y1,d1,y){!function(m){"use strict";var g={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},e="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),p=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],_=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function S(Z){return Z>1&&Z<5&&1!=~~(Z/10)}function A(Z,K,p1,Y){var h1=Z+" ";switch(p1){case"s":return K||Y?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return K||Y?h1+(S(Z)?"sekundy":"sekund"):h1+"sekundami";case"m":return K?"minuta":Y?"minutu":"minutou";case"mm":return K||Y?h1+(S(Z)?"minuty":"minut"):h1+"minutami";case"h":return K?"hodina":Y?"hodinu":"hodinou";case"hh":return K||Y?h1+(S(Z)?"hodiny":"hodin"):h1+"hodinami";case"d":return K||Y?"den":"dnem";case"dd":return K||Y?h1+(S(Z)?"dny":"dn\xed"):h1+"dny";case"M":return K||Y?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return K||Y?h1+(S(Z)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):h1+"m\u011bs\xedci";case"y":return K||Y?"rok":"rokem";case"yy":return K||Y?h1+(S(Z)?"roky":"let"):h1+"lety"}}m.defineLocale("cs",{months:g,monthsShort:e,monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:A,ss:A,m:A,mm:A,h:A,hh:A,d:A,dd:A,M:A,MM:A,y:A,yy:A},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6666:function(y1,d1,y){!function(m){"use strict";m.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(y(7586))},5163:function(y1,d1,y){!function(m){"use strict";m.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var _="";return e>20?_=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(_=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+_},week:{dow:1,doy:4}})}(y(7586))},7360:function(y1,d1,y){!function(m){"use strict";m.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3248:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3222:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5932:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[p+" Tage",p+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[p+" Monate",p+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[p+" Jahre",p+" Jahren"]};return _?$[S][0]:$[S][1]}m.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:g,mm:"%d Minuten",h:g,hh:"%d Stunden",d:g,dd:g,w:g,ww:"%d Wochen",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6405:function(y1,d1,y){!function(m){"use strict";var g=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],e=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];m.defineLocale("dv",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(_){return"\u0789\u078a"===_},meridiem:function(_,S,A){return _<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(y(7586))},718:function(y1,d1,y){!function(m){"use strict";m.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(p,_){return p?"string"==typeof _&&/D/.test(_.substring(0,_.indexOf("MMMM")))?this._monthsGenitiveEl[p.month()]:this._monthsNominativeEl[p.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(p,_,S){return p>11?S?"\u03bc\u03bc":"\u039c\u039c":S?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(p){return"\u03bc"===(p+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(p,_){var S=this._calendarEl[p],A=_&&_.hours();return function g(p){return typeof Function<"u"&&p instanceof Function||"[object Function]"===Object.prototype.toString.call(p)}(S)&&(S=S.apply(_)),S.replace("{}",A%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(y(7586))},6319:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:0,doy:4}})}(y(7586))},597:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")}})}(y(7586))},1800:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},807:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},5960:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")}})}(y(7586))},4418:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:0,doy:6}})}(y(7586))},6865:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},2647:function(y1,d1,y){!function(m){"use strict";m.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},1931:function(y1,d1,y){!function(m){"use strict";m.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,p,_){return e>11?_?"p.t.m.":"P.T.M.":_?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(y(7586))},1805:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},3445:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(y(7586))},1516:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(y(7586))},6679:function(y1,d1,y){!function(m){"use strict";var g="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),e="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),p=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],_=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;m.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(y(7586))},8150:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[p+"sekundi",p+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[p+" minuti",p+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[p+" tunni",p+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[p+" kuu",p+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[p+" aasta",p+" aastat"]};return _?$[S][2]?$[S][2]:$[S][1]:A?$[S][0]:$[S][1]}m.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:"%d p\xe4eva",M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},757:function(y1,d1,y){!function(m){"use strict";m.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5742:function(y1,d1,y){!function(m){"use strict";var g={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},e={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};m.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(_){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(_)},meridiem:function(_,S,A){return _<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/[\u06f0-\u06f9]/g,function(S){return e[S]}).replace(/\u060c/g,",")},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(y(7586))},3958:function(y1,d1,y){!function(m){"use strict";var g="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),e=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",g[7],g[8],g[9]];function p(A,$,Z,K){var p1="";switch(Z){case"s":return K?"muutaman sekunnin":"muutama sekunti";case"ss":p1=K?"sekunnin":"sekuntia";break;case"m":return K?"minuutin":"minuutti";case"mm":p1=K?"minuutin":"minuuttia";break;case"h":return K?"tunnin":"tunti";case"hh":p1=K?"tunnin":"tuntia";break;case"d":return K?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":p1=K?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return K?"kuukauden":"kuukausi";case"MM":p1=K?"kuukauden":"kuukautta";break;case"y":return K?"vuoden":"vuosi";case"yy":p1=K?"vuoden":"vuotta"}return function _(A,$){return A<10?$?e[A]:g[A]:A}(A,K)+" "+p1}m.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6720:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},8352:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2096:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,p){switch(p){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(y(7586))},5759:function(y1,d1,y){!function(m){"use strict";m.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,p){switch(p){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(y(7586))},4059:function(y1,d1,y){!function(m){"use strict";var p=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,_=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];m.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:p,monthsShortRegex:p,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:_,longMonthsParse:_,shortMonthsParse:_,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(A,$){switch($){case"D":return A+(1===A?"er":"");default:case"M":case"Q":case"DDD":case"d":return A+(1===A?"er":"e");case"w":case"W":return A+(1===A?"re":"e")}},week:{dow:1,doy:4}})}(y(7586))},5958:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),e="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");m.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(_,S){return _?/-MMM-/.test(S)?e[_.month()]:g[_.month()]:g},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(_){return _+(1===_||8===_||_>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},4143:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function($){return $+(1===$?"d":$%10==2?"na":"mh")},week:{dow:1,doy:4}})}(y(7586))},7028:function(y1,d1,y){!function(m){"use strict";m.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function($){return $+(1===$?"d":$%10==2?"na":"mh")},week:{dow:1,doy:4}})}(y(7586))},428:function(y1,d1,y){!function(m){"use strict";m.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},6861:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[p+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",p+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[p+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",p+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[p+" \u0935\u0930\u093e\u0902\u0928\u0940",p+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[p+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",p+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[p+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",p+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[p+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",p+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return A?$[S][0]:$[S][1]}m.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(p,_){return"D"===_?p+"\u0935\u0947\u0930":p},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(p,_){return 12===p&&(p=0),"\u0930\u093e\u0924\u0940"===_?p<4?p:p+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===_?p:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===_?p>12?p:p+12:"\u0938\u093e\u0902\u091c\u0947"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"\u0930\u093e\u0924\u0940":p<12?"\u0938\u0915\u093e\u0933\u0940\u0902":p<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":p<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(y(7586))},7718:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $={s:["thoddea sekondamni","thodde sekond"],ss:[p+" sekondamni",p+" sekond"],m:["eka mintan","ek minut"],mm:[p+" mintamni",p+" mintam"],h:["eka voran","ek vor"],hh:[p+" voramni",p+" voram"],d:["eka disan","ek dis"],dd:[p+" disamni",p+" dis"],M:["eka mhoinean","ek mhoino"],MM:[p+" mhoineamni",p+" mhoine"],y:["eka vorsan","ek voros"],yy:[p+" vorsamni",p+" vorsam"]};return A?$[S][0]:$[S][1]}m.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(p,_){return"D"===_?p+"er":p},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(p,_){return 12===p&&(p=0),"rati"===_?p<4?p:p+12:"sokallim"===_?p:"donparam"===_?p>12?p:p+12:"sanje"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"rati":p<12?"sokallim":p<16?"donparam":p<20?"sanje":"rati"}})}(y(7586))},6827:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},e={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};m.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(_){return _.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0ab0\u0abe\u0aa4"===S?_<4?_:_+12:"\u0ab8\u0ab5\u0abe\u0ab0"===S?_:"\u0aac\u0aaa\u0acb\u0ab0"===S?_>=10?_:_+12:"\u0ab8\u0abe\u0a82\u0a9c"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0ab0\u0abe\u0aa4":_<10?"\u0ab8\u0ab5\u0abe\u0ab0":_<17?"\u0aac\u0aaa\u0acb\u0ab0":_<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(y(7586))},1936:function(y1,d1,y){!function(m){"use strict";m.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,p,_){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?_?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?_?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(y(7586))},1332:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},p=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];m.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:p,longMonthsParse:p,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(A){return A.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function($){return e[$]})},postformat:function(A){return A.replace(/\d/g,function($){return g[$]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(A,$){return 12===A&&(A=0),"\u0930\u093e\u0924"===$?A<4?A:A+12:"\u0938\u0941\u092c\u0939"===$?A:"\u0926\u094b\u092a\u0939\u0930"===$?A>=10?A:A+12:"\u0936\u093e\u092e"===$?A+12:void 0},meridiem:function(A,$,Z){return A<4?"\u0930\u093e\u0924":A<10?"\u0938\u0941\u092c\u0939":A<17?"\u0926\u094b\u092a\u0939\u0930":A<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(y(7586))},1957:function(y1,d1,y){!function(m){"use strict";function g(p,_,S){var A=p+" ";switch(S){case"ss":return A+(1===p?"sekunda":2===p||3===p||4===p?"sekunde":"sekundi");case"m":return _?"jedna minuta":"jedne minute";case"mm":return A+(1===p?"minuta":2===p||3===p||4===p?"minute":"minuta");case"h":return _?"jedan sat":"jednog sata";case"hh":return A+(1===p?"sat":2===p||3===p||4===p?"sata":"sati");case"dd":return A+(1===p?"dan":"dana");case"MM":return A+(1===p?"mjesec":2===p||3===p||4===p?"mjeseca":"mjeseci");case"yy":return A+(1===p?"godina":2===p||3===p||4===p?"godine":"godina")}}m.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:g,m:g,mm:g,h:g,hh:g,d:"dan",dd:g,M:"mjesec",MM:g,y:"godinu",yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},8928:function(y1,d1,y){!function(m){"use strict";var g="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function e(S,A,$,Z){var K=S;switch($){case"s":return Z||A?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return K+(Z||A)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(Z||A?" perc":" perce");case"mm":return K+(Z||A?" perc":" perce");case"h":return"egy"+(Z||A?" \xf3ra":" \xf3r\xe1ja");case"hh":return K+(Z||A?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(Z||A?" nap":" napja");case"dd":return K+(Z||A?" nap":" napja");case"M":return"egy"+(Z||A?" h\xf3nap":" h\xf3napja");case"MM":return K+(Z||A?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(Z||A?" \xe9v":" \xe9ve");case"yy":return K+(Z||A?" \xe9v":" \xe9ve")}return""}function p(S){return(S?"":"[m\xfalt] ")+"["+g[this.day()]+"] LT[-kor]"}m.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(S){return"u"===S.charAt(1).toLowerCase()},meridiem:function(S,A,$){return S<12?!0===$?"de":"DE":!0===$?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return p.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return p.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},6215:function(y1,d1,y){!function(m){"use strict";m.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,p){switch(p){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(y(7586))},586:function(y1,d1,y){!function(m){"use strict";m.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"siang"===p?e>=11?e:e+12:"sore"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(y(7586))},211:function(y1,d1,y){!function(m){"use strict";function g(_){return _%100==11||_%10!=1}function e(_,S,A,$){var Z=_+" ";switch(A){case"s":return S||$?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return g(_)?Z+(S||$?"sek\xfandur":"sek\xfandum"):Z+"sek\xfanda";case"m":return S?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return g(_)?Z+(S||$?"m\xedn\xfatur":"m\xedn\xfatum"):S?Z+"m\xedn\xfata":Z+"m\xedn\xfatu";case"hh":return g(_)?Z+(S||$?"klukkustundir":"klukkustundum"):Z+"klukkustund";case"d":return S?"dagur":$?"dag":"degi";case"dd":return g(_)?S?Z+"dagar":Z+($?"daga":"d\xf6gum"):S?Z+"dagur":Z+($?"dag":"degi");case"M":return S?"m\xe1nu\xf0ur":$?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return g(_)?S?Z+"m\xe1nu\xf0ir":Z+($?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):S?Z+"m\xe1nu\xf0ur":Z+($?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return S||$?"\xe1r":"\xe1ri";case"yy":return g(_)?Z+(S||$?"\xe1r":"\xe1rum"):Z+(S||$?"\xe1r":"\xe1ri")}}m.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:e,ss:e,m:e,mm:e,h:"klukkustund",hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2340:function(y1,d1,y){!function(m){"use strict";m.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},170:function(y1,d1,y){!function(m){"use strict";m.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},9770:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,p){return"\u5143"===p[1]?1:parseInt(p[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,p,_){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,p){switch(p){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(y(7586))},3875:function(y1,d1,y){!function(m){"use strict";m.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,p){return 12===e&&(e=0),"enjing"===p?e:"siyang"===p?e>=11?e:e+12:"sonten"===p||"ndalu"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(y(7586))},9499:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(p,_,S){return"\u10d8"===S?_+"\u10e8\u10d8":_+S+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(y(7586))},3573:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};m.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},8807:function(y1,d1,y){!function(m){"use strict";var g={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},e={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};m.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(_){return"\u179b\u17d2\u1784\u17b6\u1785"===_},meridiem:function(_,S,A){return _<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(_){return _.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(y(7586))},5082:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},e={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};m.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(_){return _.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===S?_<4?_:_+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===S?_:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===S?_>=10?_:_+12:"\u0cb8\u0c82\u0c9c\u0cc6"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":_<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":_<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":_<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(_){return _+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(y(7586))},137:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,p,_){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(y(7586))},3744:function(y1,d1,y){!function(m){"use strict";function g(_,S,A,$){var Z={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[_+" san\xeeye",_+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[_+" deq\xeeqe",_+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[_+" saet",_+" saetan"],d:["rojek","rojek\xea"],dd:[_+" roj",_+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[_+" hefte",_+" hefteyan"],M:["mehek","mehek\xea"],MM:[_+" meh",_+" mehan"],y:["salek","salek\xea"],yy:[_+" sal",_+" salan"]};return S?Z[A][0]:Z[A][1]}m.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(_,S,A){return _<12?A?"bn":"BN":A?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"ber\xee %s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,w:g,ww:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(_,S){var A=S.toLowerCase();return A.includes("w")||A.includes("m")?_+".":_+function e(_){var S=(_=""+_).substring(_.length-1),A=_.length>1?_.substring(_.length-2):"";return 12==A||13==A||"2"!=S&&"3"!=S&&"50"!=A&&"70"!=S&&"80"!=S?"\xea":"y\xea"}(_)},week:{dow:1,doy:4}})}(y(7586))},111:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},e={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},p=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];m.defineLocale("ku",{months:p,monthsShort:p,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(S){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(S)},meridiem:function(S,A,$){return S<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(A){return e[A]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(A){return g[A]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(y(7586))},9187:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};m.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},5969:function(y1,d1,y){!function(m){"use strict";function g(A,$,Z,K){var p1={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return $?p1[Z][0]:p1[Z][1]}function _(A){if(A=parseInt(A,10),isNaN(A))return!1;if(A<0)return!0;if(A<10)return 4<=A&&A<=7;if(A<100){var $=A%10;return _(0===$?A/10:$)}if(A<1e4){for(;A>=10;)A/=10;return _(A)}return _(A/=1e3)}m.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function e(A){return _(A.substr(0,A.indexOf(" ")))?"a "+A:"an "+A},past:function p(A){return _(A.substr(0,A.indexOf(" ")))?"viru "+A:"virun "+A},s:"e puer Sekonnen",ss:"%d Sekonnen",m:g,mm:"%d Minutten",h:g,hh:"%d Stonnen",d:g,dd:"%d Deeg",M:g,MM:"%d M\xe9int",y:g,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3526:function(y1,d1,y){!function(m){"use strict";m.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,p,_){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(y(7586))},411:function(y1,d1,y){!function(m){"use strict";var g={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function p(Z,K,p1,Y){return K?S(p1)[0]:Y?S(p1)[1]:S(p1)[2]}function _(Z){return Z%10==0||Z>10&&Z<20}function S(Z){return g[Z].split("_")}function A(Z,K,p1,Y){var h1=Z+" ";return 1===Z?h1+p(0,K,p1[0],Y):K?h1+(_(Z)?S(p1)[1]:S(p1)[0]):Y?h1+S(p1)[1]:h1+(_(Z)?S(p1)[1]:S(p1)[2])}m.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function e(Z,K,p1,Y){return K?"kelios sekund\u0117s":Y?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:A,m:p,mm:A,h:p,hh:A,d:p,dd:A,M:p,MM:A,y:p,yy:A},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(Z){return Z+"-oji"},week:{dow:1,doy:4}})}(y(7586))},2621:function(y1,d1,y){!function(m){"use strict";var g={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function e($,Z,K){return K?Z%10==1&&Z%100!=11?$[2]:$[3]:Z%10==1&&Z%100!=11?$[0]:$[1]}function p($,Z,K){return $+" "+e(g[K],$,Z)}function _($,Z,K){return e(g[K],$,Z)}m.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function S($,Z){return Z?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:p,m:_,mm:p,h:_,hh:p,d:_,dd:p,M:_,MM:p,y:_,yy:p},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5869:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(p,_){return 1===p?_[0]:p>=2&&p<=4?_[1]:_[2]},translate:function(p,_,S){var A=g.words[S];return 1===S.length?_?A[0]:A[1]:p+" "+g.correctGrammaticalCase(p,A)}};m.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:"dan",dd:g.translate,M:"mjesec",MM:g.translate,y:"godinu",yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5881:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},2391:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var p=e%10,_=e%100;return 0===e?e+"-\u0435\u0432":0===_?e+"-\u0435\u043d":_>10&&_<20?e+"-\u0442\u0438":1===p?e+"-\u0432\u0438":2===p?e+"-\u0440\u0438":7===p||8===p?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(y(7586))},1126:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,p){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===p&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===p||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===p?e+12:e},meridiem:function(e,p,_){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(y(7586))},4892:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){switch(S){case"s":return _?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return p+(_?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return p+(_?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return p+(_?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return p+(_?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return p+(_?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return p+(_?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return p}}m.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(p){return"\u04ae\u0425"===p},meridiem:function(p,_,S){return p<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(p,_){switch(_){case"d":case"D":case"DDD":return p+" \u04e9\u0434\u04e9\u0440";default:return p}}})}(y(7586))},9080:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function p(S,A,$,Z){var K="";if(A)switch($){case"s":K="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":K="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":K="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":K="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":K="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":K="%d \u0924\u093e\u0938";break;case"d":K="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":K="%d \u0926\u093f\u0935\u0938";break;case"M":K="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":K="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":K="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":K="%d \u0935\u0930\u094d\u0937\u0947"}else switch($){case"s":K="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":K="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":K="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":K="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":K="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":K="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":K="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":K="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":K="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":K="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":K="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":K="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return K.replace(/%d/i,S)}m.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:p,ss:p,m:p,mm:p,h:p,hh:p,d:p,dd:p,M:p,MM:p,y:p,yy:p},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(A){return e[A]})},postformat:function(S){return S.replace(/\d/g,function(A){return g[A]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(S,A){return 12===S&&(S=0),"\u092a\u0939\u093e\u091f\u0947"===A||"\u0938\u0915\u093e\u0933\u0940"===A?S:"\u0926\u0941\u092a\u093e\u0930\u0940"===A||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===A||"\u0930\u093e\u0924\u094d\u0930\u0940"===A?S>=12?S:S+12:void 0},meridiem:function(S,A,$){return S>=0&&S<6?"\u092a\u0939\u093e\u091f\u0947":S<12?"\u0938\u0915\u093e\u0933\u0940":S<17?"\u0926\u0941\u092a\u093e\u0930\u0940":S<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(y(7586))},5950:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"tengahari"===p?e>=11?e:e+12:"petang"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(y(7586))},399:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,p){return 12===e&&(e=0),"pagi"===p?e:"tengahari"===p?e>=11?e:e+12:"petang"===p||"malam"===p?e+12:void 0},meridiem:function(e,p,_){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(y(7586))},9902:function(y1,d1,y){!function(m){"use strict";m.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},2985:function(y1,d1,y){!function(m){"use strict";var g={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},e={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};m.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(_){return _.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},week:{dow:1,doy:4}})}(y(7586))},7859:function(y1,d1,y){!function(m){"use strict";m.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3642:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},e={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};m.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(_){return _.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0930\u093e\u0924\u093f"===S?_<4?_:_+12:"\u092c\u093f\u0939\u093e\u0928"===S?_:"\u0926\u093f\u0909\u0901\u0938\u094b"===S?_>=10?_:_+12:"\u0938\u093e\u0901\u091d"===S?_+12:void 0},meridiem:function(_,S,A){return _<3?"\u0930\u093e\u0924\u093f":_<12?"\u092c\u093f\u0939\u093e\u0928":_<16?"\u0926\u093f\u0909\u0901\u0938\u094b":_<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(y(7586))},9875:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),p=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;m.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},5441:function(y1,d1,y){!function(m){"use strict";var g="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),e="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),p=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],_=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;m.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(A,$){return A?/-MMM-/.test($)?e[A.month()]:g[A.month()]:g},monthsRegex:_,monthsShortRegex:_,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(A){return A+(1===A||8===A||A>=20?"ste":"de")},week:{dow:1,doy:4}})}(y(7586))},1311:function(y1,d1,y){!function(m){"use strict";m.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2567:function(y1,d1,y){!function(m){"use strict";m.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,p){var _=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return("w"===p||"W"===p)&&(_="a"),e+_},week:{dow:1,doy:4}})}(y(7586))},6962:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},e={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};m.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(_){return _.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(_,S){return 12===_&&(_=0),"\u0a30\u0a3e\u0a24"===S?_<4?_:_+12:"\u0a38\u0a35\u0a47\u0a30"===S?_:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===S?_>=10?_:_+12:"\u0a38\u0a3c\u0a3e\u0a2e"===S?_+12:void 0},meridiem:function(_,S,A){return _<4?"\u0a30\u0a3e\u0a24":_<10?"\u0a38\u0a35\u0a47\u0a30":_<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":_<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(y(7586))},1063:function(y1,d1,y){!function(m){"use strict";var g="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),e="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),p=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function _($){return $%10<5&&$%10>1&&~~($/10)%10!=1}function S($,Z,K){var p1=$+" ";switch(K){case"ss":return p1+(_($)?"sekundy":"sekund");case"m":return Z?"minuta":"minut\u0119";case"mm":return p1+(_($)?"minuty":"minut");case"h":return Z?"godzina":"godzin\u0119";case"hh":return p1+(_($)?"godziny":"godzin");case"ww":return p1+(_($)?"tygodnie":"tygodni");case"MM":return p1+(_($)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return p1+(_($)?"lata":"lat")}}m.defineLocale("pl",{months:function($,Z){return $?/D MMMM/.test(Z)?e[$.month()]:g[$.month()]:g},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:p,longMonthsParse:p,shortMonthsParse:p,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:S,m:S,mm:S,h:S,hh:S,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:S,M:"miesi\u0105c",MM:S,y:"rok",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},7476:function(y1,d1,y){!function(m){"use strict";m.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(y(7586))},8719:function(y1,d1,y){!function(m){"use strict";m.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(y(7586))},1004:function(y1,d1,y){!function(m){"use strict";function g(p,_,S){var $=" ";return(p%100>=20||p>=100&&p%100==0)&&($=" de "),p+$+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[S]}m.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:g,m:"un minut",mm:g,h:"o or\u0103",hh:g,d:"o zi",dd:g,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:g,M:"o lun\u0103",MM:g,y:"un an",yy:g},week:{dow:1,doy:7}})}(y(7586))},1326:function(y1,d1,y){!function(m){"use strict";function e(S,A,$){return"m"===$?A?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":S+" "+function g(S,A){var $=S.split("_");return A%10==1&&A%100!=11?$[0]:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?$[1]:$[2]}({ss:A?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:A?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[$],+S)}var p=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];m.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:p,longMonthsParse:p,shortMonthsParse:p,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(S){if(S.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(S){if(S.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0447\u0430\u0441",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(S)},meridiem:function(S,A,$){return S<4?"\u043d\u043e\u0447\u0438":S<12?"\u0443\u0442\u0440\u0430":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(S,A){switch(A){case"M":case"d":case"DDD":return S+"-\u0439";case"D":return S+"-\u0433\u043e";case"w":case"W":return S+"-\u044f";default:return S}},week:{dow:1,doy:4}})}(y(7586))},2608:function(y1,d1,y){!function(m){"use strict";var g=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],e=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];m.defineLocale("sd",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:e,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(y(7586))},3911:function(y1,d1,y){!function(m){"use strict";m.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},5147:function(y1,d1,y){!function(m){"use strict";m.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,p,_){return e>11?_?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":_?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(y(7586))},3741:function(y1,d1,y){!function(m){"use strict";var g="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),e="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function p(A){return A>1&&A<5}function _(A,$,Z,K){var p1=A+" ";switch(Z){case"s":return $||K?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return $||K?p1+(p(A)?"sekundy":"sek\xfand"):p1+"sekundami";case"m":return $?"min\xfata":K?"min\xfatu":"min\xfatou";case"mm":return $||K?p1+(p(A)?"min\xfaty":"min\xfat"):p1+"min\xfatami";case"h":return $?"hodina":K?"hodinu":"hodinou";case"hh":return $||K?p1+(p(A)?"hodiny":"hod\xedn"):p1+"hodinami";case"d":return $||K?"de\u0148":"d\u0148om";case"dd":return $||K?p1+(p(A)?"dni":"dn\xed"):p1+"d\u0148ami";case"M":return $||K?"mesiac":"mesiacom";case"MM":return $||K?p1+(p(A)?"mesiace":"mesiacov"):p1+"mesiacmi";case"y":return $||K?"rok":"rokom";case"yy":return $||K?p1+(p(A)?"roky":"rokov"):p1+"rokmi"}}m.defineLocale("sk",{months:g,monthsShort:e,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:_,ss:_,m:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},3e3:function(y1,d1,y){!function(m){"use strict";function g(p,_,S,A){var $=p+" ";switch(S){case"s":return _||A?"nekaj sekund":"nekaj sekundami";case"ss":return $+(1===p?_?"sekundo":"sekundi":2===p?_||A?"sekundi":"sekundah":p<5?_||A?"sekunde":"sekundah":"sekund");case"m":return _?"ena minuta":"eno minuto";case"mm":return $+(1===p?_?"minuta":"minuto":2===p?_||A?"minuti":"minutama":p<5?_||A?"minute":"minutami":_||A?"minut":"minutami");case"h":return _?"ena ura":"eno uro";case"hh":return $+(1===p?_?"ura":"uro":2===p?_||A?"uri":"urama":p<5?_||A?"ure":"urami":_||A?"ur":"urami");case"d":return _||A?"en dan":"enim dnem";case"dd":return $+(1===p?_||A?"dan":"dnem":2===p?_||A?"dni":"dnevoma":_||A?"dni":"dnevi");case"M":return _||A?"en mesec":"enim mesecem";case"MM":return $+(1===p?_||A?"mesec":"mesecem":2===p?_||A?"meseca":"mesecema":p<5?_||A?"mesece":"meseci":_||A?"mesecev":"meseci");case"y":return _||A?"eno leto":"enim letom";case"yy":return $+(1===p?_||A?"leto":"letom":2===p?_||A?"leti":"letoma":p<5?_||A?"leta":"leti":_||A?"let":"leti")}}m.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:g,ss:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},451:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,p,_){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},905:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(p,_){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?_[0]:_[1]:_[2]},translate:function(p,_,S,A){var Z,$=g.words[S];return 1===S.length?"y"===S&&_?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":A||_?$[0]:$[1]:(Z=g.correctGrammaticalCase(p,$),"yy"===S&&_&&"\u0433\u043e\u0434\u0438\u043d\u0443"===Z?p+" \u0433\u043e\u0434\u0438\u043d\u0430":p+" "+Z)}};m.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:g.translate,dd:g.translate,M:g.translate,MM:g.translate,y:g.translate,yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5046:function(y1,d1,y){!function(m){"use strict";var g={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(p,_){return p%10>=1&&p%10<=4&&(p%100<10||p%100>=20)?p%10==1?_[0]:_[1]:_[2]},translate:function(p,_,S,A){var Z,$=g.words[S];return 1===S.length?"y"===S&&_?"jedna godina":A||_?$[0]:$[1]:(Z=g.correctGrammaticalCase(p,$),"yy"===S&&_&&"godinu"===Z?p+" godina":p+" "+Z)}};m.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:g.translate,m:g.translate,mm:g.translate,h:g.translate,hh:g.translate,d:g.translate,dd:g.translate,M:g.translate,MM:g.translate,y:g.translate,yy:g.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(y(7586))},5765:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,p,_){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,p){return 12===e&&(e=0),"ekuseni"===p?e:"emini"===p?e>=11?e:e+12:"entsambama"===p||"ebusuku"===p?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(y(7586))},9290:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?":e":1===p||2===p?":a":":e")},week:{dow:1,doy:4}})}(y(7586))},5830:function(y1,d1,y){!function(m){"use strict";m.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(y(7586))},2688:function(y1,d1,y){!function(m){"use strict";var g={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},e={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};m.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(_){return _+"\u0bb5\u0ba4\u0bc1"},preparse:function(_){return _.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(S){return e[S]})},postformat:function(_){return _.replace(/\d/g,function(S){return g[S]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(_,S,A){return _<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":_<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":_<10?" \u0b95\u0bbe\u0bb2\u0bc8":_<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":_<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":_<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(_,S){return 12===_&&(_=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===S?_<2?_:_+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===S||"\u0b95\u0bbe\u0bb2\u0bc8"===S||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===S&&_>=10?_:_+12},week:{dow:0,doy:6}})}(y(7586))},2060:function(y1,d1,y){!function(m){"use strict";m.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===p?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===p?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===p?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===p?e+12:void 0},meridiem:function(e,p,_){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(y(7586))},3290:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},8294:function(y1,d1,y){!function(m){"use strict";var g={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};m.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(p,_){return 12===p&&(p=0),"\u0448\u0430\u0431"===_?p<4?p:p+12:"\u0441\u0443\u0431\u04b3"===_?p:"\u0440\u04ef\u0437"===_?p>=11?p:p+12:"\u0431\u0435\u0433\u043e\u04b3"===_?p+12:void 0},meridiem:function(p,_,S){return p<4?"\u0448\u0430\u0431":p<11?"\u0441\u0443\u0431\u04b3":p<16?"\u0440\u04ef\u0437":p<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(p){return p+(g[p]||g[p%10]||g[p>=100?100:null])},week:{dow:1,doy:7}})}(y(7586))},1231:function(y1,d1,y){!function(m){"use strict";m.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,p,_){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(y(7586))},3746:function(y1,d1,y){!function(m){"use strict";var g={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};m.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(p,_){switch(_){case"d":case"D":case"Do":case"DD":return p;default:if(0===p)return p+"'unjy";var S=p%10;return p+(g[S]||g[p%100-S]||g[p>=100?100:null])}},week:{dow:1,doy:7}})}(y(7586))},9040:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},7187:function(y1,d1,y){!function(m){"use strict";var g="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function _($,Z,K,p1){var Y=function S($){var Z=Math.floor($%1e3/100),K=Math.floor($%100/10),p1=$%10,Y="";return Z>0&&(Y+=g[Z]+"vatlh"),K>0&&(Y+=(""!==Y?" ":"")+g[K]+"maH"),p1>0&&(Y+=(""!==Y?" ":"")+g[p1]),""===Y?"pagh":Y}($);switch(K){case"ss":return Y+" lup";case"mm":return Y+" tup";case"hh":return Y+" rep";case"dd":return Y+" jaj";case"MM":return Y+" jar";case"yy":return Y+" DIS"}}m.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function e($){var Z=$;return-1!==$.indexOf("jaj")?Z.slice(0,-3)+"leS":-1!==$.indexOf("jar")?Z.slice(0,-3)+"waQ":-1!==$.indexOf("DIS")?Z.slice(0,-3)+"nem":Z+" pIq"},past:function p($){var Z=$;return-1!==$.indexOf("jaj")?Z.slice(0,-3)+"Hu\u2019":-1!==$.indexOf("jar")?Z.slice(0,-3)+"wen":-1!==$.indexOf("DIS")?Z.slice(0,-3)+"ben":Z+" ret"},s:"puS lup",ss:_,m:"wa\u2019 tup",mm:_,h:"wa\u2019 rep",hh:_,d:"wa\u2019 jaj",dd:_,M:"wa\u2019 jar",MM:_,y:"wa\u2019 DIS",yy:_},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},153:function(y1,d1,y){!function(m){"use strict";var g={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};m.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(p,_,S){return p<12?S?"\xf6\xf6":"\xd6\xd6":S?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(p){return"\xf6s"===p||"\xd6S"===p},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(p,_){switch(_){case"d":case"D":case"Do":case"DD":return p;default:if(0===p)return p+"'\u0131nc\u0131";var S=p%10;return p+(g[S]||g[p%100-S]||g[p>=100?100:null])}},week:{dow:1,doy:7}})}(y(7586))},8521:function(y1,d1,y){!function(m){"use strict";function e(p,_,S,A){var $={s:["viensas secunds","'iensas secunds"],ss:[p+" secunds",p+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[p+" m\xeduts",p+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[p+" \xfeoras",p+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[p+" ziuas",p+" ziuas"],M:["'n mes","'iens mes"],MM:[p+" mesen",p+" mesen"],y:["'n ar","'iens ar"],yy:[p+" ars",p+" ars"]};return A||_?$[S][0]:$[S][1]}m.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(p){return"d'o"===p.toLowerCase()},meridiem:function(p,_,S){return p>11?S?"d'o":"D'O":S?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(y(7586))},2234:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(y(7586))},8010:function(y1,d1,y){!function(m){"use strict";m.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(y(7586))},3349:function(y1,d1,y){!function(m){"use strict";m.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===p||"\u0633\u06d5\u06be\u06d5\u0631"===p||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===p?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===p||"\u0643\u06d5\u0686"===p?e+12:e>=11?e:e+12},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":S<900?"\u0633\u06d5\u06be\u06d5\u0631":S<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":S<1230?"\u0686\u06c8\u0634":S<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(y(7586))},8479:function(y1,d1,y){!function(m){"use strict";function e(A,$,Z){return"m"===Z?$?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===Z?$?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":A+" "+function g(A,$){var Z=A.split("_");return $%10==1&&$%100!=11?Z[0]:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?Z[1]:Z[2]}({ss:$?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:$?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:$?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[Z],+A)}function _(A){return function(){return A+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}m.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function p(A,$){var Z={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===A?Z.nominative.slice(1,7).concat(Z.nominative.slice(0,1)):A?Z[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test($)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test($)?"genitive":"nominative"][A.day()]:Z.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:_("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:_("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:_("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:_("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return _("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:e,y:"\u0440\u0456\u043a",yy:e},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(A){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(A)},meridiem:function(A,$,Z){return A<4?"\u043d\u043e\u0447\u0456":A<12?"\u0440\u0430\u043d\u043a\u0443":A<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(A,$){switch($){case"M":case"d":case"DDD":case"w":case"W":return A+"-\u0439";case"D":return A+"-\u0433\u043e";default:return A}},week:{dow:1,doy:7}})}(y(7586))},3024:function(y1,d1,y){!function(m){"use strict";var g=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],e=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];m.defineLocale("ur",{months:g,monthsShort:g,weekdays:e,weekdaysShort:e,weekdaysMin:e,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(_){return"\u0634\u0627\u0645"===_},meridiem:function(_,S,A){return _<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(_){return _.replace(/\u060c/g,",")},postformat:function(_){return _.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(y(7586))},2376:function(y1,d1,y){!function(m){"use strict";m.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(y(7586))},9800:function(y1,d1,y){!function(m){"use strict";m.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(y(7586))},9366:function(y1,d1,y){!function(m){"use strict";m.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,p,_){return e<12?_?"sa":"SA":_?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(y(7586))},9702:function(y1,d1,y){!function(m){"use strict";m.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var p=e%10;return e+(1==~~(e%100/10)?"th":1===p?"st":2===p?"nd":3===p?"rd":"th")},week:{dow:1,doy:4}})}(y(7586))},2655:function(y1,d1,y){!function(m){"use strict";m.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(y(7586))},575:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:e>=11?e:e+12},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(y(7586))},8351:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1200?"\u4e0a\u5348":1200===S?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},9245:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},8887:function(y1,d1,y){!function(m){"use strict";m.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,p){return 12===e&&(e=0),"\u51cc\u6668"===p||"\u65e9\u4e0a"===p||"\u4e0a\u5348"===p?e:"\u4e2d\u5348"===p?e>=11?e:e+12:"\u4e0b\u5348"===p||"\u665a\u4e0a"===p?e+12:void 0},meridiem:function(e,p,_){var S=100*e+p;return S<600?"\u51cc\u6668":S<900?"\u65e9\u4e0a":S<1130?"\u4e0a\u5348":S<1230?"\u4e2d\u5348":S<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,p){switch(p){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(y(7586))},7586:function(y1,d1,y){(y1=y.nmd(y1)).exports=function(){"use strict";var m,M1;function g(){return m.apply(null,arguments)}function p(L){return L instanceof Array||"[object Array]"===Object.prototype.toString.call(L)}function _(L){return null!=L&&"[object Object]"===Object.prototype.toString.call(L)}function S(L,F){return Object.prototype.hasOwnProperty.call(L,F)}function A(L){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(L).length;var F;for(F in L)if(S(L,F))return!1;return!0}function $(L){return void 0===L}function Z(L){return"number"==typeof L||"[object Number]"===Object.prototype.toString.call(L)}function K(L){return L instanceof Date||"[object Date]"===Object.prototype.toString.call(L)}function p1(L,F){var O,I=[],l1=L.length;for(O=0;O>>0;for(O=0;O0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,F-O.length)).toString().substr(1)+O}var e2=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E1={},j1={};function A1(L,F,I,O){var l1=O;"string"==typeof O&&(l1=function(){return this[O]()}),L&&(j1[L]=l1),F&&(j1[F[0]]=function(){return v1(l1.apply(this,arguments),F[1],F[2])}),I&&(j1[I]=function(){return this.localeData().ordinal(l1.apply(this,arguments),L)})}function H1(L){return L.match(/\[[\s\S]/)?L.replace(/^\[|\]$/g,""):L.replace(/\\/g,"")}function K1(L,F){return L.isValid()?(F=Q(F,L.localeData()),E1[F]=E1[F]||function P1(L){var I,O,F=L.match(e2);for(I=0,O=F.length;I=0&&C2.test(L);)L=L.replace(C2,O),C2.lastIndex=0,I-=1;return L}var N4={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function m4(L){return"string"==typeof L?N4[L]||N4[L.toLowerCase()]:void 0}function B3(L){var I,O,F={};for(O in L)S(L,O)&&(I=m4(O))&&(F[I]=L[O]);return F}var t3={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var s1,q4=/\d/,c0=/\d\d/,f0=/\d{3}/,X4=/\d{4}/,T4=/[+-]?\d{6}/,Y2=/\d\d?/,n3=/\d\d\d\d?/,y4=/\d\d\d\d\d\d?/,H4=/\d{1,3}/,u0=/\d{1,4}/,$4=/[+-]?\d{1,6}/,L0=/\d+/,S0=/[+-]?\d+/,l3=/Z|[+-]\d\d:?\d\d/gi,T0=/Z|[+-]\d\d(?::?\d\d)?/gi,s3=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,F3=/^[1-9]\d?/,J2=/^([1-9]\d|\d)/;function x1(L,F,I){s1[L]=v2(F)?F:function(O,l1){return O&&I?I:F}}function m1(L,F){return S(s1,L)?s1[L](F._strict,F._locale):new RegExp(function D1(L){return Z1(L.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(F,I,O,l1,R1){return I||O||l1||R1}))}(L))}function Z1(L){return L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function F2(L){return L<0?Math.ceil(L)||0:Math.floor(L)}function b2(L){var F=+L,I=0;return 0!==F&&isFinite(F)&&(I=F2(F)),I}s1={};var U0={};function m0(L,F){var I,l1,O=F;for("string"==typeof L&&(L=[L]),Z(F)&&(O=function(R1,n2){n2[F]=b2(R1)}),l1=L.length,I=0;I68?1900:2e3)};var o1,z0=Y4("FullYear",!0);function Y4(L,F){return function(I){return null!=I?(E3(this,L,I),g.updateOffset(this,F),this):C1(this,L)}}function C1(L,F){if(!L.isValid())return NaN;var I=L._d,O=L._isUTC;switch(F){case"Milliseconds":return O?I.getUTCMilliseconds():I.getMilliseconds();case"Seconds":return O?I.getUTCSeconds():I.getSeconds();case"Minutes":return O?I.getUTCMinutes():I.getMinutes();case"Hours":return O?I.getUTCHours():I.getHours();case"Date":return O?I.getUTCDate():I.getDate();case"Day":return O?I.getUTCDay():I.getDay();case"Month":return O?I.getUTCMonth():I.getMonth();case"FullYear":return O?I.getUTCFullYear():I.getFullYear();default:return NaN}}function E3(L,F,I){var O,l1,R1,n2,Z2;if(L.isValid()&&!isNaN(I)){switch(O=L._d,l1=L._isUTC,F){case"Milliseconds":return void(l1?O.setUTCMilliseconds(I):O.setMilliseconds(I));case"Seconds":return void(l1?O.setUTCSeconds(I):O.setSeconds(I));case"Minutes":return void(l1?O.setUTCMinutes(I):O.setMinutes(I));case"Hours":return void(l1?O.setUTCHours(I):O.setHours(I));case"Date":return void(l1?O.setUTCDate(I):O.setDate(I));case"FullYear":break;default:return}R1=I,n2=L.month(),Z2=29!==(Z2=L.date())||1!==n2||z4(R1)?Z2:28,l1?O.setUTCFullYear(R1,n2,Z2):O.setFullYear(R1,n2,Z2)}}function b1(L,F){if(isNaN(L)||isNaN(F))return NaN;var I=function D6(L,F){return(L%F+F)%F}(F,12);return L+=(F-I)/12,1===I?z4(L)?29:28:31-I%7%2}o1=Array.prototype.indexOf?Array.prototype.indexOf:function(L){var F;for(F=0;F=0?(Z2=new Date(L+400,F,I,O,l1,R1,n2),isFinite(Z2.getFullYear())&&Z2.setFullYear(L)):Z2=new Date(L,F,I,O,l1,R1,n2),Z2}function W4(L){var F,I;return L<100&&L>=0?((I=Array.prototype.slice.call(arguments))[0]=L+400,F=new Date(Date.UTC.apply(null,I)),isFinite(F.getUTCFullYear())&&F.setUTCFullYear(L)):F=new Date(Date.UTC.apply(null,arguments)),F}function d4(L,F,I){var O=7+F-I;return-(7+W4(L,0,O).getUTCDay()-F)%7+O-1}function c4(L,F,I,O,l1){var $0,s4,Z2=1+7*(F-1)+(7+I-O)%7+d4(L,O,l1);return Z2<=0?s4=R4($0=L-1)+Z2:Z2>R4(L)?($0=L+1,s4=Z2-R4(L)):($0=L,s4=Z2),{year:$0,dayOfYear:s4}}function I4(L,F,I){var R1,n2,O=d4(L.year(),F,I),l1=Math.floor((L.dayOfYear()-O-1)/7)+1;return l1<1?R1=l1+U4(n2=L.year()-1,F,I):l1>U4(L.year(),F,I)?(R1=l1-U4(L.year(),F,I),n2=L.year()+1):(n2=L.year(),R1=l1),{week:R1,year:n2}}function U4(L,F,I){var O=d4(L,F,I),l1=d4(L+1,F,I);return(R4(L)-O+l1)/7}A1("w",["ww",2],"wo","week"),A1("W",["WW",2],"Wo","isoWeek"),x1("w",Y2,F3),x1("ww",Y2,c0),x1("W",Y2,F3),x1("WW",Y2,c0),t4(["w","ww","W","WW"],function(L,F,I,O){F[O.substr(0,1)]=b2(L)});function b0(L,F){return L.slice(F,7).concat(L.slice(0,F))}A1("d",0,"do","day"),A1("dd",0,0,function(L){return this.localeData().weekdaysMin(this,L)}),A1("ddd",0,0,function(L){return this.localeData().weekdaysShort(this,L)}),A1("dddd",0,0,function(L){return this.localeData().weekdays(this,L)}),A1("e",0,0,"weekday"),A1("E",0,0,"isoWeekday"),x1("d",Y2),x1("e",Y2),x1("E",Y2),x1("dd",function(L,F){return F.weekdaysMinRegex(L)}),x1("ddd",function(L,F){return F.weekdaysShortRegex(L)}),x1("dddd",function(L,F){return F.weekdaysRegex(L)}),t4(["dd","ddd","dddd"],function(L,F,I,O){var l1=I._locale.weekdaysParse(L,O,I._strict);null!=l1?F.d=l1:r1(I).invalidWeekday=L}),t4(["d","e","E"],function(L,F,I,O){F[O]=b2(L)});var y6="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Q2="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),g2="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),h3=s3,J4=s3,R6=s3;function n6(L,F,I){var O,l1,R1,n2=L.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],O=0;O<7;++O)R1=h1([2e3,1]).day(O),this._minWeekdaysParse[O]=this.weekdaysMin(R1,"").toLocaleLowerCase(),this._shortWeekdaysParse[O]=this.weekdaysShort(R1,"").toLocaleLowerCase(),this._weekdaysParse[O]=this.weekdays(R1,"").toLocaleLowerCase();return I?"dddd"===F?-1!==(l1=o1.call(this._weekdaysParse,n2))?l1:null:"ddd"===F?-1!==(l1=o1.call(this._shortWeekdaysParse,n2))?l1:null:-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:"dddd"===F?-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._shortWeekdaysParse,n2))||-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:"ddd"===F?-1!==(l1=o1.call(this._shortWeekdaysParse,n2))||-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._minWeekdaysParse,n2))?l1:null:-1!==(l1=o1.call(this._minWeekdaysParse,n2))||-1!==(l1=o1.call(this._weekdaysParse,n2))||-1!==(l1=o1.call(this._shortWeekdaysParse,n2))?l1:null}function k4(){function L(Q1,O0){return O0.length-Q1.length}var R1,n2,Z2,$0,s4,F=[],I=[],O=[],l1=[];for(R1=0;R1<7;R1++)n2=h1([2e3,1]).day(R1),Z2=Z1(this.weekdaysMin(n2,"")),$0=Z1(this.weekdaysShort(n2,"")),s4=Z1(this.weekdays(n2,"")),F.push(Z2),I.push($0),O.push(s4),l1.push(Z2),l1.push($0),l1.push(s4);F.sort(L),I.sort(L),O.sort(L),l1.sort(L),this._weekdaysRegex=new RegExp("^("+l1.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+F.join("|")+")","i")}function V3(){return this.hours()%12||12}function g3(L,F){A1(L,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),F)})}function T3(L,F){return F._meridiemParse}A1("H",["HH",2],0,"hour"),A1("h",["hh",2],0,V3),A1("k",["kk",2],0,function p0(){return this.hours()||24}),A1("hmm",0,0,function(){return""+V3.apply(this)+v1(this.minutes(),2)}),A1("hmmss",0,0,function(){return""+V3.apply(this)+v1(this.minutes(),2)+v1(this.seconds(),2)}),A1("Hmm",0,0,function(){return""+this.hours()+v1(this.minutes(),2)}),A1("Hmmss",0,0,function(){return""+this.hours()+v1(this.minutes(),2)+v1(this.seconds(),2)}),g3("a",!0),g3("A",!1),x1("a",T3),x1("A",T3),x1("H",Y2,J2),x1("h",Y2,F3),x1("k",Y2,F3),x1("HH",Y2,c0),x1("hh",Y2,c0),x1("kk",Y2,c0),x1("hmm",n3),x1("hmmss",y4),x1("Hmm",n3),x1("Hmmss",y4),m0(["H","HH"],C0),m0(["k","kk"],function(L,F,I){var O=b2(L);F[C0]=24===O?0:O}),m0(["a","A"],function(L,F,I){I._isPm=I._locale.isPM(L),I._meridiem=L}),m0(["h","hh"],function(L,F,I){F[C0]=b2(L),r1(I).bigHour=!0}),m0("hmm",function(L,F,I){var O=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O)),r1(I).bigHour=!0}),m0("hmmss",function(L,F,I){var O=L.length-4,l1=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O,2)),F[p4]=b2(L.substr(l1)),r1(I).bigHour=!0}),m0("Hmm",function(L,F,I){var O=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O))}),m0("Hmmss",function(L,F,I){var O=L.length-4,l1=L.length-2;F[C0]=b2(L.substr(0,O)),F[B2]=b2(L.substr(O,2)),F[p4]=b2(L.substr(l1))});var Q6=Y4("Hours",!0);var G3,d3={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:F1,monthsShort:J1,week:{dow:0,doy:6},weekdays:y6,weekdaysMin:g2,weekdaysShort:Q2,meridiemParse:/[ap]\.?m?\.?/i},G0={},l6={};function he(L,F){var I,O=Math.min(L.length,F.length);for(I=0;I0;){if(l1=Q4(R1.slice(0,I).join("-")))return l1;if(O&&O.length>=I&&he(R1,O)>=I-1)break;I--}F++}return G3}(L)}function e8(L){var F,I=L._a;return I&&-2===r1(L).overflow&&(F=I[F4]<0||I[F4]>11?F4:I[I2]<1||I[I2]>b1(I[r4],I[F4])?I2:I[C0]<0||I[C0]>24||24===I[C0]&&(0!==I[B2]||0!==I[p4]||0!==I[M4])?C0:I[B2]<0||I[B2]>59?B2:I[p4]<0||I[p4]>59?p4:I[M4]<0||I[M4]>999?M4:-1,r1(L)._overflowDayOfYear&&(FI2)&&(F=I2),r1(L)._overflowWeeks&&-1===F&&(F=u6),r1(L)._overflowWeekday&&-1===F&&(F=c6),r1(L).overflow=F),L}var c8=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,i3=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,s6=/Z|[+-]\d\d(?::?\d\d)?/,x4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],P6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],a6=/^\/?Date\((-?\d+)/i,u3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,H0={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function m3(L){var F,I,R1,n2,Z2,$0,O=L._i,l1=c8.exec(O)||i3.exec(O),s4=x4.length,Q1=P6.length;if(l1){for(r1(L).iso=!0,F=0,I=s4;F7)&&($0=!0)):(R1=L._locale._week.dow,n2=L._locale._week.doy,s4=I4(h4(),R1,n2),I=o6(F.gg,L._a[r4],s4.year),O=o6(F.w,s4.week),null!=F.d?((l1=F.d)<0||l1>6)&&($0=!0):null!=F.e?(l1=F.e+R1,(F.e<0||F.e>6)&&($0=!0)):l1=R1),O<1||O>U4(I,R1,n2)?r1(L)._overflowWeeks=!0:null!=$0?r1(L)._overflowWeekday=!0:(Z2=c4(I,O,l1,R1,n2),L._a[r4]=Z2.year,L._dayOfYear=Z2.dayOfYear)}(L),null!=L._dayOfYear&&(n2=o6(L._a[r4],l1[r4]),(L._dayOfYear>R4(n2)||0===L._dayOfYear)&&(r1(L)._overflowDayOfYear=!0),I=W4(n2,0,L._dayOfYear),L._a[F4]=I.getUTCMonth(),L._a[I2]=I.getUTCDate()),F=0;F<3&&null==L._a[F];++F)L._a[F]=O[F]=l1[F];for(;F<7;F++)L._a[F]=O[F]=null==L._a[F]?2===F?1:0:L._a[F];24===L._a[C0]&&0===L._a[B2]&&0===L._a[p4]&&0===L._a[M4]&&(L._nextDay=!0,L._a[C0]=0),L._d=(L._useUTC?W4:A4).apply(null,O),R1=L._useUTC?L._d.getUTCDay():L._d.getDay(),null!=L._tzm&&L._d.setUTCMinutes(L._d.getUTCMinutes()-L._tzm),L._nextDay&&(L._a[C0]=24),L._w&&typeof L._w.d<"u"&&L._w.d!==R1&&(r1(L).weekdayMismatch=!0)}}function t1(L){if(L._f!==g.ISO_8601)if(L._f!==g.RFC_2822){L._a=[],r1(L).empty=!0;var I,O,l1,R1,n2,s4,Q1,F=""+L._i,Z2=F.length,$0=0;for(Q1=(l1=Q(L._f,L._locale).match(e2)||[]).length,I=0;I0&&r1(L).unusedInput.push(n2),F=F.slice(F.indexOf(O)+O.length),$0+=O.length),j1[R1]?(O?r1(L).empty=!1:r1(L).unusedTokens.push(R1),N3(R1,O,L)):L._strict&&!O&&r1(L).unusedTokens.push(R1);r1(L).charsLeftOver=Z2-$0,F.length>0&&r1(L).unusedInput.push(F),L._a[C0]<=12&&!0===r1(L).bigHour&&L._a[C0]>0&&(r1(L).bigHour=void 0),r1(L).parsedDateParts=L._a.slice(0),r1(L).meridiem=L._meridiem,L._a[C0]=function w1(L,F,I){var O;return null==I?F:null!=L.meridiemHour?L.meridiemHour(F,I):(null!=L.isPM&&((O=L.isPM(I))&&F<12&&(F+=12),!O&&12===F&&(F=0)),F)}(L._locale,L._a[C0],L._meridiem),null!==(s4=r1(L).era)&&(L._a[r4]=L._locale.erasConvertYear(s4,L._a[r4])),G(L),e8(L)}else Z4(L);else m3(L)}function A3(L){var F=L._i,I=L._f;return L._locale=L._locale||N0(L._l),null===F||void 0===I&&""===F?$1({nullInput:!0}):("string"==typeof F&&(L._i=F=L._locale.preparse(F)),O1(F)?new G1(e8(F)):(K(F)?L._d=F:p(I)?function V2(L){var F,I,O,l1,R1,n2,Z2=!1,$0=L._f.length;if(0===$0)return r1(L).invalidFormat=!0,void(L._d=new Date(NaN));for(l1=0;l1<$0;l1++)R1=0,n2=!1,F=c2({},L),null!=L._useUTC&&(F._useUTC=L._useUTC),F._f=L._f[l1],t1(F),f1(F)&&(n2=!0),R1+=r1(F).charsLeftOver,R1+=10*r1(F).unusedTokens.length,r1(F).score=R1,Z2?R1this?this:L:$1()});function i4(L,F){var I,O;if(1===F.length&&p(F[0])&&(F=F[0]),!F.length)return h4();for(I=F[0],O=1;O=0?new Date(L+400,F,I)-n1:new Date(L,F,I).valueOf()}function k1(L,F,I){return L<100&&L>=0?Date.UTC(L+400,F,I)-n1:Date.UTC(L,F,I)}function I0(L,F){return F.erasAbbrRegex(L)}function ye(){var l1,R1,n2,Z2,$0,L=[],F=[],I=[],O=[],s4=this.eras();for(l1=0,R1=s4.length;l1(R1=U4(L,O,l1))&&(F=R1),$2.call(this,L,F,I,O,l1))}function $2(L,F,I,O,l1){var R1=c4(L,F,I,O,l1),n2=W4(R1.year,0,R1.dayOfYear);return this.year(n2.getUTCFullYear()),this.month(n2.getUTCMonth()),this.date(n2.getUTCDate()),this}A1("N",0,0,"eraAbbr"),A1("NN",0,0,"eraAbbr"),A1("NNN",0,0,"eraAbbr"),A1("NNNN",0,0,"eraName"),A1("NNNNN",0,0,"eraNarrow"),A1("y",["y",1],"yo","eraYear"),A1("y",["yy",2],0,"eraYear"),A1("y",["yyy",3],0,"eraYear"),A1("y",["yyyy",4],0,"eraYear"),x1("N",I0),x1("NN",I0),x1("NNN",I0),x1("NNNN",function Ue(L,F){return F.erasNameRegex(L)}),x1("NNNNN",function be(L,F){return F.erasNarrowRegex(L)}),m0(["N","NN","NNN","NNNN","NNNNN"],function(L,F,I,O){var l1=I._locale.erasParse(L,O,I._strict);l1?r1(I).era=l1:r1(I).invalidEra=L}),x1("y",L0),x1("yy",L0),x1("yyy",L0),x1("yyyy",L0),x1("yo",function v8(L,F){return F._eraYearOrdinalRegex||L0}),m0(["y","yy","yyy","yyyy"],r4),m0(["yo"],function(L,F,I,O){var l1;I._locale._eraYearOrdinalRegex&&(l1=L.match(I._locale._eraYearOrdinalRegex)),F[r4]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(L,l1):parseInt(L,10)}),A1(0,["gg",2],0,function(){return this.weekYear()%100}),A1(0,["GG",2],0,function(){return this.isoWeekYear()%100}),k8("gggg","weekYear"),k8("ggggg","weekYear"),k8("GGGG","isoWeekYear"),k8("GGGGG","isoWeekYear"),x1("G",S0),x1("g",S0),x1("GG",Y2,c0),x1("gg",Y2,c0),x1("GGGG",u0,X4),x1("gggg",u0,X4),x1("GGGGG",$4,T4),x1("ggggg",$4,T4),t4(["gggg","ggggg","GGGG","GGGGG"],function(L,F,I,O){F[O.substr(0,2)]=b2(L)}),t4(["gg","GG"],function(L,F,I,O){F[O]=g.parseTwoDigitYear(L)}),A1("Q",0,"Qo","quarter"),x1("Q",q4),m0("Q",function(L,F){F[F4]=3*(b2(L)-1)}),A1("D",["DD",2],"Do","date"),x1("D",Y2,F3),x1("DD",Y2,c0),x1("Do",function(L,F){return L?F._dayOfMonthOrdinalParse||F._ordinalParse:F._dayOfMonthOrdinalParseLenient}),m0(["D","DD"],I2),m0("Do",function(L,F){F[I2]=b2(L.match(Y2)[0])});var W3=Y4("Date",!0);A1("DDD",["DDDD",3],"DDDo","dayOfYear"),x1("DDD",H4),x1("DDDD",f0),m0(["DDD","DDDD"],function(L,F,I){I._dayOfYear=b2(L)}),A1("m",["mm",2],0,"minute"),x1("m",Y2,J2),x1("mm",Y2,c0),m0(["m","mm"],B2);var r5=Y4("Minutes",!1);A1("s",["ss",2],0,"second"),x1("s",Y2,J2),x1("ss",Y2,c0),m0(["s","ss"],p4);var ee,P5,gc=Y4("Seconds",!1);for(A1("S",0,0,function(){return~~(this.millisecond()/100)}),A1(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),A1(0,["SSS",3],0,"millisecond"),A1(0,["SSSS",4],0,function(){return 10*this.millisecond()}),A1(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),A1(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),A1(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),A1(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),A1(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x1("S",H4,q4),x1("SS",H4,c0),x1("SSS",H4,f0),ee="SSSS";ee.length<=9;ee+="S")x1(ee,L0);function Rn(L,F){F[M4]=b2(1e3*("0."+L))}for(ee="S";ee.length<=9;ee+="S")m0(ee,Rn);P5=Y4("Milliseconds",!1),A1("z",0,0,"zoneAbbr"),A1("zz",0,0,"zoneName");var k2=G1.prototype;function v(L){return L}k2.add=Q8,k2.calendar=function Me(L,F){1===arguments.length&&(arguments[0]?Z8(arguments[0])?(L=arguments[0],F=void 0):function U6(L){var l1,F=_(L)&&!A(L),I=!1,O=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(l1=0;l1I.valueOf():I.valueOf()9999?K1(I,F?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):v2(Date.prototype.toISOString)?F?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",K1(I,"Z")):K1(I,F?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},k2.inspect=function q(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,O,L="moment",F="";return this.isLocal()||(L=0===this.utcOffset()?"moment.utc":"moment.parseZone",F="Z"),I="["+L+'("]',O=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+O+"-MM-DD[T]HH:mm:ss.SSS"+F+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(k2[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),k2.toJSON=function b4(){return this.isValid()?this.toISOString():null},k2.toString=function k6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},k2.unix=function j2(){return Math.floor(this.valueOf()/1e3)},k2.valueOf=function R2(){return this._d.valueOf()-6e4*(this._offset||0)},k2.creationData=function z2(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},k2.eraName=function q3(){var L,F,I,O=this.localeData().eras();for(L=0,F=O.length;Lthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},k2.isLocal=function M8(){return!!this.isValid()&&!this._isUTC},k2.isUtcOffset=function J8(){return!!this.isValid()&&this._isUTC},k2.isUtc=I8,k2.isUTC=I8,k2.zoneAbbr=function U2(){return this._isUTC?"UTC":""},k2.zoneName=function As(){return this._isUTC?"Coordinated Universal Time":""},k2.dates=d2("dates accessor is deprecated. Use date instead.",W3),k2.months=d2("months accessor is deprecated. Use month instead",P0),k2.years=d2("years accessor is deprecated. Use year instead",z0),k2.zone=d2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function je(L,F){return null!=L?("string"!=typeof L&&(L=-L),this.utcOffset(L,F),this):-this.utcOffset()}),k2.isDSTShifted=d2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function z8(){if(!$(this._isDSTShifted))return this._isDSTShifted;var F,L={};return c2(L,this),(L=A3(L))._a?(F=L._isUTC?h1(L._a):h4(L._a),this._isDSTShifted=this.isValid()&&function s5(L,F,I){var n2,O=Math.min(L.length,F.length),l1=Math.abs(L.length-F.length),R1=0;for(n2=0;n20):this._isDSTShifted=!1,this._isDSTShifted});var N=Z0.prototype;function V(L,F,I,O){var l1=N0(),R1=h1().set(O,F);return l1[I](R1,L)}function c1(L,F,I){if(Z(L)&&(F=L,L=void 0),L=L||"",null!=F)return V(L,F,I,"month");var O,l1=[];for(O=0;O<12;O++)l1[O]=V(L,O,I,"month");return l1}function z1(L,F,I,O){"boolean"==typeof L?(Z(F)&&(I=F,F=void 0),F=F||""):(I=F=L,L=!1,Z(F)&&(I=F,F=void 0),F=F||"");var n2,l1=N0(),R1=L?l1._week.dow:0,Z2=[];if(null!=I)return V(F,(I+R1)%7,O,"day");for(n2=0;n2<7;n2++)Z2[n2]=V(F,(n2+R1)%7,O,"day");return Z2}N.calendar=function w0(L,F,I){var O=this._calendar[L]||this._calendar.sameElse;return v2(O)?O.call(F,I):O},N.longDateFormat=function s2(L){var F=this._longDateFormat[L],I=this._longDateFormat[L.toUpperCase()];return F||!I?F:(this._longDateFormat[L]=I.match(e2).map(function(O){return"MMMM"===O||"MM"===O||"DD"===O||"dddd"===O?O.slice(1):O}).join(""),this._longDateFormat[L])},N.invalidDate=function l0(){return this._invalidDate},N.ordinal=function K2(L){return this._ordinal.replace("%d",L)},N.preparse=v,N.postformat=v,N.relativeTime=function C4(L,F,I,O){var l1=this._relativeTime[I];return v2(l1)?l1(L,F,I,O):l1.replace(/%d/i,L)},N.pastFuture=function m2(L,F){var I=this._relativeTime[L>0?"future":"past"];return v2(I)?I(F):I.replace(/%s/i,F)},N.set=function t0(L){var F,I;for(I in L)S(L,I)&&(v2(F=L[I])?this[I]=F:this["_"+I]=F);this._config=L,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},N.eras=function _4(L,F){var I,O,l1,R1=this._eras||N0("en")._eras;for(I=0,O=R1.length;I=0)return R1[O]},N.erasConvertYear=function o0(L,F){var I=L.since<=L.until?1:-1;return void 0===F?g(L.since).year():g(L.since).year()+(F-L.offset)*I},N.erasAbbrRegex=function g1(L){return S(this,"_erasAbbrRegex")||ye.call(this),L?this._erasAbbrRegex:this._erasRegex},N.erasNameRegex=function h0(L){return S(this,"_erasNameRegex")||ye.call(this),L?this._erasNameRegex:this._erasRegex},N.erasNarrowRegex=function K8(L){return S(this,"_erasNarrowRegex")||ye.call(this),L?this._erasNarrowRegex:this._erasRegex},N.months=function M0(L,F){return L?p(this._months)?this._months[L.month()]:this._months[(this._months.isFormat||q1).test(F)?"format":"standalone"][L.month()]:p(this._months)?this._months:this._months.standalone},N.monthsShort=function X2(L,F){return L?p(this._monthsShort)?this._monthsShort[L.month()]:this._monthsShort[q1.test(F)?"format":"standalone"][L.month()]:p(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},N.monthsParse=function e4(L,F,I){var O,l1,R1;if(this._monthsParseExact)return P2.call(this,L,F,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),O=0;O<12;O++){if(l1=h1([2e3,O]),I&&!this._longMonthsParse[O]&&(this._longMonthsParse[O]=new RegExp("^"+this.months(l1,"").replace(".","")+"$","i"),this._shortMonthsParse[O]=new RegExp("^"+this.monthsShort(l1,"").replace(".","")+"$","i")),!I&&!this._monthsParse[O]&&(R1="^"+this.months(l1,"")+"|^"+this.monthsShort(l1,""),this._monthsParse[O]=new RegExp(R1.replace(".",""),"i")),I&&"MMMM"===F&&this._longMonthsParse[O].test(L))return O;if(I&&"MMM"===F&&this._shortMonthsParse[O].test(L))return O;if(!I&&this._monthsParse[O].test(L))return O}},N.monthsRegex=function R0(L){return this._monthsParseExact?(S(this,"_monthsRegex")||A0.call(this),L?this._monthsStrictRegex:this._monthsRegex):(S(this,"_monthsRegex")||(this._monthsRegex=h2),this._monthsStrictRegex&&L?this._monthsStrictRegex:this._monthsRegex)},N.monthsShortRegex=function v4(L){return this._monthsParseExact?(S(this,"_monthsRegex")||A0.call(this),L?this._monthsShortStrictRegex:this._monthsShortRegex):(S(this,"_monthsShortRegex")||(this._monthsShortRegex=u2),this._monthsShortStrictRegex&&L?this._monthsShortStrictRegex:this._monthsShortRegex)},N.week=function a0(L){return I4(L,this._week.dow,this._week.doy).week},N.firstDayOfYear=function a3(){return this._week.doy},N.firstDayOfWeek=function p8(){return this._week.dow},N.weekdays=function n4(L,F){var I=p(this._weekdays)?this._weekdays:this._weekdays[L&&!0!==L&&this._weekdays.isFormat.test(F)?"format":"standalone"];return!0===L?b0(I,this._week.dow):L?I[L.day()]:I},N.weekdaysMin=function D3(L){return!0===L?b0(this._weekdaysMin,this._week.dow):L?this._weekdaysMin[L.day()]:this._weekdaysMin},N.weekdaysShort=function P4(L){return!0===L?b0(this._weekdaysShort,this._week.dow):L?this._weekdaysShort[L.day()]:this._weekdaysShort},N.weekdaysParse=function V0(L,F,I){var O,l1,R1;if(this._weekdaysParseExact)return n6.call(this,L,F,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),O=0;O<7;O++){if(l1=h1([2e3,1]).day(O),I&&!this._fullWeekdaysParse[O]&&(this._fullWeekdaysParse[O]=new RegExp("^"+this.weekdays(l1,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[O]=new RegExp("^"+this.weekdaysShort(l1,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[O]=new RegExp("^"+this.weekdaysMin(l1,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[O]||(R1="^"+this.weekdays(l1,"")+"|^"+this.weekdaysShort(l1,"")+"|^"+this.weekdaysMin(l1,""),this._weekdaysParse[O]=new RegExp(R1.replace(".",""),"i")),I&&"dddd"===F&&this._fullWeekdaysParse[O].test(L))return O;if(I&&"ddd"===F&&this._shortWeekdaysParse[O].test(L))return O;if(I&&"dd"===F&&this._minWeekdaysParse[O].test(L))return O;if(!I&&this._weekdaysParse[O].test(L))return O}},N.weekdaysRegex=function h8(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysStrictRegex:this._weekdaysRegex):(S(this,"_weekdaysRegex")||(this._weekdaysRegex=h3),this._weekdaysStrictRegex&&L?this._weekdaysStrictRegex:this._weekdaysRegex)},N.weekdaysShortRegex=function v3(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(S(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=J4),this._weekdaysShortStrictRegex&&L?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},N.weekdaysMinRegex=function g8(L){return this._weekdaysParseExact?(S(this,"_weekdaysRegex")||k4.call(this),L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(S(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=R6),this._weekdaysMinStrictRegex&&L?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},N.isPM=function U3(L){return"p"===(L+"").toLowerCase().charAt(0)},N.meridiem=function x3(L,F,I){return L>11?I?"pm":"PM":I?"am":"AM"},R3("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(L){var F=L%10;return L+(1===b2(L%100/10)?"th":1===F?"st":2===F?"nd":3===F?"rd":"th")}}),g.lang=d2("moment.lang is deprecated. Use moment.locale instead.",R3),g.langData=d2("moment.langData is deprecated. Use moment.localeData instead.",N0);var D4=Math.abs;function Fe(L,F,I,O){var l1=i6(F,I);return L._milliseconds+=O*l1._milliseconds,L._days+=O*l1._days,L._months+=O*l1._months,L._bubble()}function s8(L){return L<0?Math.floor(L):Math.ceil(L)}function An(L){return 4800*L/146097}function j5(L){return 146097*L/4800}function ce(L){return function(){return this.as(L)}}var _c=ce("ms"),Ps=ce("s"),G6=ce("m"),In=ce("h"),S7=ce("d"),Lc=ce("w"),Pn=ce("M"),af=ce("Q"),S4=ce("y"),N7=_c;function Ye(L){return function(){return this.isValid()?this._data[L]:NaN}}var $5=Ye("milliseconds"),qe=Ye("seconds"),H6=Ye("minutes"),jn=Ye("hours"),Cc=Ye("days"),js=Ye("months"),w8=Ye("years");var B8=Math.round,te={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zc(L,F,I,O,l1){return l1.relativeTime(F||1,!!I,L,O)}var ne=Math.abs;function _0(L){return(L>0)-(L<0)||+L}function le(){if(!this.isValid())return this.localeData().invalidDate();var O,l1,R1,n2,$0,s4,Q1,O0,L=ne(this._milliseconds)/1e3,F=ne(this._days),I=ne(this._months),Z2=this.asSeconds();return Z2?(O=F2(L/60),l1=F2(O/60),L%=60,O%=60,R1=F2(I/12),I%=12,n2=L?L.toFixed(3).replace(/\.?0+$/,""):"",$0=Z2<0?"-":"",s4=_0(this._months)!==_0(Z2)?"-":"",Q1=_0(this._days)!==_0(Z2)?"-":"",O0=_0(this._milliseconds)!==_0(Z2)?"-":"",$0+"P"+(R1?s4+R1+"Y":"")+(I?s4+I+"M":"")+(F?Q1+F+"D":"")+(l1||O||L?"T":"")+(l1?O0+l1+"H":"")+(O?O0+O+"M":"")+(L?O0+n2+"S":"")):"P0D"}var f4=t8.prototype;return f4.isValid=function W8(){return this._isValid},f4.abs=function He(){var L=this._data;return this._milliseconds=D4(this._milliseconds),this._days=D4(this._days),this._months=D4(this._months),L.milliseconds=D4(L.milliseconds),L.seconds=D4(L.seconds),L.minutes=D4(L.minutes),L.hours=D4(L.hours),L.months=D4(L.months),L.years=D4(L.years),this},f4.add=function ve(L,F){return Fe(this,L,F,1)},f4.subtract=function ke(L,F){return Fe(this,L,F,-1)},f4.as=function w7(L){if(!this.isValid())return NaN;var F,I,O=this._milliseconds;if("month"===(L=m4(L))||"quarter"===L||"year"===L)switch(F=this._days+O/864e5,I=this._months+An(F),L){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(F=this._days+Math.round(j5(this._months)),L){case"week":return F/7+O/6048e5;case"day":return F+O/864e5;case"hour":return 24*F+O/36e5;case"minute":return 1440*F+O/6e4;case"second":return 86400*F+O/1e3;case"millisecond":return Math.floor(864e5*F)+O;default:throw new Error("Unknown unit "+L)}},f4.asMilliseconds=_c,f4.asSeconds=Ps,f4.asMinutes=G6,f4.asHours=In,f4.asDays=S7,f4.asWeeks=Lc,f4.asMonths=Pn,f4.asQuarters=af,f4.asYears=S4,f4.valueOf=N7,f4._bubble=function Is(){var l1,R1,n2,Z2,$0,L=this._milliseconds,F=this._days,I=this._months,O=this._data;return L>=0&&F>=0&&I>=0||L<=0&&F<=0&&I<=0||(L+=864e5*s8(j5(I)+F),F=0,I=0),O.milliseconds=L%1e3,l1=F2(L/1e3),O.seconds=l1%60,R1=F2(l1/60),O.minutes=R1%60,n2=F2(R1/60),O.hours=n2%24,F+=F2(n2/24),I+=$0=F2(An(F)),F-=s8(j5($0)),Z2=F2(I/12),I%=12,O.days=F,O.months=I,O.years=Z2,this},f4.clone=function d5(){return i6(this)},f4.get=function d6(L){return L=m4(L),this.isValid()?this[L+"s"]():NaN},f4.milliseconds=$5,f4.seconds=qe,f4.minutes=H6,f4.hours=jn,f4.days=Cc,f4.weeks=function $n(){return F2(this.days()/7)},f4.months=js,f4.years=w8,f4.humanize=function E7(L,F){if(!this.isValid())return this.localeData().invalidDate();var l1,R1,I=!1,O=te;return"object"==typeof L&&(F=L,L=!1),"boolean"==typeof L&&(I=L),"object"==typeof F&&(O=Object.assign({},te,F),null!=F.s&&null==F.ss&&(O.ss=F.s-1)),R1=function Mc(L,F,I,O){var l1=i6(L).abs(),R1=B8(l1.as("s")),n2=B8(l1.as("m")),Z2=B8(l1.as("h")),$0=B8(l1.as("d")),s4=B8(l1.as("M")),Q1=B8(l1.as("w")),O0=B8(l1.as("y")),se=R1<=I.ss&&["s",R1]||R10,se[4]=O,zc.apply(null,se)}(this,!I,O,l1=this.localeData()),I&&(R1=l1.pastFuture(+this,R1)),l1.postformat(R1)},f4.toISOString=le,f4.toString=le,f4.toJSON=le,f4.locale=q2,f4.localeData=l4,f4.toIsoString=d2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",le),f4.lang=g4,A1("X",0,0,"unix"),A1("x",0,0,"valueOf"),x1("x",S0),x1("X",/[+-]?\d+(\.\d{1,3})?/),m0("X",function(L,F,I){I._d=new Date(1e3*parseFloat(L))}),m0("x",function(L,F,I){I._d=new Date(b2(L))}),g.version="2.30.1",function e(L){m=L}(h4),g.fn=k2,g.min=function Ie(){return i4("isBefore",[].slice.call(arguments,0))},g.max=function Pe(){return i4("isAfter",[].slice.call(arguments,0))},g.now=function(){return Date.now?Date.now():+new Date},g.utc=h1,g.unix=function x(L){return h4(1e3*L)},g.months=function W1(L,F){return c1(L,F,"months")},g.isDate=K,g.locale=R3,g.invalid=$1,g.duration=i6,g.isMoment=O1,g.weekdays=function O2(L,F,I){return z1(L,F,I,"weekdays")},g.parseZone=function E(){return h4.apply(null,arguments).parseZone()},g.localeData=N0,g.isDuration=B6,g.monthsShort=function V1(L,F){return c1(L,F,"monthsShort")},g.weekdaysMin=function Q0(L,F,I){return z1(L,F,I,"weekdaysMin")},g.defineLocale=Z6,g.updateLocale=function k3(L,F){if(null!=F){var I,O,l1=d3;null!=G0[L]&&null!=G0[L].parentLocale?G0[L].set(X0(G0[L]._config,F)):(null!=(O=Q4(L))&&(l1=O._config),F=X0(l1,F),null==O&&(F.abbr=L),(I=new Z0(F)).parentLocale=G0[L],G0[L]=I),R3(L)}else null!=G0[L]&&(null!=G0[L].parentLocale?(G0[L]=G0[L].parentLocale,L===R3()&&R3(L)):null!=G0[L]&&delete G0[L]);return G0[L]},g.locales=function K6(){return B4(G0)},g.weekdaysShort=function J0(L,F,I){return z1(L,F,I,"weekdaysShort")},g.normalizeUnits=m4,g.relativeTimeRounding=function O5(L){return void 0===L?B8:"function"==typeof L&&(B8=L,!0)},g.relativeTimeThreshold=function xc(L,F){return void 0!==te[L]&&(void 0===F?te[L]:(te[L]=F,"s"===L&&(te.ss=F-1),!0))},g.calendarFormat=function y8(L,F){var I=L.diff(F,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},g.prototype=k2,g.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},g}()},4412:(y1,d1,y)=>{"use strict";y.d(d1,{t:()=>g});var m=y(1413);class g extends m.B{constructor(p){super(),this._value=p}get value(){return this.getValue()}_subscribe(p){const _=super._subscribe(p);return!_.closed&&p.next(this._value),_}getValue(){const{hasError:p,thrownError:_,_value:S}=this;if(p)throw _;return this._throwIfClosed(),S}next(p){super.next(this._value=p)}}},1985:(y1,d1,y)=>{"use strict";y.d(d1,{c:()=>$});var m=y(7707),g=y(8359),e=y(3494),p=y(1203),_=y(1026),S=y(8071),A=y(9786);let $=(()=>{class Y{constructor(e1){e1&&(this._subscribe=e1)}lift(e1){const r1=new Y;return r1.source=this,r1.operator=e1,r1}subscribe(e1,r1,M1){const f1=function p1(Y){return Y&&Y instanceof m.vU||function K(Y){return Y&&(0,S.T)(Y.next)&&(0,S.T)(Y.error)&&(0,S.T)(Y.complete)}(Y)&&(0,g.Uv)(Y)}(e1)?e1:new m.Ms(e1,r1,M1);return(0,A.Y)(()=>{const{operator:$1,source:o2}=this;f1.add($1?$1.call(f1,o2):o2?this._subscribe(f1):this._trySubscribe(f1))}),f1}_trySubscribe(e1){try{return this._subscribe(e1)}catch(r1){e1.error(r1)}}forEach(e1,r1){return new(r1=Z(r1))((M1,f1)=>{const $1=new m.Ms({next:o2=>{try{e1(o2)}catch(S2){f1(S2),$1.unsubscribe()}},error:f1,complete:M1});this.subscribe($1)})}_subscribe(e1){var r1;return null===(r1=this.source)||void 0===r1?void 0:r1.subscribe(e1)}[e.s](){return this}pipe(...e1){return(0,p.m)(e1)(this)}toPromise(e1){return new(e1=Z(e1))((r1,M1)=>{let f1;this.subscribe($1=>f1=$1,$1=>M1($1),()=>r1(f1))})}}return Y.create=h1=>new Y(h1),Y})();function Z(Y){var h1;return null!==(h1=Y??_.$.Promise)&&void 0!==h1?h1:Promise}},1413:(y1,d1,y)=>{"use strict";y.d(d1,{B:()=>A});var m=y(1985),g=y(8359);const p=(0,y(1853).L)(Z=>function(){Z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var _=y(7908),S=y(9786);let A=(()=>{class Z extends m.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(p1){const Y=new $(this,this);return Y.operator=p1,Y}_throwIfClosed(){if(this.closed)throw new p}next(p1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Y of this.currentObservers)Y.next(p1)}})}error(p1){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=p1;const{observers:Y}=this;for(;Y.length;)Y.shift().error(p1)}})}complete(){(0,S.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:p1}=this;for(;p1.length;)p1.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var p1;return(null===(p1=this.observers)||void 0===p1?void 0:p1.length)>0}_trySubscribe(p1){return this._throwIfClosed(),super._trySubscribe(p1)}_subscribe(p1){return this._throwIfClosed(),this._checkFinalizedStatuses(p1),this._innerSubscribe(p1)}_innerSubscribe(p1){const{hasError:Y,isStopped:h1,observers:e1}=this;return Y||h1?g.Kn:(this.currentObservers=null,e1.push(p1),new g.yU(()=>{this.currentObservers=null,(0,_.o)(e1,p1)}))}_checkFinalizedStatuses(p1){const{hasError:Y,thrownError:h1,isStopped:e1}=this;Y?p1.error(h1):e1&&p1.complete()}asObservable(){const p1=new m.c;return p1.source=this,p1}}return Z.create=(K,p1)=>new $(K,p1),Z})();class $ extends A{constructor(K,p1){super(),this.destination=K,this.source=p1}next(K){var p1,Y;null===(Y=null===(p1=this.destination)||void 0===p1?void 0:p1.next)||void 0===Y||Y.call(p1,K)}error(K){var p1,Y;null===(Y=null===(p1=this.destination)||void 0===p1?void 0:p1.error)||void 0===Y||Y.call(p1,K)}complete(){var K,p1;null===(p1=null===(K=this.destination)||void 0===K?void 0:K.complete)||void 0===p1||p1.call(K)}_subscribe(K){var p1,Y;return null!==(Y=null===(p1=this.source)||void 0===p1?void 0:p1.subscribe(K))&&void 0!==Y?Y:g.Kn}}},7707:(y1,d1,y)=>{"use strict";y.d(d1,{Ms:()=>M1,vU:()=>Y});var m=y(8071),g=y(8359),e=y(1026),p=y(5334),_=y(5343);const S=Z("C",void 0,void 0);function Z(c2,G1,O1){return{kind:c2,value:G1,error:O1}}var K=y(9270),p1=y(9786);class Y extends g.yU{constructor(G1){super(),this.isStopped=!1,G1?(this.destination=G1,(0,g.Uv)(G1)&&G1.add(this)):this.destination=S2}static create(G1,O1,d0){return new M1(G1,O1,d0)}next(G1){this.isStopped?o2(function $(c2){return Z("N",c2,void 0)}(G1),this):this._next(G1)}error(G1){this.isStopped?o2(function A(c2){return Z("E",void 0,c2)}(G1),this):(this.isStopped=!0,this._error(G1))}complete(){this.isStopped?o2(S,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(G1){this.destination.next(G1)}_error(G1){try{this.destination.error(G1)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const h1=Function.prototype.bind;function e1(c2,G1){return h1.call(c2,G1)}class r1{constructor(G1){this.partialObserver=G1}next(G1){const{partialObserver:O1}=this;if(O1.next)try{O1.next(G1)}catch(d0){f1(d0)}}error(G1){const{partialObserver:O1}=this;if(O1.error)try{O1.error(G1)}catch(d0){f1(d0)}else f1(G1)}complete(){const{partialObserver:G1}=this;if(G1.complete)try{G1.complete()}catch(O1){f1(O1)}}}class M1 extends Y{constructor(G1,O1,d0){let d2;if(super(),(0,m.T)(G1)||!G1)d2={next:G1??void 0,error:O1??void 0,complete:d0??void 0};else{let _2;this&&e.$.useDeprecatedNextContext?(_2=Object.create(G1),_2.unsubscribe=()=>this.unsubscribe(),d2={next:G1.next&&e1(G1.next,_2),error:G1.error&&e1(G1.error,_2),complete:G1.complete&&e1(G1.complete,_2)}):d2=G1}this.destination=new r1(d2)}}function f1(c2){e.$.useDeprecatedSynchronousErrorHandling?(0,p1.l)(c2):(0,p.m)(c2)}function o2(c2,G1){const{onStoppedNotification:O1}=e.$;O1&&K.f.setTimeout(()=>O1(c2,G1))}const S2={closed:!0,next:_.l,error:function $1(c2){throw c2},complete:_.l}},8359:(y1,d1,y)=>{"use strict";y.d(d1,{Kn:()=>S,yU:()=>_,Uv:()=>A});var m=y(8071);const e=(0,y(1853).L)(Z=>function(p1){Z(this),this.message=p1?`${p1.length} errors occurred during unsubscription:\n${p1.map((Y,h1)=>`${h1+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=p1});var p=y(7908);class _{constructor(K){this.initialTeardown=K,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let K;if(!this.closed){this.closed=!0;const{_parentage:p1}=this;if(p1)if(this._parentage=null,Array.isArray(p1))for(const e1 of p1)e1.remove(this);else p1.remove(this);const{initialTeardown:Y}=this;if((0,m.T)(Y))try{Y()}catch(e1){K=e1 instanceof e?e1.errors:[e1]}const{_finalizers:h1}=this;if(h1){this._finalizers=null;for(const e1 of h1)try{$(e1)}catch(r1){K=K??[],r1 instanceof e?K=[...K,...r1.errors]:K.push(r1)}}if(K)throw new e(K)}}add(K){var p1;if(K&&K!==this)if(this.closed)$(K);else{if(K instanceof _){if(K.closed||K._hasParent(this))return;K._addParent(this)}(this._finalizers=null!==(p1=this._finalizers)&&void 0!==p1?p1:[]).push(K)}}_hasParent(K){const{_parentage:p1}=this;return p1===K||Array.isArray(p1)&&p1.includes(K)}_addParent(K){const{_parentage:p1}=this;this._parentage=Array.isArray(p1)?(p1.push(K),p1):p1?[p1,K]:K}_removeParent(K){const{_parentage:p1}=this;p1===K?this._parentage=null:Array.isArray(p1)&&(0,p.o)(p1,K)}remove(K){const{_finalizers:p1}=this;p1&&(0,p.o)(p1,K),K instanceof _&&K._removeParent(this)}}_.EMPTY=(()=>{const Z=new _;return Z.closed=!0,Z})();const S=_.EMPTY;function A(Z){return Z instanceof _||Z&&"closed"in Z&&(0,m.T)(Z.remove)&&(0,m.T)(Z.add)&&(0,m.T)(Z.unsubscribe)}function $(Z){(0,m.T)(Z)?Z():Z.unsubscribe()}},1026:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>m});const m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4843:(y1,d1,y)=>{"use strict";y.d(d1,{_:()=>e});var m=y(9350),g=y(7707);function e(p,_){const S="object"==typeof _;return new Promise((A,$)=>{const Z=new g.Ms({next:K=>{A(K),Z.unsubscribe()},error:$,complete:()=>{S?A(_.defaultValue):$(new m.G)}});p.subscribe(Z)})}},3207:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>g});var m=y(9350);function g(e,p){const _="object"==typeof p;return new Promise((S,A)=>{let Z,$=!1;e.subscribe({next:K=>{Z=K,$=!0},error:A,complete:()=>{$?S(Z):_?S(p.defaultValue):A(new m.G)}})})}},4572:(y1,d1,y)=>{"use strict";y.d(d1,{z:()=>K});var m=y(1985),g=y(3073),e=y(6648),p=y(3669),_=y(6450),S=y(9326),A=y(8496),$=y(4360),Z=y(5225);function K(...h1){const e1=(0,S.lI)(h1),r1=(0,S.ms)(h1),{args:M1,keys:f1}=(0,g.D)(h1);if(0===M1.length)return(0,e.H)([],e1);const $1=new m.c(function p1(h1,e1,r1=p.D){return M1=>{Y(e1,()=>{const{length:f1}=h1,$1=new Array(f1);let o2=f1,S2=f1;for(let c2=0;c2{const G1=(0,e.H)(h1[c2],e1);let O1=!1;G1.subscribe((0,$._)(M1,d0=>{$1[c2]=d0,O1||(O1=!0,S2--),S2||M1.next(r1($1.slice()))},()=>{--o2||M1.complete()}))},M1)},M1)}}(M1,e1,f1?o2=>(0,A.e)(f1,o2):p.D));return r1?$1.pipe((0,_.I)(r1)):$1}function Y(h1,e1,r1){h1?(0,Z.N)(r1,h1,e1):e1()}},8793:(y1,d1,y)=>{"use strict";y.d(d1,{x:()=>_});var m=y(6365),e=y(9326),p=y(6648);function _(...S){return function g(){return(0,m.U)(1)}()((0,p.H)(S,(0,e.lI)(S)))}},9030:(y1,d1,y)=>{"use strict";y.d(d1,{v:()=>e});var m=y(1985),g=y(8750);function e(p){return new m.c(_=>{(0,g.Tg)(p()).subscribe(_)})}},983:(y1,d1,y)=>{"use strict";y.d(d1,{w:()=>g});const g=new(y(1985).c)(_=>_.complete())},7468:(y1,d1,y)=>{"use strict";y.d(d1,{p:()=>$});var m=y(1985),g=y(3073),e=y(8750),p=y(9326),_=y(4360),S=y(6450),A=y(8496);function $(...Z){const K=(0,p.ms)(Z),{args:p1,keys:Y}=(0,g.D)(Z),h1=new m.c(e1=>{const{length:r1}=p1;if(!r1)return void e1.complete();const M1=new Array(r1);let f1=r1,$1=r1;for(let o2=0;o2{S2||(S2=!0,$1--),M1[o2]=c2},()=>f1--,void 0,()=>{(!f1||!S2)&&($1||e1.next(Y?(0,A.e)(Y,M1):M1),e1.complete())}))}});return K?h1.pipe((0,S.I)(K)):h1}},6648:(y1,d1,y)=>{"use strict";y.d(d1,{H:()=>d0});var m=y(8750),g=y(5225),e=y(9974),p=y(4360);function _(d2,_2=0){return(0,e.N)((w2,v2)=>{w2.subscribe((0,p._)(v2,t0=>(0,g.N)(v2,d2,()=>v2.next(t0),_2),()=>(0,g.N)(v2,d2,()=>v2.complete(),_2),t0=>(0,g.N)(v2,d2,()=>v2.error(t0),_2)))})}function S(d2,_2=0){return(0,e.N)((w2,v2)=>{v2.add(d2.schedule(()=>w2.subscribe(v2),_2))})}var Z=y(1985),p1=y(4761),Y=y(8071);function e1(d2,_2){if(!d2)throw new Error("Iterable cannot be null");return new Z.c(w2=>{(0,g.N)(w2,_2,()=>{const v2=d2[Symbol.asyncIterator]();(0,g.N)(w2,_2,()=>{v2.next().then(t0=>{t0.done?w2.complete():w2.next(t0.value)})},0,!0)})})}var r1=y(5055),M1=y(9858),f1=y(7441),$1=y(5397),o2=y(7953),S2=y(591),c2=y(5196);function d0(d2,_2){return _2?function O1(d2,_2){if(null!=d2){if((0,r1.l)(d2))return function A(d2,_2){return(0,m.Tg)(d2).pipe(S(_2),_(_2))}(d2,_2);if((0,f1.X)(d2))return function K(d2,_2){return new Z.c(w2=>{let v2=0;return _2.schedule(function(){v2===d2.length?w2.complete():(w2.next(d2[v2++]),w2.closed||this.schedule())})})}(d2,_2);if((0,M1.y)(d2))return function $(d2,_2){return(0,m.Tg)(d2).pipe(S(_2),_(_2))}(d2,_2);if((0,o2.T)(d2))return e1(d2,_2);if((0,$1.x)(d2))return function h1(d2,_2){return new Z.c(w2=>{let v2;return(0,g.N)(w2,_2,()=>{v2=d2[p1.l](),(0,g.N)(w2,_2,()=>{let t0,X0;try{({value:t0,done:X0}=v2.next())}catch(Z0){return void w2.error(Z0)}X0?w2.complete():w2.next(t0)},0,!0)}),()=>(0,Y.T)(v2?.return)&&v2.return()})}(d2,_2);if((0,c2.U)(d2))return function G1(d2,_2){return e1((0,c2.C)(d2),_2)}(d2,_2)}throw(0,S2.L)(d2)}(d2,_2):(0,m.Tg)(d2)}},8750:(y1,d1,y)=>{"use strict";y.d(d1,{Tg:()=>h1});var m=y(1635),g=y(7441),e=y(9858),p=y(1985),_=y(5055),S=y(7953),A=y(591),$=y(5397),Z=y(5196),K=y(8071),p1=y(5334),Y=y(3494);function h1(c2){if(c2 instanceof p.c)return c2;if(null!=c2){if((0,_.l)(c2))return function e1(c2){return new p.c(G1=>{const O1=c2[Y.s]();if((0,K.T)(O1.subscribe))return O1.subscribe(G1);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(c2);if((0,g.X)(c2))return function r1(c2){return new p.c(G1=>{for(let O1=0;O1{c2.then(O1=>{G1.closed||(G1.next(O1),G1.complete())},O1=>G1.error(O1)).then(null,p1.m)})}(c2);if((0,S.T)(c2))return $1(c2);if((0,$.x)(c2))return function f1(c2){return new p.c(G1=>{for(const O1 of c2)if(G1.next(O1),G1.closed)return;G1.complete()})}(c2);if((0,Z.U)(c2))return function o2(c2){return $1((0,Z.C)(c2))}(c2)}throw(0,A.L)(c2)}function $1(c2){return new p.c(G1=>{(function S2(c2,G1){var O1,d0,d2,_2;return(0,m.sH)(this,void 0,void 0,function*(){try{for(O1=(0,m.xN)(c2);!(d0=yield O1.next()).done;)if(G1.next(d0.value),G1.closed)return}catch(w2){d2={error:w2}}finally{try{d0&&!d0.done&&(_2=O1.return)&&(yield _2.call(O1))}finally{if(d2)throw d2.error}}G1.complete()})})(c2,G1).catch(O1=>G1.error(O1))})}},7673:(y1,d1,y)=>{"use strict";y.d(d1,{of:()=>e});var m=y(9326),g=y(6648);function e(...p){const _=(0,m.lI)(p);return(0,g.H)(p,_)}},8810:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>e});var m=y(1985),g=y(8071);function e(p,_){const S=(0,g.T)(p)?p:()=>p,A=$=>$.error(S());return new m.c(_?$=>_.schedule(A,0,$):A)}},4360:(y1,d1,y)=>{"use strict";y.d(d1,{_:()=>g});var m=y(7707);function g(p,_,S,A,$){return new e(p,_,S,A,$)}class e extends m.vU{constructor(_,S,A,$,Z,K){super(_),this.onFinalize=Z,this.shouldUnsubscribe=K,this._next=S?function(p1){try{S(p1)}catch(Y){_.error(Y)}}:super._next,this._error=$?function(p1){try{$(p1)}catch(Y){_.error(Y)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(p1){_.error(p1)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var _;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:S}=this;super.unsubscribe(),!S&&(null===(_=this.onFinalize)||void 0===_||_.call(this))}}}},9437:(y1,d1,y)=>{"use strict";y.d(d1,{W:()=>p});var m=y(8750),g=y(4360),e=y(9974);function p(_){return(0,e.N)((S,A)=>{let K,$=null,Z=!1;$=S.subscribe((0,g._)(A,void 0,void 0,p1=>{K=(0,m.Tg)(_(p1,p(_)(S))),$?($.unsubscribe(),$=null,K.subscribe(A)):Z=!0})),Z&&($.unsubscribe(),$=null,K.subscribe(A))})}},274:(y1,d1,y)=>{"use strict";y.d(d1,{H:()=>e});var m=y(3028),g=y(8071);function e(p,_){return(0,g.T)(_)?(0,m.Z)(p,_,1):(0,m.Z)(p,1)}},9901:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>e});var m=y(9974),g=y(4360);function e(p){return(0,m.N)((_,S)=>{let A=!1;_.subscribe((0,g._)(S,$=>{A=!0,S.next($)},()=>{A||S.next(p),S.complete()}))})}},5964:(y1,d1,y)=>{"use strict";y.d(d1,{p:()=>e});var m=y(9974),g=y(4360);function e(p,_){return(0,m.N)((S,A)=>{let $=0;S.subscribe((0,g._)(A,Z=>p.call(_,Z,$++)&&A.next(Z)))})}},980:(y1,d1,y)=>{"use strict";y.d(d1,{j:()=>g});var m=y(9974);function g(e){return(0,m.N)((p,_)=>{try{p.subscribe(_)}finally{_.add(e)}})}},1594:(y1,d1,y)=>{"use strict";y.d(d1,{$:()=>A});var m=y(9350),g=y(5964),e=y(6697),p=y(9901),_=y(3774),S=y(3669);function A($,Z){const K=arguments.length>=2;return p1=>p1.pipe($?(0,g.p)((Y,h1)=>$(Y,h1,p1)):S.D,(0,e.s)(1),K?(0,p.U)(Z):(0,_.v)(()=>new m.G))}},6354:(y1,d1,y)=>{"use strict";y.d(d1,{T:()=>e});var m=y(9974),g=y(4360);function e(p,_){return(0,m.N)((S,A)=>{let $=0;S.subscribe((0,g._)(A,Z=>{A.next(p.call(_,Z,$++))}))})}},3703:(y1,d1,y)=>{"use strict";y.d(d1,{u:()=>g});var m=y(6354);function g(e){return(0,m.T)(()=>e)}},6365:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>e});var m=y(3028),g=y(3669);function e(p=1/0){return(0,m.Z)(g.D,p)}},5412:(y1,d1,y)=>{"use strict";y.d(d1,{h:()=>p});var m=y(8750),g=y(5225),e=y(4360);function p(_,S,A,$,Z,K,p1,Y){const h1=[];let e1=0,r1=0,M1=!1;const f1=()=>{M1&&!h1.length&&!e1&&S.complete()},$1=S2=>e1<$?o2(S2):h1.push(S2),o2=S2=>{K&&S.next(S2),e1++;let c2=!1;(0,m.Tg)(A(S2,r1++)).subscribe((0,e._)(S,G1=>{Z?.(G1),K?$1(G1):S.next(G1)},()=>{c2=!0},void 0,()=>{if(c2)try{for(e1--;h1.length&&e1<$;){const G1=h1.shift();p1?(0,g.N)(S,p1,()=>o2(G1)):o2(G1)}f1()}catch(G1){S.error(G1)}}))};return _.subscribe((0,e._)(S,$1,()=>{M1=!0,f1()})),()=>{Y?.()}}},3028:(y1,d1,y)=>{"use strict";y.d(d1,{Z:()=>S});var m=y(6354),g=y(8750),e=y(9974),p=y(5412),_=y(8071);function S(A,$,Z=1/0){return(0,_.T)($)?S((K,p1)=>(0,m.T)((Y,h1)=>$(K,Y,p1,h1))((0,g.Tg)(A(K,p1))),Z):("number"==typeof $&&(Z=$),(0,e.N)((K,p1)=>(0,p.h)(K,p1,A,Z)))}},6649:(y1,d1,y)=>{"use strict";y.d(d1,{S:()=>g});var m=y(4360);function g(e,p,_,S,A){return($,Z)=>{let K=_,p1=p,Y=0;$.subscribe((0,m._)(Z,h1=>{const e1=Y++;p1=K?e(p1,h1,e1):(K=!0,h1),S&&Z.next(p1)},A&&(()=>{K&&Z.next(p1),Z.complete()})))}}},253:(y1,d1,y)=>{"use strict";y.d(d1,{t:()=>Z});var m=y(1413),g=y(6129);class e extends m.B{constructor(p1=1/0,Y=1/0,h1=g.U){super(),this._bufferSize=p1,this._windowTime=Y,this._timestampProvider=h1,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Y===1/0,this._bufferSize=Math.max(1,p1),this._windowTime=Math.max(1,Y)}next(p1){const{isStopped:Y,_buffer:h1,_infiniteTimeWindow:e1,_timestampProvider:r1,_windowTime:M1}=this;Y||(h1.push(p1),!e1&&h1.push(r1.now()+M1)),this._trimBuffer(),super.next(p1)}_subscribe(p1){this._throwIfClosed(),this._trimBuffer();const Y=this._innerSubscribe(p1),{_infiniteTimeWindow:h1,_buffer:e1}=this,r1=e1.slice();for(let M1=0;M1{h1.unsubscribe(),K()}});return(0,p.Tg)(p1(...Y)).subscribe(h1)}function Z(K,p1,Y){let h1,e1=!1;return K&&"object"==typeof K?({bufferSize:h1=1/0,windowTime:p1=1/0,refCount:e1=!1,scheduler:Y}=K):h1=K??1/0,function A(K={}){const{connector:p1=(()=>new m.B),resetOnError:Y=!0,resetOnComplete:h1=!0,resetOnRefCountZero:e1=!0}=K;return r1=>{let M1,f1,$1,o2=0,S2=!1,c2=!1;const G1=()=>{f1?.unsubscribe(),f1=void 0},O1=()=>{G1(),M1=$1=void 0,S2=c2=!1},d0=()=>{const d2=M1;O1(),d2?.unsubscribe()};return(0,S.N)((d2,_2)=>{o2++,!c2&&!S2&&G1();const w2=$1=$1??p1();_2.add(()=>{o2--,0===o2&&!c2&&!S2&&(f1=$(d0,e1))}),w2.subscribe(_2),!M1&&o2>0&&(M1=new _.Ms({next:v2=>w2.next(v2),error:v2=>{c2=!0,G1(),f1=$(O1,Y,v2),w2.error(v2)},complete:()=>{S2=!0,G1(),f1=$(O1,h1),w2.complete()}}),(0,p.Tg)(d2).subscribe(M1))})(r1)}}({connector:()=>new e(h1,p1,Y),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:e1})}},9172:(y1,d1,y)=>{"use strict";y.d(d1,{Z:()=>p});var m=y(8793),g=y(9326),e=y(9974);function p(..._){const S=(0,g.lI)(_);return(0,e.N)((A,$)=>{(S?(0,m.x)(_,A,S):(0,m.x)(_,A)).subscribe($)})}},5558:(y1,d1,y)=>{"use strict";y.d(d1,{n:()=>p});var m=y(8750),g=y(9974),e=y(4360);function p(_,S){return(0,g.N)((A,$)=>{let Z=null,K=0,p1=!1;const Y=()=>p1&&!Z&&$.complete();A.subscribe((0,e._)($,h1=>{Z?.unsubscribe();let e1=0;const r1=K++;(0,m.Tg)(_(h1,r1)).subscribe(Z=(0,e._)($,M1=>$.next(S?S(h1,M1,r1,e1++):M1),()=>{Z=null,Y()}))},()=>{p1=!0,Y()}))})}},6697:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>p});var m=y(983),g=y(9974),e=y(4360);function p(_){return _<=0?()=>m.w:(0,g.N)((S,A)=>{let $=0;S.subscribe((0,e._)(A,Z=>{++$<=_&&(A.next(Z),_<=$&&A.complete())}))})}},6977:(y1,d1,y)=>{"use strict";y.d(d1,{Q:()=>_});var m=y(9974),g=y(4360),e=y(8750),p=y(5343);function _(S){return(0,m.N)((A,$)=>{(0,e.Tg)(S).subscribe((0,g._)($,()=>$.complete(),p.l)),!$.closed&&A.subscribe($)})}},8141:(y1,d1,y)=>{"use strict";y.d(d1,{M:()=>_});var m=y(8071),g=y(9974),e=y(4360),p=y(3669);function _(S,A,$){const Z=(0,m.T)(S)||A||$?{next:S,error:A,complete:$}:S;return Z?(0,g.N)((K,p1)=>{var Y;null===(Y=Z.subscribe)||void 0===Y||Y.call(Z);let h1=!0;K.subscribe((0,e._)(p1,e1=>{var r1;null===(r1=Z.next)||void 0===r1||r1.call(Z,e1),p1.next(e1)},()=>{var e1;h1=!1,null===(e1=Z.complete)||void 0===e1||e1.call(Z),p1.complete()},e1=>{var r1;h1=!1,null===(r1=Z.error)||void 0===r1||r1.call(Z,e1),p1.error(e1)},()=>{var e1,r1;h1&&(null===(e1=Z.unsubscribe)||void 0===e1||e1.call(Z)),null===(r1=Z.finalize)||void 0===r1||r1.call(Z)}))}):p.D}},3774:(y1,d1,y)=>{"use strict";y.d(d1,{v:()=>p});var m=y(9350),g=y(9974),e=y(4360);function p(S=_){return(0,g.N)((A,$)=>{let Z=!1;A.subscribe((0,e._)($,K=>{Z=!0,$.next(K)},()=>Z?$.complete():$.error(S())))})}function _(){return new m.G}},6129:(y1,d1,y)=>{"use strict";y.d(d1,{U:()=>m});const m={now:()=>(m.delegate||Date).now(),delegate:void 0}},9270:(y1,d1,y)=>{"use strict";y.d(d1,{f:()=>m});const m={setTimeout(g,e,...p){const{delegate:_}=m;return _?.setTimeout?_.setTimeout(g,e,...p):setTimeout(g,e,...p)},clearTimeout(g){const{delegate:e}=m;return(e?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761:(y1,d1,y)=>{"use strict";y.d(d1,{l:()=>g});const g=function m(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>m});const m="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(y1,d1,y)=>{"use strict";y.d(d1,{G:()=>g});const g=(0,y(1853).L)(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(y1,d1,y)=>{"use strict";y.d(d1,{R0:()=>S,lI:()=>_,ms:()=>p});var m=y(8071),g=y(9470);function e(A){return A[A.length-1]}function p(A){return(0,m.T)(e(A))?A.pop():void 0}function _(A){return(0,g.m)(e(A))?A.pop():void 0}function S(A,$){return"number"==typeof e(A)?A.pop():$}},3073:(y1,d1,y)=>{"use strict";y.d(d1,{D:()=>_});const{isArray:m}=Array,{getPrototypeOf:g,prototype:e,keys:p}=Object;function _(A){if(1===A.length){const $=A[0];if(m($))return{args:$,keys:null};if(function S(A){return A&&"object"==typeof A&&g(A)===e}($)){const Z=p($);return{args:Z.map(K=>$[K]),keys:Z}}}return{args:A,keys:null}}},7908:(y1,d1,y)=>{"use strict";function m(g,e){if(g){const p=g.indexOf(e);0<=p&&g.splice(p,1)}}y.d(d1,{o:()=>m})},1853:(y1,d1,y)=>{"use strict";function m(g){const p=g(_=>{Error.call(_),_.stack=(new Error).stack});return p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p}y.d(d1,{L:()=>m})},8496:(y1,d1,y)=>{"use strict";function m(g,e){return g.reduce((p,_,S)=>(p[_]=e[S],p),{})}y.d(d1,{e:()=>m})},9786:(y1,d1,y)=>{"use strict";y.d(d1,{Y:()=>e,l:()=>p});var m=y(1026);let g=null;function e(_){if(m.$.useDeprecatedSynchronousErrorHandling){const S=!g;if(S&&(g={errorThrown:!1,error:null}),_(),S){const{errorThrown:A,error:$}=g;if(g=null,A)throw $}}else _()}function p(_){m.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=_)}},5225:(y1,d1,y)=>{"use strict";function m(g,e,p,_=0,S=!1){const A=e.schedule(function(){p(),S?g.add(this.schedule(null,_)):this.unsubscribe()},_);if(g.add(A),!S)return A}y.d(d1,{N:()=>m})},3669:(y1,d1,y)=>{"use strict";function m(g){return g}y.d(d1,{D:()=>m})},7441:(y1,d1,y)=>{"use strict";y.d(d1,{X:()=>m});const m=g=>g&&"number"==typeof g.length&&"function"!=typeof g},7953:(y1,d1,y)=>{"use strict";y.d(d1,{T:()=>g});var m=y(8071);function g(e){return Symbol.asyncIterator&&(0,m.T)(e?.[Symbol.asyncIterator])}},8071:(y1,d1,y)=>{"use strict";function m(g){return"function"==typeof g}y.d(d1,{T:()=>m})},5055:(y1,d1,y)=>{"use strict";y.d(d1,{l:()=>e});var m=y(3494),g=y(8071);function e(p){return(0,g.T)(p[m.s])}},5397:(y1,d1,y)=>{"use strict";y.d(d1,{x:()=>e});var m=y(4761),g=y(8071);function e(p){return(0,g.T)(p?.[m.l])}},4402:(y1,d1,y)=>{"use strict";y.d(d1,{A:()=>e});var m=y(1985),g=y(8071);function e(p){return!!p&&(p instanceof m.c||(0,g.T)(p.lift)&&(0,g.T)(p.subscribe))}},9858:(y1,d1,y)=>{"use strict";y.d(d1,{y:()=>g});var m=y(8071);function g(e){return(0,m.T)(e?.then)}},5196:(y1,d1,y)=>{"use strict";y.d(d1,{C:()=>e,U:()=>p});var m=y(1635),g=y(8071);function e(_){return(0,m.AQ)(this,arguments,function*(){const A=_.getReader();try{for(;;){const{value:$,done:Z}=yield(0,m.N3)(A.read());if(Z)return yield(0,m.N3)(void 0);yield yield(0,m.N3)($)}}finally{A.releaseLock()}})}function p(_){return(0,g.T)(_?.getReader)}},9470:(y1,d1,y)=>{"use strict";y.d(d1,{m:()=>g});var m=y(8071);function g(e){return e&&(0,m.T)(e.schedule)}},9974:(y1,d1,y)=>{"use strict";y.d(d1,{N:()=>e,S:()=>g});var m=y(8071);function g(p){return(0,m.T)(p?.lift)}function e(p){return _=>{if(g(_))return _.lift(function(S){try{return p(S,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(y1,d1,y)=>{"use strict";y.d(d1,{I:()=>p});var m=y(6354);const{isArray:g}=Array;function p(_){return(0,m.T)(S=>function e(_,S){return g(S)?_(...S):_(S)}(_,S))}},5343:(y1,d1,y)=>{"use strict";function m(){}y.d(d1,{l:()=>m})},1203:(y1,d1,y)=>{"use strict";y.d(d1,{F:()=>g,m:()=>e});var m=y(3669);function g(...p){return e(p)}function e(p){return 0===p.length?m.D:1===p.length?p[0]:function(S){return p.reduce((A,$)=>$(A),S)}}},5334:(y1,d1,y)=>{"use strict";y.d(d1,{m:()=>e});var m=y(1026),g=y(9270);function e(p){g.f.setTimeout(()=>{const{onUnhandledError:_}=m.$;if(!_)throw p;_(p)})}},591:(y1,d1,y)=>{"use strict";function m(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}y.d(d1,{L:()=>m})},5358:(y1,d1,y)=>{var m={"./af":1544,"./af.js":1544,"./ar":3108,"./ar-dz":2155,"./ar-dz.js":2155,"./ar-kw":3583,"./ar-kw.js":3583,"./ar-ly":1638,"./ar-ly.js":1638,"./ar-ma":7823,"./ar-ma.js":7823,"./ar-ps":7712,"./ar-ps.js":7712,"./ar-sa":8261,"./ar-sa.js":8261,"./ar-tn":6703,"./ar-tn.js":6703,"./ar.js":3108,"./az":6508,"./az.js":6508,"./be":6766,"./be.js":6766,"./bg":8564,"./bg.js":8564,"./bm":7462,"./bm.js":7462,"./bn":7107,"./bn-bd":3438,"./bn-bd.js":3438,"./bn.js":7107,"./bo":9004,"./bo.js":9004,"./br":927,"./br.js":927,"./bs":7768,"./bs.js":7768,"./ca":6291,"./ca.js":6291,"./cs":5301,"./cs.js":5301,"./cv":6666,"./cv.js":6666,"./cy":5163,"./cy.js":5163,"./da":7360,"./da.js":7360,"./de":5932,"./de-at":3248,"./de-at.js":3248,"./de-ch":3222,"./de-ch.js":3222,"./de.js":5932,"./dv":6405,"./dv.js":6405,"./el":718,"./el.js":718,"./en-au":6319,"./en-au.js":6319,"./en-ca":597,"./en-ca.js":597,"./en-gb":1800,"./en-gb.js":1800,"./en-ie":807,"./en-ie.js":807,"./en-il":5960,"./en-il.js":5960,"./en-in":4418,"./en-in.js":4418,"./en-nz":6865,"./en-nz.js":6865,"./en-sg":2647,"./en-sg.js":2647,"./eo":1931,"./eo.js":1931,"./es":6679,"./es-do":1805,"./es-do.js":1805,"./es-mx":3445,"./es-mx.js":3445,"./es-us":1516,"./es-us.js":1516,"./es.js":6679,"./et":8150,"./et.js":8150,"./eu":757,"./eu.js":757,"./fa":5742,"./fa.js":5742,"./fi":3958,"./fi.js":3958,"./fil":6720,"./fil.js":6720,"./fo":8352,"./fo.js":8352,"./fr":4059,"./fr-ca":2096,"./fr-ca.js":2096,"./fr-ch":5759,"./fr-ch.js":5759,"./fr.js":4059,"./fy":5958,"./fy.js":5958,"./ga":4143,"./ga.js":4143,"./gd":7028,"./gd.js":7028,"./gl":428,"./gl.js":428,"./gom-deva":6861,"./gom-deva.js":6861,"./gom-latn":7718,"./gom-latn.js":7718,"./gu":6827,"./gu.js":6827,"./he":1936,"./he.js":1936,"./hi":1332,"./hi.js":1332,"./hr":1957,"./hr.js":1957,"./hu":8928,"./hu.js":8928,"./hy-am":6215,"./hy-am.js":6215,"./id":586,"./id.js":586,"./is":211,"./is.js":211,"./it":170,"./it-ch":2340,"./it-ch.js":2340,"./it.js":170,"./ja":9770,"./ja.js":9770,"./jv":3875,"./jv.js":3875,"./ka":9499,"./ka.js":9499,"./kk":3573,"./kk.js":3573,"./km":8807,"./km.js":8807,"./kn":5082,"./kn.js":5082,"./ko":137,"./ko.js":137,"./ku":111,"./ku-kmr":3744,"./ku-kmr.js":3744,"./ku.js":111,"./ky":9187,"./ky.js":9187,"./lb":5969,"./lb.js":5969,"./lo":3526,"./lo.js":3526,"./lt":411,"./lt.js":411,"./lv":2621,"./lv.js":2621,"./me":5869,"./me.js":5869,"./mi":5881,"./mi.js":5881,"./mk":2391,"./mk.js":2391,"./ml":1126,"./ml.js":1126,"./mn":4892,"./mn.js":4892,"./mr":9080,"./mr.js":9080,"./ms":399,"./ms-my":5950,"./ms-my.js":5950,"./ms.js":399,"./mt":9902,"./mt.js":9902,"./my":2985,"./my.js":2985,"./nb":7859,"./nb.js":7859,"./ne":3642,"./ne.js":3642,"./nl":5441,"./nl-be":9875,"./nl-be.js":9875,"./nl.js":5441,"./nn":1311,"./nn.js":1311,"./oc-lnc":2567,"./oc-lnc.js":2567,"./pa-in":6962,"./pa-in.js":6962,"./pl":1063,"./pl.js":1063,"./pt":8719,"./pt-br":7476,"./pt-br.js":7476,"./pt.js":8719,"./ro":1004,"./ro.js":1004,"./ru":1326,"./ru.js":1326,"./sd":2608,"./sd.js":2608,"./se":3911,"./se.js":3911,"./si":5147,"./si.js":5147,"./sk":3741,"./sk.js":3741,"./sl":3e3,"./sl.js":3e3,"./sq":451,"./sq.js":451,"./sr":5046,"./sr-cyrl":905,"./sr-cyrl.js":905,"./sr.js":5046,"./ss":5765,"./ss.js":5765,"./sv":9290,"./sv.js":9290,"./sw":5830,"./sw.js":5830,"./ta":2688,"./ta.js":2688,"./te":2060,"./te.js":2060,"./tet":3290,"./tet.js":3290,"./tg":8294,"./tg.js":8294,"./th":1231,"./th.js":1231,"./tk":3746,"./tk.js":3746,"./tl-ph":9040,"./tl-ph.js":9040,"./tlh":7187,"./tlh.js":7187,"./tr":153,"./tr.js":153,"./tzl":8521,"./tzl.js":8521,"./tzm":8010,"./tzm-latn":2234,"./tzm-latn.js":2234,"./tzm.js":8010,"./ug-cn":3349,"./ug-cn.js":3349,"./uk":8479,"./uk.js":8479,"./ur":3024,"./ur.js":3024,"./uz":9800,"./uz-latn":2376,"./uz-latn.js":2376,"./uz.js":9800,"./vi":9366,"./vi.js":9366,"./x-pseudo":9702,"./x-pseudo.js":9702,"./yo":2655,"./yo.js":2655,"./zh-cn":575,"./zh-cn.js":575,"./zh-hk":8351,"./zh-hk.js":8351,"./zh-mo":9245,"./zh-mo.js":9245,"./zh-tw":8887,"./zh-tw.js":8887};function g(p){var _=e(p);return y(_)}function e(p){if(!y.o(m,p)){var _=new Error("Cannot find module '"+p+"'");throw _.code="MODULE_NOT_FOUND",_}return m[p]}g.keys=function(){return Object.keys(m)},g.resolve=e,y1.exports=g,g.id=5358},177:(y1,d1,y)=>{"use strict";y.d(d1,{AJ:()=>I6,B3:()=>a0,Jj:()=>b0,MD:()=>U3,N0:()=>Z6,QT:()=>e,QX:()=>v3,Sm:()=>M1,Sq:()=>X2,T3:()=>H2,UE:()=>G0,VF:()=>_,Vy:()=>l6,Xr:()=>f3,YU:()=>q1,ZD:()=>p,_b:()=>b1,aZ:()=>$1,bT:()=>F0,fw:()=>f1,hb:()=>e1,hj:()=>Z,kB:()=>r1,kF:()=>Z0,qQ:()=>A,vh:()=>P4});var m=y(4438);let g=null;function e(){return g}function p(w){g??=w}class _{}const A=new m.nKC("");let $=(()=>{class w{historyGo(R){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>(0,m.WQX)(K),providedIn:"platform"})}}return w})();const Z=new m.nKC("");let K=(()=>{class w extends ${constructor(){super(),this._doc=(0,m.WQX)(A),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return e().getBaseHref(this._doc)}onPopState(R){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("popstate",R,!1),()=>U.removeEventListener("popstate",R)}onHashChange(R){const U=e().getGlobalEventTarget(this._doc,"window");return U.addEventListener("hashchange",R,!1),()=>U.removeEventListener("hashchange",R)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(R){this._location.pathname=R}pushState(R,U,L1){this._history.pushState(R,U,L1)}replaceState(R,U,L1){this._history.replaceState(R,U,L1)}forward(){this._history.forward()}back(){this._history.back()}historyGo(R=0){this._history.go(R)}getState(){return this._history.state}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>new w,providedIn:"platform"})}}return w})();function p1(w,q){if(0==w.length)return q;if(0==q.length)return w;let R=0;return w.endsWith("/")&&R++,q.startsWith("/")&&R++,2==R?w+q.substring(1):1==R?w+q:w+"/"+q}function Y(w){const q=w.match(/#|\?|$/),R=q&&q.index||w.length;return w.slice(0,R-("/"===w[R-1]?1:0))+w.slice(R)}function h1(w){return w&&"?"!==w[0]?"?"+w:w}let e1=(()=>{class w{historyGo(R){throw new Error("")}static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275prov=m.jDH({token:w,factory:()=>(0,m.WQX)(M1),providedIn:"root"})}}return w})();const r1=new m.nKC("");let M1=(()=>{class w extends e1{constructor(R,U){super(),this._platformLocation=R,this._removeListenerFns=[],this._baseHref=U??this._platformLocation.getBaseHrefFromDOM()??(0,m.WQX)(A).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}prepareExternalUrl(R){return p1(this._baseHref,R)}path(R=!1){const U=this._platformLocation.pathname+h1(this._platformLocation.search),L1=this._platformLocation.hash;return L1&&R?`${U}${L1}`:U}pushState(R,U,L1,X1){const a2=this.prepareExternalUrl(L1+h1(X1));this._platformLocation.pushState(R,U,a2)}replaceState(R,U,L1,X1){const a2=this.prepareExternalUrl(L1+h1(X1));this._platformLocation.replaceState(R,U,a2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static{this.\u0275fac=function(U){return new(U||w)(m.KVO($),m.KVO(r1,8))}}static{this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})(),f1=(()=>{class w extends e1{constructor(R,U){super(),this._platformLocation=R,this._baseHref="",this._removeListenerFns=[],null!=U&&(this._baseHref=U)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(R){this._removeListenerFns.push(this._platformLocation.onPopState(R),this._platformLocation.onHashChange(R))}getBaseHref(){return this._baseHref}path(R=!1){const U=this._platformLocation.hash??"#";return U.length>0?U.substring(1):U}prepareExternalUrl(R){const U=p1(this._baseHref,R);return U.length>0?"#"+U:U}pushState(R,U,L1,X1){let a2=this.prepareExternalUrl(L1+h1(X1));0==a2.length&&(a2=this._platformLocation.pathname),this._platformLocation.pushState(R,U,a2)}replaceState(R,U,L1,X1){let a2=this.prepareExternalUrl(L1+h1(X1));0==a2.length&&(a2=this._platformLocation.pathname),this._platformLocation.replaceState(R,U,a2)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(R=0){this._platformLocation.historyGo?.(R)}static{this.\u0275fac=function(U){return new(U||w)(m.KVO($),m.KVO(r1,8))}}static{this.\u0275prov=m.jDH({token:w,factory:w.\u0275fac})}}return w})(),$1=(()=>{class w{constructor(R){this._subject=new m.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=R;const U=this._locationStrategy.getBaseHref();this._basePath=function G1(w){if(new RegExp("^(https?:)?//").test(w)){const[,R]=w.split(/\/\/[^\/]+/);return R}return w}(Y(c2(U))),this._locationStrategy.onPopState(L1=>{this._subject.emit({url:this.path(!0),pop:!0,state:L1.state,type:L1.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(R=!1){return this.normalize(this._locationStrategy.path(R))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(R,U=""){return this.path()==this.normalize(R+h1(U))}normalize(R){return w.stripTrailingSlash(function S2(w,q){if(!w||!q.startsWith(w))return q;const R=q.substring(w.length);return""===R||["/",";","?","#"].includes(R[0])?R:q}(this._basePath,c2(R)))}prepareExternalUrl(R){return R&&"/"!==R[0]&&(R="/"+R),this._locationStrategy.prepareExternalUrl(R)}go(R,U="",L1=null){this._locationStrategy.pushState(L1,"",R,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+h1(U)),L1)}replaceState(R,U="",L1=null){this._locationStrategy.replaceState(L1,"",R,U),this._notifyUrlChangeListeners(this.prepareExternalUrl(R+h1(U)),L1)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(R=0){this._locationStrategy.historyGo?.(R)}onUrlChange(R){return this._urlChangeListeners.push(R),this._urlChangeSubscription??=this.subscribe(U=>{this._notifyUrlChangeListeners(U.url,U.state)}),()=>{const U=this._urlChangeListeners.indexOf(R);this._urlChangeListeners.splice(U,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(R="",U){this._urlChangeListeners.forEach(L1=>L1(R,U))}subscribe(R,U,L1){return this._subject.subscribe({next:R,error:U,complete:L1})}static{this.normalizeQueryParams=h1}static{this.joinWithSlash=p1}static{this.stripTrailingSlash=Y}static{this.\u0275fac=function(U){return new(U||w)(m.KVO(e1))}}static{this.\u0275prov=m.jDH({token:w,factory:()=>function o2(){return new $1((0,m.KVO)(e1))}(),providedIn:"root"})}}return w})();function c2(w){return w.replace(/\/index.html$/,"")}var d0=function(w){return w[w.Decimal=0]="Decimal",w[w.Percent=1]="Percent",w[w.Currency=2]="Currency",w[w.Scientific=3]="Scientific",w}(d0||{}),_2=function(w){return w[w.Format=0]="Format",w[w.Standalone=1]="Standalone",w}(_2||{}),w2=function(w){return w[w.Narrow=0]="Narrow",w[w.Abbreviated=1]="Abbreviated",w[w.Wide=2]="Wide",w[w.Short=3]="Short",w}(w2||{}),v2=function(w){return w[w.Short=0]="Short",w[w.Medium=1]="Medium",w[w.Long=2]="Long",w[w.Full=3]="Full",w}(v2||{});const t0={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Z0(w){return(0,m.H5H)(w)[m.KH2.LocaleId]}function E1(w,q){return y0((0,m.H5H)(w)[m.KH2.DateFormat],q)}function j1(w,q){return y0((0,m.H5H)(w)[m.KH2.TimeFormat],q)}function A1(w,q){return y0((0,m.H5H)(w)[m.KH2.DateTimeFormat],q)}function H1(w,q){const R=(0,m.H5H)(w),U=R[m.KH2.NumberSymbols][q];if(typeof U>"u"){if(q===t0.CurrencyDecimal)return R[m.KH2.NumberSymbols][t0.Decimal];if(q===t0.CurrencyGroup)return R[m.KH2.NumberSymbols][t0.Group]}return U}function l0(w){if(!w[m.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${w[m.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function y0(w,q){for(let R=q;R>-1;R--)if(typeof w[R]<"u")return w[R];throw new Error("Locale data API: locale data undefined")}function C4(w){const[q,R]=w.split(":");return{hours:+q,minutes:+R}}const B3=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,t3={},E6=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var q4=function(w){return w[w.Short=0]="Short",w[w.ShortGMT=1]="ShortGMT",w[w.Long=2]="Long",w[w.Extended=3]="Extended",w}(q4||{}),c0=function(w){return w[w.FullYear=0]="FullYear",w[w.Month=1]="Month",w[w.Date=2]="Date",w[w.Hours=3]="Hours",w[w.Minutes=4]="Minutes",w[w.Seconds=5]="Seconds",w[w.FractionalSeconds=6]="FractionalSeconds",w[w.Day=7]="Day",w}(c0||{}),f0=function(w){return w[w.DayPeriods=0]="DayPeriods",w[w.Days=1]="Days",w[w.Months=2]="Months",w[w.Eras=3]="Eras",w}(f0||{});function X4(w,q,R,U){let L1=function b2(w){if(m0(w))return w;if("number"==typeof w&&!isNaN(w))return new Date(w);if("string"==typeof w){if(w=w.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(w)){const[L1,X1=1,a2=1]=w.split("-").map(q2=>+q2);return T4(L1,X1-1,a2)}const R=parseFloat(w);if(!isNaN(w-R))return new Date(R);let U;if(U=w.match(B3))return function U0(w){const q=new Date(0);let R=0,U=0;const L1=w[8]?q.setUTCFullYear:q.setFullYear,X1=w[8]?q.setUTCHours:q.setHours;w[9]&&(R=Number(w[9]+w[10]),U=Number(w[9]+w[11])),L1.call(q,Number(w[1]),Number(w[2])-1,Number(w[3]));const a2=Number(w[4]||0)-R,q2=Number(w[5]||0)-U,g4=Number(w[6]||0),l4=Math.floor(1e3*parseFloat("0."+(w[7]||0)));return X1.call(q,a2,q2,g4,l4),q}(U)}const q=new Date(w);if(!m0(q))throw new Error(`Unable to convert "${w}" into a date`);return q}(w);q=Y2(R,q)||q;let q2,a2=[];for(;q;){if(q2=E6.exec(q),!q2){a2.push(q);break}{a2=a2.concat(q2.slice(1));const P=a2.pop();if(!P)break;q=P}}let g4=L1.getTimezoneOffset();U&&(g4=D1(U,g4),L1=function F2(w,q,R){const U=R?-1:1,L1=w.getTimezoneOffset();return function Z1(w,q){return(w=new Date(w.getTime())).setMinutes(w.getMinutes()+q),w}(w,U*(D1(q,L1)-L1))}(L1,U,!0));let l4="";return a2.forEach(P=>{const X=function m1(w){if(x1[w])return x1[w];let q;switch(w){case"G":case"GG":case"GGG":q=L0(f0.Eras,w2.Abbreviated);break;case"GGGG":q=L0(f0.Eras,w2.Wide);break;case"GGGGG":q=L0(f0.Eras,w2.Narrow);break;case"y":q=u0(c0.FullYear,1,0,!1,!0);break;case"yy":q=u0(c0.FullYear,2,0,!0,!0);break;case"yyy":q=u0(c0.FullYear,3,0,!1,!0);break;case"yyyy":q=u0(c0.FullYear,4,0,!1,!0);break;case"Y":q=s1(1);break;case"YY":q=s1(2,!0);break;case"YYY":q=s1(3);break;case"YYYY":q=s1(4);break;case"M":case"L":q=u0(c0.Month,1,1);break;case"MM":case"LL":q=u0(c0.Month,2,1);break;case"MMM":q=L0(f0.Months,w2.Abbreviated);break;case"MMMM":q=L0(f0.Months,w2.Wide);break;case"MMMMM":q=L0(f0.Months,w2.Narrow);break;case"LLL":q=L0(f0.Months,w2.Abbreviated,_2.Standalone);break;case"LLLL":q=L0(f0.Months,w2.Wide,_2.Standalone);break;case"LLLLL":q=L0(f0.Months,w2.Narrow,_2.Standalone);break;case"w":q=J2(1);break;case"ww":q=J2(2);break;case"W":q=J2(1,!0);break;case"d":q=u0(c0.Date,1);break;case"dd":q=u0(c0.Date,2);break;case"c":case"cc":q=u0(c0.Day,1);break;case"ccc":q=L0(f0.Days,w2.Abbreviated,_2.Standalone);break;case"cccc":q=L0(f0.Days,w2.Wide,_2.Standalone);break;case"ccccc":q=L0(f0.Days,w2.Narrow,_2.Standalone);break;case"cccccc":q=L0(f0.Days,w2.Short,_2.Standalone);break;case"E":case"EE":case"EEE":q=L0(f0.Days,w2.Abbreviated);break;case"EEEE":q=L0(f0.Days,w2.Wide);break;case"EEEEE":q=L0(f0.Days,w2.Narrow);break;case"EEEEEE":q=L0(f0.Days,w2.Short);break;case"a":case"aa":case"aaa":q=L0(f0.DayPeriods,w2.Abbreviated);break;case"aaaa":q=L0(f0.DayPeriods,w2.Wide);break;case"aaaaa":q=L0(f0.DayPeriods,w2.Narrow);break;case"b":case"bb":case"bbb":q=L0(f0.DayPeriods,w2.Abbreviated,_2.Standalone,!0);break;case"bbbb":q=L0(f0.DayPeriods,w2.Wide,_2.Standalone,!0);break;case"bbbbb":q=L0(f0.DayPeriods,w2.Narrow,_2.Standalone,!0);break;case"B":case"BB":case"BBB":q=L0(f0.DayPeriods,w2.Abbreviated,_2.Format,!0);break;case"BBBB":q=L0(f0.DayPeriods,w2.Wide,_2.Format,!0);break;case"BBBBB":q=L0(f0.DayPeriods,w2.Narrow,_2.Format,!0);break;case"h":q=u0(c0.Hours,1,-12);break;case"hh":q=u0(c0.Hours,2,-12);break;case"H":q=u0(c0.Hours,1);break;case"HH":q=u0(c0.Hours,2);break;case"m":q=u0(c0.Minutes,1);break;case"mm":q=u0(c0.Minutes,2);break;case"s":q=u0(c0.Seconds,1);break;case"ss":q=u0(c0.Seconds,2);break;case"S":q=u0(c0.FractionalSeconds,1);break;case"SS":q=u0(c0.FractionalSeconds,2);break;case"SSS":q=u0(c0.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":q=l3(q4.Short);break;case"ZZZZZ":q=l3(q4.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":q=l3(q4.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":q=l3(q4.Long);break;default:return null}return x1[w]=q,q}(P);l4+=X?X(L1,R,g4):"''"===P?"'":P.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l4}function T4(w,q,R){const U=new Date(0);return U.setFullYear(w,q,R),U.setHours(0,0,0),U}function Y2(w,q){const R=Z0(w);if(t3[R]??={},t3[R][q])return t3[R][q];let U="";switch(q){case"shortDate":U=E1(w,v2.Short);break;case"mediumDate":U=E1(w,v2.Medium);break;case"longDate":U=E1(w,v2.Long);break;case"fullDate":U=E1(w,v2.Full);break;case"shortTime":U=j1(w,v2.Short);break;case"mediumTime":U=j1(w,v2.Medium);break;case"longTime":U=j1(w,v2.Long);break;case"fullTime":U=j1(w,v2.Full);break;case"short":const L1=Y2(w,"shortTime"),X1=Y2(w,"shortDate");U=n3(A1(w,v2.Short),[L1,X1]);break;case"medium":const a2=Y2(w,"mediumTime"),q2=Y2(w,"mediumDate");U=n3(A1(w,v2.Medium),[a2,q2]);break;case"long":const g4=Y2(w,"longTime"),l4=Y2(w,"longDate");U=n3(A1(w,v2.Long),[g4,l4]);break;case"full":const P=Y2(w,"fullTime"),X=Y2(w,"fullDate");U=n3(A1(w,v2.Full),[P,X])}return U&&(t3[R][q]=U),U}function n3(w,q){return q&&(w=w.replace(/\{([^}]+)}/g,function(R,U){return null!=q&&U in q?q[U]:R})),w}function y4(w,q,R="-",U,L1){let X1="";(w<0||L1&&w<=0)&&(L1?w=1-w:(w=-w,X1=R));let a2=String(w);for(;a2.length0||q2>-R)&&(q2+=R),w===c0.Hours)0===q2&&-12===R&&(q2=12);else if(w===c0.FractionalSeconds)return function H4(w,q){return y4(w,3).substring(0,q)}(q2,q);const g4=H1(a2,t0.MinusSign);return y4(q2,q,g4,U,L1)}}function L0(w,q,R=_2.Format,U=!1){return function(L1,X1){return function S0(w,q,R,U,L1,X1){switch(R){case f0.Months:return function w0(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.MonthsFormat],U[m.KH2.MonthsStandalone]],q);return y0(X1,R)}(q,L1,U)[w.getMonth()];case f0.Days:return function x2(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.DaysFormat],U[m.KH2.DaysStandalone]],q);return y0(X1,R)}(q,L1,U)[w.getDay()];case f0.DayPeriods:const a2=w.getHours(),q2=w.getMinutes();if(X1){const l4=function s0(w){const q=(0,m.H5H)(w);return l0(q),(q[m.KH2.ExtraData][2]||[]).map(U=>"string"==typeof U?C4(U):[C4(U[0]),C4(U[1])])}(q),P=function D0(w,q,R){const U=(0,m.H5H)(w);l0(U);const X1=y0([U[m.KH2.ExtraData][0],U[m.KH2.ExtraData][1]],q)||[];return y0(X1,R)||[]}(q,L1,U),X=l4.findIndex(J=>{if(Array.isArray(J)){const[n1,_1]=J,S1=a2>=n1.hours&&q2>=n1.minutes,k1=a2<_1.hours||a2===_1.hours&&q2<_1.minutes;if(n1.hours<_1.hours){if(S1&&k1)return!0}else if(S1||k1)return!0}else if(J.hours===a2&&J.minutes===q2)return!0;return!1});if(-1!==X)return P[X]}return function B4(w,q,R){const U=(0,m.H5H)(w),X1=y0([U[m.KH2.DayPeriodsFormat],U[m.KH2.DayPeriodsStandalone]],q);return y0(X1,R)}(q,L1,U)[a2<12?0:1];case f0.Eras:return function v1(w,q){return y0((0,m.H5H)(w)[m.KH2.Eras],q)}(q,U)[w.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${R}`)}}(L1,X1,w,q,R,U)}}function l3(w){return function(q,R,U){const L1=-1*U,X1=H1(R,t0.MinusSign),a2=L1>0?Math.floor(L1/60):Math.ceil(L1/60);switch(w){case q4.Short:return(L1>=0?"+":"")+y4(a2,2,X1)+y4(Math.abs(L1%60),2,X1);case q4.ShortGMT:return"GMT"+(L1>=0?"+":"")+y4(a2,1,X1);case q4.Long:return"GMT"+(L1>=0?"+":"")+y4(a2,2,X1)+":"+y4(Math.abs(L1%60),2,X1);case q4.Extended:return 0===U?"Z":(L1>=0?"+":"")+y4(a2,2,X1)+":"+y4(Math.abs(L1%60),2,X1);default:throw new Error(`Unknown zone width "${w}"`)}}}const T0=0,V4=4;function F3(w){const q=w.getDay(),R=0===q?-3:V4-q;return T4(w.getFullYear(),w.getMonth(),w.getDate()+R)}function J2(w,q=!1){return function(R,U){let L1;if(q){const X1=new Date(R.getFullYear(),R.getMonth(),1).getDay()-1,a2=R.getDate();L1=1+Math.floor((a2+X1)/7)}else{const X1=F3(R),a2=function s3(w){const q=T4(w,T0,1).getDay();return T4(w,0,1+(q<=V4?V4:V4+7)-q)}(X1.getFullYear()),q2=X1.getTime()-a2.getTime();L1=1+Math.round(q2/6048e5)}return y4(L1,w,H1(U,t0.MinusSign))}}function s1(w,q=!1){return function(R,U){return y4(F3(R).getFullYear(),w,H1(U,t0.MinusSign),q)}}const x1={};function D1(w,q){w=w.replace(/:/g,"");const R=Date.parse("Jan 01, 1970 00:00:00 "+w)/6e4;return isNaN(R)?q:R}function m0(w){return w instanceof Date&&!isNaN(w.valueOf())}const t4=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function E3(w){const q=parseInt(w);if(isNaN(q))throw new Error("Invalid integer literal when parsing "+w);return q}function b1(w,q){q=encodeURIComponent(q);for(const R of w.split(";")){const U=R.indexOf("="),[L1,X1]=-1==U?[R,""]:[R.slice(0,U),R.slice(U+1)];if(L1.trim()===q)return decodeURIComponent(X1)}return null}const F1=/\s+/,J1=[];let q1=(()=>{class w{constructor(R,U){this._ngEl=R,this._renderer=U,this.initialClasses=J1,this.stateMap=new Map}set klass(R){this.initialClasses=null!=R?R.trim().split(F1):J1}set ngClass(R){this.rawClass="string"==typeof R?R.trim().split(F1):R}ngDoCheck(){for(const U of this.initialClasses)this._updateState(U,!0);const R=this.rawClass;if(Array.isArray(R)||R instanceof Set)for(const U of R)this._updateState(U,!0);else if(null!=R)for(const U of Object.keys(R))this._updateState(U,!!R[U]);this._applyStateDiff()}_updateState(R,U){const L1=this.stateMap.get(R);void 0!==L1?(L1.enabled!==U&&(L1.changed=!0,L1.enabled=U),L1.touched=!0):this.stateMap.set(R,{enabled:U,changed:!0,touched:!0})}_applyStateDiff(){for(const R of this.stateMap){const U=R[0],L1=R[1];L1.changed?(this._toggleClass(U,L1.enabled),L1.changed=!1):L1.touched||(L1.enabled&&this._toggleClass(U,!1),this.stateMap.delete(U)),L1.touched=!1}}_toggleClass(R,U){(R=R.trim()).length>0&&R.split(F1).forEach(L1=>{U?this._renderer.addClass(this._ngEl.nativeElement,L1):this._renderer.removeClass(this._ngEl.nativeElement,L1)})}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.aKT),m.rXU(m.sFG))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngClass",""]],inputs:{klass:[m.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return w})();class M0{constructor(q,R,U,L1){this.$implicit=q,this.ngForOf=R,this.index=U,this.count=L1}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let X2=(()=>{class w{set ngForOf(R){this._ngForOf=R,this._ngForOfDirty=!0}set ngForTrackBy(R){this._trackByFn=R}get ngForTrackBy(){return this._trackByFn}constructor(R,U,L1){this._viewContainer=R,this._template=U,this._differs=L1,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(R){R&&(this._template=R)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const R=this._ngForOf;!this._differ&&R&&(this._differ=this._differs.find(R).create(this.ngForTrackBy))}if(this._differ){const R=this._differ.diff(this._ngForOf);R&&this._applyChanges(R)}}_applyChanges(R){const U=this._viewContainer;R.forEachOperation((L1,X1,a2)=>{if(null==L1.previousIndex)U.createEmbeddedView(this._template,new M0(L1.item,this._ngForOf,-1,-1),null===a2?void 0:a2);else if(null==a2)U.remove(null===X1?void 0:X1);else if(null!==X1){const q2=U.get(X1);U.move(q2,a2),P2(q2,L1)}});for(let L1=0,X1=U.length;L1{P2(U.get(L1.currentIndex),L1)})}static ngTemplateContextGuard(R,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b),m.rXU(m.C4Q),m.rXU(m._q3))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return w})();function P2(w,q){w.context.$implicit=q.item}let F0=(()=>{class w{constructor(R,U){this._viewContainer=R,this._context=new P0,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=U}set ngIf(R){this._context.$implicit=this._context.ngIf=R,this._updateView()}set ngIfThen(R){o4("ngIfThen",R),this._thenTemplateRef=R,this._thenViewRef=null,this._updateView()}set ngIfElse(R){o4("ngIfElse",R),this._elseTemplateRef=R,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(R,U){return!0}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b),m.rXU(m.C4Q))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return w})();class P0{constructor(){this.$implicit=null,this.ngIf=null}}function o4(w,q){if(q&&!q.createEmbeddedView)throw new Error(`${w} must be a TemplateRef, but received '${(0,m.Tbb)(q)}'.`)}let a0=(()=>{class w{constructor(R,U,L1){this._ngEl=R,this._differs=U,this._renderer=L1,this._ngStyle=null,this._differ=null}set ngStyle(R){this._ngStyle=R,!this._differ&&R&&(this._differ=this._differs.find(R).create())}ngDoCheck(){if(this._differ){const R=this._differ.diff(this._ngStyle);R&&this._applyChanges(R)}}_setStyle(R,U){const[L1,X1]=R.split("."),a2=-1===L1.indexOf("-")?void 0:m.czy.DashCase;null!=U?this._renderer.setStyle(this._ngEl.nativeElement,L1,X1?`${U}${X1}`:U,a2):this._renderer.removeStyle(this._ngEl.nativeElement,L1,a2)}_applyChanges(R){R.forEachRemovedItem(U=>this._setStyle(U.key,null)),R.forEachAddedItem(U=>this._setStyle(U.key,U.currentValue)),R.forEachChangedItem(U=>this._setStyle(U.key,U.currentValue))}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.aKT),m.rXU(m.MKu),m.rXU(m.sFG))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return w})(),H2=(()=>{class w{constructor(R){this._viewContainerRef=R,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(R){if(this._shouldRecreateView(R)){const U=this._viewContainerRef;if(this._viewRef&&U.remove(U.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const L1=this._createContextForwardProxy();this._viewRef=U.createEmbeddedView(this.ngTemplateOutlet,L1,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(R){return!!R.ngTemplateOutlet||!!R.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(R,U,L1)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,U,L1),get:(R,U,L1)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,U,L1)}})}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.c1b))}}static{this.\u0275dir=m.FsC({type:w,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[m.OA$]})}}return w})();function a3(w,q){return new m.wOt(2100,!1)}class h6{createSubscription(q,R){return(0,m.O8t)(()=>q.subscribe({next:R,error:U=>{throw U}}))}dispose(q){(0,m.O8t)(()=>q.unsubscribe())}}class T6{createSubscription(q,R){return q.then(R,U=>{throw U})}dispose(q){}}const R8=new T6,t6=new h6;let b0=(()=>{class w{constructor(R){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=R}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(R){if(!this._obj){if(R)try{this.markForCheckOnValueUpdate=!1,this._subscribe(R)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return R!==this._obj?(this._dispose(),this.transform(R)):this._latestValue}_subscribe(R){this._obj=R,this._strategy=this._selectStrategy(R),this._subscription=this._strategy.createSubscription(R,U=>this._updateLatestValue(R,U))}_selectStrategy(R){if((0,m.jNT)(R))return R8;if((0,m.zjR)(R))return t6;throw a3()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(R,U){R===this._obj&&(this._latestValue=U,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.gRc,16))}}static{this.\u0275pipe=m.EJ8({name:"async",type:w,pure:!1,standalone:!0})}}return w})();const R6=new m.nKC(""),n4=new m.nKC("");let P4=(()=>{class w{constructor(R,U,L1){this.locale=R,this.defaultTimezone=U,this.defaultOptions=L1}transform(R,U,L1,X1){if(null==R||""===R||R!=R)return null;try{return X4(R,U??this.defaultOptions?.dateFormat??"mediumDate",X1||this.locale,L1??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(a2){throw a3()}}static{this.\u0275fac=function(U){return new(U||w)(m.rXU(m.xe9,16),m.rXU(R6,24),m.rXU(n4,24))}}static{this.\u0275pipe=m.EJ8({name:"date",type:w,pure:!0,standalone:!0})}}return w})(),v3=(()=>{class w{constructor(R){this._locale=R}transform(R,U,L1){if(!function V3(w){return!(null==w||""===w||w!=w)}(R))return null;L1||=this._locale;try{return function R4(w,q,R){return function M4(w,q,R,U,L1,X1,a2=!1){let q2="",g4=!1;if(isFinite(w)){let l4=function Y4(w){let U,L1,X1,a2,q2,q=Math.abs(w)+"",R=0;for((L1=q.indexOf("."))>-1&&(q=q.replace(".","")),(X1=q.search(/e/i))>0?(L1<0&&(L1=X1),L1+=+q.slice(X1+1),q=q.substring(0,X1)):L1<0&&(L1=q.length),X1=0;"0"===q.charAt(X1);X1++);if(X1===(q2=q.length))U=[0],L1=1;else{for(q2--;"0"===q.charAt(q2);)q2--;for(L1-=X1,U=[],a2=0;X1<=q2;X1++,a2++)U[a2]=Number(q.charAt(X1))}return L1>22&&(U=U.splice(0,21),R=L1-1,L1=1),{digits:U,exponent:R,integerLen:L1}}(w);a2&&(l4=function m6(w){if(0===w.digits[0])return w;const q=w.digits.length-w.integerLen;return w.exponent?w.exponent+=2:(0===q?w.digits.push(0,0):1===q&&w.digits.push(0),w.integerLen+=2),w}(l4));let P=q.minInt,X=q.minFrac,J=q.maxFrac;if(X1){const y2=X1.match(t4);if(null===y2)throw new Error(`${X1} is not a valid digit info`);const R2=y2[1],j2=y2[3],g0=y2[5];null!=R2&&(P=E3(R2)),null!=j2&&(X=E3(j2)),null!=g0?J=E3(g0):null!=j2&&X>J&&(J=X)}!function C1(w,q,R){if(q>R)throw new Error(`The minimum number of digits after fraction (${q}) is higher than the maximum (${R}).`);let U=w.digits,L1=U.length-w.integerLen;const X1=Math.min(Math.max(q,L1),R);let a2=X1+w.integerLen,q2=U[a2];if(a2>0){U.splice(Math.max(w.integerLen,a2));for(let X=a2;X=5)if(a2-1<0){for(let X=0;X>a2;X--)U.unshift(0),w.integerLen++;U.unshift(1),w.integerLen++}else U[a2-1]++;for(;L1=l4?_1.pop():g4=!1),J>=10?1:0},0);P&&(U.unshift(P),w.integerLen++)}(l4,X,J);let n1=l4.digits,_1=l4.integerLen;const S1=l4.exponent;let k1=[];for(g4=n1.every(y2=>!y2);_10?k1=n1.splice(_1,n1.length):(k1=n1,n1=[0]);const U1=[];for(n1.length>=q.lgSize&&U1.unshift(n1.splice(-q.lgSize,n1.length).join(""));n1.length>q.gSize;)U1.unshift(n1.splice(-q.gSize,n1.length).join(""));n1.length&&U1.unshift(n1.join("")),q2=U1.join(H1(R,U)),k1.length&&(q2+=H1(R,L1)+k1.join("")),S1&&(q2+=H1(R,t0.Exponential)+"+"+S1)}else q2=H1(R,t0.Infinity);return q2=w<0&&!g4?q.negPre+q2+q.negSuf:q.posPre+q2+q.posSuf,q2}(w,function z0(w,q="-"){const R={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},U=w.split(";"),L1=U[0],X1=U[1],a2=-1!==L1.indexOf(".")?L1.split("."):[L1.substring(0,L1.lastIndexOf("0")+1),L1.substring(L1.lastIndexOf("0")+1)],q2=a2[0],g4=a2[1]||"";R.posPre=q2.substring(0,q2.indexOf("#"));for(let P=0;P{class w{static{this.\u0275fac=function(U){return new(U||w)}}static{this.\u0275mod=m.$C({type:w})}static{this.\u0275inj=m.G2t({})}}return w})();const I6="browser",Q6="server";function G0(w){return w===I6}function l6(w){return w===Q6}let f3=(()=>{class w{static{this.\u0275prov=(0,m.jDH)({token:w,providedIn:"root",factory:()=>G0((0,m.WQX)(m.Agw))?new o3((0,m.WQX)(A),window):new R3})}}return w})();class o3{constructor(q,R){this.document=q,this.window=R,this.offset=()=>[0,0]}setOffset(q){this.offset=Array.isArray(q)?()=>q:q}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(q){this.window.scrollTo(q[0],q[1])}scrollToAnchor(q){const R=function Q4(w,q){const R=w.getElementById(q)||w.getElementsByName(q)[0];if(R)return R;if("function"==typeof w.createTreeWalker&&w.body&&"function"==typeof w.body.attachShadow){const U=w.createTreeWalker(w.body,NodeFilter.SHOW_ELEMENT);let L1=U.currentNode;for(;L1;){const X1=L1.shadowRoot;if(X1){const a2=X1.getElementById(q)||X1.querySelector(`[name="${q}"]`);if(a2)return a2}L1=U.nextNode()}}return null}(this.document,q);R&&(this.scrollToElement(R),R.focus())}setHistoryScrollRestoration(q){this.window.history.scrollRestoration=q}scrollToElement(q){const R=q.getBoundingClientRect(),U=R.left+this.window.pageXOffset,L1=R.top+this.window.pageYOffset,X1=this.offset();this.window.scrollTo(U-X1[0],L1-X1[1])}}class R3{setOffset(q){}getScrollPosition(){return[0,0]}scrollToPosition(q){}scrollToAnchor(q){}setHistoryScrollRestoration(q){}}class Z6{}},1626:(y1,d1,y)=>{"use strict";y.d(d1,{Lr:()=>e1,Nl:()=>G1,Qq:()=>E1,a7:()=>s0,q1:()=>F4}),y(467);var g=y(4438),e=y(7673),p=y(1985),_=y(6648),S=y(274),A=y(5964),$=y(6354),Z=y(980),K=y(5558),p1=y(177);class Y{}class h1{}class e1{constructor(b1){this.normalizedNames=new Map,this.lazyUpdate=null,b1?"string"==typeof b1?this.lazyInit=()=>{this.headers=new Map,b1.split("\n").forEach(F1=>{const J1=F1.indexOf(":");if(J1>0){const q1=F1.slice(0,J1),u2=q1.toLowerCase(),h2=F1.slice(J1+1).trim();this.maybeSetNormalizedName(q1,u2),this.headers.has(u2)?this.headers.get(u2).push(h2):this.headers.set(u2,[h2])}})}:typeof Headers<"u"&&b1 instanceof Headers?(this.headers=new Map,b1.forEach((F1,J1)=>{this.setHeaderEntries(J1,F1)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(b1).forEach(([F1,J1])=>{this.setHeaderEntries(F1,J1)})}:this.headers=new Map}has(b1){return this.init(),this.headers.has(b1.toLowerCase())}get(b1){this.init();const F1=this.headers.get(b1.toLowerCase());return F1&&F1.length>0?F1[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(b1){return this.init(),this.headers.get(b1.toLowerCase())||null}append(b1,F1){return this.clone({name:b1,value:F1,op:"a"})}set(b1,F1){return this.clone({name:b1,value:F1,op:"s"})}delete(b1,F1){return this.clone({name:b1,value:F1,op:"d"})}maybeSetNormalizedName(b1,F1){this.normalizedNames.has(F1)||this.normalizedNames.set(F1,b1)}init(){this.lazyInit&&(this.lazyInit instanceof e1?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(b1=>this.applyUpdate(b1)),this.lazyUpdate=null))}copyFrom(b1){b1.init(),Array.from(b1.headers.keys()).forEach(F1=>{this.headers.set(F1,b1.headers.get(F1)),this.normalizedNames.set(F1,b1.normalizedNames.get(F1))})}clone(b1){const F1=new e1;return F1.lazyInit=this.lazyInit&&this.lazyInit instanceof e1?this.lazyInit:this,F1.lazyUpdate=(this.lazyUpdate||[]).concat([b1]),F1}applyUpdate(b1){const F1=b1.name.toLowerCase();switch(b1.op){case"a":case"s":let J1=b1.value;if("string"==typeof J1&&(J1=[J1]),0===J1.length)return;this.maybeSetNormalizedName(b1.name,F1);const q1=("a"===b1.op?this.headers.get(F1):void 0)||[];q1.push(...J1),this.headers.set(F1,q1);break;case"d":const u2=b1.value;if(u2){let h2=this.headers.get(F1);if(!h2)return;h2=h2.filter(M0=>-1===u2.indexOf(M0)),0===h2.length?(this.headers.delete(F1),this.normalizedNames.delete(F1)):this.headers.set(F1,h2)}else this.headers.delete(F1),this.normalizedNames.delete(F1)}}setHeaderEntries(b1,F1){const J1=(Array.isArray(F1)?F1:[F1]).map(u2=>u2.toString()),q1=b1.toLowerCase();this.headers.set(q1,J1),this.maybeSetNormalizedName(b1,q1)}forEach(b1){this.init(),Array.from(this.normalizedNames.keys()).forEach(F1=>b1(this.normalizedNames.get(F1),this.headers.get(F1)))}}class M1{encodeKey(b1){return S2(b1)}encodeValue(b1){return S2(b1)}decodeKey(b1){return decodeURIComponent(b1)}decodeValue(b1){return decodeURIComponent(b1)}}const $1=/%(\d[a-f0-9])/gi,o2={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function S2(o1){return encodeURIComponent(o1).replace($1,(b1,F1)=>o2[F1]??b1)}function c2(o1){return`${o1}`}class G1{constructor(b1={}){if(this.updates=null,this.cloneFrom=null,this.encoder=b1.encoder||new M1,b1.fromString){if(b1.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f1(o1,b1){const F1=new Map;return o1.length>0&&o1.replace(/^\?/,"").split("&").forEach(q1=>{const u2=q1.indexOf("="),[h2,M0]=-1==u2?[b1.decodeKey(q1),""]:[b1.decodeKey(q1.slice(0,u2)),b1.decodeValue(q1.slice(u2+1))],X2=F1.get(h2)||[];X2.push(M0),F1.set(h2,X2)}),F1}(b1.fromString,this.encoder)}else b1.fromObject?(this.map=new Map,Object.keys(b1.fromObject).forEach(F1=>{const J1=b1.fromObject[F1],q1=Array.isArray(J1)?J1.map(c2):[c2(J1)];this.map.set(F1,q1)})):this.map=null}has(b1){return this.init(),this.map.has(b1)}get(b1){this.init();const F1=this.map.get(b1);return F1?F1[0]:null}getAll(b1){return this.init(),this.map.get(b1)||null}keys(){return this.init(),Array.from(this.map.keys())}append(b1,F1){return this.clone({param:b1,value:F1,op:"a"})}appendAll(b1){const F1=[];return Object.keys(b1).forEach(J1=>{const q1=b1[J1];Array.isArray(q1)?q1.forEach(u2=>{F1.push({param:J1,value:u2,op:"a"})}):F1.push({param:J1,value:q1,op:"a"})}),this.clone(F1)}set(b1,F1){return this.clone({param:b1,value:F1,op:"s"})}delete(b1,F1){return this.clone({param:b1,value:F1,op:"d"})}toString(){return this.init(),this.keys().map(b1=>{const F1=this.encoder.encodeKey(b1);return this.map.get(b1).map(J1=>F1+"="+this.encoder.encodeValue(J1)).join("&")}).filter(b1=>""!==b1).join("&")}clone(b1){const F1=new G1({encoder:this.encoder});return F1.cloneFrom=this.cloneFrom||this,F1.updates=(this.updates||[]).concat(b1),F1}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(b1=>this.map.set(b1,this.cloneFrom.map.get(b1))),this.updates.forEach(b1=>{switch(b1.op){case"a":case"s":const F1=("a"===b1.op?this.map.get(b1.param):void 0)||[];F1.push(c2(b1.value)),this.map.set(b1.param,F1);break;case"d":if(void 0===b1.value){this.map.delete(b1.param);break}{let J1=this.map.get(b1.param)||[];const q1=J1.indexOf(c2(b1.value));-1!==q1&&J1.splice(q1,1),J1.length>0?this.map.set(b1.param,J1):this.map.delete(b1.param)}}}),this.cloneFrom=this.updates=null)}}class d0{constructor(){this.map=new Map}set(b1,F1){return this.map.set(b1,F1),this}get(b1){return this.map.has(b1)||this.map.set(b1,b1.defaultValue()),this.map.get(b1)}delete(b1){return this.map.delete(b1),this}has(b1){return this.map.has(b1)}keys(){return this.map.keys()}}function _2(o1){return typeof ArrayBuffer<"u"&&o1 instanceof ArrayBuffer}function w2(o1){return typeof Blob<"u"&&o1 instanceof Blob}function v2(o1){return typeof FormData<"u"&&o1 instanceof FormData}class X0{constructor(b1,F1,J1,q1){let u2;if(this.url=F1,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=b1.toUpperCase(),function d2(o1){switch(o1){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||q1?(this.body=void 0!==J1?J1:null,u2=q1):u2=J1,u2&&(this.reportProgress=!!u2.reportProgress,this.withCredentials=!!u2.withCredentials,u2.responseType&&(this.responseType=u2.responseType),u2.headers&&(this.headers=u2.headers),u2.context&&(this.context=u2.context),u2.params&&(this.params=u2.params),this.transferCache=u2.transferCache),this.headers??=new e1,this.context??=new d0,this.params){const h2=this.params.toString();if(0===h2.length)this.urlWithParams=F1;else{const M0=F1.indexOf("?");this.urlWithParams=F1+(-1===M0?"?":M0P0.set(o4,b1.setHeaders[o4]),P2)),b1.setParams&&(e4=Object.keys(b1.setParams).reduce((P0,o4)=>P0.set(o4,b1.setParams[o4]),e4)),new X0(F1,J1,h2,{params:e4,headers:P2,context:F0,reportProgress:X2,responseType:q1,withCredentials:M0,transferCache:u2})}}var Z0=function(o1){return o1[o1.Sent=0]="Sent",o1[o1.UploadProgress=1]="UploadProgress",o1[o1.ResponseHeader=2]="ResponseHeader",o1[o1.DownloadProgress=3]="DownloadProgress",o1[o1.Response=4]="Response",o1[o1.User=5]="User",o1}(Z0||{});class B4{constructor(b1,F1=e2.Ok,J1="OK"){this.headers=b1.headers||new e1,this.status=void 0!==b1.status?b1.status:F1,this.statusText=b1.statusText||J1,this.url=b1.url||null,this.ok=this.status>=200&&this.status<300}}class x2 extends B4{constructor(b1={}){super(b1),this.type=Z0.ResponseHeader}clone(b1={}){return new x2({headers:b1.headers||this.headers,status:void 0!==b1.status?b1.status:this.status,statusText:b1.statusText||this.statusText,url:b1.url||this.url||void 0})}}class w0 extends B4{constructor(b1={}){super(b1),this.type=Z0.Response,this.body=void 0!==b1.body?b1.body:null}clone(b1={}){return new w0({body:void 0!==b1.body?b1.body:this.body,headers:b1.headers||this.headers,status:void 0!==b1.status?b1.status:this.status,statusText:b1.statusText||this.statusText,url:b1.url||this.url||void 0})}}class v1 extends B4{constructor(b1){super(b1,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${b1.url||"(unknown url)"}`:`Http failure response for ${b1.url||"(unknown url)"}: ${b1.status} ${b1.statusText}`,this.error=b1.error||null}}var e2=function(o1){return o1[o1.Continue=100]="Continue",o1[o1.SwitchingProtocols=101]="SwitchingProtocols",o1[o1.Processing=102]="Processing",o1[o1.EarlyHints=103]="EarlyHints",o1[o1.Ok=200]="Ok",o1[o1.Created=201]="Created",o1[o1.Accepted=202]="Accepted",o1[o1.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",o1[o1.NoContent=204]="NoContent",o1[o1.ResetContent=205]="ResetContent",o1[o1.PartialContent=206]="PartialContent",o1[o1.MultiStatus=207]="MultiStatus",o1[o1.AlreadyReported=208]="AlreadyReported",o1[o1.ImUsed=226]="ImUsed",o1[o1.MultipleChoices=300]="MultipleChoices",o1[o1.MovedPermanently=301]="MovedPermanently",o1[o1.Found=302]="Found",o1[o1.SeeOther=303]="SeeOther",o1[o1.NotModified=304]="NotModified",o1[o1.UseProxy=305]="UseProxy",o1[o1.Unused=306]="Unused",o1[o1.TemporaryRedirect=307]="TemporaryRedirect",o1[o1.PermanentRedirect=308]="PermanentRedirect",o1[o1.BadRequest=400]="BadRequest",o1[o1.Unauthorized=401]="Unauthorized",o1[o1.PaymentRequired=402]="PaymentRequired",o1[o1.Forbidden=403]="Forbidden",o1[o1.NotFound=404]="NotFound",o1[o1.MethodNotAllowed=405]="MethodNotAllowed",o1[o1.NotAcceptable=406]="NotAcceptable",o1[o1.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",o1[o1.RequestTimeout=408]="RequestTimeout",o1[o1.Conflict=409]="Conflict",o1[o1.Gone=410]="Gone",o1[o1.LengthRequired=411]="LengthRequired",o1[o1.PreconditionFailed=412]="PreconditionFailed",o1[o1.PayloadTooLarge=413]="PayloadTooLarge",o1[o1.UriTooLong=414]="UriTooLong",o1[o1.UnsupportedMediaType=415]="UnsupportedMediaType",o1[o1.RangeNotSatisfiable=416]="RangeNotSatisfiable",o1[o1.ExpectationFailed=417]="ExpectationFailed",o1[o1.ImATeapot=418]="ImATeapot",o1[o1.MisdirectedRequest=421]="MisdirectedRequest",o1[o1.UnprocessableEntity=422]="UnprocessableEntity",o1[o1.Locked=423]="Locked",o1[o1.FailedDependency=424]="FailedDependency",o1[o1.TooEarly=425]="TooEarly",o1[o1.UpgradeRequired=426]="UpgradeRequired",o1[o1.PreconditionRequired=428]="PreconditionRequired",o1[o1.TooManyRequests=429]="TooManyRequests",o1[o1.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",o1[o1.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",o1[o1.InternalServerError=500]="InternalServerError",o1[o1.NotImplemented=501]="NotImplemented",o1[o1.BadGateway=502]="BadGateway",o1[o1.ServiceUnavailable=503]="ServiceUnavailable",o1[o1.GatewayTimeout=504]="GatewayTimeout",o1[o1.HttpVersionNotSupported=505]="HttpVersionNotSupported",o1[o1.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",o1[o1.InsufficientStorage=507]="InsufficientStorage",o1[o1.LoopDetected=508]="LoopDetected",o1[o1.NotExtended=510]="NotExtended",o1[o1.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",o1}(e2||{});function C2(o1,b1){return{body:b1,headers:o1.headers,context:o1.context,observe:o1.observe,params:o1.params,reportProgress:o1.reportProgress,responseType:o1.responseType,withCredentials:o1.withCredentials,transferCache:o1.transferCache}}let E1=(()=>{class o1{constructor(F1){this.handler=F1}request(F1,J1,q1={}){let u2;if(F1 instanceof X0)u2=F1;else{let X2,P2;X2=q1.headers instanceof e1?q1.headers:new e1(q1.headers),q1.params&&(P2=q1.params instanceof G1?q1.params:new G1({fromObject:q1.params})),u2=new X0(F1,J1,void 0!==q1.body?q1.body:null,{headers:X2,context:q1.context,params:P2,reportProgress:q1.reportProgress,responseType:q1.responseType||"json",withCredentials:q1.withCredentials,transferCache:q1.transferCache})}const h2=(0,e.of)(u2).pipe((0,S.H)(X2=>this.handler.handle(X2)));if(F1 instanceof X0||"events"===q1.observe)return h2;const M0=h2.pipe((0,A.p)(X2=>X2 instanceof w0));switch(q1.observe||"body"){case"body":switch(u2.responseType){case"arraybuffer":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&!(X2.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return X2.body}));case"blob":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&!(X2.body instanceof Blob))throw new Error("Response is not a Blob.");return X2.body}));case"text":return M0.pipe((0,$.T)(X2=>{if(null!==X2.body&&"string"!=typeof X2.body)throw new Error("Response is not a string.");return X2.body}));default:return M0.pipe((0,$.T)(X2=>X2.body))}case"response":return M0;default:throw new Error(`Unreachable: unhandled observe type ${q1.observe}}`)}}delete(F1,J1={}){return this.request("DELETE",F1,J1)}get(F1,J1={}){return this.request("GET",F1,J1)}head(F1,J1={}){return this.request("HEAD",F1,J1)}jsonp(F1,J1){return this.request("JSONP",F1,{params:(new G1).append(J1,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(F1,J1={}){return this.request("OPTIONS",F1,J1)}patch(F1,J1,q1={}){return this.request("PATCH",F1,C2(q1,J1))}post(F1,J1,q1={}){return this.request("POST",F1,C2(q1,J1))}put(F1,J1,q1={}){return this.request("PUT",F1,C2(q1,J1))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(Y))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();function s2(o1,b1){return b1(o1)}function p2(o1,b1){return(F1,J1)=>b1.intercept(F1,{handle:q1=>o1(q1,J1)})}const s0=new g.nKC(""),D0=new g.nKC(""),K2=new g.nKC(""),y0=new g.nKC("");function C4(){let o1=null;return(b1,F1)=>{null===o1&&(o1=((0,g.WQX)(s0,{optional:!0})??[]).reduceRight(p2,s2));const J1=(0,g.WQX)(g.TgB),q1=J1.add();return o1(b1,F1).pipe((0,Z.j)(()=>J1.remove(q1)))}}let m4=(()=>{class o1 extends Y{constructor(F1,J1){super(),this.backend=F1,this.injector=J1,this.chain=null,this.pendingTasks=(0,g.WQX)(g.TgB);const q1=(0,g.WQX)(y0,{optional:!0});this.backend=q1??F1}handle(F1){if(null===this.chain){const q1=Array.from(new Set([...this.injector.get(D0),...this.injector.get(K2,[])]));this.chain=q1.reduceRight((u2,h2)=>function l0(o1,b1,F1){return(J1,q1)=>(0,g.N4e)(F1,()=>b1(J1,u2=>o1(u2,q1)))}(u2,h2,this.injector),s2)}const J1=this.pendingTasks.add();return this.chain(F1,q1=>this.backend.handle(q1)).pipe((0,Z.j)(()=>this.pendingTasks.remove(J1)))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(h1),g.KVO(g.uvJ))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();const H4=/^\)\]\}',?\n/;let $4=(()=>{class o1{constructor(F1){this.xhrFactory=F1}handle(F1){if("JSONP"===F1.method)throw new g.wOt(-2800,!1);const J1=this.xhrFactory;return(J1.\u0275loadImpl?(0,_.H)(J1.\u0275loadImpl()):(0,e.of)(null)).pipe((0,K.n)(()=>new p.c(u2=>{const h2=J1.build();if(h2.open(F1.method,F1.urlWithParams),F1.withCredentials&&(h2.withCredentials=!0),F1.headers.forEach((R0,A0)=>h2.setRequestHeader(R0,A0.join(","))),F1.headers.has("Accept")||h2.setRequestHeader("Accept","application/json, text/plain, */*"),!F1.headers.has("Content-Type")){const R0=F1.detectContentTypeHeader();null!==R0&&h2.setRequestHeader("Content-Type",R0)}if(F1.responseType){const R0=F1.responseType.toLowerCase();h2.responseType="json"!==R0?R0:"text"}const M0=F1.serializeBody();let X2=null;const P2=()=>{if(null!==X2)return X2;const R0=h2.statusText||"OK",A0=new e1(h2.getAllResponseHeaders()),A4=function u0(o1){return"responseURL"in o1&&o1.responseURL?o1.responseURL:/^X-Request-URL:/m.test(o1.getAllResponseHeaders())?o1.getResponseHeader("X-Request-URL"):null}(h2)||F1.url;return X2=new x2({headers:A0,status:h2.status,statusText:R0,url:A4}),X2},e4=()=>{let{headers:R0,status:A0,statusText:A4,url:W4}=P2(),d4=null;A0!==e2.NoContent&&(d4=typeof h2.response>"u"?h2.responseText:h2.response),0===A0&&(A0=d4?e2.Ok:0);let c4=A0>=200&&A0<300;if("json"===F1.responseType&&"string"==typeof d4){const I4=d4;d4=d4.replace(H4,"");try{d4=""!==d4?JSON.parse(d4):null}catch(U4){d4=I4,c4&&(c4=!1,d4={error:U4,text:d4})}}c4?(u2.next(new w0({body:d4,headers:R0,status:A0,statusText:A4,url:W4||void 0})),u2.complete()):u2.error(new v1({error:d4,headers:R0,status:A0,statusText:A4,url:W4||void 0}))},F0=R0=>{const{url:A0}=P2(),A4=new v1({error:R0,status:h2.status||0,statusText:h2.statusText||"Unknown Error",url:A0||void 0});u2.error(A4)};let P0=!1;const o4=R0=>{P0||(u2.next(P2()),P0=!0);let A0={type:Z0.DownloadProgress,loaded:R0.loaded};R0.lengthComputable&&(A0.total=R0.total),"text"===F1.responseType&&h2.responseText&&(A0.partialText=h2.responseText),u2.next(A0)},v4=R0=>{let A0={type:Z0.UploadProgress,loaded:R0.loaded};R0.lengthComputable&&(A0.total=R0.total),u2.next(A0)};return h2.addEventListener("load",e4),h2.addEventListener("error",F0),h2.addEventListener("timeout",F0),h2.addEventListener("abort",F0),F1.reportProgress&&(h2.addEventListener("progress",o4),null!==M0&&h2.upload&&h2.upload.addEventListener("progress",v4)),h2.send(M0),u2.next({type:Z0.Sent}),()=>{h2.removeEventListener("error",F0),h2.removeEventListener("abort",F0),h2.removeEventListener("load",e4),h2.removeEventListener("timeout",F0),F1.reportProgress&&(h2.removeEventListener("progress",o4),null!==M0&&h2.upload&&h2.upload.removeEventListener("progress",v4)),h2.readyState!==h2.DONE&&h2.abort()}})))}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(p1.N0))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();const L0=new g.nKC(""),l3=new g.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),V4=new g.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class s3{}let F3=(()=>{class o1{constructor(F1,J1,q1){this.doc=F1,this.platform=J1,this.cookieName=q1,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const F1=this.doc.cookie||"";return F1!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,p1._b)(F1,this.cookieName),this.lastCookieString=F1),this.lastToken}static{this.\u0275fac=function(J1){return new(J1||o1)(g.KVO(p1.qQ),g.KVO(g.Agw),g.KVO(l3))}}static{this.\u0275prov=g.jDH({token:o1,factory:o1.\u0275fac})}}return o1})();function J2(o1,b1){const F1=o1.url.toLowerCase();if(!(0,g.WQX)(L0)||"GET"===o1.method||"HEAD"===o1.method||F1.startsWith("http://")||F1.startsWith("https://"))return b1(o1);const J1=(0,g.WQX)(s3).getToken(),q1=(0,g.WQX)(V4);return null!=J1&&!o1.headers.has(q1)&&(o1=o1.clone({headers:o1.headers.set(q1,J1)})),b1(o1)}var x1=function(o1){return o1[o1.Interceptors=0]="Interceptors",o1[o1.LegacyInterceptors=1]="LegacyInterceptors",o1[o1.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",o1[o1.NoXsrfProtection=3]="NoXsrfProtection",o1[o1.JsonpSupport=4]="JsonpSupport",o1[o1.RequestsMadeViaParent=5]="RequestsMadeViaParent",o1[o1.Fetch=6]="Fetch",o1}(x1||{});function m1(o1,b1){return{\u0275kind:o1,\u0275providers:b1}}function D1(...o1){const b1=[E1,$4,m4,{provide:Y,useExisting:m4},{provide:h1,useExisting:$4},{provide:D0,useValue:J2,multi:!0},{provide:L0,useValue:!0},{provide:s3,useClass:F3}];for(const F1 of o1)b1.push(...F1.\u0275providers);return(0,g.EmA)(b1)}const F2=new g.nKC("");let F4=(()=>{class o1{static{this.\u0275fac=function(J1){return new(J1||o1)}}static{this.\u0275mod=g.$C({type:o1})}static{this.\u0275inj=g.G2t({providers:[D1(m1(x1.LegacyInterceptors,[{provide:F2,useFactory:C4},{provide:D0,useExisting:F2,multi:!0}]))]})}}return o1})()},4438:(y1,d1,y)=>{"use strict";y.d(d1,{iLQ:()=>_s,sZ2:()=>su,hnV:()=>w_,Hbi:()=>ay,o8S:()=>v5,BIS:()=>iu,gRc:()=>V_,Ql9:()=>jb,Ocv:()=>Vb,abz:()=>p5,Z63:()=>m3,aKT:()=>Y7,uvJ:()=>Y3,zcH:()=>oe,bkB:()=>G8,duS:()=>_6,$GK:()=>b0,nKC:()=>q1,zZn:()=>q6,_q3:()=>Ad,MKu:()=>Pd,xe9:()=>Cn,Co$:()=>gi,Vns:()=>x5,SKi:()=>j3,Xx1:()=>G0,Agw:()=>d9,PLl:()=>au,sFG:()=>$m,_9s:()=>jm,czy:()=>k9,WPN:()=>_5,kdw:()=>G3,C4Q:()=>_t,NYb:()=>Rb,giA:()=>v_,RxE:()=>dd,c1b:()=>Q9,gXe:()=>_3,mal:()=>Hm,L39:()=>Es,Ol2:()=>Ci,w6W:()=>Np,oH4:()=>j_,Rfq:()=>J2,WQX:()=>p0,hFB:()=>iC,QuC:()=>p3,EmA:()=>C8,fpN:()=>ys,HJs:()=>Kd,N4e:()=>r6,O8t:()=>Sy,H3F:()=>fd,H8p:()=>Q8,KH2:()=>Re,TgB:()=>Z5,wOt:()=>m2,WHO:()=>F_,e01:()=>_d,lNU:()=>C4,h9k:()=>vu,$MX:()=>z9,ZF7:()=>Pc,Kcf:()=>Lu,e5t:()=>Cu,UyX:()=>PC,cWb:()=>IC,osQ:()=>jC,H5H:()=>lr,Zy3:()=>N4,mq5:()=>Jt,JZv:()=>u0,LfX:()=>E3,plB:()=>z5,jNT:()=>Ld,zjR:()=>k_,TL$:()=>zC,Tbb:()=>T0,rcV:()=>Ne,Vt3:()=>sl,Mj6:()=>Z4,GFd:()=>Sp,OA$:()=>ke,Jv_:()=>Vg,aNF:()=>qr,R7$:()=>rm,BMQ:()=>Gt,HbH:()=>gh,ZvI:()=>Fl,AVh:()=>Xi,vxM:()=>Nh,wni:()=>Er,VBU:()=>W8,FsC:()=>s5,jDH:()=>z0,G2t:()=>Y4,$C:()=>B6,EJ8:()=>V6,rXU:()=>Vc,nrm:()=>Nl,eu8:()=>Tl,bVm:()=>Dl,qex:()=>El,k0s:()=>Sl,j41:()=>wl,RV6:()=>Ph,xGo:()=>Ef,Mr5:()=>Rl,KVO:()=>k4,kS0:()=>n9,QTQ:()=>dm,bIt:()=>br,lsd:()=>Sg,joV:()=>Hs,qSk:()=>Yn,XpG:()=>Gl,nI1:()=>Qg,bMT:()=>ss,i5U:()=>e_,SdG:()=>bg,NAR:()=>vr,Y8G:()=>yl,FS9:()=>kr,Mz_:()=>h7,lJ4:()=>Jr,eq3:()=>Gg,l_i:()=>Hg,sMw:()=>Qr,ziG:()=>Zr,mGM:()=>wg,sdS:()=>Eg,Dyx:()=>Dh,Z7z:()=>kl,fX1:()=>er,Vm6:()=>Ki,Njj:()=>$s,EBC:()=>Hu,tSv:()=>at,eBV:()=>se,npT:()=>ku,f$h:()=>$a,B4B:()=>ja,n$t:()=>Oa,wjB:()=>Xr,Aen:()=>de,muq:()=>Dr,xc7:()=>qi,DNE:()=>e7,C5r:()=>as,EFF:()=>Ir,JRh:()=>Pr,SpI:()=>_7,Lme:()=>jr,E5c:()=>an,LHq:()=>$r,SjE:()=>Ql,DH7:()=>$g,mxI:()=>Kl,R50:()=>Vr,GBs:()=>Yl}),y(467);let e=null,p=!1,_=1;const S=Symbol("SIGNAL");function A(s){const o=e;return e=s,o}const p1={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Y(s){if(p)throw new Error("");if(null===e)return;e.consumerOnSignalRead(s);const o=e.nextProducerIndex++;d2(e),o0}function d2(s){s.producerNode??=[],s.producerIndexOfThis??=[],s.producerLastReadVersion??=[]}function _2(s){s.liveConsumerNode??=[],s.liveConsumerIndexOfThis??=[]}let x2=function B4(){throw new Error};function A1(s,o){(function M1(){return!1!==e?.consumerAllowSignalWrites})()||function w0(){x2()}(),s.equal(s.value,o)||(s.value=o,function K1(s){s.version++,function h1(){_++}(),r1(s)}(s))}const P1={...p1,equal:function g(s,o){return Object.is(s,o)},value:void 0};var l0=y(1413),s0=y(8359),D0=y(4412),K2=y(6354);const C4="https://g.co/ng/security#xss";class m2 extends Error{constructor(o,r){super(N4(o,r)),this.code=o}}function N4(s,o){return`NG0${Math.abs(s)}${o?": "+o:""}`}const m4=Symbol("InputSignalNode#UNSET"),B3={...P1,transformFn:void 0,applyValueToInputSignal(s,o){A1(s,o)}};function q4(s,o){const r=Object.create(B3);function d(){if(Y(r),r.value===m4)throw new m2(-950,!1);return r.value}return r.value=s,r.transformFn=o?.transform,d[S]=r,d}function c0(s){return{toString:s}.toString()}const X4="__parameters__";function y4(s,o,r){return c0(()=>{const d=function n3(s){return function(...r){if(s){const d=s(...r);for(const f in d)this[f]=d[f]}}}(o);function f(...h){if(this instanceof f)return d.apply(this,h),this;const z=new f(...h);return M.annotation=z,M;function M(k,j,H){const i1=k.hasOwnProperty(X4)?k[X4]:Object.defineProperty(k,X4,{value:[]})[X4];for(;i1.length<=H;)i1.push(null);return(i1[H]=i1[H]||[]).push(z),k}}return r&&(f.prototype=Object.create(r.prototype)),f.prototype.ngMetadataName=s,f.annotationCls=f,f})}const u0=globalThis;function S0(s){for(let o in s)if(s[o]===S0)return o;throw Error("Could not find renamed property on target object.")}function l3(s,o){for(const r in o)o.hasOwnProperty(r)&&!s.hasOwnProperty(r)&&(s[r]=o[r])}function T0(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(T0).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const o=s.toString();if(null==o)return""+o;const r=o.indexOf("\n");return-1===r?o:o.substring(0,r)}function V4(s,o){return null==s||""===s?null===o?"":o:null==o||""===o?s:s+" "+o}const F3=S0({__forward_ref__:S0});function J2(s){return s.__forward_ref__=J2,s.toString=function(){return T0(this())},s}function s1(s){return x1(s)?s():s}function x1(s){return"function"==typeof s&&s.hasOwnProperty(F3)&&s.__forward_ref__===J2}function z0(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function Y4(s){return{providers:s.providers||[],imports:s.imports||[]}}function C1(s){return z3(s,o1)||z3(s,F1)}function E3(s){return null!==C1(s)}function z3(s,o){return s.hasOwnProperty(o)?s[o]:null}function D6(s){return s&&(s.hasOwnProperty(b1)||s.hasOwnProperty(J1))?s[b1]:null}const o1=S0({\u0275prov:S0}),b1=S0({\u0275inj:S0}),F1=S0({ngInjectableDef:S0}),J1=S0({ngInjectorDef:S0});class q1{constructor(o,r){this._desc=o,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=z0({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function R0(s){return s&&!!s.\u0275providers}const A0=S0({\u0275cmp:S0}),A4=S0({\u0275dir:S0}),W4=S0({\u0275pipe:S0}),d4=S0({\u0275mod:S0}),c4=S0({\u0275fac:S0}),I4=S0({__NG_ELEMENT_ID__:S0}),U4=S0({__NG_ENV_ID__:S0});function a0(s){return"string"==typeof s?s:null==s?"":String(s)}function t6(s,o){throw new m2(-201,!1)}var b0=function(s){return s[s.Default=0]="Default",s[s.Host=1]="Host",s[s.Self=2]="Self",s[s.SkipSelf=4]="SkipSelf",s[s.Optional=8]="Optional",s}(b0||{});let y6;function Q2(){return y6}function g2(s){const o=y6;return y6=s,o}function h3(s,o,r){const d=C1(s);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:r&b0.Optional?null:void 0!==o?o:void t6()}const n4={},P4="__NG_DI_FLAG__",D3="ngTempTokenPath",V0=/\n/gm,A6="__source";let M3;function v3(s){const o=M3;return M3=s,o}function g8(s,o=b0.Default){if(void 0===M3)throw new m2(-203,!1);return null===M3?h3(s,void 0,o):M3.get(s,o&b0.Optional?null:void 0,o)}function k4(s,o=b0.Default){return(Q2()||g8)(s1(s),o)}function p0(s,o=b0.Default){return k4(s,g3(o))}function g3(s){return typeof s>"u"||"number"==typeof s?s:(s.optional&&8)|(s.host&&1)|(s.self&&2)|(s.skipSelf&&4)}function T3(s){const o=[];for(let r=0;rArray.isArray(r)?Q4(r,o):o(r))}function R3(s,o,r){o>=s.length?s.push(r):s.splice(o,0,r)}function Z6(s,o){return o>=s.length-1?s.pop():s.splice(o,1)[0]}function i3(s,o,r){let d=x4(s,o);return d>=0?s[1|d]=r:(d=~d,function e8(s,o,r,d){let f=s.length;if(f==o)s.push(r,d);else if(1===f)s.push(d,s[0]),s[0]=r;else{for(f--,s.push(s[f-1],s[f]);f>o;)s[f]=s[f-2],f--;s[o]=r,s[o+1]=d}}(s,d,o,r)),d}function s6(s,o){const r=x4(s,o);if(r>=0)return s[1|r]}function x4(s,o){return function a6(s,o,r){let d=0,f=s.length>>r;for(;f!==d;){const h=d+(f-d>>1),z=s[h<o?f=h:d=h+1}return~(f<o){z=h-1;break}}}for(;h-1){let h;for(;++fh?"":f[H+1].toLowerCase(),2&d&&j!==i1){if(O4(d))return!1;z=!0}}}}else{if(!z&&!O4(d)&&!O4(k))return!1;if(z&&O4(k))continue;z=!1,d=k|1&d}}return O4(d)||z}function O4(s){return!(1&s)}function F6(s,o,r,d){if(null===o)return-1;let f=0;if(d||!r){let h=!1;for(;f-1)for(r++;r0?'="'+M+'"':"")+"]"}else 8&d?f+="."+z:4&d&&(f+=" "+z);else""!==f&&!O4(z)&&(o+=Pe(h,f),f=""),d=z,h=h||!O4(d);r++}return""!==f&&(o+=Pe(h,f)),o}function W8(s){return c0(()=>{const o=je(s),r={...o,decls:s.decls,vars:s.vars,template:s.template,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,onPush:s.changeDetection===$6.OnPush,directiveDefs:null,pipeDefs:null,dependencies:o.standalone&&s.dependencies||null,getStandaloneInjector:null,signals:s.signals??!1,data:s.data||{},encapsulation:s.encapsulation||_3.Emulated,styles:s.styles||H0,_:null,schemas:s.schemas||null,tView:null,id:""};A8(r);const d=s.dependencies;return r.directiveDefs=n8(d,!1),r.pipeDefs=n8(d,!0),r.id=function a5(s){let o=0;const r=[s.selectors,s.ngContentSelectors,s.hostVars,s.hostAttrs,s.consts,s.vars,s.decls,s.encapsulation,s.standalone,s.signals,s.exportAs,JSON.stringify(s.inputs),JSON.stringify(s.outputs),Object.getOwnPropertyNames(s.type.prototype),!!s.contentQueries,!!s.viewQuery].join("|");for(const f of r)o=Math.imul(31,o)+f.charCodeAt(0)|0;return o+=2147483648,"c"+o}(r),r})}function Ce(s){return j0(s)||E4(s)}function t8(s){return null!==s}function B6(s){return c0(()=>({type:s.type,bootstrap:s.bootstrap||H0,declarations:s.declarations||H0,imports:s.imports||H0,exports:s.exports||H0,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null}))}function L6(s,o){if(null==s)return u3;const r={};for(const d in s)if(s.hasOwnProperty(d)){const f=s[d];let h,z,M=Z4.None;Array.isArray(f)?(M=f[0],h=f[1],z=f[2]??h):(h=f,z=f),o?(r[h]=M!==Z4.None?[d,M]:d,o[h]=z):r[h]=d}return r}function s5(s){return c0(()=>{const o=je(s);return A8(o),o})}function V6(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,standalone:!0===s.standalone,onDestroy:s.type.prototype.ngOnDestroy||null}}function j0(s){return s[A0]||null}function E4(s){return s[A4]||null}function w4(s){return s[W4]||null}function p3(s){const o=j0(s)||E4(s)||w4(s);return null!==o&&o.standalone}function K4(s,o){const r=s[d4]||null;if(!r&&!0===o)throw new Error(`Type ${T0(s)} does not have '\u0275mod' property.`);return r}function je(s){const o={};return{type:s.type,providersResolver:null,factory:null,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:o,inputTransforms:null,inputConfig:s.inputs||u3,exportAs:s.exportAs||null,standalone:!0===s.standalone,signals:!0===s.signals,selectors:s.selectors||H0,viewQuery:s.viewQuery||null,features:s.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:L6(s.inputs,o),outputs:L6(s.outputs),debugInfo:null}}function A8(s){s.features?.forEach(o=>o(s))}function n8(s,o){if(!s)return null;const r=o?w4:Ce;return()=>("function"==typeof s?s():s).map(d=>r(d)).filter(t8)}function C8(s){return{\u0275providers:s}}function z8(...s){return{\u0275providers:M8(0,s),\u0275fromNgModule:!0}}function M8(s,...o){const r=[],d=new Set;let f;const h=z=>{r.push(z)};return Q4(o,z=>{const M=z;I8(M,h,[],d)&&(f||=[],f.push(M))}),void 0!==f&&J8(f,h),r}function J8(s,o){for(let r=0;r{o(h,d)})}}function I8(s,o,r,d){if(!(s=s1(s)))return!1;let f=null,h=D6(s);const z=!h&&j0(s);if(h||z){if(z&&!z.standalone)return!1;f=s}else{const k=s.ngModule;if(h=D6(k),!h)return!1;f=k}const M=d.has(f);if(z){if(M)return!1;if(d.add(f),z.dependencies){const k="function"==typeof z.dependencies?z.dependencies():z.dependencies;for(const j of k)I8(j,o,r,d)}}else{if(!h)return!1;{if(null!=h.imports&&!M){let j;d.add(f);try{Q4(h.imports,H=>{I8(H,o,r,d)&&(j||=[],j.push(H))})}finally{}void 0!==j&&J8(j,o)}if(!M){const j=H3(f)||(()=>new f);o({provide:f,useFactory:j,deps:H0},f),o({provide:w3,useValue:f,multi:!0},f),o({provide:m3,useValue:()=>k4(f),multi:!0},f)}const k=h.providers;if(null!=k&&!M){const j=s;P8(k,H=>{o(H,j)})}}}return f!==s&&void 0!==s.providers}function P8(s,o){for(let r of s)R0(r)&&(r=r.\u0275providers),Array.isArray(r)?P8(r,o):o(r)}const i6=S0({provide:String,useValue:S0});function v6(s){return null!==s&&"object"==typeof s&&i6 in s}function C6(s){return"function"==typeof s}const Q8=new q1(""),x8={},Be={};let Z8;function b8(){return void 0===Z8&&(Z8=new j6),Z8}class Y3{}class U6 extends Y3{get destroyed(){return this._destroyed}constructor(o,r,d,f){super(),this.parent=r,this.source=d,this.scopes=f,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,F8(o,z=>this.processProvider(z)),this.records.set(_6,I3(void 0,this)),f.has("environment")&&this.records.set(Y3,I3(void 0,this));const h=this.records.get(Q8);null!=h&&"string"==typeof h.value&&this.scopes.add(h.value),this.injectorDefTypes=new Set(this.get(w3,H0,b0.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const o=A(null);try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of r)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(o)}}onDestroy(o){return this.assertNotDestroyed(),this._onDestroyHooks.push(o),()=>this.removeOnDestroy(o)}runInContext(o){this.assertNotDestroyed();const r=v3(this),d=g2(void 0);try{return o()}finally{v3(r),g2(d)}}get(o,r=n4,d=b0.Default){if(this.assertNotDestroyed(),o.hasOwnProperty(U4))return o[U4](this);d=g3(d);const h=v3(this),z=g2(void 0);try{if(!(d&b0.SkipSelf)){let k=this.records.get(o);if(void 0===k){const j=function o5(s){return"function"==typeof s||"object"==typeof s&&s instanceof q1}(o)&&C1(o);k=j&&this.injectableDefInScope(j)?I3(y8(o),x8):null,this.records.set(o,k)}if(null!=k)return this.hydrate(o,k)}return(d&b0.Self?b8():this.parent).get(o,r=d&b0.Optional&&r===n4?null:r)}catch(M){if("NullInjectorError"===M.name){if((M[D3]=M[D3]||[]).unshift(T0(o)),h)throw M;return function Q6(s,o,r,d){const f=s[D3];throw o[A6]&&f.unshift(o[A6]),s.message=function x3(s,o,r,d=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.slice(2):s;let f=T0(o);if(Array.isArray(o))f=o.map(T0).join(" -> ");else if("object"==typeof o){let h=[];for(let z in o)if(o.hasOwnProperty(z)){let M=o[z];h.push(z+":"+("string"==typeof M?JSON.stringify(M):T0(M)))}f=`{${h.join(", ")}}`}return`${r}${d?"("+d+")":""}[${f}]: ${s.replace(V0,"\n ")}`}("\n"+s.message,f,r,d),s.ngTokenPath=f,s[D3]=null,s}(M,o,"R3InjectorError",this.source)}throw M}finally{g2(z),v3(h)}}resolveInjectorInitializers(){const o=A(null),r=v3(this),d=g2(void 0);try{const h=this.get(m3,H0,b0.Self);for(const z of h)z()}finally{v3(r),g2(d),A(o)}}toString(){const o=[],r=this.records;for(const d of r.keys())o.push(T0(d));return`R3Injector[${o.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new m2(205,!1)}processProvider(o){let r=C6(o=s1(o))?o:s1(o&&o.provide);const d=function Ve(s){return v6(s)?I3(void 0,s.useValue):I3(z6(s),x8)}(o);if(!C6(o)&&!0===o.multi){let f=this.records.get(r);f||(f=I3(void 0,x8,!0),f.factory=()=>T3(f.multi),this.records.set(r,f)),r=o,f.multi.push(o)}this.records.set(r,d)}hydrate(o,r){const d=A(null);try{return r.value===x8&&(r.value=Be,r.value=r.factory()),"object"==typeof r.value&&r.value&&function xe(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{A(d)}}injectableDefInScope(o){if(!o.providedIn)return!1;const r=s1(o.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(o){const r=this._onDestroyHooks.indexOf(o);-1!==r&&this._onDestroyHooks.splice(r,1)}}function y8(s){const o=C1(s),r=null!==o?o.factory:H3(s);if(null!==r)return r;if(s instanceof q1)throw new m2(204,!1);if(s instanceof Function)return function Me(s){if(s.length>0)throw new m2(204,!1);const r=function p6(s){return s&&(s[o1]||s[F1])||null}(s);return null!==r?()=>r.factory(s):()=>new s}(s);throw new m2(204,!1)}function z6(s,o,r){let d;if(C6(s)){const f=s1(s);return H3(f)||y8(f)}if(v6(s))d=()=>s1(s.useValue);else if(function E2(s){return!(!s||!s.useFactory)}(s))d=()=>s.useFactory(...T3(s.deps||[]));else if(function Oe(s){return!(!s||!s.useExisting)}(s))d=()=>k4(s1(s.useExisting));else{const f=s1(s&&(s.useClass||s.provide));if(!function j8(s){return!!s.deps}(s))return H3(f)||y8(f);d=()=>new f(...T3(s.deps))}return d}function I3(s,o,r=!1){return{factory:s,value:o,multi:r?[]:void 0}}function F8(s,o){for(const r of s)Array.isArray(r)?F8(r,o):r&&R0(r)?F8(r.\u0275providers,o):o(r)}function r6(s,o){s instanceof U6&&s.assertNotDestroyed();const d=v3(s),f=g2(void 0);try{return o()}finally{v3(d),g2(f)}}function l8(){return void 0!==Q2()||null!=function h8(){return M3}()}const S1=0,k1=1,U1=2,y2=3,R2=4,j2=5,g0=6,q0=7,Y0=8,b4=9,E0=10,n0=11,L3=12,z2=13,_4=14,x0=15,o0=16,q3=17,M6=18,$8=19,I5=20,h0=21,g1=22,K8=23,I0=25,Ue=1,v8=7,k8=9,r3=10;var i5=function(s){return s[s.None=0]="None",s[s.HasTransplantedViews=2]="HasTransplantedViews",s}(i5||{});function X3(s){return Array.isArray(s)&&"object"==typeof s[Ue]}function e3(s){return Array.isArray(s)&&!0===s[Ue]}function A2(s){return!!(4&s.flags)}function O8(s){return s.componentOffset>-1}function Ge(s){return!(1&~s.flags)}function $2(s){return!!s.template}function e0(s){return!!(512&s[U1])}class Fe{constructor(o,r,d){this.previousValue=o,this.currentValue=r,this.firstChange=d}isFirstChange(){return this.firstChange}}function ve(s,o,r,d){null!==o?o.applyValueToInputSignal(o,d):s[r]=d}function ke(){return s8}function s8(s){return s.type.prototype.ngOnChanges&&(s.setInput=An),Is}function Is(){const s=w7(this),o=s?.current;if(o){const r=s.previous;if(r===u3)s.previous=o;else for(let d in o)r[d]=o[d];s.current=null,this.ngOnChanges(o)}}function An(s,o,r,d,f){const h=this.declaredInputs[d],z=w7(s)||function ce(s,o){return s[j5]=o}(s,{previous:u3,current:null}),M=z.current||(z.current={}),k=z.previous,j=k[h];M[h]=new Fe(j&&j.currentValue,r,k===u3),ve(s,o,f,r)}ke.ngInherit=!0;const j5="__ngSimpleChanges__";function w7(s){return s[j5]||null}const G6=function(s,o,r){},In="svg";let Lc=!1;function S4(s){for(;Array.isArray(s);)s=s[S1];return s}function d5(s,o){return S4(o[s])}function d6(s,o){return S4(o[s.index])}function $5(s,o){return s.data[o]}function qe(s,o){return s[o]}function H6(s,o){const r=o[s];return X3(r)?r:r[S1]}function Cc(s){return!(128&~s[U1])}function w8(s,o){return null==o?null:s[o]}function $n(s){s[q3]=0}function B8(s){1024&s[U1]||(s[U1]|=1024,Cc(s)&&O5(s))}function zc(s){return!!(9216&s[U1]||s[K8]?.dirty)}function Mc(s){s[E0].changeDetectionScheduler?.notify(1),zc(s)?O5(s):64&s[U1]&&(function Pn(){return Lc}()?(s[U1]|=1024,O5(s)):s[E0].changeDetectionScheduler?.notify())}function O5(s){s[E0].changeDetectionScheduler?.notify();let o=ne(s);for(;null!==o&&!(8192&o[U1])&&(o[U1]|=8192,Cc(o));)o=ne(o)}function xc(s,o){if(!(256&~s[U1]))throw new m2(911,!1);null===s[h0]&&(s[h0]=[]),s[h0].push(o)}function ne(s){const o=s[y2];return e3(o)?o[y2]:o}const _0={lFrame:Gs(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function O(){return _0.bindingsEnabled}function l1(){return null!==_0.skipHydrationRootTNode}function Q1(){return _0.lFrame.lView}function O0(){return _0.lFrame.tView}function se(s){return _0.lFrame.contextLView=s,s[Y0]}function $s(s){return _0.lFrame.contextLView=null,s}function j4(){let s=rf();for(;null!==s&&64===s.type;)s=s.parent;return s}function rf(){return _0.lFrame.currentTNode}function we(s,o){const r=_0.lFrame;r.currentTNode=s,r.isParent=o}function On(){return _0.lFrame.isParent}function Os(){_0.lFrame.isParent=!1}function Y6(){const s=_0.lFrame;let o=s.bindingRootIndex;return-1===o&&(o=s.bindingRootIndex=s.tView.bindingStartIndex),o}function Se(){return _0.lFrame.bindingIndex}function V8(){return _0.lFrame.bindingIndex++}function Xe(s){const o=_0.lFrame,r=o.bindingIndex;return o.bindingIndex=o.bindingIndex+s,r}function ff(s,o){const r=_0.lFrame;r.bindingIndex=r.bindingRootIndex=s,Vn(o)}function Vn(s){_0.lFrame.currentDirectiveIndex=s}function Un(){return _0.lFrame.currentQueryIndex}function Gn(s){_0.lFrame.currentQueryIndex=s}function mf(s){const o=s[k1];return 2===o.type?o.declTNode:1===o.type?s[j2]:null}function pf(s,o,r){if(r&b0.SkipSelf){let f=o,h=s;for(;!(f=f.parent,null!==f||r&b0.Host||(f=mf(h),null===f||(h=h[_4],10&f.type))););if(null===f)return!1;o=f,s=h}const d=_0.lFrame=hf();return d.currentTNode=o,d.lView=s,!0}function Us(s){const o=hf(),r=s[k1];_0.lFrame=o,o.currentTNode=r.firstChild,o.lView=s,o.tView=r,o.contextLView=s,o.bindingIndex=r.bindingStartIndex,o.inI18n=!1}function hf(){const s=_0.lFrame,o=null===s?null:s.child;return null===o?Gs(s):o}function Gs(s){const o={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:s,child:null,inI18n:!1};return null!==s&&(s.child=o),o}function gf(){const s=_0.lFrame;return _0.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const _f=gf;function Hn(){const s=gf();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function x6(){return _0.lFrame.selectedIndex}function f5(s){_0.lFrame.selectedIndex=s}function c3(){const s=_0.lFrame;return $5(s.tView,s.selectedIndex)}function Yn(){_0.lFrame.currentNamespace=In}function Hs(){!function Lf(){_0.lFrame.currentNamespace=null}()}let Cf=!0;function bc(){return Cf}function ae(s){Cf=s}function Xn(s,o){for(let r=o.directiveStart,d=o.directiveEnd;r=d)break}else o[k]<0&&(s[q3]+=65536),(M>14>16&&(3&s[U1])===o&&(s[U1]+=16384,Mf(M,h)):Mf(M,h)}const yc=-1;class u5{constructor(o,r,d){this.factory=o,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=d}}function Zn(s){return s!==yc}function A7(s){return 32767&s}function I7(s,o){let r=function vf(s){return s>>16}(s),d=o;for(;r>0;)d=d[_4],r--;return d}let Kn=!0;function P7(s){const o=Kn;return Kn=s,o}const qs=255,e9=5;let QL=0;const U8={};function j7(s,o){const r=Ws(s,o);if(-1!==r)return r;const d=o[k1];d.firstCreatePass&&(s.injectorIndex=o.length,Xs(d.data,s),Xs(o,null),Xs(d.blueprint,null));const f=$7(s,o),h=s.injectorIndex;if(Zn(f)){const z=A7(f),M=I7(f,o),k=M[k1].data;for(let j=0;j<8;j++)o[h+j]=M[z+j]|k[z+j]}return o[h+8]=f,h}function Xs(s,o){s.push(0,0,0,0,0,0,0,0,o)}function Ws(s,o){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===o[s.injectorIndex+8]?-1:s.injectorIndex}function $7(s,o){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let r=0,d=null,f=o;for(;null!==f;){if(d=Ks(f),null===d)return yc;if(r++,f=f[_4],-1!==d.injectorIndex)return d.injectorIndex|r<<16}return yc}function O7(s,o,r){!function ZL(s,o,r){let d;"string"==typeof r?d=r.charCodeAt(0)||0:r.hasOwnProperty(I4)&&(d=r[I4]),null==d&&(d=r[I4]=QL++);const f=d&qs;o.data[s+(f>>e9)]|=1<=0?o&qs:eC:o}(r);if("function"==typeof h){if(!pf(o,s,d))return d&b0.Host?kf(f,0,d):c9(o,r,d,f);try{let z;if(z=h(d),null!=z||d&b0.Optional)return z;t6()}finally{_f()}}else if("number"==typeof h){let z=null,M=Ws(s,o),k=yc,j=d&b0.Host?o[x0][j2]:null;for((-1===M||d&b0.SkipSelf)&&(k=-1===M?$7(s,o):o[M+8],k!==yc&&B7(d,!1)?(z=o[k1],M=A7(k),o=I7(k,o)):M=-1);-1!==M;){const H=o[k1];if(Nf(h,M,H.data)){const i1=wf(M,o,r,z,d,j);if(i1!==U8)return i1}k=o[M+8],k!==yc&&B7(d,o[k1].data[M+8]===j)&&Nf(h,M,o)?(z=H,M=A7(k),o=I7(k,o)):M=-1}}return f}function wf(s,o,r,d,f,h){const z=o[k1],M=z.data[s+8],H=t9(M,z,r,null==d?O8(M)&&Kn:d!=z&&!!(3&M.type),f&b0.Host&&h===M);return null!==H?m5(o,z,H,M):U8}function t9(s,o,r,d,f){const h=s.providerIndexes,z=o.data,M=1048575&h,k=s.directiveStart,H=h>>20,N1=f?M+H:s.directiveEnd;for(let I1=d?M:M+H;I1=k&&B1.type===r)return I1}if(f){const I1=z[k];if(I1&&$2(I1)&&I1.type===r)return k}return null}function m5(s,o,r,d){let f=s[r];const h=o.data;if(function XL(s){return s instanceof u5}(f)){const z=f;z.resolving&&function h6(s,o){throw o&&o.join(" > "),new m2(-200,s)}(function H2(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():a0(s)}(h[r]));const M=P7(z.canSeeViewProviders);z.resolving=!0;const j=z.injectImpl?g2(z.injectImpl):null;pf(s,d,b0.Default);try{f=s[r]=z.factory(void 0,h,s,d),o.firstCreatePass&&r>=d.directiveStart&&function zf(s,o,r){const{ngOnChanges:d,ngOnInit:f,ngDoCheck:h}=o.type.prototype;if(d){const z=s8(o);(r.preOrderHooks??=[]).push(s,z),(r.preOrderCheckHooks??=[]).push(s,z)}f&&(r.preOrderHooks??=[]).push(0-s,f),h&&((r.preOrderHooks??=[]).push(s,h),(r.preOrderCheckHooks??=[]).push(s,h))}(r,h[r],o)}finally{null!==j&&g2(j),P7(M),z.resolving=!1,_f()}}return f}function Nf(s,o,r){return!!(r[o+(s>>e9)]&1<{const o=s.prototype.constructor,r=o[c4]||V7(o),d=Object.prototype;let f=Object.getPrototypeOf(s.prototype).constructor;for(;f&&f!==d;){const h=f[c4]||V7(f);if(h&&h!==r)return h;f=Object.getPrototypeOf(f)}return h=>new h})}function V7(s){return x1(s)?()=>{const o=V7(s1(s));return o&&o()}:H3(s)}function Ks(s){const o=s[k1],r=o.type;return 2===r?o.declTNode:1===r?s[j2]:null}function n9(s){return function KL(s,o){if("class"===o)return s.classes;if("style"===o)return s.styles;const r=s.attrs;if(r){const d=r.length;let f=0;for(;f{class s{static{this.THROW_IF_NOT_FOUND=n4}static{this.NULL=new j6}static create(r,d){if(Array.isArray(r))return Rf({name:""},d,r,"");{const f=r.name??"";return Rf({name:f},r.parent,r.providers,f)}}static{this.\u0275prov=z0({token:s,providedIn:"any",factory:()=>k4(_6)})}static{this.__NG_ELEMENT_ID__=-1}}return s})();function na(s){return s.ngOriginalError}class oe{constructor(){this._console=console}handleError(o){const r=this._findOriginalError(o);this._console.error("ERROR",o),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(o){let r=o&&na(o);for(;r&&na(r);)r=na(r);return r||null}}const If=new q1("",{providedIn:"root",factory:()=>p0(oe).handleError.bind(void 0)});let p5=(()=>{class s{static{this.__NG_ELEMENT_ID__=Pf}static{this.__NG_ENV_ID__=r=>r}}return s})();class oC extends p5{constructor(o){super(),this._lView=o}onDestroy(o){return xc(this._lView,o),()=>function E7(s,o){if(null===s[h0])return;const r=s[h0].indexOf(o);-1!==r&&s[h0].splice(r,1)}(this._lView,o)}}function Pf(){return new oC(Q1())}function $f(s,o){return q4(s,o)}const iC=($f.required=function s9(s){return q4(m4,s)},$f);function rC(){return We(j4(),Q1())}function We(s,o){return new Y7(d6(s,o))}let Y7=(()=>{class s{constructor(r){this.nativeElement=r}static{this.__NG_ELEMENT_ID__=rC}}return s})();function Of(s){return s instanceof Y7?s.nativeElement:s}function sa(s){return o=>{setTimeout(s,void 0,o)}}const G8=class dC extends l0.B{constructor(o=!1){super(),this.destroyRef=void 0,this.__isAsync=o,l8()&&(this.destroyRef=p0(p5,{optional:!0})??void 0)}emit(o){const r=A(null);try{super.next(o)}finally{A(r)}}subscribe(o,r,d){let f=o,h=r||(()=>null),z=d;if(o&&"object"==typeof o){const k=o;f=k.next?.bind(k),h=k.error?.bind(k),z=k.complete?.bind(k)}this.__isAsync&&(h=sa(h),f&&(f=sa(f)),z&&(z=sa(z)));const M=super.subscribe({next:f,error:h,complete:z});return o instanceof s0.yU&&o.add(M),M}};function fC(){return this._results[Symbol.iterator]()}class aa{get changes(){return this._changes??=new G8}constructor(o=!1){this._emitDistinctChangesOnly=o,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=aa.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=fC)}get(o){return this._results[o]}map(o){return this._results.map(o)}filter(o){return this._results.filter(o)}find(o){return this._results.find(o)}reduce(o,r){return this._results.reduce(o,r)}forEach(o){this._results.forEach(o)}some(o){return this._results.some(o)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(o,r){this.dirty=!1;const d=function o3(s){return s.flat(Number.POSITIVE_INFINITY)}(o);(this._changesDetected=!function f3(s,o,r){if(s.length!==o.length)return!1;for(let d=0;dMC}),MC="ng",au=new q1(""),d9=new q1("",{providedIn:"platform",factory:()=>"unknown"}),iu=new q1("",{providedIn:"root",factory:()=>ie().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let fu=()=>null;function p9(s,o,r=!1){return fu(s,o,r)}const wa=new q1("",{providedIn:"root",factory:()=>!1});let et,C9;function Ic(s){return function L9(){if(void 0===et&&(et=null,u0.trustedTypes))try{et=u0.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return et}()?.createHTML(s)||s}function Sa(){if(void 0===C9&&(C9=null,u0.trustedTypes))try{C9=u0.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch{}return C9}function Na(s){return Sa()?.createHTML(s)||s}function Da(s){return Sa()?.createScriptURL(s)||s}class g5{constructor(o){this.changingThisBreaksApplicationSecurity=o}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${C4})`}}class TC extends g5{getTypeName(){return"HTML"}}class gu extends g5{getTypeName(){return"Style"}}class _u extends g5{getTypeName(){return"Script"}}class Ta extends g5{getTypeName(){return"URL"}}class RC extends g5{getTypeName(){return"ResourceURL"}}function Ne(s){return s instanceof g5?s.changingThisBreaksApplicationSecurity:s}function Pc(s,o){const r=function AC(s){return s instanceof g5&&s.getTypeName()||null}(s);if(null!=r&&r!==o){if("ResourceURL"===r&&"URL"===o)return!0;throw new Error(`Required a safe ${o}, got a ${r} (see ${C4})`)}return r===o}function Lu(s){return new TC(s)}function IC(s){return new gu(s)}function PC(s){return new _u(s)}function jC(s){return new Ta(s)}function Cu(s){return new RC(s)}class $C{constructor(o){this.inertDocumentHelper=o}getInertBodyElement(o){o=""+o;try{const r=(new window.DOMParser).parseFromString(Ic(o),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(o):(r.removeChild(r.firstChild),r)}catch{return null}}}class OC{constructor(o){this.defaultDoc=o,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(o){const r=this.inertDocument.createElement("template");return r.innerHTML=Ic(o),r}}const VC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function z9(s){return(s=String(s)).match(VC)?s:"unsafe:"+s}function re(s){const o={};for(const r of s.split(","))o[r]=!0;return o}function tt(...s){const o={};for(const r of s)for(const d in r)r.hasOwnProperty(d)&&(o[d]=!0);return o}const M9=re("area,br,col,hr,img,wbr"),Ra=re("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zu=re("rp,rt"),x9=tt(M9,tt(Ra,re("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),tt(zu,re("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),tt(zu,Ra)),b9=re("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Mu=tt(b9,re("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),re("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),YC=re("script,style,template");class qC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(o){let r=o.firstChild,d=!0,f=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?d=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,d&&r.firstChild)f.push(r),r=XC(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let h=Aa(r);if(h){r=h;break}r=f.pop()}return this.buf.join("")}startElement(o){const r=bu(o).toLowerCase();if(!x9.hasOwnProperty(r))return this.sanitizedSomething=!0,!YC.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const d=o.attributes;for(let f=0;f"),!0}endElement(o){const r=bu(o).toLowerCase();x9.hasOwnProperty(r)&&!M9.hasOwnProperty(r)&&(this.buf.push(""))}chars(o){this.buf.push(Ia(o))}}function Aa(s){const o=s.nextSibling;if(o&&s!==o.previousSibling)throw y9(o);return o}function XC(s){const o=s.firstChild;if(o&&function xu(s,o){return(s.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(s,o))throw y9(o);return o}function bu(s){const o=s.nodeName;return"string"==typeof o?o:"FORM"}function y9(s){return new Error(`Failed to sanitize html because the element is clobbered: ${s.outerHTML}`)}const yu=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fu=/([^\#-~ |!])/g;function Ia(s){return s.replace(/&/g,"&").replace(yu,function(o){return"&#"+(1024*(o.charCodeAt(0)-55296)+(o.charCodeAt(1)-56320)+65536)+";"}).replace(Fu,function(o){return"&#"+o.charCodeAt(0)+";"}).replace(//g,">")}let lt;function vu(s,o){let r=null;try{lt=lt||function ct(s){const o=new OC(s);return function BC(){try{return!!(new window.DOMParser).parseFromString(Ic(""),"text/html")}catch{return!1}}()?new $C(o):o}(s);let d=o?String(o):"";r=lt.getInertBodyElement(d);let f=5,h=d;do{if(0===f)throw new Error("Failed to sanitize html because the input is unstable");f--,d=h,h=r.innerHTML,r=lt.getInertBodyElement(d)}while(d!==h);return Ic((new qC).sanitizeChildren(Pa(r)||r))}finally{if(r){const d=Pa(r)||r;for(;d.firstChild;)d.removeChild(d.firstChild)}}}function Pa(s){return"content"in s&&function WC(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var _5=function(s){return s[s.NONE=0]="NONE",s[s.HTML=1]="HTML",s[s.STYLE=2]="STYLE",s[s.SCRIPT=3]="SCRIPT",s[s.URL=4]="URL",s[s.RESOURCE_URL=5]="RESOURCE_URL",s}(_5||{});function ku(s){const o=jc();return o?Na(o.sanitize(_5.HTML,s)||""):Pc(s,"HTML")?Na(Ne(s)):vu(ie(),a0(s))}function ja(s){const o=jc();return o?o.sanitize(_5.URL,s)||"":Pc(s,"URL")?Ne(s):z9(a0(s))}function $a(s){const o=jc();if(o)return Da(o.sanitize(_5.RESOURCE_URL,s)||"");if(Pc(s,"ResourceURL"))return Da(Ne(s));throw new m2(904,!1)}function Oa(s,o,r){return function JC(s,o){return"src"===o&&("embed"===s||"frame"===s||"iframe"===s||"media"===s||"script"===s)||"href"===o&&("base"===s||"link"===s)?$a:ja}(o,r)(s)}function jc(){const s=Q1();return s&&s[E0].sanitizer}const Du=/^>|^->||--!>|)/g,Tu="\u200b$1\u200b";function at(s){return s.ownerDocument.defaultView}function Hu(s){return s.ownerDocument}function W6(s){return s instanceof Function?s():s}var k9=function(s){return s[s.Important=1]="Important",s[s.DashCase=2]="DashCase",s}(k9||{});let ot;function qa(s,o){return ot(s,o)}function Oc(s,o,r,d,f){if(null!=d){let h,z=!1;e3(d)?h=d:X3(d)&&(z=!0,d=d[S1]);const M=S4(d);0===s&&null!==r?null==f?em(o,r,M):V5(o,r,M,f||null,!0):1===s&&null!==r?V5(o,r,M,f||null,!0):2===s?function H5(s,o,r){const d=it(s,o);d&&function cm(s,o,r,d){s.removeChild(o,r,d)}(s,d,o,r)}(o,M,z):3===s&&o.destroyNode(M),null!=h&&function im(s,o,r,d,f){const h=r[v8];h!==S4(r)&&Oc(o,s,d,h,f);for(let M=r3;Mo.replace(Va,Tu))}(o))}function S9(s,o,r){return s.createElement(o,r)}function Qu(s,o){o[E0].changeDetectionScheduler?.notify(1),A9(s,o,o[n0],2,null,null)}function Zu(s,o){const r=s[k8],d=r.indexOf(o);r.splice(d,1)}function Bc(s,o){if(s.length<=r3)return;const r=r3+o,d=s[r];if(d){const f=d[o0];null!==f&&f!==s&&Zu(f,d),o>0&&(s[r-1][R2]=d[R2]);const h=Z6(s,r3+o);!function nz(s,o){Qu(s,o),o[S1]=null,o[j2]=null}(d[k1],d);const z=h[M6];null!==z&&z.detachView(h[k1]),d[y2]=null,d[R2]=null,d[U1]&=-129}return d}function N9(s,o){if(!(256&o[U1])){const r=o[n0];r.destroyNode&&A9(s,o,r,3,null,null),function lz(s){let o=s[L3];if(!o)return Qa(s[k1],s);for(;o;){let r=null;if(X3(o))r=o[L3];else{const d=o[r3];d&&(r=d)}if(!r){for(;o&&!o[R2]&&o!==s;)X3(o)&&Qa(o[k1],o),o=o[y2];null===o&&(o=s),X3(o)&&Qa(o[k1],o),r=o&&o[R2]}o=r}}(o)}}function Qa(s,o){if(256&o[U1])return;const r=A(null);try{o[U1]&=-129,o[U1]|=256,o[K8]&&function c2(s){if(d2(s),d0(s))for(let o=0;o=0?d[z]():d[-z].unsubscribe(),h+=2}else r[h].call(d[r[h+1]]);null!==d&&(o[q0]=null);const f=o[h0];if(null!==f){o[h0]=null;for(let h=0;h-1){const{encapsulation:h}=s.data[d.directiveStart+f];if(h===_3.None||h===_3.Emulated)return null}return d6(d,r)}}(s,o.parent,r)}function V5(s,o,r,d,f){s.insertBefore(o,r,d,f)}function em(s,o,r){s.appendChild(o,r)}function T9(s,o,r,d,f){null!==d?V5(s,o,r,d,f):em(s,o,r)}function it(s,o){return s.parentNode(o)}function nm(s,o,r){return lm(s,o,r)}let U5,lm=function Za(s,o,r){return 40&s.type?d6(s,r):null};function G5(s,o,r,d){const f=E9(s,d,o),h=o[n0],M=nm(d.parent||o[j2],d,o);if(null!=f)if(Array.isArray(r))for(let k=0;kI0&&to(s,o,I0,!1),G6(z?2:0,f),r(d,f)}finally{f5(h),G6(z?3:1,f)}}function Gc(s,o,r){if(A2(o)){const d=A(null);try{const h=o.directiveEnd;for(let z=o.directiveStart;znull;function io(s,o,r,d,f){for(let h in o){if(!o.hasOwnProperty(h))continue;const z=o[h];if(void 0===z)continue;d??={};let M,k=Z4.None;Array.isArray(z)?(M=z[0],k=z[1]):M=z;let j=h;if(null!==f){if(!f.hasOwnProperty(h))continue;j=f[h]}0===s?ro(d,r,j,M,k):ro(d,r,j,M)}return d}function ro(s,o,r,d,f){let h;s.hasOwnProperty(r)?(h=s[r]).push(o,d):h=s[r]=[o,d],void 0!==f&&h.push(f)}function a8(s,o,r,d,f,h,z,M){const k=d6(o,r);let H,j=o.inputs;!M&&null!=j&&(H=j[d])?(B9(s,r,H,d,f),O8(o)&&function fo(s,o){const r=H6(o,s);16&r[U1]||(r[U1]|=64)}(r,o.index)):3&o.type&&(d=function hm(s){return"class"===s?"className":"for"===s?"htmlFor":"formaction"===s?"formAction":"innerHtml"===s?"innerHTML":"readonly"===s?"readOnly":"tabindex"===s?"tabIndex":s}(d),f=null!=z?z(f,o.value||"",d):f,h.setProperty(k,d,f))}function j9(s,o,r,d){if(O()){const f=null===d?null:{"":-1},h=function _m(s,o){const r=s.directiveRegistry;let d=null,f=null;if(r)for(let h=0;h0;){const r=s[--o];if("number"==typeof r&&r<0)return r}return 0})(z)!=M&&z.push(M),z.push(r,d,h)}}(s,o,d,Uc(s,r,f.hostVars,W0),f)}function Ee(s,o,r,d,f,h){const z=d6(s,o);!function mt(s,o,r,d,f,h,z){if(null==h)s.removeAttribute(o,f,r);else{const M=null==z?a0(h):z(h,d||"",f);s.setAttribute(o,f,M,r)}}(o[n0],z,h,s.value,r,d,f)}function Cm(s,o,r,d,f,h){const z=h[o];if(null!==z)for(let M=0;M0&&(r[f-1][R2]=o),d{O5(s.lView)},consumerOnSignalRead(){this.lView[K8]=this}},ko=100;function V9(s,o=!0,r=0){const d=s[E0],f=d.rendererFactory;f.begin?.();try{!function wo(s,o){No(s,o);let r=0;for(;zc(s);){if(r===ko)throw new m2(103,!1);r++,No(s,1)}}(s,r)}catch(z){throw o&&O9(s,z),z}finally{f.end?.(),d.inlineEffectRunner?.flush()}}function wz(s,o,r,d){const f=o[U1];if(!(256&~f))return;o[E0].inlineEffectRunner?.flush(),Us(o);let z=null,M=null;(function Sz(s){return 2!==s.type})(s)&&(M=function bm(s){return s[K8]??function vo(s){const o=xm.pop()??Object.create(ym);return o.lView=s,o}(s)}(o),z=function $1(s){return s&&(s.nextProducerIndex=0),A(s)}(M));try{$n(o),function Vs(s){return _0.lFrame.bindingIndex=s}(s.bindingStartIndex),null!==r&&fm(s,o,r,2,d);const k=!(3&~f);if(k){const i1=s.preOrderCheckHooks;null!==i1&&R7(o,i1,null)}else{const i1=s.preOrderHooks;null!==i1&&Wn(o,i1,0,null),Ys(o,0)}if(function Nz(s){for(let o=ua(s);null!==o;o=Kf(o)){if(!(o[U1]&i5.HasTransplantedViews))continue;const r=o[k8];for(let d=0;ds.nextProducerIndex;)s.producerNode.pop(),s.producerLastReadVersion.pop(),s.producerIndexOfThis.pop()}}(M,z),function vz(s){s.lView[K8]!==s&&(s.lView=null,xm.push(s))}(M)),Hn()}}function q5(s,o){for(let r=ua(s);null!==r;r=Kf(r))for(let d=r3;d-1&&(Bc(o,d),Z6(r,d))}this._attachedToViewContainer=!1}N9(this._lView[k1],this._lView)}onDestroy(o){xc(this._lView,o)}markForCheck(){gt(this._cdRefInjectingView||this._lView)}detach(){this._lView[U1]&=-129}reattach(){Mc(this._lView),this._lView[U1]|=128}detectChanges(){this._lView[U1]|=1024,V9(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new m2(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Qu(this._lView[k1],this._lView)}attachToAppRef(o){if(this._attachedToViewContainer)throw new m2(902,!1);this._appRef=o,Mc(this._lView)}}let _t=(()=>{class s{static{this.__NG_ELEMENT_ID__=Tz}}return s})();const Fm=_t,Dz=class extends Fm{constructor(o,r,d){super(),this._declarationLView=o,this._declarationTContainer=r,this.elementRef=d}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(o,r){return this.createEmbeddedViewImpl(o,r)}createEmbeddedViewImpl(o,r,d){const f=pt(this._declarationLView,this._declarationTContainer,o,{embeddedViewInjector:r,dehydratedView:d});return new Yc(f)}};function Tz(){return Lt(j4(),Q1())}function Lt(s,o){return 4&s.type?new Dz(o,s,We(s,o)):null}let jo=()=>null;function Xc(s,o){return jo(s,o)}class $o{}class Qz{}class Im{}class yt{resolveComponentFactory(o){throw function Pm(s){const o=Error(`No component factory found for ${T0(s)}.`);return o.ngComponent=s,o}(o)}}let Ft=(()=>{class s{static{this.NULL=new yt}}return s})();class jm{}let $m=(()=>{class s{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Om(){const s=Q1(),r=H6(j4().index,s);return(X3(r)?r:s)[n0]}()}}return s})(),Kz=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:()=>null})}}return s})();const Oo={},Bm=new Set;function H8(s){Bm.has(s)||(Bm.add(s),performance?.mark?.("mark_feature_usage",{detail:{feature:s}}))}function Bo(...s){}class j3{constructor({enableLongStackTrace:o=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G8(!1),this.onMicrotaskEmpty=new G8(!1),this.onStable=new G8(!1),this.onError=new G8(!1),typeof Zone>"u")throw new m2(908,!1);Zone.assertZonePatched();const f=this;f._nesting=0,f._outer=f._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(f._inner=f._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(f._inner=f._inner.fork(Zone.longStackTraceZoneSpec)),f.shouldCoalesceEventChangeDetection=!d&&r,f.shouldCoalesceRunChangeDetection=d,f.lastRequestAnimationFrameId=-1,f.nativeRequestAnimationFrame=function cM(){const s="function"==typeof u0.requestAnimationFrame;let o=u0[s?"requestAnimationFrame":"setTimeout"],r=u0[s?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&o&&r){const d=o[Zone.__symbol__("OriginalDelegate")];d&&(o=d);const f=r[Zone.__symbol__("OriginalDelegate")];f&&(r=f)}return{nativeRequestAnimationFrame:o,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Go(s){const o=()=>{!function tM(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(u0,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Ho(s),s.isCheckStableRunning=!0,Uo(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Ho(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,d,f,h,z,M)=>{if(function nM(s){return!(!Array.isArray(s)||1!==s.length)&&!0===s[0].data?.__ignore_ng_zone__}(M))return r.invokeTask(f,h,z,M);try{return Vm(s),r.invokeTask(f,h,z,M)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===h.type||s.shouldCoalesceRunChangeDetection)&&o(),X9(s)}},onInvoke:(r,d,f,h,z,M,k)=>{try{return Vm(s),r.invoke(f,h,z,M,k)}finally{s.shouldCoalesceRunChangeDetection&&o(),X9(s)}},onHasTask:(r,d,f,h)=>{r.hasTask(f,h),d===f&&("microTask"==h.change?(s._hasPendingMicrotasks=h.microTask,Ho(s),Uo(s)):"macroTask"==h.change&&(s.hasPendingMacrotasks=h.macroTask))},onHandleError:(r,d,f,h)=>(r.handleError(f,h),s.runOutsideAngular(()=>s.onError.emit(h)),!1)})}(f)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!j3.isInAngularZone())throw new m2(909,!1)}static assertNotInAngularZone(){if(j3.isInAngularZone())throw new m2(909,!1)}run(o,r,d){return this._inner.run(o,r,d)}runTask(o,r,d,f){const h=this._inner,z=h.scheduleEventTask("NgZoneEvent: "+f,o,Vo,Bo,Bo);try{return h.runTask(z,r,d)}finally{h.cancelTask(z)}}runGuarded(o,r,d){return this._inner.runGuarded(o,r,d)}runOutsideAngular(o){return this._outer.run(o)}}const Vo={};function Uo(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Ho(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Vm(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function X9(s){s._nesting--,Uo(s)}class Yo{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G8,this.onMicrotaskEmpty=new G8,this.onStable=new G8,this.onError=new G8}run(o,r,d){return o.apply(r,d)}runGuarded(o,r,d){return o.apply(r,d)}runOutsideAngular(o){return o()}runTask(o,r,d,f){return o.apply(r,d)}}var Qe=function(s){return s[s.EarlyRead=0]="EarlyRead",s[s.Write=1]="Write",s[s.MixedReadWrite=2]="MixedReadWrite",s[s.Read=3]="Read",s}(Qe||{});const Gm={destroy(){}};function Hm(s,o){!o&&function k6(s){if(!l8())throw new m2(-203,!1)}();const r=o?.injector??p0(q6);if(!function S8(s){return"browser"===(s??p0(q6)).get(d9)}(r))return Gm;H8("NgAfterNextRender");const d=r.get(Wc),f=d.handler??=new Ym,h=o?.phase??Qe.MixedReadWrite,z=()=>{f.unregister(k),M()},M=r.get(p5).onDestroy(z),k=r6(r,()=>new W9(h,()=>{z(),s()}));return f.register(k),{destroy:z}}class W9{constructor(o,r){this.phase=o,this.callbackFn=r,this.zone=p0(j3),this.errorHandler=p0(oe,{optional:!0}),p0($o,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(o){this.errorHandler?.handleError(o)}}}class Ym{constructor(){this.executingCallbacks=!1,this.buckets={[Qe.EarlyRead]:new Set,[Qe.Write]:new Set,[Qe.MixedReadWrite]:new Set,[Qe.Read]:new Set},this.deferredCallbacks=new Set}register(o){(this.executingCallbacks?this.deferredCallbacks:this.buckets[o.phase]).add(o)}unregister(o){this.buckets[o.phase].delete(o),this.deferredCallbacks.delete(o)}execute(){this.executingCallbacks=!0;for(const o of Object.values(this.buckets))for(const r of o)r.invoke();this.executingCallbacks=!1;for(const o of this.deferredCallbacks)this.buckets[o.phase].add(o);this.deferredCallbacks.clear()}destroy(){for(const o of Object.values(this.buckets))o.clear();this.deferredCallbacks.clear()}}let Wc=(()=>{class s{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const d of r)d()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=z0({token:s,providedIn:"root",factory:()=>new s})}}return s})();function z5(s){return!!K4(s)}function kt(s,o,r){let d=r?s.styles:null,f=r?s.classes:null,h=0;if(null!==o)for(let z=0;z0&&eo(s,r,h.join(" "))}}(I1,$3,l2,d),void 0!==r&&function aM(s,o,r){const d=s.projection=[];for(let f=0;f{class s{static{this.__NG_ELEMENT_ID__=iM}}return s})();function iM(){return wt(j4(),Q1())}const rM=Q9,ep=class extends rM{constructor(o,r,d){super(),this._lContainer=o,this._hostTNode=r,this._hostLView=d}get element(){return We(this._hostTNode,this._hostLView)}get injector(){return new P3(this._hostTNode,this._hostLView)}get parentInjector(){const o=$7(this._hostTNode,this._hostLView);if(Zn(o)){const r=I7(o,this._hostLView),d=A7(o);return new P3(r[k1].data[d+8],r)}return new P3(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(o){const r=ci(this._lContainer);return null!==r&&r[o]||null}get length(){return this._lContainer.length-r3}createEmbeddedView(o,r,d){let f,h;"number"==typeof d?f=d:null!=d&&(f=d.index,h=d.injector);const z=Xc(this._lContainer,o.ssrId),M=o.createEmbeddedViewImpl(r||{},h,z);return this.insertImpl(M,f,C5(this._hostTNode,z)),M}createComponent(o,r,d,f,h){const z=o&&!function a2(s){return"function"==typeof s}(o);let M;if(z)M=r;else{const B1=r||{};M=B1.index,d=B1.injector,f=B1.projectableNodes,h=B1.environmentInjector||B1.ngModuleRef}const k=z?o:new Jc(j0(o)),j=d||this.parentInjector;if(!h&&null==k.ngModule){const l2=(z?j:this.parentInjector).get(Y3,null);l2&&(h=l2)}const H=j0(k.componentType??{}),i1=Xc(this._lContainer,H?.id??null),I1=k.create(j,f,i1?.firstChild??null,h);return this.insertImpl(I1.hostView,M,C5(this._hostTNode,i1)),I1}insert(o,r){return this.insertImpl(o,r,!0)}insertImpl(o,r,d){const f=o._lView;if(function js(s){return e3(s[y2])}(f)){const M=this.indexOf(o);if(-1!==M)this.detach(M);else{const k=f[y2],j=new ep(k,k[j2],k[y2]);j.detach(j.indexOf(o))}}const h=this._adjustIndex(r),z=this._lContainer;return ht(z,f,h,d),o.attachToViewContainerRef(),R3(ti(z),h,o),o}move(o,r){return this.insert(o,r)}indexOf(o){const r=ci(this._lContainer);return null!==r?r.indexOf(o):-1}remove(o){const r=this._adjustIndex(o,-1),d=Bc(this._lContainer,r);d&&(Z6(ti(this._lContainer),r),N9(d[k1],d))}detach(o){const r=this._adjustIndex(o,-1),d=Bc(this._lContainer,r);return d&&null!=Z6(ti(this._lContainer),r)?new Yc(d):null}_adjustIndex(o,r=0){return o??this.length+r}};function ci(s){return s[8]}function ti(s){return s[8]||(s[8]=[])}function wt(s,o){let r;const d=o[s.index];return e3(d)?r=d:(r=_o(d,o,null,s),o[s.index]=r,$9(o,r)),St(r,o,s,d),new ep(r,s,o)}let St=function Nt(s,o,r,d){if(s[v8])return;let f;f=8&r.type?S4(d):function dM(s,o){const r=s[n0],d=r.createComment(""),f=d6(o,s);return V5(r,it(r,f),d,function tm(s,o){return s.nextSibling(o)}(r,f),!1),d}(o,r),s[v8]=f},ni=()=>!1;class li{constructor(o){this.queryList=o,this.matches=null}clone(){return new li(this.queryList)}setDirty(){this.queryList.setDirty()}}class si{constructor(o=[]){this.queries=o}createEmbeddedView(o){const r=o.queries;if(null!==r){const d=null!==o.contentQueries?o.contentQueries[0]:r.length,f=[];for(let h=0;ho.trim())}(o):o}}class Z9{constructor(o=[]){this.queries=o}elementStart(o,r){for(let d=0;d0)d.push(z[M/2]);else{const j=h[M+1],H=o[-k];for(let i1=r3;i1=0;d--){const f=s[d];f.hostVars=o+=f.hostVars,f.hostAttrs=D(f.hostAttrs,r=D(r,f.hostAttrs))}}(d)}function wM(s,o){for(const r in o.inputs){if(!o.inputs.hasOwnProperty(r)||s.inputs.hasOwnProperty(r))continue;const d=o.inputs[r];if(void 0!==d&&(s.inputs[r]=d,s.declaredInputs[r]=o.declaredInputs[r],null!==o.inputTransforms)){const f=Array.isArray(d)?d[0]:d;if(!o.inputTransforms.hasOwnProperty(f))continue;s.inputTransforms??={},s.inputTransforms[f]=o.inputTransforms[f]}}}function It(s){return s===u3?{}:s===H0?[]:s}function yp(s,o){const r=s.viewQuery;s.viewQuery=r?(d,f)=>{o(d,f),r(d,f)}:o}function SM(s,o){const r=s.contentQueries;s.contentQueries=r?(d,f,h)=>{o(d,f,h),r(d,f,h)}:o}function NM(s,o){const r=s.hostBindings;s.hostBindings=r?(d,f)=>{o(d,f),r(d,f)}:o}function Sp(s){const o=s.inputConfig,r={};for(const d in o)if(o.hasOwnProperty(d)){const f=o[d];Array.isArray(f)&&f[3]&&(r[d]=f[3])}s.inputTransforms=r}class x5{}class gi{}function Np(s,o){return new al(s,o??null,[])}class al extends x5{constructor(o,r,d){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ko(this);const f=K4(o);this._bootstrapComponents=W6(f.bootstrap),this._r3Injector=Af(o,r,[{provide:x5,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver},...d],T0(o),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(o)}get injector(){return this._r3Injector}destroy(){const o=this._r3Injector;!o.destroyed&&o.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(o){this.destroyCbs.push(o)}}class _i extends gi{constructor(o){super(),this.moduleType=o}create(o){return new al(this.moduleType,o,[])}}class Li extends x5{constructor(o){super(),this.componentFactoryResolver=new Ko(this),this.instance=null;const r=new U6([...o.providers,{provide:x5,useValue:this},{provide:Ft,useValue:this.componentFactoryResolver}],o.parent||b8(),o.debugName,new Set(["environment"]));this.injector=r,o.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(o){this.injector.onDestroy(o)}}function Ci(s,o,r=null){return new Li({providers:s,parent:o,debugName:r,runEnvironmentInitializers:!0}).injector}let Z5=(()=>{class s{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new D0.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function jt(s){return!!il(s)&&(Array.isArray(s)||!(s instanceof Map)&&Symbol.iterator in s)}function il(s){return null!==s&&("function"==typeof s||"object"==typeof s)}function De(s,o,r){return s[o]=r}function S3(s,o,r){return!Object.is(s[o],r)&&(s[o]=r,!0)}function K5(s,o,r,d){const f=S3(s,o,r);return S3(s,o+1,d)||f}function $t(s,o,r,d,f){const h=K5(s,o,r,d);return S3(s,o+2,f)||h}function Y8(s,o,r,d,f,h){const z=K5(s,o,r,d);return K5(s,o+2,f,h)||z}function e7(s,o,r,d,f,h,z,M){const k=Q1(),j=O0(),H=s+I0,i1=j.firstCreatePass?function rl(s,o,r,d,f,h,z,M,k){const j=o.consts,H=L5(o,s,4,z||null,w8(j,M));j9(o,r,H,w8(j,k)),Xn(o,H);const i1=H.tView=ao(2,H,d,f,h,o.directiveRegistry,o.pipeRegistry,null,o.schemas,j,null);return null!==o.queries&&(o.queries.template(o,H),i1.queries=o.queries.embeddedTView(H)),H}(H,j,k,o,r,d,f,h,z):j.data[H];we(i1,!1);const N1=Tp(j,k,i1,s);bc()&&G5(j,k,N1,i1),b6(N1,k);const I1=_o(N1,k,N1,i1);return k[H]=I1,$9(k,I1),function cp(s,o,r){return ni(s,o,r)}(I1,i1,k),Ge(i1)&&lo(j,k,i1),null!=z&&so(k,i1,M),e7}let Tp=function Mi(s,o,r,d){return ae(!0),o[n0].createComment("")};function Gt(s,o,r,d){const f=Q1();return S3(f,V8(),o)&&(O0(),Ee(c3(),f,s,o,r,d)),Gt}function lc(s,o,r,d){return S3(s,V8(),r)?o+a0(r)+d:W0}function Ml(s,o){return s<<17|o<<2}function Ze(s){return s>>17&32767}function Ui(s){return 2|s}function ic(s){return(131068&s)>>2}function Gi(s,o){return-131069&s|o<<2}function xl(s){return 1|s}function rh(s,o,r,d){const f=s[r+1],h=null===o;let z=d?Ze(f):ic(f),M=!1;for(;0!==z&&(!1===M||h);){const j=s[z+1];cx(s[z],o)&&(M=!0,s[z+1]=d?xl(j):Ui(j)),z=d?Ze(j):ic(j)}M&&(s[r+1]=d?Ui(f):xl(f))}function cx(s,o){return null===s||null==o||(Array.isArray(s)?s[1]:s)===o||!(!Array.isArray(s)||"string"!=typeof o)&&x4(s,o)>=0}const J3={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dh(s){return s.substring(J3.key,J3.keyEnd)}function Ht(s){return s.substring(J3.value,J3.valueEnd)}function fh(s,o){const r=J3.textEnd;return r===o?-1:(o=J3.keyEnd=function lx(s,o,r){for(;o32;)o++;return o}(s,J3.key=o,r),u7(s,o,r))}function bl(s,o){const r=J3.textEnd;let d=J3.key=u7(s,o,r);return r===d?-1:(d=J3.keyEnd=function mh(s,o,r){let d;for(;o=65&&(-33&d)<=90||d>=48&&d<=57);)o++;return o}(s,d,r),d=ph(s,d,r),d=J3.value=u7(s,d,r),d=J3.valueEnd=function Yi(s,o,r){let d=-1,f=-1,h=-1,z=o,M=z;for(;z32&&(M=z),h=f,f=d,d=-33&k}return M}(s,d,r),ph(s,d,r))}function uh(s){J3.key=0,J3.keyEnd=0,J3.value=0,J3.valueEnd=0,J3.textEnd=s.length}function u7(s,o,r){for(;o=0;r=bl(o,r))m7(s,dh(o),Ht(o))}function gh(s){q8(ix,fe,s,!0)}function fe(s,o){for(let r=function tx(s){return uh(s),fh(s,u7(s,0,J3.textEnd))}(o);r>=0;r=fh(o,r))i3(s,dh(o),!0)}function E8(s,o,r,d){const f=Q1(),h=O0(),z=Xe(2);h.firstUpdatePass&&_h(h,s,z,d),o!==W0&&S3(f,z,o)&&Mh(h,h.data[x6()],f,f[n0],s,f[z+1]=function dx(s,o){return null==s||""===s||("string"==typeof o?s+=o:"object"==typeof s&&(s=T0(Ne(s)))),s}(o,r),d,z)}function q8(s,o,r,d){const f=O0(),h=Xe(2);f.firstUpdatePass&&_h(f,null,h,d);const z=Q1();if(r!==W0&&S3(z,h,r)){const M=f.data[x6()];if(bh(M,d)&&!qt(f,h)){let k=d?M.classesWithoutHost:M.stylesWithoutHost;null!==k&&(r=V4(k,r||"")),Yt(f,M,z,r,d)}else!function rx(s,o,r,d,f,h,z,M){f===W0&&(f=H0);let k=0,j=0,H=0=s.expandoStartIndex}function _h(s,o,r,d){const f=s.data;if(null===f[r+1]){const h=f[x6()],z=qt(s,r);bh(h,d)&&null===o&&!z&&(o=!1),o=function Lh(s,o,r,d){const f=function T7(s){const o=_0.lFrame.currentDirectiveIndex;return-1===o?null:s[o]}(s);let h=d?o.residualClasses:o.residualStyles;if(null===f)0===(d?o.classBindings:o.styleBindings)&&(r=rc(r=Wi(null,s,o,r,d),o.attrs,d),h=null);else{const z=o.directiveStylingLast;if(-1===z||s[z]!==f)if(r=Wi(f,s,o,r,d),null===h){let k=function ax(s,o,r){const d=r?o.classBindings:o.styleBindings;if(0!==ic(d))return s[Ze(d)]}(s,o,d);void 0!==k&&Array.isArray(k)&&(k=Wi(null,s,o,k[1],d),k=rc(k,o.attrs,d),function Ch(s,o,r,d){s[Ze(r?o.classBindings:o.styleBindings)]=d}(s,o,d,k))}else h=function zh(s,o,r){let d;const f=o.directiveEnd;for(let h=1+o.directiveStylingLast;h0)&&(j=!0)):H=r,f)if(0!==k){const N1=Ze(s[M+1]);s[d+1]=Ml(N1,M),0!==N1&&(s[N1+1]=Gi(s[N1+1],d)),s[M+1]=function ih(s,o){return 131071&s|o<<17}(s[M+1],d)}else s[d+1]=Ml(M,0),0!==M&&(s[M+1]=Gi(s[M+1],d)),M=d;else s[d+1]=Ml(k,0),0===M?M=d:s[k+1]=Gi(s[k+1],d),k=d;j&&(s[d+1]=Ui(s[d+1])),rh(s,H,d,!0),rh(s,H,d,!1),function ex(s,o,r,d,f){const h=f?s.residualClasses:s.residualStyles;null!=h&&"string"==typeof o&&x4(h,o)>=0&&(r[d+1]=xl(r[d+1]))}(o,H,s,d,h),z=Ml(M,k),h?o.classBindings=z:o.styleBindings=z}(f,h,o,r,z,d)}}function Wi(s,o,r,d,f){let h=null;const z=r.directiveEnd;let M=r.directiveStylingLast;for(-1===M?M=r.directiveStart:M++;M0;){const k=s[f],j=Array.isArray(k),H=j?k[1]:k,i1=null===H;let N1=r[f+1];N1===W0&&(N1=i1?H0:void 0);let I1=i1?s6(N1,d):H===d?N1:void 0;if(j&&!b5(I1)&&(I1=s6(k,d)),b5(I1)&&(M=I1,z))return M;const B1=s[f+1];f=z?Ze(B1):ic(B1)}if(null!==o){let k=h?o.residualClasses:o.residualStyles;null!=k&&(M=s6(k,d))}return M}function b5(s){return void 0!==s}function bh(s,o){return!!(s.flags&(o?8:16))}function Fl(s,o,r){q8(i3,fe,lc(Q1(),s,o,r),!0)}class Xt{destroy(o){}updateValue(o,r){}swap(o,r){const d=Math.min(o,r),f=Math.max(o,r),h=this.detach(f);if(f-d>1){const z=this.detach(d);this.attach(d,h),this.attach(f,z)}else this.attach(d,h)}move(o,r){this.attach(r,this.detach(o))}}function Qi(s,o,r,d,f){return s===r&&Object.is(o,d)?1:Object.is(f(s,o),f(r,d))?-1:0}function vl(s,o,r,d){return!(void 0===o||!o.has(d)||(s.attach(r,o.get(d)),o.delete(d),0))}function Zi(s,o,r,d,f){if(vl(s,o,d,r(d,f)))s.updateValue(d,f);else{const h=s.create(d,f);s.attach(d,h)}}function wh(s,o,r,d){const f=new Set;for(let h=o;h<=r;h++)f.add(d(h,s.at(h)));return f}class Sh{constructor(){this.kvMap=new Map,this._vMap=void 0}has(o){return this.kvMap.has(o)}delete(o){if(!this.has(o))return!1;const r=this.kvMap.get(o);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(o,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(o),!0}get(o){return this.kvMap.get(o)}set(o,r){if(this.kvMap.has(o)){let d=this.kvMap.get(o);void 0===this._vMap&&(this._vMap=new Map);const f=this._vMap;for(;f.has(d);)d=f.get(d);f.set(d,r)}else this.kvMap.set(o,r)}forEach(o){for(let[r,d]of this.kvMap)if(o(d,r),void 0!==this._vMap){const f=this._vMap;for(;f.has(d);)d=f.get(d),o(d,r)}}}function Nh(s,o,r){H8("NgControlFlow");const d=Q1(),f=V8(),h=Wt(d,I0+s);if(S3(d,f,o)){const M=A(null);try{if(yo(h,0),-1!==o){const k=tr(d[k1],I0+o),j=Xc(h,k.tView.ssrId);ht(h,pt(d,k,r,{dehydratedView:j}),0,C5(k,j))}}finally{A(M)}}else{const M=Mm(h,0);void 0!==M&&(M[Y0]=r)}}class gx{constructor(o,r,d){this.lContainer=o,this.$implicit=r,this.$index=d}get $count(){return this.lContainer.length-r3}}function Ki(s){return s}function er(s,o){return o}class Eh{constructor(o,r,d){this.hasEmptyBlock=o,this.trackByFn=r,this.liveCollection=d}}function kl(s,o,r,d,f,h,z,M,k,j,H,i1,N1){H8("NgControlFlow");const I1=void 0!==k,B1=Q1(),l2=M?z.bind(B1[x0][Y0]):z,L2=new Eh(I1,l2);B1[I0+s]=L2,e7(s+1,o,r,d,f,h),I1&&e7(s+2,k,j,H,i1,N1)}class _x extends Xt{constructor(o,r,d){super(),this.lContainer=o,this.hostLView=r,this.templateTNode=d,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-r3}at(o){return this.getLView(o)[Y0].$implicit}attach(o,r){const d=r[g0];this.needsIndexUpdate||=o!==this.length,ht(this.lContainer,r,o,C5(this.templateTNode,d))}detach(o){return this.needsIndexUpdate||=o!==this.length-1,function Lx(s,o){return Bc(s,o)}(this.lContainer,o)}create(o,r){const d=Xc(this.lContainer,this.templateTNode.tView.ssrId);return pt(this.hostLView,this.templateTNode,new gx(this.lContainer,r,o),{dehydratedView:d})}destroy(o){N9(o[k1],o)}updateValue(o,r){this.getLView(o)[Y0].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let o=0;o{s.destroy(M)})}(z,s,h.trackByFn),z.updateIndexes(),h.hasEmptyBlock){const M=V8(),k=0===z.length;if(S3(d,M,k)){const j=r+2,H=Wt(d,j);if(k){const i1=tr(f,j),N1=Xc(H,i1.tView.ssrId);ht(H,pt(d,i1,void 0,{dehydratedView:N1}),0,C5(i1,N1))}else yo(H,0)}}}finally{A(o)}}function Wt(s,o){return s[o]}function tr(s,o){return $5(s,o)}function wl(s,o,r,d){const f=Q1(),h=O0(),z=I0+s,M=f[n0],k=h.firstCreatePass?function Cx(s,o,r,d,f,h){const z=o.consts,k=L5(o,s,2,d,w8(z,f));return j9(o,r,k,w8(z,h)),null!==k.attrs&&kt(k,k.attrs,!1),null!==k.mergedAttrs&&kt(k,k.mergedAttrs,!0),null!==o.queries&&o.queries.elementStart(o,k),k}(z,h,f,o,r,d):h.data[z],j=nr(h,f,k,M,o,s);f[z]=j;const H=Ge(k);return we(k,!0),co(M,j,k),!function Kc(s){return!(32&~s.flags)}(k)&&bc()&&G5(h,f,j,k),0===function L(){return _0.lFrame.elementDepthCount}()&&b6(j,f),function F(){_0.lFrame.elementDepthCount++}(),H&&(lo(h,f,k),Gc(h,k,f)),null!==d&&so(f,k),wl}function Sl(){let s=j4();On()?Os():(s=s.parent,we(s,!1));const o=s;(function R1(s){return _0.skipHydrationRootTNode===s})(o)&&function s4(){_0.skipHydrationRootTNode=null}(),function I(){_0.lFrame.elementDepthCount--}();const r=O0();return r.firstCreatePass&&(Xn(r,s),A2(s)&&r.queries.elementEnd(s)),null!=o.classesWithoutHost&&function yf(s){return!!(8&s.flags)}(o)&&Yt(r,o,Q1(),o.classesWithoutHost,!0),null!=o.stylesWithoutHost&&function Ff(s){return!!(16&s.flags)}(o)&&Yt(r,o,Q1(),o.stylesWithoutHost,!1),Sl}function Nl(s,o,r,d){return wl(s,o,r,d),Sl(),Nl}let nr=(s,o,r,d,f,h)=>(ae(!0),S9(d,f,function qn(){return _0.lFrame.currentNamespace}()));function El(s,o,r){const d=Q1(),f=O0(),h=s+I0,z=f.firstCreatePass?function Rh(s,o,r,d,f){const h=o.consts,z=w8(h,d),M=L5(o,s,8,"ng-container",z);return null!==z&&kt(M,z,!0),j9(o,r,M,w8(h,f)),null!==o.queries&&o.queries.elementStart(o,M),M}(h,f,d,o,r):f.data[h];we(z,!0);const M=Ah(f,d,z,s);return d[h]=M,bc()&&G5(f,d,M,z),b6(M,d),Ge(z)&&(lo(f,d,z),Gc(f,z,d)),null!=r&&so(d,z),El}function Dl(){let s=j4();const o=O0();return On()?Os():(s=s.parent,we(s,!1)),o.firstCreatePass&&(Xn(o,s),A2(s)&&o.queries.elementEnd(s)),Dl}function Tl(s,o,r){return El(s,o,r),Dl(),Tl}let Ah=(s,o,r,d)=>(ae(!0),Ja(o[n0],""));function Ph(){return Q1()}function Rl(s,o,r){const d=Q1();return S3(d,V8(),o)&&a8(O0(),c3(),d,s,o,d[n0],r,!0),Rl}const dc=void 0;var $h=["en",[["a","p"],["AM","PM"],dc],[["AM","PM"],dc,dc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],dc,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",dc,"{1} 'at' {0}",dc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function xx(s){const r=Math.floor(Math.abs(s)),d=s.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===d?1:5}];let y5={};function lr(s){const o=function Bh(s){return s.toLowerCase().replace(/_/g,"-")}(s);let r=Oh(o);if(r)return r;const d=o.split("-")[0];if(r=Oh(d),r)return r;if("en"===d)return $h;throw new m2(701,!1)}function Jt(s){return lr(s)[Re.PluralCase]}function Oh(s){return s in y5||(y5[s]=u0.ng&&u0.ng.common&&u0.ng.common.locales&&u0.ng.common.locales[s]),y5[s]}var Re=function(s){return s[s.LocaleId=0]="LocaleId",s[s.DayPeriodsFormat=1]="DayPeriodsFormat",s[s.DayPeriodsStandalone=2]="DayPeriodsStandalone",s[s.DaysFormat=3]="DaysFormat",s[s.DaysStandalone=4]="DaysStandalone",s[s.MonthsFormat=5]="MonthsFormat",s[s.MonthsStandalone=6]="MonthsStandalone",s[s.Eras=7]="Eras",s[s.FirstDayOfWeek=8]="FirstDayOfWeek",s[s.WeekendRange=9]="WeekendRange",s[s.DateFormat=10]="DateFormat",s[s.TimeFormat=11]="TimeFormat",s[s.DateTimeFormat=12]="DateTimeFormat",s[s.NumberSymbols=13]="NumberSymbols",s[s.NumberFormats=14]="NumberFormats",s[s.CurrencyCode=15]="CurrencyCode",s[s.CurrencySymbol=16]="CurrencySymbol",s[s.CurrencyName=17]="CurrencyName",s[s.Currencies=18]="Currencies",s[s.Directionality=19]="Directionality",s[s.PluralCase=20]="PluralCase",s[s.ExtraData=21]="ExtraData",s}(Re||{});const fc="en-US";let sr=fc;function br(s,o,r,d){const f=Q1(),h=O0(),z=j4();return Fr(h,f,f[n0],z,s,o,d),br}function Fr(s,o,r,d,f,h,z){const M=Ge(d),j=s.firstCreatePass&&Mo(s),H=o[Y0],i1=zo(o);let N1=!0;if(3&d.type||z){const l2=d6(d,o),L2=z?z(l2):l2,T2=i1.length,r2=z?u4=>z(S4(u4[d.index])):d.index;let k0=null;if(!z&&M&&(k0=function Ul(s,o,r,d){const f=s.cleanup;if(null!=f)for(let h=0;hk?M[k]:null}"string"==typeof z&&(h+=2)}return null}(s,o,f,d.index)),null!==k0)(k0.__ngLastListenerFn__||k0).__ngNextListenerFn__=h,k0.__ngLastListenerFn__=h,N1=!1;else{h=ln(d,o,H,h,!1);const u4=r.listen(L2,f,h);i1.push(h,u4),j&&j.push(f,r2,T2,T2+1)}}else h=ln(d,o,H,h,!1);const I1=d.outputs;let B1;if(N1&&null!==I1&&(B1=I1[f])){const l2=B1.length;if(l2)for(let L2=0;L2-1?H6(s.index,o):o);let k=Mg(o,r,d,z),j=h.__ngNextListenerFn__;for(;j;)k=Mg(o,r,j,z)&&k,j=j.__ngNextListenerFn__;return f&&!1===k&&z.preventDefault(),k}}function Gl(s=1){return function YL(s){return(_0.lFrame.contextLView=function te(s,o){for(;s>0;)o=o[_4],s--;return o}(s,_0.lFrame.contextLView))[Y0]}(s)}function xg(s,o){let r=null;const d=function ge(s){const o=s.attrs;if(null!=o){const r=o.indexOf(5);if(!(1&r))return o[r+1]}return null}(s);for(let f=0;f(ae(!0),function Xa(s,o){return s.createText(o)}(o[n0],d));function Pr(s){return _7("",s,""),Pr}function _7(s,o,r){const d=Q1(),f=lc(d,s,o,r);return f!==W0&&Je(d,x6(),f),_7}function jr(s,o,r,d,f){const h=Q1(),z=function o7(s,o,r,d,f,h){const M=K5(s,Se(),r,f);return Xe(2),M?o+a0(r)+d+a0(f)+h:W0}(h,s,o,r,d,f);return z!==W0&&Je(h,x6(),z),jr}function an(s,o,r,d,f,h,z){const M=Q1(),k=function sc(s,o,r,d,f,h,z,M){const j=$t(s,Se(),r,f,z);return Xe(3),j?o+a0(r)+d+a0(f)+h+a0(z)+M:W0}(M,s,o,r,d,f,h,z);return k!==W0&&Je(M,x6(),k),an}function $r(s,o,r,d,f,h,z,M,k){const j=Q1(),H=function ac(s,o,r,d,f,h,z,M,k,j){const i1=Y8(s,Se(),r,f,z,k);return Xe(4),i1?o+a0(r)+d+a0(f)+h+a0(z)+M+a0(k)+j:W0}(j,s,o,r,d,f,h,z,M,k);return H!==W0&&Je(j,x6(),H),$r}function Ql(s,o,r,d,f,h,z,M,k,j,H){const i1=Q1(),N1=function i7(s,o,r,d,f,h,z,M,k,j,H,i1){const N1=Se();let I1=Y8(s,N1,r,f,z,k);return I1=S3(s,N1+4,H)||I1,Xe(5),I1?o+a0(r)+d+a0(f)+h+a0(z)+M+a0(k)+j+a0(H)+i1:W0}(i1,s,o,r,d,f,h,z,M,k,j,H);return N1!==W0&&Je(i1,x6(),N1),Ql}function Vr(s,o,r){fp(o)&&(o=o());const d=Q1();return S3(d,V8(),o)&&a8(O0(),c3(),d,s,o,d[n0],r,!1),Vr}function $g(s,o){const r=fp(s);return r&&s.set(o),r}function Kl(s,o){const r=Q1(),d=O0(),f=j4();return Fr(d,r,r[n0],f,s,o),Kl}function es(s,o,r,d,f){if(s=s1(s),Array.isArray(s))for(let h=0;h>20;if(C6(s)||!s.multi){const I1=new u5(j,f,Vc),B1=Gr(k,o,f?H:H+N1,i1);-1===B1?(O7(j7(M,z),h,k),Ur(h,s,o.length),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),r.push(I1),z.push(I1)):(r[B1]=I1,z[B1]=I1)}else{const I1=Gr(k,o,H+N1,i1),B1=Gr(k,o,H,H+N1),L2=B1>=0&&r[B1];if(f&&!L2||!f&&!(I1>=0&&r[I1])){O7(j7(M,z),h,k);const T2=function Hr(s,o,r,d,f){const h=new u5(s,r,Vc);return h.multi=[],h.index=o,h.componentProviders=0,Og(h,f,d&&!r),h}(f?tb:Bg,r.length,f,d,j);!f&&L2&&(r[B1].providerFactory=T2),Ur(h,s,o.length,0),o.push(k),M.directiveStart++,M.directiveEnd++,f&&(M.providerIndexes+=1048576),r.push(T2),z.push(T2)}else Ur(h,s,I1>-1?I1:B1,Og(r[f?B1:I1],j,!f&&d));!f&&d&&L2&&r[B1].componentProviders++}}}function Ur(s,o,r,d){const f=C6(o),h=function ze(s){return!!s.useClass}(o);if(f||h){const k=(h?s1(o.useClass):o).prototype.ngOnDestroy;if(k){const j=s.destroyHooks||(s.destroyHooks=[]);if(!f&&o.multi){const H=j.indexOf(r);-1===H?j.push(r,[d,k]):j[H+1].push(d,k)}else j.push(r,k)}}}function Og(s,o,r){return r&&s.componentProviders++,s.multi.push(o)-1}function Gr(s,o,r,d){for(let f=r;f{r.providersResolver=(d,f)=>function cb(s,o,r){const d=O0();if(d.firstCreatePass){const f=$2(s);es(r,d.data,d.blueprint,f,!0),es(o,d.data,d.blueprint,f,!1)}}(d,f?f(s):s,o)}}let Yr=(()=>{class s{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const d=M8(0,r.type),f=d.length>0?Ci([d],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=z0({token:s,providedIn:"environment",factory:()=>new s(k4(Y3))})}}return s})();function qr(s){H8("NgStandalone"),s.getStandaloneInjector=o=>o.get(Yr).getOrCreateStandaloneInjector(s)}function Xr(s,o,r){const d=s.\u0275cmp;d.directiveDefs=n8(o,!1),d.pipeDefs=n8(r,!0)}function Jr(s,o,r){const d=Y6()+s,f=Q1();return f[d]===W0?De(f,d,r?o.call(r):o()):function Zc(s,o){return s[o]}(f,d)}function Gg(s,o,r,d){return Kr(Q1(),Y6(),s,o,r,d)}function Hg(s,o,r,d,f){return ns(Q1(),Y6(),s,o,r,d,f)}function Qr(s,o,r,d,f,h){return function ed(s,o,r,d,f,h,z,M){const k=o+r;return $t(s,k,f,h,z)?De(s,k+3,M?d.call(M,f,h,z):d(f,h,z)):rn(s,k+3)}(Q1(),Y6(),s,o,r,d,f,h)}function Zr(s,o,r,d,f,h,z){return function Jg(s,o,r,d,f,h,z,M,k){const j=o+r;return Y8(s,j,f,h,z,M)?De(s,j+4,k?d.call(k,f,h,z,M):d(f,h,z,M)):rn(s,j+4)}(Q1(),Y6(),s,o,r,d,f,h,z)}function rn(s,o){const r=s[o];return r===W0?void 0:r}function Kr(s,o,r,d,f,h){const z=o+r;return S3(s,z,f)?De(s,z+1,h?d.call(h,f):d(f)):rn(s,z+1)}function ns(s,o,r,d,f,h,z){const M=o+r;return K5(s,M,f,h)?De(s,M+2,z?d.call(z,f,h):d(f,h)):rn(s,M+2)}function Qg(s,o){const r=O0();let d;const f=s+I0;r.firstCreatePass?(d=function Zg(s,o){if(o)for(let r=o.length-1;r>=0;r--){const d=o[r];if(s===d.name)return d}}(o,r.pipeRegistry),r.data[f]=d,d.onDestroy&&(r.destroyHooks??=[]).push(f,d.onDestroy)):d=r.data[f];const h=d.factory||(d.factory=H3(d.type)),M=g2(Vc);try{const k=P7(!1),j=h();return P7(k),function Xx(s,o,r,d){r>=s.data.length&&(s.data[r]=null,s.blueprint[r]=null),o[r]=d}(r,Q1(),f,j),j}finally{g2(M)}}function ss(s,o,r){const d=s+I0,f=Q1(),h=qe(f,d);return dn(f,d)?Kr(f,Y6(),o,h.transform,r,h):h.transform(r)}function e_(s,o,r,d){const f=s+I0,h=Q1(),z=qe(h,f);return dn(h,f)?ns(h,Y6(),o,z.transform,r,d,z):z.transform(r,d)}function dn(s,o){return s[k1].data[o].pure}function as(s,o){return Lt(s,o)}class dd{constructor(o){this.full=o;const r=o.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}let fd=(()=>{class s{log(r){console.log(r)}warn(r){console.warn(r)}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const F_=new q1(""),_d=new q1("");let gn,Rb=(()=>{class s{constructor(r,d,f){this._ngZone=r,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,gn||(function Ab(s){gn=s}(f),f.addToWindow(d)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{j3.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(r)||(clearTimeout(d.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,d,f){let h=-1;d&&d>0&&(h=setTimeout(()=>{this._callbacks=this._callbacks.filter(z=>z.timeoutId!==h),r()},d)),this._callbacks.push({doneCb:r,timeoutId:h,updateCb:f})}whenStable(r,d,f){if(f&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,d,f),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,d,f){return[]}static{this.\u0275fac=function(d){return new(d||s)(k4(j3),k4(v_),k4(_d))}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac})}}return s})(),v_=(()=>{class s{constructor(){this._applications=new Map}registerApplication(r,d){this._applications.set(r,d)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,d=!0){return gn?.findTestabilityInTree(this,r,d)??null}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();function Ld(s){return!!s&&"function"==typeof s.then}function k_(s){return!!s&&"function"==typeof s.subscribe}const w_=new q1("");let gs=(()=>{class s{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,d)=>{this.resolve=r,this.reject=d}),this.appInits=p0(w_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const h=f();if(Ld(h))r.push(h);else if(k_(h)){const z=new Promise((M,k)=>{h.subscribe({complete:M,error:k})});r.push(z)}}const d=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{d()}).catch(f=>{this.reject(f)}),0===r.length&&d(),this.initialized=!0}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const _s=new q1("");function E_(s,o){return Array.isArray(o)?o.reduce(E_,s):{...s,...o}}let v5=(()=>{class s{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p0(If),this.afterRenderEffectManager=p0(Wc),this.externalTestViews=new Set,this.beforeRender=new l0.B,this.afterTick=new l0.B,this.componentTypes=[],this.components=[],this.isStable=p0(Z5).hasPendingTasks.pipe((0,K2.T)(r=>!r)),this._injector=p0(Y3)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,d){const f=r instanceof Im;if(!this._injector.get(gs).done)throw!f&&p3(r),new m2(405,!1);let z;z=f?r:this._injector.get(Ft).resolveComponentFactory(r),this.componentTypes.push(z.componentType);const M=function N_(s){return s.isBoundToModule}(z)?void 0:this._injector.get(x5),j=z.create(q6.NULL,[],d||z.selector,M),H=j.location.nativeElement,i1=j.injector.get(F_,null);return i1?.registerApplication(H),j.onDestroy(()=>{this.detachView(j.hostView),Cs(this.components,j),i1?.unregisterApplication(H)}),this._loadComponent(j),j}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new m2(101,!1);const d=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(f){this.internalErrorHandler(f)}finally{this.afterTick.next(),this._runningTick=!1,A(d)}}detectChangesInAttachedViews(r){let d=0;const f=this.afterRenderEffectManager;for(;;){if(d===ko)throw new m2(103,!1);if(r){const h=0===d;this.beforeRender.next(h);for(let{_lView:z,notifyErrorHandler:M}of this._views)Ib(z,h,M)}if(d++,f.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>Ln(h))&&(f.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:h})=>Ln(h))))break}}attachView(r){const d=r;this._views.push(d),d.attachToAppRef(this)}detachView(r){const d=r;Cs(this._views,d),d.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const d=this._injector.get(_s,[]);[...this._bootstrapListeners,...d].forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Cs(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new m2(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Cs(s,o){const r=s.indexOf(o);r>-1&&s.splice(r,1)}function Ib(s,o,r){!o&&!Ln(s)||function T_(s,o,r){let d;r?(d=0,s[U1]|=1024):d=64&s[U1]?0:1,V9(s,o,d)}(s,r,o)}function Ln(s){return zc(s)}class Pb{constructor(o,r){this.ngModuleFactory=o,this.componentFactories=r}}let jb=(()=>{class s{compileModuleSync(r){return new _i(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const d=this.compileModuleSync(r),h=W6(K4(r).declarations).reduce((z,M)=>{const k=j0(M);return k&&z.push(new Jc(k)),z},[]);return new Pb(d,h)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),$b=(()=>{class s{constructor(){this.zone=p0(j3),this.applicationRef=p0(v5)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function Bb(){const s=p0(j3),o=p0(oe);return r=>s.runOutsideAngular(()=>o.handleError(r))}let I_=(()=>{class s{constructor(){this.subscription=new s0.yU,this.initialized=!1,this.zone=p0(j3),this.pendingTasks=p0(Z5)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{j3.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{j3.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(d){return new(d||s)}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const Cn=new q1("",{providedIn:"root",factory:()=>p0(Cn,b0.Optional|b0.SkipSelf)||function zs(){return typeof $localize<"u"&&$localize.locale||fc}()}),Vb=new q1("",{providedIn:"root",factory:()=>"USD"}),bd=new q1("");let yd=(()=>{class s{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,d){const f=function Um(s="zone.js",o){return"noop"===s?new Yo:"zone.js"===s?new j3(o):s}(d?.ngZone,function A_(s){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:s?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:s?.runCoalescing??!1}}({eventCoalescing:d?.ngZoneEventCoalescing,runCoalescing:d?.ngZoneRunCoalescing}));return f.run(()=>{const h=function RM(s,o,r){return new al(s,o,r)}(r.moduleType,this.injector,function Md(s){return[{provide:j3,useFactory:s},{provide:m3,multi:!0,useFactory:()=>{const o=p0($b,{optional:!0});return()=>o.initialize()}},{provide:m3,multi:!0,useFactory:()=>{const o=p0(I_);return()=>{o.initialize()}}},{provide:If,useFactory:Bb}]}(()=>f)),z=h.injector.get(oe,null);return f.runOutsideAngular(()=>{const M=f.onError.subscribe({next:k=>{z.handleError(k)}});h.onDestroy(()=>{Cs(this._modules,h),M.unsubscribe()})}),function Ls(s,o,r){try{const d=r();return Ld(d)?d.catch(f=>{throw o.runOutsideAngular(()=>s.handleError(f)),f}):d}catch(d){throw o.runOutsideAngular(()=>s.handleError(d)),d}}(z,f,()=>{const M=h.injector.get(gs);return M.runInitializers(),M.donePromise.then(()=>(function ar(s){"string"==typeof s&&(sr=s.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Cn,fc)||fc),this._moduleDoBootstrap(h),h))})})}bootstrapModule(r,d=[]){const f=E_({},d);return function R_(s,o,r){const d=new _i(r);return Promise.resolve(d)}(0,0,r).then(h=>this.bootstrapModuleFactory(h,f))}_moduleDoBootstrap(r){const d=r.injector.get(v5);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(f=>d.bootstrap(f));else{if(!r.instance.ngDoBootstrap)throw new m2(-403,!1);r.instance.ngDoBootstrap(d)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new m2(404,!1);this._modules.slice().forEach(d=>d.destroy()),this._destroyListeners.forEach(d=>d());const r=this._injector.get(bd,null);r&&(r.forEach(d=>d()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(d){return new(d||s)(k4(q6))}}static{this.\u0275prov=z0({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),k5=null;const Fd=new q1("");function j_(s,o,r=[]){const d=`Platform: ${o}`,f=new q1(d);return(h=[])=>{let z=vd();if(!z||z.injector.get(Fd,!1)){const M=[...r,...h,{provide:f,useValue:!0}];s?s(M):function Hb(s){if(k5&&!k5.get(Fd,!1))throw new m2(400,!1);(function S_(){!function v1(s){x2=s}(()=>{throw new m2(600,!1)})})(),k5=s;const o=s.get(yd);(function $_(s){s.get(au,null)?.forEach(r=>r())})(s)}(function Ms(s=[],o){return q6.create({name:o,providers:[{provide:Q8,useValue:"platform"},{provide:bd,useValue:new Set([()=>k5=null])},...s]})}(M,d))}return function Yb(s){const o=vd();if(!o)throw new m2(401,!1);return o}()}}function vd(){return k5?.get(yd)??null}let V_=(()=>{class s{static{this.__NG_ELEMENT_ID__=wd}}return s})();function wd(s){return function Wb(s,o,r){if(O8(s)&&!r){const d=H6(s.index,o);return new Yc(d,d)}return 47&s.type?new Yc(o[x0],o):null}(j4(),Q1(),!(16&~s))}class Y_{constructor(){}supports(o){return jt(o)}create(o){return new ty(o)}}const q_=(s,o)=>o;class ty{constructor(o){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=o||q_}forEachItem(o){let r;for(r=this._itHead;null!==r;r=r._next)o(r)}forEachOperation(o){let r=this._itHead,d=this._removalsHead,f=0,h=null;for(;r||d;){const z=!d||r&&r.currentIndex{z=this._trackByFn(f,M),null!==r&&Object.is(r.trackById,z)?(d&&(r=this._verifyReinsertion(r,M,z,f)),Object.is(r.item,M)||this._addIdentityChange(r,M)):(r=this._mismatch(r,M,z,f),d=!0),r=r._next,f++}),this.length=f;return this._truncate(r),this.collection=o,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let o;for(o=this._previousItHead=this._itHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._additionsHead;null!==o;o=o._nextAdded)o.previousIndex=o.currentIndex;for(this._additionsHead=this._additionsTail=null,o=this._movesHead;null!==o;o=o._nextMoved)o.previousIndex=o.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(o,r,d,f){let h;return null===o?h=this._itTail:(h=o._prev,this._remove(o)),null!==(o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._reinsertAfter(o,h,f)):null!==(o=null===this._linkedRecords?null:this._linkedRecords.get(d,f))?(Object.is(o.item,r)||this._addIdentityChange(o,r),this._moveAfter(o,h,f)):o=this._addAfter(new X_(r,d),h,f),o}_verifyReinsertion(o,r,d,f){let h=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null);return null!==h?o=this._reinsertAfter(h,o._prev,f):o.currentIndex!=f&&(o.currentIndex=f,this._addToMoves(o,f)),o}_truncate(o){for(;null!==o;){const r=o._next;this._addToRemovals(this._unlink(o)),o=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(o,r,d){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(o);const f=o._prevRemoved,h=o._nextRemoved;return null===f?this._removalsHead=h:f._nextRemoved=h,null===h?this._removalsTail=f:h._prevRemoved=f,this._insertAfter(o,r,d),this._addToMoves(o,d),o}_moveAfter(o,r,d){return this._unlink(o),this._insertAfter(o,r,d),this._addToMoves(o,d),o}_addAfter(o,r,d){return this._insertAfter(o,r,d),this._additionsTail=null===this._additionsTail?this._additionsHead=o:this._additionsTail._nextAdded=o,o}_insertAfter(o,r,d){const f=null===r?this._itHead:r._next;return o._next=f,o._prev=r,null===f?this._itTail=o:f._prev=o,null===r?this._itHead=o:r._next=o,null===this._linkedRecords&&(this._linkedRecords=new W_),this._linkedRecords.put(o),o.currentIndex=d,o}_remove(o){return this._addToRemovals(this._unlink(o))}_unlink(o){null!==this._linkedRecords&&this._linkedRecords.remove(o);const r=o._prev,d=o._next;return null===r?this._itHead=d:r._next=d,null===d?this._itTail=r:d._prev=r,o}_addToMoves(o,r){return o.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=o:this._movesTail._nextMoved=o),o}_addToRemovals(o){return null===this._unlinkedRecords&&(this._unlinkedRecords=new W_),this._unlinkedRecords.put(o),o.currentIndex=null,o._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=o,o._prevRemoved=null):(o._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=o),o}_addIdentityChange(o,r){return o.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=o:this._identityChangesTail._nextIdentityChange=o,o}}class X_{constructor(o,r){this.item=o,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Td{constructor(){this._head=null,this._tail=null}add(o){null===this._head?(this._head=this._tail=o,o._nextDup=null,o._prevDup=null):(this._tail._nextDup=o,o._prevDup=this._tail,o._nextDup=null,this._tail=o)}get(o,r){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===r||r<=d.currentIndex)&&Object.is(d.trackById,o))return d;return null}remove(o){const r=o._prevDup,d=o._nextDup;return null===r?this._head=d:r._nextDup=d,null===d?this._tail=r:d._prevDup=r,null===this._head}}class W_{constructor(){this.map=new Map}put(o){const r=o.trackById;let d=this.map.get(r);d||(d=new Td,this.map.set(r,d)),d.add(o)}get(o,r){const f=this.map.get(o);return f?f.get(o,r):null}remove(o){const r=o.trackById;return this.map.get(r).remove(o)&&this.map.delete(r),o}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function J_(s,o,r){const d=s.previousIndex;if(null===d)return d;let f=0;return r&&d{if(r&&r.key===f)this._maybeAddToChanges(r,d),this._appendAfter=r,r=r._next;else{const h=this._getOrCreateRecordForKey(f,d);r=this._insertBeforeOrAppend(r,h)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let d=r;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(o,r){if(o){const d=o._prev;return r._next=o,r._prev=d,o._prev=r,d&&(d._next=r),o===this._mapHead&&(this._mapHead=r),this._appendAfter=o,o}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(o,r){if(this._records.has(o)){const f=this._records.get(o);this._maybeAddToChanges(f,r);const h=f._prev,z=f._next;return h&&(h._next=z),z&&(z._prev=h),f._next=null,f._prev=null,f}const d=new K_(o);return this._records.set(o,d),d.currentValue=r,this._addToAdditions(d),d}_reset(){if(this.isDirty){let o;for(this._previousMapHead=this._mapHead,o=this._previousMapHead;null!==o;o=o._next)o._nextPrevious=o._next;for(o=this._changesHead;null!==o;o=o._nextChanged)o.previousValue=o.currentValue;for(o=this._additionsHead;null!=o;o=o._nextAdded)o.previousValue=o.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(o,r){Object.is(r,o.currentValue)||(o.previousValue=o.currentValue,o.currentValue=r,this._addToChanges(o))}_addToAdditions(o){null===this._additionsHead?this._additionsHead=this._additionsTail=o:(this._additionsTail._nextAdded=o,this._additionsTail=o)}_addToChanges(o){null===this._changesHead?this._changesHead=this._changesTail=o:(this._changesTail._nextChanged=o,this._changesTail=o)}_forEach(o,r){o instanceof Map?o.forEach(r):Object.keys(o).forEach(d=>r(o[d],d))}}class K_{constructor(o){this.key=o,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Rd(){return new Ad([new Y_])}let Ad=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:Rd})}constructor(r){this.factories=r}static create(r,d){if(null!=d){const f=d.factories.slice();r=r.concat(f)}return new s(r)}static extend(r){return{provide:s,useFactory:d=>s.create(r,d||Rd()),deps:[[s,new G3,new G0]]}}find(r){const d=this.factories.find(f=>f.supports(r));if(null!=d)return d;throw new m2(901,!1)}}return s})();function Id(){return new Pd([new Q_])}let Pd=(()=>{class s{static{this.\u0275prov=z0({token:s,providedIn:"root",factory:Id})}constructor(r){this.factories=r}static create(r,d){if(d){const f=d.factories.slice();r=r.concat(f)}return new s(r)}static extend(r){return{provide:s,useFactory:d=>s.create(r,d||Id()),deps:[[s,new G3,new G0]]}}find(r){const d=this.factories.find(f=>f.supports(r));if(d)return d;throw new m2(901,!1)}}return s})();const ys=j_(null,"core",[]);let ay=(()=>{class s{constructor(r){}static{this.\u0275fac=function(d){return new(d||s)(k4(v5))}}static{this.\u0275mod=B6({type:s})}static{this.\u0275inj=Y4({})}}return s})();function Es(s){return"boolean"==typeof s?s:null!=s&&"false"!==s}function Sy(s){const o=A(null);try{return s()}finally{A(o)}}function Kd(s){const o=j0(s);if(!o)return null;const r=new Jc(o);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return o.standalone},get isSignal(){return o.signals}}}},9417:(y1,d1,y)=>{"use strict";y.d(d1,{$R:()=>D3,BC:()=>C4,Fm:()=>b0,JD:()=>M3,MJ:()=>P0,MR:()=>Q2,Q0:()=>h6,R_:()=>s6,VZ:()=>H3,X1:()=>o6,YN:()=>O6,YS:()=>Q4,Yp:()=>H0,Zm:()=>K,cV:()=>P2,cb:()=>m2,gE:()=>F2,j4:()=>n4,k0:()=>S2,kq:()=>$,l_:()=>J4,me:()=>e1,ok:()=>j6,qT:()=>p8,v8:()=>V0,vS:()=>H2,wz:()=>k4,xH:()=>V3,y7:()=>Q6});var m=y(4438),g=y(177),e=y(6648),p=y(7468),_=y(6354);let S=(()=>{class B{constructor(D,t1){this._renderer=D,this._elementRef=t1,this.onChange=w1=>{},this.onTouched=()=>{}}setProperty(D,t1){this._renderer.setProperty(this._elementRef.nativeElement,D,t1)}registerOnTouched(D){this.onTouched=D}registerOnChange(D){this.onChange=D}setDisabledState(D){this.setProperty("disabled",D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT))}}static{this.\u0275dir=m.FsC({type:B})}}return B})(),A=(()=>{class B extends S{static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,features:[m.Vt3]})}}return B})();const $=new m.nKC(""),Z={provide:$,useExisting:(0,m.Rfq)(()=>K),multi:!0};let K=(()=>{class B extends A{writeValue(D){this.setProperty("checked",D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.checked)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([Z]),m.Vt3]})}}return B})();const p1={provide:$,useExisting:(0,m.Rfq)(()=>e1),multi:!0},h1=new m.nKC("");let e1=(()=>{class B extends S{constructor(D,t1,w1){super(D,t1),this._compositionMode=w1,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Y(){const B=(0,g.QT)()?(0,g.QT)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(D){this.setProperty("value",D??"")}_handleInput(D){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(D)}_compositionStart(){this._composing=!0}_compositionEnd(D){this._composing=!1,this._compositionMode&&this.onChange(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(h1,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("input",function(v0){return w1._handleInput(v0.target.value)})("blur",function(){return w1.onTouched()})("compositionstart",function(){return w1._compositionStart()})("compositionend",function(v0){return w1._compositionEnd(v0.target.value)})},features:[m.Jv_([p1]),m.Vt3]})}}return B})();function r1(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}function M1(B){return null!=B&&"number"==typeof B.length}const f1=new m.nKC(""),$1=new m.nKC(""),o2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class S2{static min(G){return c2(G)}static max(G){return function G1(B){return G=>{if(r1(G.value)||r1(B))return null;const D=parseFloat(G.value);return!isNaN(D)&&D>B?{max:{max:B,actual:G.value}}:null}}(G)}static required(G){return O1(G)}static requiredTrue(G){return function d0(B){return!0===B.value?null:{required:!0}}(G)}static email(G){return function d2(B){return r1(B.value)||o2.test(B.value)?null:{email:!0}}(G)}static minLength(G){return function _2(B){return G=>r1(G.value)||!M1(G.value)?null:G.value.lengthM1(G.value)&&G.value.length>B?{maxlength:{requiredLength:B,actualLength:G.value.length}}:null}(G)}static pattern(G){return v2(G)}static nullValidator(G){return null}static compose(G){return e2(G)}static composeAsync(G){return E1(G)}}function c2(B){return G=>{if(r1(G.value)||r1(B))return null;const D=parseFloat(G.value);return!isNaN(D)&&D{if(r1(t1.value))return null;const w1=t1.value;return G.test(w1)?null:{pattern:{requiredPattern:D,actualValue:w1}}}}function t0(B){return null}function X0(B){return null!=B}function Z0(B){return(0,m.jNT)(B)?(0,e.H)(B):B}function B4(B){let G={};return B.forEach(D=>{G=null!=D?{...G,...D}:G}),0===Object.keys(G).length?null:G}function x2(B,G){return G.map(D=>D(B))}function v1(B){return B.map(G=>function w0(B){return!B.validate}(G)?G:D=>G.validate(D))}function e2(B){if(!B)return null;const G=B.filter(X0);return 0==G.length?null:function(D){return B4(x2(D,G))}}function C2(B){return null!=B?e2(v1(B)):null}function E1(B){if(!B)return null;const G=B.filter(X0);return 0==G.length?null:function(D){const t1=x2(D,G).map(Z0);return(0,p.p)(t1).pipe((0,_.T)(B4))}}function j1(B){return null!=B?E1(v1(B)):null}function A1(B,G){return null===B?[G]:Array.isArray(B)?[...B,G]:[B,G]}function H1(B){return B._rawValidators}function P1(B){return B._rawAsyncValidators}function K1(B){return B?Array.isArray(B)?B:[B]:[]}function Q(B,G){return Array.isArray(B)?B.includes(G):B===G}function t2(B,G){const D=K1(G);return K1(B).forEach(w1=>{Q(D,w1)||D.push(w1)}),D}function s2(B,G){return K1(G).filter(D=>!Q(B,D))}class p2{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(G){this._rawValidators=G||[],this._composedValidatorFn=C2(this._rawValidators)}_setAsyncValidators(G){this._rawAsyncValidators=G||[],this._composedAsyncValidatorFn=j1(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(G){this._onDestroyCallbacks.push(G)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(G=>G()),this._onDestroyCallbacks=[]}reset(G=void 0){this.control&&this.control.reset(G)}hasError(G,D){return!!this.control&&this.control.hasError(G,D)}getError(G,D){return this.control?this.control.getError(G,D):null}}class l0 extends p2{get formDirective(){return null}get path(){return null}}class s0 extends p2{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D0{constructor(G){this._cd=G}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let C4=(()=>{class B extends D0{constructor(D){super(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(s0,2))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t1,w1){2&t1&&m.AVh("ng-untouched",w1.isUntouched)("ng-touched",w1.isTouched)("ng-pristine",w1.isPristine)("ng-dirty",w1.isDirty)("ng-valid",w1.isValid)("ng-invalid",w1.isInvalid)("ng-pending",w1.isPending)},features:[m.Vt3]})}}return B})(),m2=(()=>{class B extends D0{constructor(D){super(D)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t1,w1){2&t1&&m.AVh("ng-untouched",w1.isUntouched)("ng-touched",w1.isTouched)("ng-pristine",w1.isPristine)("ng-dirty",w1.isDirty)("ng-valid",w1.isValid)("ng-invalid",w1.isInvalid)("ng-pending",w1.isPending)("ng-submitted",w1.isSubmitted)},features:[m.Vt3]})}}return B})();const S0="VALID",l3="INVALID",T0="PENDING",V4="DISABLED";function s3(B){return(x1(B)?B.validators:B)||null}function J2(B,G){return(x1(G)?G.asyncValidators:B)||null}function x1(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}function m1(B,G,D){const t1=B.controls;if(!(G?Object.keys(t1):t1).length)throw new m.wOt(1e3,"");if(!t1[D])throw new m.wOt(1001,"")}function D1(B,G,D){B._forEachChild((t1,w1)=>{if(void 0===D[w1])throw new m.wOt(1002,"")})}class Z1{constructor(G,D){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(G),this._assignAsyncValidators(D)}get validator(){return this._composedValidatorFn}set validator(G){this._rawValidators=this._composedValidatorFn=G}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(G){this._rawAsyncValidators=this._composedAsyncValidatorFn=G}get parent(){return this._parent}get valid(){return this.status===S0}get invalid(){return this.status===l3}get pending(){return this.status==T0}get disabled(){return this.status===V4}get enabled(){return this.status!==V4}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(G){this._assignValidators(G)}setAsyncValidators(G){this._assignAsyncValidators(G)}addValidators(G){this.setValidators(t2(G,this._rawValidators))}addAsyncValidators(G){this.setAsyncValidators(t2(G,this._rawAsyncValidators))}removeValidators(G){this.setValidators(s2(G,this._rawValidators))}removeAsyncValidators(G){this.setAsyncValidators(s2(G,this._rawAsyncValidators))}hasValidator(G){return Q(this._rawValidators,G)}hasAsyncValidator(G){return Q(this._rawAsyncValidators,G)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(G={}){this.touched=!0,this._parent&&!G.onlySelf&&this._parent.markAsTouched(G)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(G=>G.markAllAsTouched())}markAsUntouched(G={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(D=>{D.markAsUntouched({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}markAsDirty(G={}){this.pristine=!1,this._parent&&!G.onlySelf&&this._parent.markAsDirty(G)}markAsPristine(G={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(D=>{D.markAsPristine({onlySelf:!0})}),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}markAsPending(G={}){this.status=T0,!1!==G.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!G.onlySelf&&this._parent.markAsPending(G)}disable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=V4,this.errors=null,this._forEachChild(t1=>{t1.disable({...G,onlySelf:!0})}),this._updateValue(),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(t1=>t1(!0))}enable(G={}){const D=this._parentMarkedDirty(G.onlySelf);this.status=S0,this._forEachChild(t1=>{t1.enable({...G,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent}),this._updateAncestors({...G,skipPristineCheck:D}),this._onDisabledChange.forEach(t1=>t1(!1))}_updateAncestors(G){this._parent&&!G.onlySelf&&(this._parent.updateValueAndValidity(G),G.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(G){this._parent=G}getRawValue(){return this.value}updateValueAndValidity(G={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===S0||this.status===T0)&&this._runAsyncValidator(G.emitEvent)),!1!==G.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!G.onlySelf&&this._parent.updateValueAndValidity(G)}_updateTreeValidity(G={emitEvent:!0}){this._forEachChild(D=>D._updateTreeValidity(G)),this.updateValueAndValidity({onlySelf:!0,emitEvent:G.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?V4:S0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(G){if(this.asyncValidator){this.status=T0,this._hasOwnPendingAsyncValidator=!0;const D=Z0(this.asyncValidator(this));this._asyncValidationSubscription=D.subscribe(t1=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t1,{emitEvent:G})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(G,D={}){this.errors=G,this._updateControlsErrors(!1!==D.emitEvent)}get(G){let D=G;return null==D||(Array.isArray(D)||(D=D.split(".")),0===D.length)?null:D.reduce((t1,w1)=>t1&&t1._find(w1),this)}getError(G,D){const t1=D?this.get(D):this;return t1&&t1.errors?t1.errors[G]:null}hasError(G,D){return!!this.getError(G,D)}get root(){let G=this;for(;G._parent;)G=G._parent;return G}_updateControlsErrors(G){this.status=this._calculateStatus(),G&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(G)}_initObservables(){this.valueChanges=new m.bkB,this.statusChanges=new m.bkB}_calculateStatus(){return this._allControlsDisabled()?V4:this.errors?l3:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(T0)?T0:this._anyControlsHaveStatus(l3)?l3:S0}_anyControlsHaveStatus(G){return this._anyControls(D=>D.status===G)}_anyControlsDirty(){return this._anyControls(G=>G.dirty)}_anyControlsTouched(){return this._anyControls(G=>G.touched)}_updatePristine(G={}){this.pristine=!this._anyControlsDirty(),this._parent&&!G.onlySelf&&this._parent._updatePristine(G)}_updateTouched(G={}){this.touched=this._anyControlsTouched(),this._parent&&!G.onlySelf&&this._parent._updateTouched(G)}_registerOnCollectionChange(G){this._onCollectionChange=G}_setUpdateStrategy(G){x1(G)&&null!=G.updateOn&&(this._updateOn=G.updateOn)}_parentMarkedDirty(G){return!G&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(G){return null}_assignValidators(G){this._rawValidators=Array.isArray(G)?G.slice():G,this._composedValidatorFn=function F3(B){return Array.isArray(B)?C2(B):B||null}(this._rawValidators)}_assignAsyncValidators(G){this._rawAsyncValidators=Array.isArray(G)?G.slice():G,this._composedAsyncValidatorFn=function s1(B){return Array.isArray(B)?j1(B):B||null}(this._rawAsyncValidators)}}class F2 extends Z1{constructor(G,D,t1){super(s3(D),J2(t1,D)),this.controls=G,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(G,D){return this.controls[G]?this.controls[G]:(this.controls[G]=D,D.setParent(this),D._registerOnCollectionChange(this._onCollectionChange),D)}addControl(G,D,t1={}){this.registerControl(G,D),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}removeControl(G,D={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}setControl(G,D,t1={}){this.controls[G]&&this.controls[G]._registerOnCollectionChange(()=>{}),delete this.controls[G],D&&this.registerControl(G,D),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}contains(G){return this.controls.hasOwnProperty(G)&&this.controls[G].enabled}setValue(G,D={}){D1(this,0,G),Object.keys(G).forEach(t1=>{m1(this,!0,t1),this.controls[t1].setValue(G[t1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(Object.keys(G).forEach(t1=>{const w1=this.controls[t1];w1&&w1.patchValue(G[t1],{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G={},D={}){this._forEachChild((t1,w1)=>{t1.reset(G?G[w1]:null,{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this._reduceChildren({},(G,D,t1)=>(G[t1]=D.getRawValue(),G))}_syncPendingControls(){let G=this._reduceChildren(!1,(D,t1)=>!!t1._syncPendingControls()||D);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){Object.keys(this.controls).forEach(D=>{const t1=this.controls[D];t1&&G(t1,D)})}_setUpControls(){this._forEachChild(G=>{G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(G){for(const[D,t1]of Object.entries(this.controls))if(this.contains(D)&&G(t1))return!0;return!1}_reduceValue(){return this._reduceChildren({},(D,t1,w1)=>((t1.enabled||this.disabled)&&(D[w1]=t1.value),D))}_reduceChildren(G,D){let t1=G;return this._forEachChild((w1,V2)=>{t1=D(t1,w1,V2)}),t1}_allControlsDisabled(){for(const G of Object.keys(this.controls))if(this.controls[G].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(G){return this.controls.hasOwnProperty(G)?this.controls[G]:null}}class t4 extends F2{}const z4=new m.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>r4}),r4="always";function F4(B,G){return[...G.path,B]}function I2(B,G,D=r4){M4(B,G),G.valueAccessor.writeValue(B.value),(B.disabled||"always"===D)&&G.valueAccessor.setDisabledState?.(B.disabled),function c6(B,G){G.valueAccessor.registerOnChange(D=>{B._pendingValue=D,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&z0(B,G)})}(B,G),function m6(B,G){const D=(t1,w1)=>{G.valueAccessor.writeValue(t1),w1&&G.viewToModelUpdate(t1)};B.registerOnChange(D),G._registerOnDestroy(()=>{B._unregisterOnChange(D)})}(B,G),function R4(B,G){G.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&z0(B,G),"submit"!==B.updateOn&&B.markAsTouched()})}(B,G),function p4(B,G){if(G.valueAccessor.setDisabledState){const D=t1=>{G.valueAccessor.setDisabledState(t1)};B.registerOnDisabledChange(D),G._registerOnDestroy(()=>{B._unregisterOnDisabledChange(D)})}}(B,G)}function C0(B,G,D=!0){const t1=()=>{};G.valueAccessor&&(G.valueAccessor.registerOnChange(t1),G.valueAccessor.registerOnTouched(t1)),u6(B,G),B&&(G._invokeOnDestroyCallbacks(),B._registerOnCollectionChange(()=>{}))}function B2(B,G){B.forEach(D=>{D.registerOnValidatorChange&&D.registerOnValidatorChange(G)})}function M4(B,G){const D=H1(B);null!==G.validator?B.setValidators(A1(D,G.validator)):"function"==typeof D&&B.setValidators([D]);const t1=P1(B);null!==G.asyncValidator?B.setAsyncValidators(A1(t1,G.asyncValidator)):"function"==typeof t1&&B.setAsyncValidators([t1]);const w1=()=>B.updateValueAndValidity();B2(G._rawValidators,w1),B2(G._rawAsyncValidators,w1)}function u6(B,G){let D=!1;if(null!==B){if(null!==G.validator){const w1=H1(B);if(Array.isArray(w1)&&w1.length>0){const V2=w1.filter(v0=>v0!==G.validator);V2.length!==w1.length&&(D=!0,B.setValidators(V2))}}if(null!==G.asyncValidator){const w1=P1(B);if(Array.isArray(w1)&&w1.length>0){const V2=w1.filter(v0=>v0!==G.asyncValidator);V2.length!==w1.length&&(D=!0,B.setAsyncValidators(V2))}}}const t1=()=>{};return B2(G._rawValidators,t1),B2(G._rawAsyncValidators,t1),D}function z0(B,G){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),G.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Y4(B,G){M4(B,G)}function b1(B,G){if(!B.hasOwnProperty("model"))return!1;const D=B.model;return!!D.isFirstChange()||!Object.is(G,D.currentValue)}function J1(B,G){B._syncPendingControls(),G.forEach(D=>{const t1=D.control;"submit"===t1.updateOn&&t1._pendingChange&&(D.viewToModelUpdate(t1._pendingValue),t1._pendingChange=!1)})}function q1(B,G){if(!G)return null;let D,t1,w1;return Array.isArray(G),G.forEach(V2=>{V2.constructor===e1?D=V2:function F1(B){return Object.getPrototypeOf(B.constructor)===A}(V2)?t1=V2:w1=V2}),w1||t1||D||null}const M0={provide:l0,useExisting:(0,m.Rfq)(()=>P2)},X2=Promise.resolve();let P2=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._directives=new Set,this.ngSubmit=new m.bkB,this.form=new F2({},C2(D),j1(t1))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(D){X2.then(()=>{const t1=this._findContainer(D.path);D.control=t1.registerControl(D.name,D.control),I2(D.control,D,this.callSetDisabledState),D.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(D)})}getControl(D){return this.form.get(D.path)}removeControl(D){X2.then(()=>{const t1=this._findContainer(D.path);t1&&t1.removeControl(D.name),this._directives.delete(D)})}addFormGroup(D){X2.then(()=>{const t1=this._findContainer(D.path),w1=new F2({});Y4(w1,D),t1.registerControl(D.name,w1),w1.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(D){X2.then(()=>{const t1=this._findContainer(D.path);t1&&t1.removeControl(D.name)})}getFormGroup(D){return this.form.get(D.path)}updateModel(D,t1){X2.then(()=>{this.form.get(D.path).setValue(t1)})}setValue(D){this.control.setValue(D)}onSubmit(D){return this.submitted=!0,J1(this.form,this._directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(D){return D.pop(),D.length?this.form.get(D):this.form}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("submit",function(v0){return w1.onSubmit(v0)})("reset",function(){return w1.onReset()})},inputs:{options:[m.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m.Jv_([M0]),m.Vt3]})}}return B})();function e4(B,G){const D=B.indexOf(G);D>-1&&B.splice(D,1)}function F0(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}const P0=class extends Z1{constructor(G=null,D,t1){super(s3(D),J2(t1,D)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(G),this._setUpdateStrategy(D),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),x1(D)&&(D.nonNullable||D.initialValueIsDefault)&&(this.defaultValue=F0(G)?G.value:G)}setValue(G,D={}){this.value=this._pendingValue=G,this._onChange.length&&!1!==D.emitModelToViewChange&&this._onChange.forEach(t1=>t1(this.value,!1!==D.emitViewToModelChange)),this.updateValueAndValidity(D)}patchValue(G,D={}){this.setValue(G,D)}reset(G=this.defaultValue,D={}){this._applyFormState(G),this.markAsPristine(D),this.markAsUntouched(D),this.setValue(this.value,D),this._pendingChange=!1}_updateValue(){}_anyControls(G){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(G){this._onChange.push(G)}_unregisterOnChange(G){e4(this._onChange,G)}registerOnDisabledChange(G){this._onDisabledChange.push(G)}_unregisterOnDisabledChange(G){e4(this._onDisabledChange,G)}_forEachChild(G){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(G){F0(G)?(this.value=this._pendingValue=G.value,G.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=G}};let R0=(()=>{class B extends l0{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,features:[m.Vt3]})}}return B})();const U4={provide:s0,useExisting:(0,m.Rfq)(()=>H2)},a0=Promise.resolve();let H2=(()=>{class B extends s0{constructor(D,t1,w1,V2,v0,b3){super(),this._changeDetectorRef=v0,this.callSetDisabledState=b3,this.control=new P0,this._registered=!1,this.name="",this.update=new m.bkB,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1),this.valueAccessor=q1(0,V2)}ngOnChanges(D){if(this._checkForErrors(),!this._registered||"name"in D){if(this._registered&&(this._checkName(),this.formDirective)){const t1=D.name.previousValue;this.formDirective.removeControl({name:t1,path:this._getPath(t1)})}this._setUpControl()}"isDisabled"in D&&this._updateDisabled(D),b1(D,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){I2(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(D){a0.then(()=>{this.control.setValue(D,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(D){const t1=D.isDisabled.currentValue,w1=0!==t1&&(0,m.L39)(t1);a0.then(()=>{w1&&!this.control.disabled?this.control.disable():!w1&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(D){return this._parent?F4(D,this._parent):[D]}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,9),m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(m.gRc,8),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"],options:[m.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m.Jv_([U4]),m.Vt3,m.OA$]})}}return B})(),p8=(()=>{class B{static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275dir=m.FsC({type:B,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return B})();const a3={provide:$,useExisting:(0,m.Rfq)(()=>h6),multi:!0};let h6=(()=>{class B extends A{writeValue(D){this.setProperty("value",D??"")}registerOnChange(D){this.onChange=t1=>{D(""==t1?null:parseFloat(t1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("input",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([a3]),m.Vt3]})}}return B})();const T6={provide:$,useExisting:(0,m.Rfq)(()=>b0),multi:!0};let t6=(()=>{class B{constructor(){this._accessors=[]}add(D,t1){this._accessors.push([D,t1])}remove(D){for(let t1=this._accessors.length-1;t1>=0;--t1)if(this._accessors[t1][1]===D)return void this._accessors.splice(t1,1)}select(D){this._accessors.forEach(t1=>{this._isSameGroup(t1,D)&&t1[1]!==D&&t1[1].fireUncheck(D.value)})}_isSameGroup(D,t1){return!!D[0].control&&D[0]._parent===t1._control._parent&&D[1].name===t1.name}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275prov=m.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})(),b0=(()=>{class B extends A{constructor(D,t1,w1,V2){super(D,t1),this._registry=w1,this._injector=V2,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,m.WQX)(z4,{optional:!0})??r4}ngOnInit(){this._control=this._injector.get(s0),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(D){this._state=D===this.value,this.setProperty("checked",this._state)}registerOnChange(D){this._fn=D,this.onChange=()=>{D(this.value),this._registry.select(this)}}setDisabledState(D){(this.setDisabledStateFired||D||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",D),this.setDisabledStateFired=!0}fireUncheck(D){this.writeValue(D)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(t6),m.rXU(m.zZn))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(){return w1.onChange()})("blur",function(){return w1.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[m.Jv_([T6]),m.Vt3]})}}return B})();const y6={provide:$,useExisting:(0,m.Rfq)(()=>Q2),multi:!0};let Q2=(()=>{class B extends A{writeValue(D){this.setProperty("value",parseFloat(D))}registerOnChange(D){this.onChange=t1=>{D(""==t1?null:parseFloat(t1))}}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.value)})("input",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},features:[m.Jv_([y6]),m.Vt3]})}}return B})();const g2=new m.nKC(""),h3={provide:s0,useExisting:(0,m.Rfq)(()=>J4)};let J4=(()=>{class B extends s0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,t1,w1,V2,v0){super(),this._ngModelWarningConfig=V2,this.callSetDisabledState=v0,this.update=new m.bkB,this._ngModelWarningSent=!1,this._setValidators(D),this._setAsyncValidators(t1),this.valueAccessor=q1(0,w1)}ngOnChanges(D){if(this._isControlChanged(D)){const t1=D.form.previousValue;t1&&C0(t1,this,!1),I2(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}b1(D,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&C0(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}_isControlChanged(D){return D.hasOwnProperty("form")}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(g2,8),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControl",""]],inputs:{form:[m.Mj6.None,"formControl","form"],isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[m.Jv_([h3]),m.Vt3,m.OA$]})}}return B})();const R6={provide:l0,useExisting:(0,m.Rfq)(()=>n4)};let n4=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.callSetDisabledState=w1,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new m.bkB,this._setValidators(D),this._setAsyncValidators(t1)}ngOnChanges(D){this._checkFormPresent(),D.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(u6(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(D){const t1=this.form.get(D.path);return I2(t1,D,this.callSetDisabledState),t1.updateValueAndValidity({emitEvent:!1}),this.directives.push(D),t1}getControl(D){return this.form.get(D.path)}removeControl(D){C0(D.control||null,D,!1),function u2(B,G){const D=B.indexOf(G);D>-1&&B.splice(D,1)}(this.directives,D)}addFormGroup(D){this._setUpFormContainer(D)}removeFormGroup(D){this._cleanUpFormContainer(D)}getFormGroup(D){return this.form.get(D.path)}addFormArray(D){this._setUpFormContainer(D)}removeFormArray(D){this._cleanUpFormContainer(D)}getFormArray(D){return this.form.get(D.path)}updateModel(D,t1){this.form.get(D.path).setValue(t1)}onSubmit(D){return this.submitted=!0,J1(this.form,this.directives),this.ngSubmit.emit(D),"dialog"===D?.target?.method}onReset(){this.resetForm()}resetForm(D=void 0){this.form.reset(D),this.submitted=!1}_updateDomValue(){this.directives.forEach(D=>{const t1=D.control,w1=this.form.get(D.path);t1!==w1&&(C0(t1||null,D),(B=>B instanceof P0)(w1)&&(I2(w1,D,this.callSetDisabledState),D.control=w1))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(D){const t1=this.form.get(D.path);Y4(t1,D),t1.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(D){if(this.form){const t1=this.form.get(D.path);t1&&function C1(B,G){return u6(B,G)}(t1,D)&&t1.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){M4(this.form,this),this._oldForm&&u6(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(f1,10),m.rXU($1,10),m.rXU(z4,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroup",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("submit",function(v0){return w1.onSubmit(v0)})("reset",function(){return w1.onReset()})},inputs:{form:[m.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[m.Jv_([R6]),m.Vt3,m.OA$]})}}return B})();const P4={provide:l0,useExisting:(0,m.Rfq)(()=>D3)};let D3=(()=>{class B extends R0{constructor(D,t1,w1){super(),this.name=null,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1)}_checkParentType(){g6(this._parent)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formGroupName",""]],inputs:{name:[m.Mj6.None,"formGroupName","name"]},features:[m.Jv_([P4]),m.Vt3]})}}return B})();const n6={provide:l0,useExisting:(0,m.Rfq)(()=>V0)};let V0=(()=>{class B extends l0{constructor(D,t1,w1){super(),this.name=null,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){g6(this._parent)}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formArrayName",""]],inputs:{name:[m.Mj6.None,"formArrayName","name"]},features:[m.Jv_([n6]),m.Vt3]})}}return B})();function g6(B){return!(B instanceof D3||B instanceof n4||B instanceof V0)}const A6={provide:s0,useExisting:(0,m.Rfq)(()=>M3)};let M3=(()=>{class B extends s0{set isDisabled(D){}static{this._ngModelWarningSentOnce=!1}constructor(D,t1,w1,V2,v0){super(),this._ngModelWarningConfig=v0,this._added=!1,this.name=null,this.update=new m.bkB,this._ngModelWarningSent=!1,this._parent=D,this._setValidators(t1),this._setAsyncValidators(w1),this.valueAccessor=q1(0,V2)}ngOnChanges(D){this._added||this._setUpControl(),b1(D,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(D){this.viewModel=D,this.update.emit(D)}get path(){return F4(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(l0,13),m.rXU(f1,10),m.rXU($1,10),m.rXU($,10),m.rXU(g2,8))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["","formControlName",""]],inputs:{name:[m.Mj6.None,"formControlName","name"],isDisabled:[m.Mj6.None,"disabled","isDisabled"],model:[m.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[m.Jv_([A6]),m.Vt3,m.OA$]})}}return B})();const h8={provide:$,useExisting:(0,m.Rfq)(()=>k4),multi:!0};function v3(B,G){return null==B?`${G}`:(G&&"object"==typeof G&&(G="Object"),`${B}: ${G}`.slice(0,50))}let k4=(()=>{class B extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){this.value=D;const w1=v3(this._getOptionId(D),D);this.setProperty("value",w1)}registerOnChange(D){this.onChange=t1=>{this.value=this._getOptionValue(t1),D(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(D){for(const t1 of this._optionMap.keys())if(this._compareWith(this._optionMap.get(t1),D))return t1;return null}_getOptionValue(D){const t1=function g8(B){return B.split(":")[0]}(D);return this._optionMap.has(t1)?this._optionMap.get(t1):D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target.value)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[m.Jv_([h8]),m.Vt3]})}}return B})(),V3=(()=>{class B{constructor(D,t1,w1){this._element=D,this._renderer=t1,this._select=w1,this._select&&(this.id=this._select._registerOption())}set ngValue(D){null!=this._select&&(this._select._optionMap.set(this.id,D),this._setElementValue(v3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._setElementValue(D),this._select&&this._select.writeValue(this._select.value)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.aKT),m.rXU(m.sFG),m.rXU(k4,9))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return B})();const p0={provide:$,useExisting:(0,m.Rfq)(()=>I6),multi:!0};function g3(B,G){return null==B?`${G}`:("string"==typeof G&&(G=`'${G}'`),G&&"object"==typeof G&&(G="Object"),`${B}: ${G}`.slice(0,50))}let I6=(()=>{class B extends A{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(D){this._compareWith=D}writeValue(D){let t1;if(this.value=D,Array.isArray(D)){const w1=D.map(V2=>this._getOptionId(V2));t1=(V2,v0)=>{V2._setSelected(w1.indexOf(v0.toString())>-1)}}else t1=(w1,V2)=>{w1._setSelected(!1)};this._optionMap.forEach(t1)}registerOnChange(D){this.onChange=t1=>{const w1=[],V2=t1.selectedOptions;if(void 0!==V2){const v0=V2;for(let b3=0;b3{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t1,w1){1&t1&&m.bIt("change",function(v0){return w1.onChange(v0.target)})("blur",function(){return w1.onTouched()})},inputs:{compareWith:"compareWith"},features:[m.Jv_([p0]),m.Vt3]})}}return B})(),Q6=(()=>{class B{constructor(D,t1,w1){this._element=D,this._renderer=t1,this._select=w1,this._select&&(this.id=this._select._registerOption(this))}set ngValue(D){null!=this._select&&(this._value=D,this._setElementValue(g3(this.id,D)),this._select.writeValue(this._select.value))}set value(D){this._select?(this._value=D,this._setElementValue(g3(this.id,D)),this._select.writeValue(this._select.value)):this._setElementValue(D)}_setElementValue(D){this._renderer.setProperty(this._element.nativeElement,"value",D)}_setSelected(D){this._renderer.setProperty(this._element.nativeElement,"selected",D)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(t1){return new(t1||B)(m.rXU(m.aKT),m.rXU(m.sFG),m.rXU(I6,9))}}static{this.\u0275dir=m.FsC({type:B,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return B})();let G0=(()=>{class B{constructor(){this._validator=t0}ngOnChanges(D){if(this.inputName in D){const t1=this.normalizeInput(D[this.inputName].currentValue);this._enabled=this.enabled(t1),this._validator=this._enabled?this.createValidator(t1):t0,this._onChange&&this._onChange()}}validate(D){return this._validator(D)}registerOnValidatorChange(D){this._onChange=D}enabled(D){return null!=D}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275dir=m.FsC({type:B,features:[m.OA$]})}}return B})();const he={provide:f1,useExisting:(0,m.Rfq)(()=>H3),multi:!0};let H3=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=D=>function d3(B){return"number"==typeof B?B:parseFloat(B)}(D),this.createValidator=D=>c2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("min",w1._enabled?w1.min:null)},inputs:{min:"min"},features:[m.Jv_([he]),m.Vt3]})}}return B})();const f3={provide:f1,useExisting:(0,m.Rfq)(()=>Q4),multi:!0};let Q4=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=m.L39,this.createValidator=D=>O1}enabled(D){return D}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("required",w1._enabled?"":null)},inputs:{required:"required"},features:[m.Jv_([f3]),m.Vt3]})}}return B})();const i3={provide:f1,useExisting:(0,m.Rfq)(()=>s6),multi:!0};let s6=(()=>{class B extends G0{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=D=>D,this.createValidator=D=>v2(D)}static{this.\u0275fac=(()=>{let D;return function(w1){return(D||(D=m.xGo(B)))(w1||B)}})()}static{this.\u0275dir=m.FsC({type:B,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t1,w1){2&t1&&m.BMQ("pattern",w1._enabled?w1.pattern:null)},inputs:{pattern:"pattern"},features:[m.Jv_([i3]),m.Vt3]})}}return B})(),u3=(()=>{class B{static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({})}}return B})();class H0 extends Z1{constructor(G,D,t1){super(s3(D),J2(t1,D)),this.controls=G,this._initObservables(),this._setUpdateStrategy(D),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(G){return this.controls[this._adjustIndex(G)]}push(G,D={}){this.controls.push(G),this._registerControl(G),this.updateValueAndValidity({emitEvent:D.emitEvent}),this._onCollectionChange()}insert(G,D,t1={}){this.controls.splice(G,0,D),this._registerControl(D),this.updateValueAndValidity({emitEvent:t1.emitEvent})}removeAt(G,D={}){let t1=this._adjustIndex(G);t1<0&&(t1=0),this.controls[t1]&&this.controls[t1]._registerOnCollectionChange(()=>{}),this.controls.splice(t1,1),this.updateValueAndValidity({emitEvent:D.emitEvent})}setControl(G,D,t1={}){let w1=this._adjustIndex(G);w1<0&&(w1=0),this.controls[w1]&&this.controls[w1]._registerOnCollectionChange(()=>{}),this.controls.splice(w1,1),D&&(this.controls.splice(w1,0,D),this._registerControl(D)),this.updateValueAndValidity({emitEvent:t1.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(G,D={}){D1(this,0,G),G.forEach((t1,w1)=>{m1(this,!1,w1),this.at(w1).setValue(t1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D)}patchValue(G,D={}){null!=G&&(G.forEach((t1,w1)=>{this.at(w1)&&this.at(w1).patchValue(t1,{onlySelf:!0,emitEvent:D.emitEvent})}),this.updateValueAndValidity(D))}reset(G=[],D={}){this._forEachChild((t1,w1)=>{t1.reset(G[w1],{onlySelf:!0,emitEvent:D.emitEvent})}),this._updatePristine(D),this._updateTouched(D),this.updateValueAndValidity(D)}getRawValue(){return this.controls.map(G=>G.getRawValue())}clear(G={}){this.controls.length<1||(this._forEachChild(D=>D._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:G.emitEvent}))}_adjustIndex(G){return G<0?G+this.length:G}_syncPendingControls(){let G=this.controls.reduce((D,t1)=>!!t1._syncPendingControls()||D,!1);return G&&this.updateValueAndValidity({onlySelf:!0}),G}_forEachChild(G){this.controls.forEach((D,t1)=>{G(D,t1)})}_updateValue(){this.value=this.controls.filter(G=>G.enabled||this.disabled).map(G=>G.value)}_anyControls(G){return this.controls.some(D=>D.enabled&&G(D))}_setUpControls(){this._forEachChild(G=>this._registerControl(G))}_allControlsDisabled(){for(const G of this.controls)if(G.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(G){G.setParent(this),G._registerOnCollectionChange(this._onCollectionChange)}_find(G){return this.at(G)??null}}function w3(B){return!!B&&(void 0!==B.asyncValidators||void 0!==B.validators||void 0!==B.updateOn)}let j6=(()=>{class B{constructor(){this.useNonNullable=!1}get nonNullable(){const D=new B;return D.useNonNullable=!0,D}group(D,t1=null){const w1=this._reduceControls(D);let V2={};return w3(t1)?V2=t1:null!==t1&&(V2.validators=t1.validator,V2.asyncValidators=t1.asyncValidator),new F2(w1,V2)}record(D,t1=null){const w1=this._reduceControls(D);return new t4(w1,t1)}control(D,t1,w1){let V2={};return this.useNonNullable?(w3(t1)?V2=t1:(V2.validators=t1,V2.asyncValidators=w1),new P0(D,{...V2,nonNullable:!0})):new P0(D,t1,w1)}array(D,t1,w1){const V2=D.map(v0=>this._createControl(v0));return new H0(V2,t1,w1)}_reduceControls(D){const t1={};return Object.keys(D).forEach(w1=>{t1[w1]=this._createControl(D[w1])}),t1}_createControl(D){return D instanceof P0||D instanceof Z1?D:Array.isArray(D)?this.control(D[0],D.length>1?D[1]:null,D.length>2?D[2]:null):this.control(D)}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275prov=m.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})}}return B})(),O6=(()=>{class B{static withConfig(D){return{ngModule:B,providers:[{provide:z4,useValue:D.callSetDisabledState??r4}]}}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({imports:[u3]})}}return B})(),o6=(()=>{class B{static withConfig(D){return{ngModule:B,providers:[{provide:g2,useValue:D.warnOnNgModelWithFormControl??"always"},{provide:z4,useValue:D.callSetDisabledState??r4}]}}static{this.\u0275fac=function(t1){return new(t1||B)}}static{this.\u0275mod=m.$C({type:B})}static{this.\u0275inj=m.G2t({imports:[u3]})}}return B})()},345:(y1,d1,y)=>{"use strict";y.d(d1,{Bb:()=>D0,W8:()=>K2,hE:()=>C4,sG:()=>s2,up:()=>H4});var m=y(4438),g=y(177);class e extends g.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class p extends e{static makeCurrent(){(0,g.ZD)(new p)}onAndCancel(x1,m1,D1){return x1.addEventListener(m1,D1),()=>{x1.removeEventListener(m1,D1)}}dispatchEvent(x1,m1){x1.dispatchEvent(m1)}remove(x1){x1.parentNode&&x1.parentNode.removeChild(x1)}createElement(x1,m1){return(m1=m1||this.getDefaultDocument()).createElement(x1)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(x1){return x1.nodeType===Node.ELEMENT_NODE}isShadowRoot(x1){return x1 instanceof DocumentFragment}getGlobalEventTarget(x1,m1){return"window"===m1?window:"document"===m1?x1:"body"===m1?x1.body:null}getBaseHref(x1){const m1=function S(){return _=_||document.querySelector("base"),_?_.getAttribute("href"):null}();return null==m1?null:function A(s1){return new URL(s1,document.baseURI).pathname}(m1)}resetBaseElement(){_=null}getUserAgent(){return window.navigator.userAgent}getCookie(x1){return(0,g._b)(document.cookie,x1)}}let _=null,Z=(()=>{class s1{build(){return new XMLHttpRequest}static{this.\u0275fac=function(D1){return new(D1||s1)}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const K=new m.nKC("");let p1=(()=>{class s1{constructor(m1,D1){this._zone=D1,this._eventNameToPlugin=new Map,m1.forEach(Z1=>{Z1.manager=this}),this._plugins=m1.slice().reverse()}addEventListener(m1,D1,Z1){return this._findPluginFor(D1).addEventListener(m1,D1,Z1)}getZone(){return this._zone}_findPluginFor(m1){let D1=this._eventNameToPlugin.get(m1);if(D1)return D1;if(D1=this._plugins.find(F2=>F2.supports(m1)),!D1)throw new m.wOt(5101,!1);return this._eventNameToPlugin.set(m1,D1),D1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(K),m.KVO(m.SKi))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class Y{constructor(x1){this._doc=x1}}const h1="ng-app-id";let e1=(()=>{class s1{constructor(m1,D1,Z1,F2={}){this.doc=m1,this.appId=D1,this.nonce=Z1,this.platformId=F2,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,g.Vy)(F2),this.resetHostNodes()}addStyles(m1){for(const D1 of m1)1===this.changeUsageCount(D1,1)&&this.onStyleAdded(D1)}removeStyles(m1){for(const D1 of m1)this.changeUsageCount(D1,-1)<=0&&this.onStyleRemoved(D1)}ngOnDestroy(){const m1=this.styleNodesInDOM;m1&&(m1.forEach(D1=>D1.remove()),m1.clear());for(const D1 of this.getAllStyles())this.onStyleRemoved(D1);this.resetHostNodes()}addHost(m1){this.hostNodes.add(m1);for(const D1 of this.getAllStyles())this.addStyleToHost(m1,D1)}removeHost(m1){this.hostNodes.delete(m1)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(m1){for(const D1 of this.hostNodes)this.addStyleToHost(D1,m1)}onStyleRemoved(m1){const D1=this.styleRef;D1.get(m1)?.elements?.forEach(Z1=>Z1.remove()),D1.delete(m1)}collectServerRenderedStyles(){const m1=this.doc.head?.querySelectorAll(`style[${h1}="${this.appId}"]`);if(m1?.length){const D1=new Map;return m1.forEach(Z1=>{null!=Z1.textContent&&D1.set(Z1.textContent,Z1)}),D1}return null}changeUsageCount(m1,D1){const Z1=this.styleRef;if(Z1.has(m1)){const F2=Z1.get(m1);return F2.usage+=D1,F2.usage}return Z1.set(m1,{usage:D1,elements:[]}),D1}getStyleElement(m1,D1){const Z1=this.styleNodesInDOM,F2=Z1?.get(D1);if(F2?.parentNode===m1)return Z1.delete(D1),F2.removeAttribute(h1),F2;{const b2=this.doc.createElement("style");return this.nonce&&b2.setAttribute("nonce",this.nonce),b2.textContent=D1,this.platformIsServer&&b2.setAttribute(h1,this.appId),m1.appendChild(b2),b2}}addStyleToHost(m1,D1){const Z1=this.getStyleElement(m1,D1),F2=this.styleRef,b2=F2.get(D1)?.elements;b2?b2.push(Z1):F2.set(D1,{elements:[Z1],usage:1})}resetHostNodes(){const m1=this.hostNodes;m1.clear(),m1.add(this.doc.head)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ),m.KVO(m.sZ2),m.KVO(m.BIS,8),m.KVO(m.Agw))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const r1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},M1=/%COMP%/g,c2=new m.nKC("",{providedIn:"root",factory:()=>!0});function d0(s1,x1){return x1.map(m1=>m1.replace(M1,s1))}let d2=(()=>{class s1{constructor(m1,D1,Z1,F2,b2,U0,m0,t4=null){this.eventManager=m1,this.sharedStylesHost=D1,this.appId=Z1,this.removeStylesOnCompDestroy=F2,this.doc=b2,this.platformId=U0,this.ngZone=m0,this.nonce=t4,this.rendererByCompId=new Map,this.platformIsServer=(0,g.Vy)(U0),this.defaultRenderer=new _2(m1,b2,m0,this.platformIsServer)}createRenderer(m1,D1){if(!m1||!D1)return this.defaultRenderer;this.platformIsServer&&D1.encapsulation===m.gXe.ShadowDom&&(D1={...D1,encapsulation:m.gXe.Emulated});const Z1=this.getOrCreateRenderer(m1,D1);return Z1 instanceof B4?Z1.applyToHost(m1):Z1 instanceof Z0&&Z1.applyStyles(),Z1}getOrCreateRenderer(m1,D1){const Z1=this.rendererByCompId;let F2=Z1.get(D1.id);if(!F2){const b2=this.doc,U0=this.ngZone,m0=this.eventManager,t4=this.sharedStylesHost,N3=this.removeStylesOnCompDestroy,z4=this.platformIsServer;switch(D1.encapsulation){case m.gXe.Emulated:F2=new B4(m0,t4,D1,this.appId,N3,b2,U0,z4);break;case m.gXe.ShadowDom:return new X0(m0,t4,m1,D1,b2,U0,this.nonce,z4);default:F2=new Z0(m0,t4,D1,N3,b2,U0,z4)}Z1.set(D1.id,F2)}return F2}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(p1),m.KVO(e1),m.KVO(m.sZ2),m.KVO(c2),m.KVO(g.qQ),m.KVO(m.Agw),m.KVO(m.SKi),m.KVO(m.BIS))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();class _2{constructor(x1,m1,D1,Z1){this.eventManager=x1,this.doc=m1,this.ngZone=D1,this.platformIsServer=Z1,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(x1,m1){return m1?this.doc.createElementNS(r1[m1]||m1,x1):this.doc.createElement(x1)}createComment(x1){return this.doc.createComment(x1)}createText(x1){return this.doc.createTextNode(x1)}appendChild(x1,m1){(t0(x1)?x1.content:x1).appendChild(m1)}insertBefore(x1,m1,D1){x1&&(t0(x1)?x1.content:x1).insertBefore(m1,D1)}removeChild(x1,m1){x1&&x1.removeChild(m1)}selectRootElement(x1,m1){let D1="string"==typeof x1?this.doc.querySelector(x1):x1;if(!D1)throw new m.wOt(-5104,!1);return m1||(D1.textContent=""),D1}parentNode(x1){return x1.parentNode}nextSibling(x1){return x1.nextSibling}setAttribute(x1,m1,D1,Z1){if(Z1){m1=Z1+":"+m1;const F2=r1[Z1];F2?x1.setAttributeNS(F2,m1,D1):x1.setAttribute(m1,D1)}else x1.setAttribute(m1,D1)}removeAttribute(x1,m1,D1){if(D1){const Z1=r1[D1];Z1?x1.removeAttributeNS(Z1,m1):x1.removeAttribute(`${D1}:${m1}`)}else x1.removeAttribute(m1)}addClass(x1,m1){x1.classList.add(m1)}removeClass(x1,m1){x1.classList.remove(m1)}setStyle(x1,m1,D1,Z1){Z1&(m.czy.DashCase|m.czy.Important)?x1.style.setProperty(m1,D1,Z1&m.czy.Important?"important":""):x1.style[m1]=D1}removeStyle(x1,m1,D1){D1&m.czy.DashCase?x1.style.removeProperty(m1):x1.style[m1]=""}setProperty(x1,m1,D1){null!=x1&&(x1[m1]=D1)}setValue(x1,m1){x1.nodeValue=m1}listen(x1,m1,D1){if("string"==typeof x1&&!(x1=(0,g.QT)().getGlobalEventTarget(this.doc,x1)))throw new Error(`Unsupported event target ${x1} for event ${m1}`);return this.eventManager.addEventListener(x1,m1,this.decoratePreventDefault(D1))}decoratePreventDefault(x1){return m1=>{if("__ngUnwrap__"===m1)return x1;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>x1(m1)):x1(m1))&&m1.preventDefault()}}}function t0(s1){return"TEMPLATE"===s1.tagName&&void 0!==s1.content}class X0 extends _2{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){super(x1,F2,b2,m0),this.sharedStylesHost=m1,this.hostEl=D1,this.shadowRoot=D1.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const t4=d0(Z1.id,Z1.styles);for(const N3 of t4){const z4=document.createElement("style");U0&&z4.setAttribute("nonce",U0),z4.textContent=N3,this.shadowRoot.appendChild(z4)}}nodeOrShadowRoot(x1){return x1===this.hostEl?this.shadowRoot:x1}appendChild(x1,m1){return super.appendChild(this.nodeOrShadowRoot(x1),m1)}insertBefore(x1,m1,D1){return super.insertBefore(this.nodeOrShadowRoot(x1),m1,D1)}removeChild(x1,m1){return super.removeChild(this.nodeOrShadowRoot(x1),m1)}parentNode(x1){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(x1)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Z0 extends _2{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){super(x1,F2,b2,U0),this.sharedStylesHost=m1,this.removeStylesOnCompDestroy=Z1,this.styles=m0?d0(m0,D1.styles):D1.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class B4 extends Z0{constructor(x1,m1,D1,Z1,F2,b2,U0,m0){const t4=Z1+"-"+D1.id;super(x1,m1,D1,F2,b2,U0,m0,t4),this.contentAttr=function G1(s1){return"_ngcontent-%COMP%".replace(M1,s1)}(t4),this.hostAttr=function O1(s1){return"_nghost-%COMP%".replace(M1,s1)}(t4)}applyToHost(x1){this.applyStyles(),this.setAttribute(x1,this.hostAttr,"")}createElement(x1,m1){const D1=super.createElement(x1,m1);return super.setAttribute(D1,this.contentAttr,""),D1}}let x2=(()=>{class s1 extends Y{constructor(m1){super(m1)}supports(m1){return!0}addEventListener(m1,D1,Z1){return m1.addEventListener(D1,Z1,!1),()=>this.removeEventListener(m1,D1,Z1)}removeEventListener(m1,D1,Z1){return m1.removeEventListener(D1,Z1)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const w0=["alt","control","meta","shift"],v1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e2={alt:s1=>s1.altKey,control:s1=>s1.ctrlKey,meta:s1=>s1.metaKey,shift:s1=>s1.shiftKey};let C2=(()=>{class s1 extends Y{constructor(m1){super(m1)}supports(m1){return null!=s1.parseEventName(m1)}addEventListener(m1,D1,Z1){const F2=s1.parseEventName(D1),b2=s1.eventCallback(F2.fullKey,Z1,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,g.QT)().onAndCancel(m1,F2.domEventName,b2))}static parseEventName(m1){const D1=m1.toLowerCase().split("."),Z1=D1.shift();if(0===D1.length||"keydown"!==Z1&&"keyup"!==Z1)return null;const F2=s1._normalizeKey(D1.pop());let b2="",U0=D1.indexOf("code");if(U0>-1&&(D1.splice(U0,1),b2="code."),w0.forEach(t4=>{const N3=D1.indexOf(t4);N3>-1&&(D1.splice(N3,1),b2+=t4+".")}),b2+=F2,0!=D1.length||0===F2.length)return null;const m0={};return m0.domEventName=Z1,m0.fullKey=b2,m0}static matchEventFullKeyCode(m1,D1){let Z1=v1[m1.key]||m1.key,F2="";return D1.indexOf("code.")>-1&&(Z1=m1.code,F2="code."),!(null==Z1||!Z1)&&(Z1=Z1.toLowerCase()," "===Z1?Z1="space":"."===Z1&&(Z1="dot"),w0.forEach(b2=>{b2!==Z1&&(0,e2[b2])(m1)&&(F2+=b2+".")}),F2+=Z1,F2===D1)}static eventCallback(m1,D1,Z1){return F2=>{s1.matchEventFullKeyCode(F2,m1)&&Z1.runGuarded(()=>D1(F2))}}static _normalizeKey(m1){return"esc"===m1?"escape":m1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac})}}return s1})();const s2=(0,m.oH4)(m.fpN,"browser",[{provide:m.Agw,useValue:g.AJ},{provide:m.PLl,useValue:function P1(){p.makeCurrent()},multi:!0},{provide:g.qQ,useFactory:function Q(){return(0,m.TL$)(document),document},deps:[]}]),p2=new m.nKC(""),l0=[{provide:m.e01,useClass:class ${addToWindow(x1){m.JZv.getAngularTestability=(D1,Z1=!0)=>{const F2=x1.findTestabilityInTree(D1,Z1);if(null==F2)throw new m.wOt(5103,!1);return F2},m.JZv.getAllAngularTestabilities=()=>x1.getAllTestabilities(),m.JZv.getAllAngularRootElements=()=>x1.getAllRootElements(),m.JZv.frameworkStabilizers||(m.JZv.frameworkStabilizers=[]),m.JZv.frameworkStabilizers.push(D1=>{const Z1=m.JZv.getAllAngularTestabilities();let F2=Z1.length;const b2=function(){F2--,0==F2&&D1()};Z1.forEach(U0=>{U0.whenStable(b2)})})}findTestabilityInTree(x1,m1,D1){return null==m1?null:x1.getTestability(m1)??(D1?(0,g.QT)().isShadowRoot(m1)?this.findTestabilityInTree(x1,m1.host,!0):this.findTestabilityInTree(x1,m1.parentElement,!0):null)}},deps:[]},{provide:m.WHO,useClass:m.NYb,deps:[m.SKi,m.giA,m.e01]},{provide:m.NYb,useClass:m.NYb,deps:[m.SKi,m.giA,m.e01]}],s0=[{provide:m.H8p,useValue:"root"},{provide:m.zcH,useFactory:function K1(){return new m.zcH},deps:[]},{provide:K,useClass:x2,multi:!0,deps:[g.qQ,m.SKi,m.Agw]},{provide:K,useClass:C2,multi:!0,deps:[g.qQ]},d2,e1,p1,{provide:m._9s,useExisting:d2},{provide:g.N0,useClass:Z,deps:[]},[]];let D0=(()=>{class s1{constructor(m1){}static withServerTransition(m1){return{ngModule:s1,providers:[{provide:m.sZ2,useValue:m1.appId}]}}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(p2,12))}}static{this.\u0275mod=m.$C({type:s1})}static{this.\u0275inj=m.G2t({providers:[...s0,...l0],imports:[g.MD,m.Hbi]})}}return s1})(),K2=(()=>{class s1{constructor(m1){this._doc=m1,this._dom=(0,g.QT)()}addTag(m1,D1=!1){return m1?this._getOrCreateElement(m1,D1):null}addTags(m1,D1=!1){return m1?m1.reduce((Z1,F2)=>(F2&&Z1.push(this._getOrCreateElement(F2,D1)),Z1),[]):[]}getTag(m1){return m1&&this._doc.querySelector(`meta[${m1}]`)||null}getTags(m1){if(!m1)return[];const D1=this._doc.querySelectorAll(`meta[${m1}]`);return D1?[].slice.call(D1):[]}updateTag(m1,D1){if(!m1)return null;D1=D1||this._parseSelector(m1);const Z1=this.getTag(D1);return Z1?this._setMetaElementAttributes(m1,Z1):this._getOrCreateElement(m1,!0)}removeTag(m1){this.removeTagElement(this.getTag(m1))}removeTagElement(m1){m1&&this._dom.remove(m1)}_getOrCreateElement(m1,D1=!1){if(!D1){const b2=this._parseSelector(m1),U0=this.getTags(b2).filter(m0=>this._containsAttributes(m1,m0))[0];if(void 0!==U0)return U0}const Z1=this._dom.createElement("meta");return this._setMetaElementAttributes(m1,Z1),this._doc.getElementsByTagName("head")[0].appendChild(Z1),Z1}_setMetaElementAttributes(m1,D1){return Object.keys(m1).forEach(Z1=>D1.setAttribute(this._getMetaKeyMap(Z1),m1[Z1])),D1}_parseSelector(m1){const D1=m1.name?"name":"property";return`${D1}="${m1[D1]}"`}_containsAttributes(m1,D1){return Object.keys(m1).every(Z1=>D1.getAttribute(this._getMetaKeyMap(Z1))===m1[Z1])}_getMetaKeyMap(m1){return y0[m1]||m1}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})();const y0={httpEquiv:"http-equiv"};let C4=(()=>{class s1{constructor(m1){this._doc=m1}getTitle(){return this._doc.title}setTitle(m1){this._doc.title=m1||""}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})(),H4=(()=>{class s1{static{this.\u0275fac=function(D1){return new(D1||s1)}}static{this.\u0275prov=m.jDH({token:s1,factory:function(D1){let Z1=null;return Z1=D1?new(D1||s1):m.KVO(u0),Z1},providedIn:"root"})}}return s1})(),u0=(()=>{class s1 extends H4{constructor(m1){super(),this._doc=m1}sanitize(m1,D1){if(null==D1)return null;switch(m1){case m.WPN.NONE:return D1;case m.WPN.HTML:return(0,m.ZF7)(D1,"HTML")?(0,m.rcV)(D1):(0,m.h9k)(this._doc,String(D1)).toString();case m.WPN.STYLE:return(0,m.ZF7)(D1,"Style")?(0,m.rcV)(D1):D1;case m.WPN.SCRIPT:if((0,m.ZF7)(D1,"Script"))return(0,m.rcV)(D1);throw new m.wOt(5200,!1);case m.WPN.URL:return(0,m.ZF7)(D1,"URL")?(0,m.rcV)(D1):(0,m.$MX)(String(D1));case m.WPN.RESOURCE_URL:if((0,m.ZF7)(D1,"ResourceURL"))return(0,m.rcV)(D1);throw new m.wOt(5201,!1);default:throw new m.wOt(5202,!1)}}bypassSecurityTrustHtml(m1){return(0,m.Kcf)(m1)}bypassSecurityTrustStyle(m1){return(0,m.cWb)(m1)}bypassSecurityTrustScript(m1){return(0,m.UyX)(m1)}bypassSecurityTrustUrl(m1){return(0,m.osQ)(m1)}bypassSecurityTrustResourceUrl(m1){return(0,m.e5t)(m1)}static{this.\u0275fac=function(D1){return new(D1||s1)(m.KVO(g.qQ))}}static{this.\u0275prov=m.jDH({token:s1,factory:s1.\u0275fac,providedIn:"root"})}}return s1})()},1583:(y1,d1,y)=>{"use strict";y.d(d1,{nX:()=>g6,wF:()=>P0,Z:()=>F0,Ix:()=>S1,Wk:()=>y2,iI:()=>O8,n3:()=>g3});var m=y(467),g=y(4438),e=y(4402),p=y(6648),_=y(7673),S=y(4412),A=y(4572),$=y(9350),Z=y(8793),K=y(9030),p1=y(1203),Y=y(8810),h1=y(983),e1=y(1985),r1=y(8359),M1=y(9974),f1=y(4360);function $1(){return(0,M1.N)((x,E)=>{let v=null;x._refCount++;const N=(0,f1._)(E,void 0,void 0,void 0,()=>{if(!x||x._refCount<=0||0<--x._refCount)return void(v=null);const V=x._connection,c1=v;v=null,V&&(!c1||V===c1)&&V.unsubscribe(),E.unsubscribe()});x.subscribe(N),N.closed||(v=x.connect())})}class o2 extends e1.c{constructor(E,v){super(),this.source=E,this.subjectFactory=v,this._subject=null,this._refCount=0,this._connection=null,(0,M1.S)(E)&&(this.lift=E.lift)}_subscribe(E){return this.getSubject().subscribe(E)}getSubject(){const E=this._subject;return(!E||E.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:E}=this;this._subject=this._connection=null,E?.unsubscribe()}connect(){let E=this._connection;if(!E){E=this._connection=new r1.yU;const v=this.getSubject();E.add(this.source.subscribe((0,f1._)(v,void 0,()=>{this._teardown(),v.complete()},N=>{this._teardown(),v.error(N)},()=>this._teardown()))),E.closed&&(this._connection=null,E=r1.yU.EMPTY)}return E}refCount(){return $1()(this)}}var S2=y(1413),c2=y(177),G1=y(6354),O1=y(5558),d0=y(6697),d2=y(9172),_2=y(5964),w2=y(3028),v2=y(1594),t0=y(274),X0=y(8141),Z0=y(9437),B4=y(6649),w0=y(9901);function v1(x){return x<=0?()=>h1.w:(0,M1.N)((E,v)=>{let N=[];E.subscribe((0,f1._)(v,V=>{N.push(V),x{for(const V of N)v.next(V);v.complete()},void 0,()=>{N=null}))})}var e2=y(3774),C2=y(3669),j1=y(3703),A1=y(980),H1=y(6977),P1=y(6365),K1=y(345);const Q="primary",t2=Symbol("RouteTitle");class s2{constructor(E){this.params=E||{}}has(E){return Object.prototype.hasOwnProperty.call(this.params,E)}get(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v[0]:v}return null}getAll(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v:[v]}return[]}get keys(){return Object.keys(this.params)}}function p2(x){return new s2(x)}function l0(x,E,v){const N=v.path.split("/");if(N.length>x.length||"full"===v.pathMatch&&(E.hasChildren()||N.lengthN[c1]===V)}return x===E}function C4(x){return x.length>0?x[x.length-1]:null}function m2(x){return(0,e.A)(x)?x:(0,g.jNT)(x)?(0,p.H)(Promise.resolve(x)):(0,_.of)(x)}const N4={exact:function E6(x,E,v){if(!H4(x.segments,E.segments)||!X4(x.segments,E.segments,v)||x.numberOfChildren!==E.numberOfChildren)return!1;for(const N in E.children)if(!x.children[N]||!E6(x.children[N],E.children[N],v))return!1;return!0},subset:c0},m4={exact:function t3(x,E){return D0(x,E)},subset:function q4(x,E){return Object.keys(E).length<=Object.keys(x).length&&Object.keys(E).every(v=>y0(x[v],E[v]))},ignored:()=>!0};function B3(x,E,v){return N4[v.paths](x.root,E.root,v.matrixParams)&&m4[v.queryParams](x.queryParams,E.queryParams)&&!("exact"===v.fragment&&x.fragment!==E.fragment)}function c0(x,E,v){return f0(x,E,E.segments,v)}function f0(x,E,v,N){if(x.segments.length>v.length){const V=x.segments.slice(0,v.length);return!(!H4(V,v)||E.hasChildren()||!X4(V,v,N))}if(x.segments.length===v.length){if(!H4(x.segments,v)||!X4(x.segments,v,N))return!1;for(const V in E.children)if(!x.children[V]||!c0(x.children[V],E.children[V],N))return!1;return!0}{const V=v.slice(0,x.segments.length),c1=v.slice(x.segments.length);return!!(H4(x.segments,V)&&X4(x.segments,V,N)&&x.children[Q])&&f0(x.children[Q],E,c1,N)}}function X4(x,E,v){return E.every((N,V)=>m4[v](x[V].parameters,N.parameters))}class T4{constructor(E=new Y2([],{}),v={},N=null){this.root=E,this.queryParams=v,this.fragment=N}get queryParamMap(){return this._queryParamMap??=p2(this.queryParams),this._queryParamMap}toString(){return S0.serialize(this)}}class Y2{constructor(E,v){this.segments=E,this.children=v,this.parent=null,Object.values(v).forEach(N=>N.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return l3(this)}}class n3{constructor(E,v){this.path=E,this.parameters=v}get parameterMap(){return this._parameterMap??=p2(this.parameters),this._parameterMap}toString(){return m1(this)}}function H4(x,E){return x.length===E.length&&x.every((v,N)=>v.path===E[N].path)}let $4=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>new L0,providedIn:"root"})}}return x})();class L0{parse(E){const v=new F4(E);return new T4(v.parseRootSegment(),v.parseQueryParams(),v.parseFragment())}serialize(E){const v=`/${T0(E.root,!0)}`,N=function Z1(x){const E=Object.entries(x).map(([v,N])=>Array.isArray(N)?N.map(V=>`${s3(v)}=${s3(V)}`).join("&"):`${s3(v)}=${s3(N)}`).filter(v=>v);return E.length?`?${E.join("&")}`:""}(E.queryParams);return`${v}${N}${"string"==typeof E.fragment?`#${function F3(x){return encodeURI(x)}(E.fragment)}`:""}`}}const S0=new L0;function l3(x){return x.segments.map(E=>m1(E)).join("/")}function T0(x,E){if(!x.hasChildren())return l3(x);if(E){const v=x.children[Q]?T0(x.children[Q],!1):"",N=[];return Object.entries(x.children).forEach(([V,c1])=>{V!==Q&&N.push(`${V}:${T0(c1,!1)}`)}),N.length>0?`${v}(${N.join("//")})`:v}{const v=function u0(x,E){let v=[];return Object.entries(x.children).forEach(([N,V])=>{N===Q&&(v=v.concat(E(V,N)))}),Object.entries(x.children).forEach(([N,V])=>{N!==Q&&(v=v.concat(E(V,N)))}),v}(x,(N,V)=>V===Q?[T0(x.children[Q],!1)]:[`${V}:${T0(N,!1)}`]);return 1===Object.keys(x.children).length&&null!=x.children[Q]?`${l3(x)}/${v[0]}`:`${l3(x)}/(${v.join("//")})`}}function V4(x){return encodeURIComponent(x).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function s3(x){return V4(x).replace(/%3B/gi,";")}function J2(x){return V4(x).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function s1(x){return decodeURIComponent(x)}function x1(x){return s1(x.replace(/\+/g,"%20"))}function m1(x){return`${J2(x.path)}${function D1(x){return Object.entries(x).map(([E,v])=>`;${J2(E)}=${J2(v)}`).join("")}(x.parameters)}`}const F2=/^[^\/()?;#]+/;function b2(x){const E=x.match(F2);return E?E[0]:""}const U0=/^[^\/()?;=#]+/,t4=/^[^=?&#]+/,z4=/^[^&#]+/;class F4{constructor(E){this.url=E,this.remaining=E}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Y2([],{}):new Y2([],this.parseChildren())}parseQueryParams(){const E={};if(this.consumeOptional("?"))do{this.parseQueryParam(E)}while(this.consumeOptional("&"));return E}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const E=[];for(this.peekStartsWith("(")||E.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),E.push(this.parseSegment());let v={};this.peekStartsWith("/(")&&(this.capture("/"),v=this.parseParens(!0));let N={};return this.peekStartsWith("(")&&(N=this.parseParens(!1)),(E.length>0||Object.keys(v).length>0)&&(N[Q]=new Y2(E,v)),N}parseSegment(){const E=b2(this.remaining);if(""===E&&this.peekStartsWith(";"))throw new g.wOt(4009,!1);return this.capture(E),new n3(s1(E),this.parseMatrixParams())}parseMatrixParams(){const E={};for(;this.consumeOptional(";");)this.parseParam(E);return E}parseParam(E){const v=function m0(x){const E=x.match(U0);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let N="";if(this.consumeOptional("=")){const V=b2(this.remaining);V&&(N=V,this.capture(N))}E[s1(v)]=s1(N)}parseQueryParam(E){const v=function N3(x){const E=x.match(t4);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let N="";if(this.consumeOptional("=")){const z1=function r4(x){const E=x.match(z4);return E?E[0]:""}(this.remaining);z1&&(N=z1,this.capture(N))}const V=x1(v),c1=x1(N);if(E.hasOwnProperty(V)){let z1=E[V];Array.isArray(z1)||(z1=[z1],E[V]=z1),z1.push(c1)}else E[V]=c1}parseParens(E){const v={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const N=b2(this.remaining),V=this.remaining[N.length];if("/"!==V&&")"!==V&&";"!==V)throw new g.wOt(4010,!1);let c1;N.indexOf(":")>-1?(c1=N.slice(0,N.indexOf(":")),this.capture(c1),this.capture(":")):E&&(c1=Q);const z1=this.parseChildren();v[c1]=1===Object.keys(z1).length?z1[Q]:new Y2([],z1),this.consumeOptional("//")}return v}peekStartsWith(E){return this.remaining.startsWith(E)}consumeOptional(E){return!!this.peekStartsWith(E)&&(this.remaining=this.remaining.substring(E.length),!0)}capture(E){if(!this.consumeOptional(E))throw new g.wOt(4011,!1)}}function I2(x){return x.segments.length>0?new Y2([],{[Q]:x}):x}function C0(x){const E={};for(const[N,V]of Object.entries(x.children)){const c1=C0(V);if(N===Q&&0===c1.segments.length&&c1.hasChildren())for(const[z1,W1]of Object.entries(c1.children))E[z1]=W1;else(c1.segments.length>0||c1.hasChildren())&&(E[N]=c1)}return function B2(x){if(1===x.numberOfChildren&&x.children[Q]){const E=x.children[Q];return new Y2(x.segments.concat(E.segments),E.children)}return x}(new Y2(x.segments,E))}function p4(x){return x instanceof T4}function u6(x){let E;const V=I2(function v(c1){const z1={};for(const V1 of c1.children){const O2=v(V1);z1[V1.outlet]=O2}const W1=new Y2(c1.url,z1);return c1===x&&(E=W1),W1}(x.root));return E??V}function c6(x,E,v,N){let V=x;for(;V.parent;)V=V.parent;if(0===E.length)return m6(V,V,V,v,N);const c1=function E3(x){if("string"==typeof x[0]&&1===x.length&&"/"===x[0])return new C1(!0,0,x);let E=0,v=!1;const N=x.reduce((V,c1,z1)=>{if("object"==typeof c1&&null!=c1){if(c1.outlets){const W1={};return Object.entries(c1.outlets).forEach(([V1,O2])=>{W1[V1]="string"==typeof O2?O2.split("/"):O2}),[...V,{outlets:W1}]}if(c1.segmentPath)return[...V,c1.segmentPath]}return"string"!=typeof c1?[...V,c1]:0===z1?(c1.split("/").forEach((W1,V1)=>{0==V1&&"."===W1||(0==V1&&""===W1?v=!0:".."===W1?E++:""!=W1&&V.push(W1))}),V):[...V,c1]},[]);return new C1(v,E,N)}(E);if(c1.toRoot())return m6(V,V,new Y2([],{}),v,N);const z1=function p6(x,E,v){if(x.isAbsolute)return new z3(E,!0,0);if(!v)return new z3(E,!1,NaN);if(null===v.parent)return new z3(v,!0,0);const N=R4(x.commands[0])?0:1;return function D6(x,E,v){let N=x,V=E,c1=v;for(;c1>V;){if(c1-=V,N=N.parent,!N)throw new g.wOt(4005,!1);V=N.segments.length}return new z3(N,!1,V-c1)}(v,v.segments.length-1+N,x.numberOfDoubleDots)}(c1,V,x),W1=z1.processChildren?F1(z1.segmentGroup,z1.index,c1.commands):b1(z1.segmentGroup,z1.index,c1.commands);return m6(V,z1.segmentGroup,W1,v,N)}function R4(x){return"object"==typeof x&&null!=x&&!x.outlets&&!x.segmentPath}function z0(x){return"object"==typeof x&&null!=x&&x.outlets}function m6(x,E,v,N,V){let z1,c1={};N&&Object.entries(N).forEach(([V1,O2])=>{c1[V1]=Array.isArray(O2)?O2.map(J0=>`${J0}`):`${O2}`}),z1=x===E?v:Y4(x,E,v);const W1=I2(C0(z1));return new T4(W1,c1,V)}function Y4(x,E,v){const N={};return Object.entries(x.children).forEach(([V,c1])=>{N[V]=c1===E?v:Y4(c1,E,v)}),new Y2(x.segments,N)}class C1{constructor(E,v,N){if(this.isAbsolute=E,this.numberOfDoubleDots=v,this.commands=N,E&&N.length>0&&R4(N[0]))throw new g.wOt(4003,!1);const V=N.find(z0);if(V&&V!==C4(N))throw new g.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class z3{constructor(E,v,N){this.segmentGroup=E,this.processChildren=v,this.index=N}}function b1(x,E,v){if(x??=new Y2([],{}),0===x.segments.length&&x.hasChildren())return F1(x,E,v);const N=function J1(x,E,v){let N=0,V=E;const c1={match:!1,pathIndex:0,commandIndex:0};for(;V=v.length)return c1;const z1=x.segments[V],W1=v[N];if(z0(W1))break;const V1=`${W1}`,O2=N0&&void 0===V1)break;if(V1&&O2&&"object"==typeof O2&&void 0===O2.outlets){if(!M0(V1,O2,z1))return c1;N+=2}else{if(!M0(V1,{},z1))return c1;N++}V++}return{match:!0,pathIndex:V,commandIndex:N}}(x,E,v),V=v.slice(N.commandIndex);if(N.match&&N.pathIndexc1!==Q)&&x.children[Q]&&1===x.numberOfChildren&&0===x.children[Q].segments.length){const c1=F1(x.children[Q],E,v);return new Y2(x.segments,c1.children)}return Object.entries(N).forEach(([c1,z1])=>{"string"==typeof z1&&(z1=[z1]),null!==z1&&(V[c1]=b1(x.children[c1],E,z1))}),Object.entries(x.children).forEach(([c1,z1])=>{void 0===N[c1]&&(V[c1]=z1)}),new Y2(x.segments,V)}}function q1(x,E,v){const N=x.segments.slice(0,E);let V=0;for(;V{"string"==typeof N&&(N=[N]),null!==N&&(E[v]=q1(new Y2([],{}),0,N))}),E}function h2(x){const E={};return Object.entries(x).forEach(([v,N])=>E[v]=`${N}`),E}function M0(x,E,v){return x==v.path&&D0(E,v.parameters)}const X2="imperative";var P2=function(x){return x[x.NavigationStart=0]="NavigationStart",x[x.NavigationEnd=1]="NavigationEnd",x[x.NavigationCancel=2]="NavigationCancel",x[x.NavigationError=3]="NavigationError",x[x.RoutesRecognized=4]="RoutesRecognized",x[x.ResolveStart=5]="ResolveStart",x[x.ResolveEnd=6]="ResolveEnd",x[x.GuardsCheckStart=7]="GuardsCheckStart",x[x.GuardsCheckEnd=8]="GuardsCheckEnd",x[x.RouteConfigLoadStart=9]="RouteConfigLoadStart",x[x.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",x[x.ChildActivationStart=11]="ChildActivationStart",x[x.ChildActivationEnd=12]="ChildActivationEnd",x[x.ActivationStart=13]="ActivationStart",x[x.ActivationEnd=14]="ActivationEnd",x[x.Scroll=15]="Scroll",x[x.NavigationSkipped=16]="NavigationSkipped",x}(P2||{});class e4{constructor(E,v){this.id=E,this.url=v}}class F0 extends e4{constructor(E,v,N="imperative",V=null){super(E,v),this.type=P2.NavigationStart,this.navigationTrigger=N,this.restoredState=V}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class P0 extends e4{constructor(E,v,N){super(E,v),this.urlAfterRedirects=N,this.type=P2.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var o4=function(x){return x[x.Redirect=0]="Redirect",x[x.SupersededByNewNavigation=1]="SupersededByNewNavigation",x[x.NoDataFromResolver=2]="NoDataFromResolver",x[x.GuardRejected=3]="GuardRejected",x}(o4||{}),v4=function(x){return x[x.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",x[x.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",x}(v4||{});class R0 extends e4{constructor(E,v,N,V){super(E,v),this.reason=N,this.code=V,this.type=P2.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class A0 extends e4{constructor(E,v,N,V){super(E,v),this.reason=N,this.code=V,this.type=P2.NavigationSkipped}}class A4 extends e4{constructor(E,v,N,V){super(E,v),this.error=N,this.target=V,this.type=P2.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class W4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class d4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class c4 extends e4{constructor(E,v,N,V,c1){super(E,v),this.urlAfterRedirects=N,this.state=V,this.shouldActivate=c1,this.type=P2.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class I4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U4 extends e4{constructor(E,v,N,V){super(E,v),this.urlAfterRedirects=N,this.state=V,this.type=P2.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class a0{constructor(E){this.route=E,this.type=P2.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class H2{constructor(E){this.route=E,this.type=P2.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class p8{constructor(E){this.snapshot=E,this.type=P2.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class a3{constructor(E){this.snapshot=E,this.type=P2.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h6{constructor(E){this.snapshot=E,this.type=P2.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class T6{constructor(E){this.snapshot=E,this.type=P2.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class R8{constructor(E,v,N){this.routerEvent=E,this.position=v,this.anchor=N,this.type=P2.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class t6{}class b0{constructor(E){this.url=E}}class Q2{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new g2,this.attachRef=null}}let g2=(()=>{class x{constructor(){this.contexts=new Map}onChildOutletCreated(v,N){const V=this.getOrCreateContext(v);V.outlet=N,this.contexts.set(v,V)}onChildOutletDestroyed(v){const N=this.getContext(v);N&&(N.outlet=null,N.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let N=this.getContext(v);return N||(N=new Q2,this.contexts.set(v,N)),N}getContext(v){return this.contexts.get(v)||null}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();class h3{constructor(E){this._root=E}get root(){return this._root.value}parent(E){const v=this.pathFromRoot(E);return v.length>1?v[v.length-2]:null}children(E){const v=J4(E,this._root);return v?v.children.map(N=>N.value):[]}firstChild(E){const v=J4(E,this._root);return v&&v.children.length>0?v.children[0].value:null}siblings(E){const v=R6(E,this._root);return v.length<2?[]:v[v.length-2].children.map(V=>V.value).filter(V=>V!==E)}pathFromRoot(E){return R6(E,this._root).map(v=>v.value)}}function J4(x,E){if(x===E.value)return E;for(const v of E.children){const N=J4(x,v);if(N)return N}return null}function R6(x,E){if(x===E.value)return[E];for(const v of E.children){const N=R6(x,v);if(N.length)return N.unshift(E),N}return[]}class n4{constructor(E,v){this.value=E,this.children=v}toString(){return`TreeNode(${this.value})`}}function P4(x){const E={};return x&&x.children.forEach(v=>E[v.value.outlet]=v),E}class D3 extends h3{constructor(E,v){super(E),this.snapshot=v,v3(this,E)}toString(){return this.snapshot.toString()}}function n6(x){const E=function V0(x){const c1=new M3([],{},{},"",{},Q,x,null,{});return new h8("",new n4(c1,[]))}(x),v=new S.t([new n3("",{})]),N=new S.t({}),V=new S.t({}),c1=new S.t({}),z1=new S.t(""),W1=new g6(v,N,c1,z1,V,Q,x,E.root);return W1.snapshot=E.root,new D3(new n4(W1,[]),E)}class g6{constructor(E,v,N,V,c1,z1,W1,V1){this.urlSubject=E,this.paramsSubject=v,this.queryParamsSubject=N,this.fragmentSubject=V,this.dataSubject=c1,this.outlet=z1,this.component=W1,this._futureSnapshot=V1,this.title=this.dataSubject?.pipe((0,G1.T)(O2=>O2[t2]))??(0,_.of)(void 0),this.url=E,this.params=v,this.queryParams=N,this.fragment=V,this.data=c1}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,G1.T)(E=>p2(E))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,G1.T)(E=>p2(E))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function A6(x,E,v="emptyOnly"){let N;const{routeConfig:V}=x;return N=null===E||"always"!==v&&""!==V?.path&&(E.component||E.routeConfig?.loadComponent)?{params:{...x.params},data:{...x.data},resolve:{...x.data,...x._resolvedData??{}}}:{params:{...E.params,...x.params},data:{...E.data,...x.data},resolve:{...x.data,...E.data,...V?.data,...x._resolvedData}},V&&p0(V)&&(N.resolve[t2]=V.title),N}class M3{get title(){return this.data?.[t2]}constructor(E,v,N,V,c1,z1,W1,V1,O2){this.url=E,this.params=v,this.queryParams=N,this.fragment=V,this.data=c1,this.outlet=z1,this.component=W1,this.routeConfig=V1,this._resolve=O2}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=p2(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=p2(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(N=>N.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class h8 extends h3{constructor(E,v){super(v),this.url=E,v3(this,v)}toString(){return g8(this._root)}}function v3(x,E){E.value._routerState=x,E.children.forEach(v=>v3(x,v))}function g8(x){const E=x.children.length>0?` { ${x.children.map(g8).join(", ")} } `:"";return`${x.value}${E}`}function k4(x){if(x.snapshot){const E=x.snapshot,v=x._futureSnapshot;x.snapshot=v,D0(E.queryParams,v.queryParams)||x.queryParamsSubject.next(v.queryParams),E.fragment!==v.fragment&&x.fragmentSubject.next(v.fragment),D0(E.params,v.params)||x.paramsSubject.next(v.params),function s0(x,E){if(x.length!==E.length)return!1;for(let v=0;vD0(v.parameters,E[N].parameters))}(x.url,E.url);return v&&!(!x.parent!=!E.parent)&&(!x.parent||V3(x.parent,E.parent))}function p0(x){return"string"==typeof x.title||null===x.title}let g3=(()=>{class x{constructor(){this.activated=null,this._activatedRoute=null,this.name=Q,this.activateEvents=new g.bkB,this.deactivateEvents=new g.bkB,this.attachEvents=new g.bkB,this.detachEvents=new g.bkB,this.parentContexts=(0,g.WQX)(g2),this.location=(0,g.WQX)(g.c1b),this.changeDetector=(0,g.WQX)(g.gRc),this.environmentInjector=(0,g.WQX)(g.uvJ),this.inputBinder=(0,g.WQX)(U3,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(v){if(v.name){const{firstChange:N,previousValue:V}=v.name;if(N)return;this.isTrackedInParentContexts(V)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(V)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(v){return this.parentContexts.getContext(v)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const v=this.parentContexts.getContext(this.name);v?.route&&(v.attachRef?this.attach(v.attachRef,v.route):this.activateWith(v.route,v.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new g.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new g.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new g.wOt(4012,!1);this.location.detach();const v=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(v.instance),v}attach(v,N){this.activated=v,this._activatedRoute=N,this.location.insert(v.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(v.instance)}deactivate(){if(this.activated){const v=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(v)}}activateWith(v,N){if(this.isActivated)throw new g.wOt(4013,!1);this._activatedRoute=v;const V=this.location,z1=v.snapshot.component,W1=this.parentContexts.getOrCreateContext(this.name).children,V1=new T3(v,W1,V.injector);this.activated=V.createComponent(z1,{index:V.length,injector:V1,environmentInjector:N??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275dir=g.FsC({type:x,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[g.OA$]})}}return x})();class T3{__ngOutletInjector(E){return new T3(this.route,this.childContexts,E)}constructor(E,v,N){this.route=E,this.childContexts=v,this.parent=N}get(E,v){return E===g6?this.route:E===g2?this.childContexts:this.parent.get(E,v)}}const U3=new g.nKC("");let I6=(()=>{class x{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(v){this.unsubscribeFromRouteData(v),this.subscribeToRouteData(v)}unsubscribeFromRouteData(v){this.outletDataSubscriptions.get(v)?.unsubscribe(),this.outletDataSubscriptions.delete(v)}subscribeToRouteData(v){const{activatedRoute:N}=v,V=(0,A.z)([N.queryParams,N.params,N.data]).pipe((0,O1.n)(([c1,z1,W1],V1)=>(W1={...c1,...z1,...W1},0===V1?(0,_.of)(W1):Promise.resolve(W1)))).subscribe(c1=>{if(!v.isActivated||!v.activatedComponentRef||v.activatedRoute!==N||null===N.component)return void this.unsubscribeFromRouteData(v);const z1=(0,g.HJs)(N.component);if(z1)for(const{templateName:W1}of z1.inputs)v.activatedComponentRef.setInput(W1,c1[W1]);else this.unsubscribeFromRouteData(v)});this.outletDataSubscriptions.set(v,V)}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function x3(x,E,v){if(v&&x.shouldReuseRoute(E.value,v.value.snapshot)){const N=v.value;N._futureSnapshot=E.value;const V=function d3(x,E,v){return E.children.map(N=>{for(const V of v.children)if(x.shouldReuseRoute(N.value,V.value.snapshot))return x3(x,N,V);return x3(x,N)})}(x,E,v);return new n4(N,V)}{if(x.shouldAttach(E.value)){const c1=x.retrieve(E.value);if(null!==c1){const z1=c1.route;return z1.value._futureSnapshot=E.value,z1.children=E.children.map(W1=>x3(x,W1)),z1}}const N=function G0(x){return new g6(new S.t(x.url),new S.t(x.params),new S.t(x.queryParams),new S.t(x.fragment),new S.t(x.data),x.outlet,x.component,x)}(E.value),V=E.children.map(c1=>x3(x,c1));return new n4(N,V)}}const l6="ngNavigationCancelingError";function G3(x,E){const{redirectTo:v,navigationBehaviorOptions:N}=p4(E)?{redirectTo:E,navigationBehaviorOptions:void 0}:E,V=he(!1,o4.Redirect);return V.url=v,V.navigationBehaviorOptions=N,V}function he(x,E){const v=new Error(`NavigationCancelingError: ${x||""}`);return v[l6]=!0,v.cancellationCode=E,v}function f3(x){return!!x&&x[l6]}let o3=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275cmp=g.VBU({type:x,selectors:[["ng-component"]],standalone:!0,features:[g.aNF],decls:1,vars:0,template:function(N,V){1&N&&g.nrm(0,"router-outlet")},dependencies:[g3],encapsulation:2})}}return x})();function s6(x){const E=x.children&&x.children.map(s6),v=E?{...x,children:E}:{...x};return!v.component&&!v.loadComponent&&(E||v.loadChildren)&&v.outlet&&v.outlet!==Q&&(v.component=o3),v}function x4(x){return x.outlet||Q}function a6(x){if(!x)return null;if(x.routeConfig?._injector)return x.routeConfig._injector;for(let E=x.parent;E;E=E.parent){const v=E.routeConfig;if(v?._loadedInjector)return v._loadedInjector;if(v?._injector)return v._injector}return null}class m3{constructor(E,v,N,V,c1){this.routeReuseStrategy=E,this.futureState=v,this.currState=N,this.forwardEvent=V,this.inputBindingEnabled=c1}activate(E){const v=this.futureState._root,N=this.currState?this.currState._root:null;this.deactivateChildRoutes(v,N,E),k4(this.futureState.root),this.activateChildRoutes(v,N,E)}deactivateChildRoutes(E,v,N){const V=P4(v);E.children.forEach(c1=>{const z1=c1.value.outlet;this.deactivateRoutes(c1,V[z1],N),delete V[z1]}),Object.values(V).forEach(c1=>{this.deactivateRouteAndItsChildren(c1,N)})}deactivateRoutes(E,v,N){const V=E.value,c1=v?v.value:null;if(V===c1)if(V.component){const z1=N.getContext(V.outlet);z1&&this.deactivateChildRoutes(E,v,z1.children)}else this.deactivateChildRoutes(E,v,N);else c1&&this.deactivateRouteAndItsChildren(v,N)}deactivateRouteAndItsChildren(E,v){E.value.component&&this.routeReuseStrategy.shouldDetach(E.value.snapshot)?this.detachAndStoreRouteSubtree(E,v):this.deactivateRouteAndOutlet(E,v)}detachAndStoreRouteSubtree(E,v){const N=v.getContext(E.value.outlet),V=N&&E.value.component?N.children:v,c1=P4(E);for(const z1 of Object.values(c1))this.deactivateRouteAndItsChildren(z1,V);if(N&&N.outlet){const z1=N.outlet.detach(),W1=N.children.onOutletDeactivated();this.routeReuseStrategy.store(E.value.snapshot,{componentRef:z1,route:E,contexts:W1})}}deactivateRouteAndOutlet(E,v){const N=v.getContext(E.value.outlet),V=N&&E.value.component?N.children:v,c1=P4(E);for(const z1 of Object.values(c1))this.deactivateRouteAndItsChildren(z1,V);N&&(N.outlet&&(N.outlet.deactivate(),N.children.onOutletDeactivated()),N.attachRef=null,N.route=null)}activateChildRoutes(E,v,N){const V=P4(v);E.children.forEach(c1=>{this.activateRoutes(c1,V[c1.value.outlet],N),this.forwardEvent(new T6(c1.value.snapshot))}),E.children.length&&this.forwardEvent(new a3(E.value.snapshot))}activateRoutes(E,v,N){const V=E.value,c1=v?v.value:null;if(k4(V),V===c1)if(V.component){const z1=N.getOrCreateContext(V.outlet);this.activateChildRoutes(E,v,z1.children)}else this.activateChildRoutes(E,v,N);else if(V.component){const z1=N.getOrCreateContext(V.outlet);if(this.routeReuseStrategy.shouldAttach(V.snapshot)){const W1=this.routeReuseStrategy.retrieve(V.snapshot);this.routeReuseStrategy.store(V.snapshot,null),z1.children.onOutletReAttached(W1.contexts),z1.attachRef=W1.componentRef,z1.route=W1.route.value,z1.outlet&&z1.outlet.attach(W1.componentRef,W1.route.value),k4(W1.route.value),this.activateChildRoutes(E,null,z1.children)}else{const W1=a6(V.snapshot);z1.attachRef=null,z1.route=V,z1.injector=W1,z1.outlet&&z1.outlet.activateWith(V,z1.injector),this.activateChildRoutes(E,null,z1.children)}}else this.activateChildRoutes(E,null,N)}}class _6{constructor(E){this.path=E,this.route=this.path[this.path.length-1]}}class w3{constructor(E,v){this.component=E,this.route=v}}function j6(x,E,v){const N=x._root;return Z4(N,E?E._root:null,v,[N.value])}function _3(x,E){const v=Symbol(),N=E.get(x,v);return N===v?"function"!=typeof x||(0,g.LfX)(x)?E.get(x):x:N}function Z4(x,E,v,N,V={canDeactivateChecks:[],canActivateChecks:[]}){const c1=P4(E);return x.children.forEach(z1=>{(function O6(x,E,v,N,V={canDeactivateChecks:[],canActivateChecks:[]}){const c1=x.value,z1=E?E.value:null,W1=v?v.getContext(x.value.outlet):null;if(z1&&c1.routeConfig===z1.routeConfig){const V1=function o6(x,E,v){if("function"==typeof v)return v(x,E);switch(v){case"pathParamsChange":return!H4(x.url,E.url);case"pathParamsOrQueryParamsChange":return!H4(x.url,E.url)||!D0(x.queryParams,E.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!V3(x,E)||!D0(x.queryParams,E.queryParams);default:return!V3(x,E)}}(z1,c1,c1.routeConfig.runGuardsAndResolvers);V1?V.canActivateChecks.push(new _6(N)):(c1.data=z1.data,c1._resolvedData=z1._resolvedData),Z4(x,E,c1.component?W1?W1.children:null:v,N,V),V1&&W1&&W1.outlet&&W1.outlet.isActivated&&V.canDeactivateChecks.push(new w3(W1.outlet.component,z1))}else z1&&B(E,W1,V),V.canActivateChecks.push(new _6(N)),Z4(x,null,c1.component?W1?W1.children:null:v,N,V)})(z1,c1[z1.value.outlet],v,N.concat([z1.value]),V),delete c1[z1.value.outlet]}),Object.entries(c1).forEach(([z1,W1])=>B(W1,v.getContext(z1),V)),V}function B(x,E,v){const N=P4(x),V=x.value;Object.entries(N).forEach(([c1,z1])=>{B(z1,V.component?E?E.children.getContext(c1):null:E,v)}),v.canDeactivateChecks.push(new w3(V.component&&E&&E.outlet&&E.outlet.isActivated?E.outlet.component:null,V))}function G(x){return"function"==typeof x}function A3(x){return x instanceof $.G||"EmptyError"===x?.name}const O4=Symbol("INITIAL_VALUE");function F6(){return(0,O1.n)(x=>(0,A.z)(x.map(E=>E.pipe((0,d0.s)(1),(0,d2.Z)(O4)))).pipe((0,G1.T)(E=>{for(const v of E)if(!0!==v){if(v===O4)return O4;if(!1===v||v instanceof T4)return v}return!0}),(0,_2.p)(E=>E!==O4),(0,d0.s)(1)))}function W8(x){return(0,p1.F)((0,X0.M)(E=>{if(p4(E))throw G3(0,E)}),(0,G1.T)(E=>!0===E))}class t8{constructor(E){this.segmentGroup=E||null}}class B6 extends Error{constructor(E){super(),this.urlTree=E}}function L6(x){return(0,Y.$)(new t8(x))}class E4{constructor(E,v){this.urlSerializer=E,this.urlTree=v}lineralizeSegments(E,v){let N=[],V=v.root;for(;;){if(N=N.concat(V.segments),0===V.numberOfChildren)return(0,_.of)(N);if(V.numberOfChildren>1||!V.children[Q])return(0,Y.$)(new g.wOt(4e3,!1));V=V.children[Q]}}applyRedirectCommands(E,v,N){const V=this.applyRedirectCreateUrlTree(v,this.urlSerializer.parse(v),E,N);if(v.startsWith("/"))throw new B6(V);return V}applyRedirectCreateUrlTree(E,v,N,V){const c1=this.createSegmentGroup(E,v.root,N,V);return new T4(c1,this.createQueryParams(v.queryParams,this.urlTree.queryParams),v.fragment)}createQueryParams(E,v){const N={};return Object.entries(E).forEach(([V,c1])=>{if("string"==typeof c1&&c1.startsWith(":")){const W1=c1.substring(1);N[V]=v[W1]}else N[V]=c1}),N}createSegmentGroup(E,v,N,V){const c1=this.createSegments(E,v.segments,N,V);let z1={};return Object.entries(v.children).forEach(([W1,V1])=>{z1[W1]=this.createSegmentGroup(E,V1,N,V)}),new Y2(c1,z1)}createSegments(E,v,N,V){return v.map(c1=>c1.path.startsWith(":")?this.findPosParam(E,c1,V):this.findOrReturn(c1,N))}findPosParam(E,v,N){const V=N[v.path.substring(1)];if(!V)throw new g.wOt(4001,!1);return V}findOrReturn(E,v){let N=0;for(const V of v){if(V.path===E.path)return v.splice(N),V;N++}return E}}const w4={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p3(x,E,v,N,V){const c1=K4(x,E,v);return c1.matched?(N=function Q4(x,E){return x.providers&&!x._injector&&(x._injector=(0,g.Ol2)(x.providers,E,`Route: ${x.path}`)),x._injector??E}(E,N),function Ce(x,E,v,N){const V=E.canMatch;if(!V||0===V.length)return(0,_.of)(!0);const c1=V.map(z1=>{const W1=_3(z1,x);return m2(function b3(x){return x&&G(x.canMatch)}(W1)?W1.canMatch(E,v):(0,g.N4e)(x,()=>W1(E,v)))});return(0,_.of)(c1).pipe(F6(),W8())}(N,E,v).pipe((0,G1.T)(z1=>!0===z1?c1:{...w4}))):(0,_.of)(c1)}function K4(x,E,v){if("**"===E.path)return function je(x){return{matched:!0,parameters:x.length>0?C4(x).parameters:{},consumedSegments:x,remainingSegments:[],positionalParamSegments:{}}}(v);if(""===E.path)return"full"===E.pathMatch&&(x.hasChildren()||v.length>0)?{...w4}:{matched:!0,consumedSegments:[],remainingSegments:v,parameters:{},positionalParamSegments:{}};const V=(E.matcher||l0)(v,x,E);if(!V)return{...w4};const c1={};Object.entries(V.posParams??{}).forEach(([W1,V1])=>{c1[W1]=V1.path});const z1=V.consumed.length>0?{...c1,...V.consumed[V.consumed.length-1].parameters}:c1;return{matched:!0,consumedSegments:V.consumed,remainingSegments:v.slice(V.consumed.length),parameters:z1,positionalParamSegments:V.posParams??{}}}function A8(x,E,v,N){return v.length>0&&function a5(x,E,v){return v.some(N=>z8(x,E,N)&&x4(N)!==Q)}(x,v,N)?{segmentGroup:new Y2(E,$e(N,new Y2(v,x.children))),slicedSegments:[]}:0===v.length&&function C8(x,E,v){return v.some(N=>z8(x,E,N))}(x,v,N)?{segmentGroup:new Y2(x.segments,n8(x,v,N,x.children)),slicedSegments:v}:{segmentGroup:new Y2(x.segments,x.children),slicedSegments:v}}function n8(x,E,v,N){const V={};for(const c1 of v)if(z8(x,E,c1)&&!N[x4(c1)]){const z1=new Y2([],{});V[x4(c1)]=z1}return{...N,...V}}function $e(x,E){const v={};v[Q]=E;for(const N of x)if(""===N.path&&x4(N)!==Q){const V=new Y2([],{});v[x4(N)]=V}return v}function z8(x,E,v){return(!(x.hasChildren()||E.length>0)||"full"!==v.pathMatch)&&""===v.path}class I8{}class i6{constructor(E,v,N,V,c1,z1,W1){this.injector=E,this.configLoader=v,this.rootComponentType=N,this.config=V,this.urlTree=c1,this.paramsInheritanceStrategy=z1,this.urlSerializer=W1,this.applyRedirects=new E4(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(E){return new g.wOt(4002,`'${E.segmentGroup}'`)}recognize(){const E=A8(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(E).pipe((0,G1.T)(v=>{const N=new M3([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Q,this.rootComponentType,null,{}),V=new n4(N,v),c1=new h8("",V),z1=function M4(x,E,v=null,N=null){return c6(u6(x),E,v,N)}(N,[],this.urlTree.queryParams,this.urlTree.fragment);return z1.queryParams=this.urlTree.queryParams,c1.url=this.urlSerializer.serialize(z1),this.inheritParamsAndData(c1._root,null),{state:c1,tree:z1}}))}match(E){return this.processSegmentGroup(this.injector,this.config,E,Q).pipe((0,Z0.W)(N=>{if(N instanceof B6)return this.urlTree=N.urlTree,this.match(N.urlTree.root);throw N instanceof t8?this.noMatchError(N):N}))}inheritParamsAndData(E,v){const N=E.value,V=A6(N,v,this.paramsInheritanceStrategy);N.params=Object.freeze(V.params),N.data=Object.freeze(V.data),E.children.forEach(c1=>this.inheritParamsAndData(c1,N))}processSegmentGroup(E,v,N,V){return 0===N.segments.length&&N.hasChildren()?this.processChildren(E,v,N):this.processSegment(E,v,N,N.segments,V,!0).pipe((0,G1.T)(c1=>c1 instanceof n4?[c1]:[]))}processChildren(E,v,N){const V=[];for(const c1 of Object.keys(N.children))"primary"===c1?V.unshift(c1):V.push(c1);return(0,p.H)(V).pipe((0,t0.H)(c1=>{const z1=N.children[c1],W1=function P6(x,E){const v=x.filter(N=>x4(N)===E);return v.push(...x.filter(N=>x4(N)!==E)),v}(v,c1);return this.processSegmentGroup(E,W1,z1,c1)}),function x2(x,E){return(0,M1.N)((0,B4.S)(x,E,arguments.length>=2,!0))}((c1,z1)=>(c1.push(...z1),c1)),(0,w0.U)(null),function E1(x,E){const v=arguments.length>=2;return N=>N.pipe(x?(0,_2.p)((V,c1)=>x(V,c1,N)):C2.D,v1(1),v?(0,w0.U)(E):(0,e2.v)(()=>new $.G))}(),(0,w2.Z)(c1=>{if(null===c1)return L6(N);const z1=E2(c1);return function v6(x){x.sort((E,v)=>E.value.outlet===Q?-1:v.value.outlet===Q?1:E.value.outlet.localeCompare(v.value.outlet))}(z1),(0,_.of)(z1)}))}processSegment(E,v,N,V,c1,z1){return(0,p.H)(v).pipe((0,t0.H)(W1=>this.processSegmentAgainstRoute(W1._injector??E,v,W1,N,V,c1,z1).pipe((0,Z0.W)(V1=>{if(V1 instanceof t8)return(0,_.of)(null);throw V1}))),(0,v2.$)(W1=>!!W1),(0,Z0.W)(W1=>{if(A3(W1))return function J8(x,E,v){return 0===E.length&&!x.children[v]}(N,V,c1)?(0,_.of)(new I8):L6(N);throw W1}))}processSegmentAgainstRoute(E,v,N,V,c1,z1,W1){return function M8(x,E,v,N){return!!(x4(x)===N||N!==Q&&z8(E,v,x))&&K4(E,x,v).matched}(N,V,c1,z1)?void 0===N.redirectTo?this.matchSegmentAgainstRoute(E,V,N,c1,z1):this.allowRedirects&&W1?this.expandSegmentAgainstRouteUsingRedirect(E,V,v,N,c1,z1):L6(V):L6(V)}expandSegmentAgainstRouteUsingRedirect(E,v,N,V,c1,z1){const{matched:W1,consumedSegments:V1,positionalParamSegments:O2,remainingSegments:J0}=K4(v,V,c1);if(!W1)return L6(v);V.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Q0=this.applyRedirects.applyRedirectCommands(V1,V.redirectTo,O2);return this.applyRedirects.lineralizeSegments(V,Q0).pipe((0,w2.Z)(D4=>this.processSegment(E,N,v,D4.concat(J0),z1,!1)))}matchSegmentAgainstRoute(E,v,N,V,c1){const z1=p3(v,N,V,E);return"**"===N.path&&(v.children={}),z1.pipe((0,O1.n)(W1=>W1.matched?this.getChildConfig(E=N._injector??E,N,V).pipe((0,O1.n)(({routes:V1})=>{const O2=N._loadedInjector??E,{consumedSegments:J0,remainingSegments:Q0,parameters:D4}=W1,He=new M3(J0,D4,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function ze(x){return x.data||{}}(N),x4(N),N.component??N._loadedComponent??null,N,function Q8(x){return x.resolve||{}}(N)),{segmentGroup:Fe,slicedSegments:ve}=A8(v,J0,Q0,V1);if(0===ve.length&&Fe.hasChildren())return this.processChildren(O2,V1,Fe).pipe((0,G1.T)(s8=>null===s8?null:new n4(He,s8)));if(0===V1.length&&0===ve.length)return(0,_.of)(new n4(He,[]));const ke=x4(N)===c1;return this.processSegment(O2,V1,Fe,ve,ke?Q:c1,!0).pipe((0,G1.T)(s8=>new n4(He,s8 instanceof n4?[s8]:[])))})):L6(v)))}getChildConfig(E,v,N){return v.children?(0,_.of)({routes:v.children,injector:E}):v.loadChildren?void 0!==v._loadedRoutes?(0,_.of)({routes:v._loadedRoutes,injector:v._loadedInjector}):function L8(x,E,v,N){const V=E.canLoad;if(void 0===V||0===V.length)return(0,_.of)(!0);const c1=V.map(z1=>{const W1=_3(z1,x);return m2(function t1(x){return x&&G(x.canLoad)}(W1)?W1.canLoad(E,v):(0,g.N4e)(x,()=>W1(E,v)))});return(0,_.of)(c1).pipe(F6(),W8())}(E,v,N).pipe((0,w2.Z)(V=>V?this.configLoader.loadChildren(E,v).pipe((0,X0.M)(c1=>{v._loadedRoutes=c1.routes,v._loadedInjector=c1.injector})):function j0(x){return(0,Y.$)(he(!1,o4.GuardRejected))}())):(0,_.of)({routes:[],injector:E})}}function Oe(x){const E=x.value.routeConfig;return E&&""===E.path}function E2(x){const E=[],v=new Set;for(const N of x){if(!Oe(N)){E.push(N);continue}const V=E.find(c1=>N.value.routeConfig===c1.value.routeConfig);void 0!==V?(V.children.push(...N.children),v.add(V)):E.push(N)}for(const N of v){const V=E2(N.children);E.push(new n4(N.value,V))}return E.filter(N=>!v.has(N))}function Z8(x){const E=x.children.map(v=>Z8(v)).flat();return[x,...E]}function y8(x){return(0,O1.n)(E=>{const v=x(E);return v?(0,p.H)(v).pipe((0,G1.T)(()=>E)):(0,_.of)(E)})}let Me=(()=>{class x{buildTitle(v){let N,V=v.root;for(;void 0!==V;)N=this.getResolvedTitleForRoute(V)??N,V=V.children.find(c1=>c1.outlet===Q);return N}getResolvedTitleForRoute(v){return v.data[t2]}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(Ve),providedIn:"root"})}}return x})(),Ve=(()=>{class x extends Me{constructor(v){super(),this.title=v}updateTitle(v){const N=this.buildTitle(v);void 0!==N&&this.title.setTitle(N)}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(K1.hE))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const z6=new g.nKC("",{providedIn:"root",factory:()=>({})}),I3=new g.nKC("");let j8=(()=>{class x{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,g.WQX)(g.Ql9)}loadComponent(v){if(this.componentLoaders.get(v))return this.componentLoaders.get(v);if(v._loadedComponent)return(0,_.of)(v._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(v);const N=m2(v.loadComponent()).pipe((0,G1.T)(F8),(0,X0.M)(c1=>{this.onLoadEndListener&&this.onLoadEndListener(v),v._loadedComponent=c1}),(0,A1.j)(()=>{this.componentLoaders.delete(v)})),V=new o2(N,()=>new S2.B).pipe($1());return this.componentLoaders.set(v,V),V}loadChildren(v,N){if(this.childrenLoaders.get(N))return this.childrenLoaders.get(N);if(N._loadedRoutes)return(0,_.of)({routes:N._loadedRoutes,injector:N._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(N);const c1=function xe(x,E,v,N){return m2(x.loadChildren()).pipe((0,G1.T)(F8),(0,w2.Z)(V=>V instanceof g.Co$||Array.isArray(V)?(0,_.of)(V):(0,p.H)(E.compileModuleAsync(V))),(0,G1.T)(V=>{N&&N(x);let c1,z1,W1=!1;return Array.isArray(V)?(z1=V,!0):(c1=V.create(v).injector,z1=c1.get(I3,[],{optional:!0,self:!0}).flat()),{routes:z1.map(s6),injector:c1}}))}(N,this.compiler,v,this.onLoadEndListener).pipe((0,A1.j)(()=>{this.childrenLoaders.delete(N)})),z1=new o2(c1,()=>new S2.B).pipe($1());return this.childrenLoaders.set(N,z1),z1}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function F8(x){return function o5(x){return x&&"object"==typeof x&&"default"in x}(x)?x.default:x}let r6=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(l8),providedIn:"root"})}}return x})(),l8=(()=>{class x{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,N){return v}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const k6=new g.nKC(""),w=new g.nKC("");function q(x,E,v){const N=x.get(w),V=x.get(c2.qQ);return x.get(g.SKi).runOutsideAngular(()=>{if(!V.startViewTransition||N.skipNextTransition)return N.skipNextTransition=!1,new Promise(O2=>setTimeout(O2));let c1;const z1=new Promise(O2=>{c1=O2}),W1=V.startViewTransition(()=>(c1(),function R(x){return new Promise(E=>{(0,g.mal)(E,{injector:x})})}(x))),{onViewTransitionCreated:V1}=N;return V1&&(0,g.N4e)(x,()=>V1({transition:W1,from:E,to:v})),z1})}let U=(()=>{class x{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new S2.B,this.transitionAbortSubject=new S2.B,this.configLoader=(0,g.WQX)(j8),this.environmentInjector=(0,g.WQX)(g.uvJ),this.urlSerializer=(0,g.WQX)($4),this.rootContexts=(0,g.WQX)(g2),this.location=(0,g.WQX)(c2.aZ),this.inputBindingEnabled=null!==(0,g.WQX)(U3,{optional:!0}),this.titleStrategy=(0,g.WQX)(Me),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,g.WQX)(r6),this.createViewTransition=(0,g.WQX)(k6,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,_.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=V=>this.events.next(new H2(V)),this.configLoader.onLoadStartListener=V=>this.events.next(new a0(V))}complete(){this.transitions?.complete()}handleNavigationRequest(v){const N=++this.navigationId;this.transitions?.next({...this.transitions.value,...v,id:N})}setupNavigations(v,N,V){return this.transitions=new S.t({id:0,currentUrlTree:N,currentRawUrl:N,extractedUrl:this.urlHandlingStrategy.extract(N),urlAfterRedirects:this.urlHandlingStrategy.extract(N),rawUrl:N,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:X2,restoredState:null,currentSnapshot:V.snapshot,targetSnapshot:null,currentRouterState:V,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,_2.p)(c1=>0!==c1.id),(0,G1.T)(c1=>({...c1,extractedUrl:this.urlHandlingStrategy.extract(c1.rawUrl)})),(0,O1.n)(c1=>{let z1=!1,W1=!1;return(0,_.of)(c1).pipe((0,O1.n)(V1=>{if(this.navigationId>c1.id)return this.cancelNavigationTransition(c1,"",o4.SupersededByNewNavigation),h1.w;this.currentTransition=c1,this.currentNavigation={id:V1.id,initialUrl:V1.rawUrl,extractedUrl:V1.extractedUrl,trigger:V1.source,extras:V1.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const O2=!v.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!O2&&"reload"!==(V1.extras.onSameUrlNavigation??v.onSameUrlNavigation)){const Q0="";return this.events.next(new A0(V1.id,this.urlSerializer.serialize(V1.rawUrl),Q0,v4.IgnoredSameUrlNavigation)),V1.resolve(null),h1.w}if(this.urlHandlingStrategy.shouldProcessUrl(V1.rawUrl))return(0,_.of)(V1).pipe((0,O1.n)(Q0=>{const D4=this.transitions?.getValue();return this.events.next(new F0(Q0.id,this.urlSerializer.serialize(Q0.extractedUrl),Q0.source,Q0.restoredState)),D4!==this.transitions?.getValue()?h1.w:Promise.resolve(Q0)}),function x8(x,E,v,N,V,c1){return(0,w2.Z)(z1=>function A5(x,E,v,N,V,c1,z1="emptyOnly"){return new i6(x,E,v,N,V,z1,c1).recognize()}(x,E,v,N,z1.extractedUrl,V,c1).pipe((0,G1.T)(({state:W1,tree:V1})=>({...z1,targetSnapshot:W1,urlAfterRedirects:V1}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,v.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,X0.M)(Q0=>{c1.targetSnapshot=Q0.targetSnapshot,c1.urlAfterRedirects=Q0.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Q0.urlAfterRedirects};const D4=new W4(Q0.id,this.urlSerializer.serialize(Q0.extractedUrl),this.urlSerializer.serialize(Q0.urlAfterRedirects),Q0.targetSnapshot);this.events.next(D4)}));if(O2&&this.urlHandlingStrategy.shouldProcessUrl(V1.currentRawUrl)){const{id:Q0,extractedUrl:D4,source:He,restoredState:Fe,extras:ve}=V1,ke=new F0(Q0,this.urlSerializer.serialize(D4),He,Fe);this.events.next(ke);const s8=n6(this.rootComponentType).snapshot;return this.currentTransition=c1={...V1,targetSnapshot:s8,urlAfterRedirects:D4,extras:{...ve,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=D4,(0,_.of)(c1)}{const Q0="";return this.events.next(new A0(V1.id,this.urlSerializer.serialize(V1.extractedUrl),Q0,v4.IgnoredByUrlHandlingStrategy)),V1.resolve(null),h1.w}}),(0,X0.M)(V1=>{const O2=new d4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot);this.events.next(O2)}),(0,G1.T)(V1=>(this.currentTransition=c1={...V1,guards:j6(V1.targetSnapshot,V1.currentSnapshot,this.rootContexts)},c1)),function h4(x,E){return(0,w2.Z)(v=>{const{targetSnapshot:N,currentSnapshot:V,guards:{canActivateChecks:c1,canDeactivateChecks:z1}}=v;return 0===z1.length&&0===c1.length?(0,_.of)({...v,guardsResult:!0}):function ge(x,E,v,N){return(0,p.H)(x).pipe((0,w2.Z)(V=>function _8(x,E,v,N,V){const c1=E&&E.routeConfig?E.routeConfig.canDeactivate:null;if(!c1||0===c1.length)return(0,_.of)(!0);const z1=c1.map(W1=>{const V1=a6(E)??V,O2=_3(W1,V1);return m2(function v0(x){return x&&G(x.canDeactivate)}(O2)?O2.canDeactivate(x,E,v,N):(0,g.N4e)(V1,()=>O2(x,E,v,N))).pipe((0,v2.$)())});return(0,_.of)(z1).pipe(F6())}(V.component,V.route,v,E,N)),(0,v2.$)(V=>!0!==V,!0))}(z1,N,V,x).pipe((0,w2.Z)(W1=>W1&&function D(x){return"boolean"==typeof x}(W1)?function _e(x,E,v,N){return(0,p.H)(E).pipe((0,t0.H)(V=>(0,Z.x)(function Ie(x,E){return null!==x&&E&&E(new p8(x)),(0,_.of)(!0)}(V.route.parent,N),function i4(x,E){return null!==x&&E&&E(new h6(x)),(0,_.of)(!0)}(V.route,N),function Le(x,E,v){const N=E[E.length-1],c1=E.slice(0,E.length-1).reverse().map(z1=>function $6(x){const E=x.routeConfig?x.routeConfig.canActivateChild:null;return E&&0!==E.length?{node:x,guards:E}:null}(z1)).filter(z1=>null!==z1).map(z1=>(0,K.v)(()=>{const W1=z1.guards.map(V1=>{const O2=a6(z1.node)??v,J0=_3(V1,O2);return m2(function V2(x){return x&&G(x.canActivateChild)}(J0)?J0.canActivateChild(N,x):(0,g.N4e)(O2,()=>J0(N,x))).pipe((0,v2.$)())});return(0,_.of)(W1).pipe(F6())}));return(0,_.of)(c1).pipe(F6())}(x,V.path,v),function Pe(x,E,v){const N=E.routeConfig?E.routeConfig.canActivate:null;if(!N||0===N.length)return(0,_.of)(!0);const V=N.map(c1=>(0,K.v)(()=>{const z1=a6(E)??v,W1=_3(c1,z1);return m2(function w1(x){return x&&G(x.canActivate)}(W1)?W1.canActivate(E,x):(0,g.N4e)(z1,()=>W1(E,x))).pipe((0,v2.$)())}));return(0,_.of)(V).pipe(F6())}(x,V.route,v))),(0,v2.$)(V=>!0!==V,!0))}(N,c1,x,E):(0,_.of)(W1)),(0,G1.T)(W1=>({...v,guardsResult:W1})))})}(this.environmentInjector,V1=>this.events.next(V1)),(0,X0.M)(V1=>{if(c1.guardsResult=V1.guardsResult,p4(V1.guardsResult))throw G3(0,V1.guardsResult);const O2=new c4(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects),V1.targetSnapshot,!!V1.guardsResult);this.events.next(O2)}),(0,_2.p)(V1=>!!V1.guardsResult||(this.cancelNavigationTransition(V1,"",o4.GuardRejected),!1)),y8(V1=>{if(V1.guards.canActivateChecks.length)return(0,_.of)(V1).pipe((0,X0.M)(O2=>{const J0=new I4(O2.id,this.urlSerializer.serialize(O2.extractedUrl),this.urlSerializer.serialize(O2.urlAfterRedirects),O2.targetSnapshot);this.events.next(J0)}),(0,O1.n)(O2=>{let J0=!1;return(0,_.of)(O2).pipe(function Be(x,E){return(0,w2.Z)(v=>{const{targetSnapshot:N,guards:{canActivateChecks:V}}=v;if(!V.length)return(0,_.of)(v);const c1=new Set(V.map(V1=>V1.route)),z1=new Set;for(const V1 of c1)if(!z1.has(V1))for(const O2 of Z8(V1))z1.add(O2);let W1=0;return(0,p.H)(z1).pipe((0,t0.H)(V1=>c1.has(V1)?function b8(x,E,v,N){const V=x.routeConfig,c1=x._resolve;return void 0!==V?.title&&!p0(V)&&(c1[t2]=V.title),function Y3(x,E,v,N){const V=K2(x);if(0===V.length)return(0,_.of)({});const c1={};return(0,p.H)(V).pipe((0,w2.Z)(z1=>function U6(x,E,v,N){const V=a6(E)??N,c1=_3(x,V);return m2(c1.resolve?c1.resolve(E,v):(0,g.N4e)(V,()=>c1(E,v)))}(x[z1],E,v,N).pipe((0,v2.$)(),(0,X0.M)(W1=>{c1[z1]=W1}))),v1(1),(0,j1.u)(c1),(0,Z0.W)(z1=>A3(z1)?h1.w:(0,Y.$)(z1)))}(c1,x,E,N).pipe((0,G1.T)(z1=>(x._resolvedData=z1,x.data=A6(x,x.parent,v).resolve,null)))}(V1,N,x,E):(V1.data=A6(V1,V1.parent,x).resolve,(0,_.of)(void 0))),(0,X0.M)(()=>W1++),v1(1),(0,w2.Z)(V1=>W1===z1.size?(0,_.of)(v):h1.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,X0.M)({next:()=>J0=!0,complete:()=>{J0||this.cancelNavigationTransition(O2,"",o4.NoDataFromResolver)}}))}),(0,X0.M)(O2=>{const J0=new U4(O2.id,this.urlSerializer.serialize(O2.extractedUrl),this.urlSerializer.serialize(O2.urlAfterRedirects),O2.targetSnapshot);this.events.next(J0)}))}),y8(V1=>{const O2=J0=>{const Q0=[];J0.routeConfig?.loadComponent&&!J0.routeConfig._loadedComponent&&Q0.push(this.configLoader.loadComponent(J0.routeConfig).pipe((0,X0.M)(D4=>{J0.component=D4}),(0,G1.T)(()=>{})));for(const D4 of J0.children)Q0.push(...O2(D4));return Q0};return(0,A.z)(O2(V1.targetSnapshot.root)).pipe((0,w0.U)(null),(0,d0.s)(1))}),y8(()=>this.afterPreactivation()),(0,O1.n)(()=>{const{currentSnapshot:V1,targetSnapshot:O2}=c1,J0=this.createViewTransition?.(this.environmentInjector,V1.root,O2.root);return J0?(0,p.H)(J0).pipe((0,G1.T)(()=>c1)):(0,_.of)(c1)}),(0,G1.T)(V1=>{const O2=function Q6(x,E,v){const N=x3(x,E._root,v?v._root:void 0);return new D3(N,E)}(v.routeReuseStrategy,V1.targetSnapshot,V1.currentRouterState);return this.currentTransition=c1={...V1,targetRouterState:O2},this.currentNavigation.targetRouterState=O2,c1}),(0,X0.M)(()=>{this.events.next(new t6)}),((x,E,v,N)=>(0,G1.T)(V=>(new m3(E,V.targetRouterState,V.currentRouterState,v,N).activate(x),V)))(this.rootContexts,v.routeReuseStrategy,V1=>this.events.next(V1),this.inputBindingEnabled),(0,d0.s)(1),(0,X0.M)({next:V1=>{z1=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new P0(V1.id,this.urlSerializer.serialize(V1.extractedUrl),this.urlSerializer.serialize(V1.urlAfterRedirects))),this.titleStrategy?.updateTitle(V1.targetRouterState.snapshot),V1.resolve(!0)},complete:()=>{z1=!0}}),(0,H1.Q)(this.transitionAbortSubject.pipe((0,X0.M)(V1=>{throw V1}))),(0,A1.j)(()=>{!z1&&!W1&&this.cancelNavigationTransition(c1,"",o4.SupersededByNewNavigation),this.currentTransition?.id===c1.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Z0.W)(V1=>{if(W1=!0,f3(V1))this.events.next(new R0(c1.id,this.urlSerializer.serialize(c1.extractedUrl),V1.message,V1.cancellationCode)),function H3(x){return f3(x)&&p4(x.url)}(V1)?this.events.next(new b0(V1.url)):c1.resolve(!1);else{this.events.next(new A4(c1.id,this.urlSerializer.serialize(c1.extractedUrl),V1,c1.targetSnapshot??void 0));try{c1.resolve(v.errorHandler(V1))}catch(O2){this.options.resolveNavigationPromiseOnError?c1.resolve(!1):c1.reject(O2)}}return h1.w}))}))}cancelNavigationTransition(v,N,V){const c1=new R0(v.id,this.urlSerializer.serialize(v.extractedUrl),N,V);this.events.next(c1),v.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();function L1(x){return x!==X2}let X1=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(q2),providedIn:"root"})}}return x})();class a2{shouldDetach(E){return!1}store(E,v){}shouldAttach(E){return!1}retrieve(E){return null}shouldReuseRoute(E,v){return E.routeConfig===v.routeConfig}}let q2=(()=>{class x extends a2{static{this.\u0275fac=(()=>{let v;return function(V){return(v||(v=g.xGo(x)))(V||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),g4=(()=>{class x{static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:()=>(0,g.WQX)(l4),providedIn:"root"})}}return x})(),l4=(()=>{class x extends g4{constructor(){super(...arguments),this.location=(0,g.WQX)(c2.aZ),this.urlSerializer=(0,g.WQX)($4),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,g.WQX)(r6),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new T4,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=n6(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(v){return this.location.subscribe(N=>{"popstate"===N.type&&v(N.url,N.state)})}handleRouterEvent(v,N){if(v instanceof F0)this.stateMemento=this.createStateMemento();else if(v instanceof A0)this.rawUrlTree=N.initialUrl;else if(v instanceof W4){if("eager"===this.urlUpdateStrategy&&!N.extras.skipLocationChange){const V=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl);this.setBrowserUrl(V,N)}}else v instanceof t6?(this.currentUrlTree=N.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl),this.routerState=N.targetRouterState,"deferred"===this.urlUpdateStrategy&&(N.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,N))):v instanceof R0&&(v.code===o4.GuardRejected||v.code===o4.NoDataFromResolver)?this.restoreHistory(N):v instanceof A4?this.restoreHistory(N,!0):v instanceof P0&&(this.lastSuccessfulId=v.id,this.currentPageId=this.browserPageId)}setBrowserUrl(v,N){const V=this.urlSerializer.serialize(v);if(this.location.isCurrentPathEqualTo(V)||N.extras.replaceUrl){const z1={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId)};this.location.replaceState(V,"",z1)}else{const c1={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId+1)};this.location.go(V,"",c1)}}restoreHistory(v,N=!1){if("computed"===this.canceledNavigationResolution){const c1=this.currentPageId-this.browserPageId;0!==c1?this.location.historyGo(c1):this.currentUrlTree===v.finalUrl&&0===c1&&(this.resetState(v),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(N&&this.resetState(v),this.resetUrlToCurrentUrlTree())}resetState(v){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,v.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(v,N){return"computed"===this.canceledNavigationResolution?{navigationId:v,\u0275routerPageId:N}:{navigationId:v}}static{this.\u0275fac=(()=>{let v;return function(V){return(v||(v=g.xGo(x)))(V||x)}})()}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();var P=function(x){return x[x.COMPLETE=0]="COMPLETE",x[x.FAILED=1]="FAILED",x[x.REDIRECTING=2]="REDIRECTING",x}(P||{});function X(x,E){x.events.pipe((0,_2.p)(v=>v instanceof P0||v instanceof R0||v instanceof A4||v instanceof A0),(0,G1.T)(v=>v instanceof P0||v instanceof A0?P.COMPLETE:v instanceof R0&&(v.code===o4.Redirect||v.code===o4.SupersededByNewNavigation)?P.REDIRECTING:P.FAILED),(0,_2.p)(v=>v!==P.REDIRECTING),(0,d0.s)(1)).subscribe(()=>{E()})}function J(x){throw x}const n1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_1={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let S1=(()=>{class x{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,g.WQX)(g.H3F),this.stateManager=(0,g.WQX)(g4),this.options=(0,g.WQX)(z6,{optional:!0})||{},this.pendingTasks=(0,g.WQX)(g.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,g.WQX)(U),this.urlSerializer=(0,g.WQX)($4),this.location=(0,g.WQX)(c2.aZ),this.urlHandlingStrategy=(0,g.WQX)(r6),this._events=new S2.B,this.errorHandler=this.options.errorHandler||J,this.navigated=!1,this.routeReuseStrategy=(0,g.WQX)(X1),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,g.WQX)(I3,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,g.WQX)(U3,{optional:!0}),this.eventsSubscription=new r1.yU,this.isNgZoneEnabled=(0,g.WQX)(g.SKi)instanceof g.SKi&&g.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:v=>{this.console.warn(v)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const v=this.navigationTransitions.events.subscribe(N=>{try{const V=this.navigationTransitions.currentTransition,c1=this.navigationTransitions.currentNavigation;if(null!==V&&null!==c1)if(this.stateManager.handleRouterEvent(N,c1),N instanceof R0&&N.code!==o4.Redirect&&N.code!==o4.SupersededByNewNavigation)this.navigated=!0;else if(N instanceof P0)this.navigated=!0;else if(N instanceof b0){const z1=this.urlHandlingStrategy.merge(N.url,V.currentRawUrl),W1={info:V.extras.info,skipLocationChange:V.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||L1(V.source)};this.scheduleNavigation(z1,X2,null,W1,{resolve:V.resolve,reject:V.reject,promise:V.promise})}(function U1(x){return!(x instanceof t6||x instanceof b0)})(N)&&this._events.next(N)}catch(V){this.navigationTransitions.transitionAbortSubject.next(V)}});this.eventsSubscription.add(v)}resetRootComponentType(v){this.routerState.root.component=v,this.navigationTransitions.rootComponentType=v}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),X2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((v,N)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(v,"popstate",N)},0)})}navigateToSyncWithBrowser(v,N,V){const c1={replaceUrl:!0},z1=V?.navigationId?V:null;if(V){const V1={...V};delete V1.navigationId,delete V1.\u0275routerPageId,0!==Object.keys(V1).length&&(c1.state=V1)}const W1=this.parseUrl(v);this.scheduleNavigation(W1,N,z1,c1)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(v){this.config=v.map(s6),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(v,N={}){const{relativeTo:V,queryParams:c1,fragment:z1,queryParamsHandling:W1,preserveFragment:V1}=N,O2=V1?this.currentUrlTree.fragment:z1;let Q0,J0=null;switch(W1){case"merge":J0={...this.currentUrlTree.queryParams,...c1};break;case"preserve":J0=this.currentUrlTree.queryParams;break;default:J0=c1||null}null!==J0&&(J0=this.removeEmptyProps(J0));try{Q0=u6(V?V.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof v[0]||!v[0].startsWith("/"))&&(v=[]),Q0=this.currentUrlTree.root}return c6(Q0,v,J0,O2??null)}navigateByUrl(v,N={skipLocationChange:!1}){const V=p4(v)?v:this.parseUrl(v),c1=this.urlHandlingStrategy.merge(V,this.rawUrlTree);return this.scheduleNavigation(c1,X2,null,N)}navigate(v,N={skipLocationChange:!1}){return function k1(x){for(let E=0;E(null!=c1&&(N[V]=c1),N),{})}scheduleNavigation(v,N,V,c1,z1){if(this.disposed)return Promise.resolve(!1);let W1,V1,O2;z1?(W1=z1.resolve,V1=z1.reject,O2=z1.promise):O2=new Promise((Q0,D4)=>{W1=Q0,V1=D4});const J0=this.pendingTasks.add();return X(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(J0))}),this.navigationTransitions.handleNavigationRequest({source:N,restoredState:V,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:v,extras:c1,resolve:W1,reject:V1,promise:O2,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),O2.catch(Q0=>Promise.reject(Q0))}static{this.\u0275fac=function(N){return new(N||x)}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})(),y2=(()=>{class x{constructor(v,N,V,c1,z1,W1){this.router=v,this.route=N,this.tabIndexAttribute=V,this.renderer=c1,this.el=z1,this.locationStrategy=W1,this.href=null,this.commands=null,this.onChanges=new S2.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const V1=z1.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===V1||"area"===V1,this.isAnchorElement?this.subscription=v.events.subscribe(O2=>{O2 instanceof P0&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(v){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",v)}ngOnChanges(v){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(v){null!=v?(this.commands=Array.isArray(v)?v:[v],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(v,N,V,c1,z1){const W1=this.urlTree;return!!(null===W1||this.isAnchorElement&&(0!==v||N||V||c1||z1||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(W1,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const v=this.urlTree;this.href=null!==v&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(v)):null;const N=null===this.href?null:(0,g.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",N)}applyAttributeValue(v,N){const V=this.renderer,c1=this.el.nativeElement;null!==N?V.setAttribute(c1,v,N):V.removeAttribute(c1,v)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(N){return new(N||x)(g.rXU(S1),g.rXU(g6),g.kS0("tabindex"),g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(c2.hb))}}static{this.\u0275dir=g.FsC({type:x,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(N,V){1&N&&g.bIt("click",function(z1){return V.onClick(z1.button,z1.ctrlKey,z1.shiftKey,z1.altKey,z1.metaKey)}),2&N&&g.BMQ("target",V.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[g.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",g.L39],skipLocationChange:[g.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",g.L39],replaceUrl:[g.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",g.L39],routerLink:"routerLink"},standalone:!0,features:[g.GFd,g.OA$]})}}return x})();class g0{}let b4=(()=>{class x{constructor(v,N,V,c1,z1){this.router=v,this.injector=V,this.preloadingStrategy=c1,this.loader=z1}setUpPreloading(){this.subscription=this.router.events.pipe((0,_2.p)(v=>v instanceof P0),(0,t0.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(v,N){const V=[];for(const c1 of N){c1.providers&&!c1._injector&&(c1._injector=(0,g.Ol2)(c1.providers,v,`Route: ${c1.path}`));const z1=c1._injector??v,W1=c1._loadedInjector??z1;(c1.loadChildren&&!c1._loadedRoutes&&void 0===c1.canLoad||c1.loadComponent&&!c1._loadedComponent)&&V.push(this.preloadConfig(z1,c1)),(c1.children||c1._loadedRoutes)&&V.push(this.processRoutes(W1,c1.children??c1._loadedRoutes))}return(0,p.H)(V).pipe((0,P1.U)())}preloadConfig(v,N){return this.preloadingStrategy.preload(N,()=>{let V;V=N.loadChildren&&void 0===N.canLoad?this.loader.loadChildren(v,N):(0,_.of)(null);const c1=V.pipe((0,w2.Z)(z1=>null===z1?(0,_.of)(void 0):(N._loadedRoutes=z1.routes,N._loadedInjector=z1.injector,this.processRoutes(z1.injector??v,z1.routes))));if(N.loadComponent&&!N._loadedComponent){const z1=this.loader.loadComponent(N);return(0,p.H)([c1,z1]).pipe((0,P1.U)())}return c1})}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(S1),g.KVO(g.Ql9),g.KVO(g.uvJ),g.KVO(g0),g.KVO(j8))}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}}return x})();const E0=new g.nKC("");let n0=(()=>{class x{constructor(v,N,V,c1,z1={}){this.urlSerializer=v,this.transitions=N,this.viewportScroller=V,this.zone=c1,this.options=z1,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,g.WQX)(g.uvJ),z1.scrollPositionRestoration||="disabled",z1.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof F0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=v.navigationTrigger,this.restoredId=v.restoredState?v.restoredState.navigationId:0):v instanceof P0?(this.lastId=v.id,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.urlAfterRedirects).fragment)):v instanceof A0&&v.code===v4.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(v,this.urlSerializer.parse(v.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(v=>{v instanceof R8&&(v.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(v.position):v.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(v.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(v,N){var V=this;this.zone.runOutsideAngular((0,m.A)(function*(){yield new Promise(c1=>{setTimeout(()=>{c1()}),(0,g.mal)(()=>{c1()},{injector:V.environmentInjector})}),V.zone.run(()=>{V.transitions.events.next(new R8(v,"popstate"===V.lastSource?V.store[V.restoredId]:null,N))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(N){g.QTQ()}}static{this.\u0275prov=g.jDH({token:x,factory:x.\u0275fac})}}return x})();function _4(x,E){return{\u0275kind:x,\u0275providers:E}}function $8(){const x=(0,g.WQX)(g.zZn);return E=>{const v=x.get(g.o8S);if(E!==v.components[0])return;const N=x.get(S1),V=x.get(I5);1===x.get(h0)&&N.initialNavigation(),x.get(Ue,null,g.$GK.Optional)?.setUpPreloading(),x.get(E0,null,g.$GK.Optional)?.init(),N.resetRootComponentType(v.componentTypes[0]),V.closed||(V.next(),V.complete(),V.unsubscribe())}}const I5=new g.nKC("",{factory:()=>new S2.B}),h0=new g.nKC("",{providedIn:"root",factory:()=>1}),Ue=new g.nKC("");function be(x){return _4(0,[{provide:Ue,useExisting:b4},{provide:g0,useExisting:x}])}function i5(x){return _4(9,[{provide:k6,useValue:q},{provide:w,useValue:{skipNextTransition:!!x?.skipInitialTransition,...x}}])}const e3=new g.nKC("ROUTER_FORROOT_GUARD"),A2=[c2.aZ,{provide:$4,useClass:L0},S1,g2,{provide:g6,useFactory:function z2(x){return x.routerState.root},deps:[S1]},j8,[]];let O8=(()=>{class x{constructor(v){}static forRoot(v,N){return{ngModule:x,providers:[A2,[],{provide:I3,multi:!0,useValue:v},{provide:e3,useFactory:W3,deps:[[S1,new g.Xx1,new g.kdw]]},{provide:z6,useValue:N||{}},N?.useHash?{provide:c2.hb,useClass:c2.fw}:{provide:c2.hb,useClass:c2.Sm},{provide:E0,useFactory:()=>{const x=(0,g.WQX)(c2.Xr),E=(0,g.WQX)(g.SKi),v=(0,g.WQX)(z6),N=(0,g.WQX)(U),V=(0,g.WQX)($4);return v.scrollOffset&&x.setOffset(v.scrollOffset),new n0(V,N,x,E,v)}},N?.preloadingStrategy?be(N.preloadingStrategy).\u0275providers:[],N?.initialNavigation?k7(N):[],N?.bindToComponentInputs?_4(8,[I6,{provide:U3,useExisting:I6}]).\u0275providers:[],N?.enableViewTransitions?i5().\u0275providers:[],[{provide:r5,useFactory:$8},{provide:g.iLQ,multi:!0,useExisting:r5}]]}}static forChild(v){return{ngModule:x,providers:[{provide:I3,multi:!0,useValue:v}]}}static{this.\u0275fac=function(N){return new(N||x)(g.KVO(e3,8))}}static{this.\u0275mod=g.$C({type:x})}static{this.\u0275inj=g.G2t({})}}return x})();function W3(x){return"guarded"}function k7(x){return["disabled"===x.initialNavigation?_4(3,[{provide:g.hnV,multi:!0,useFactory:()=>{const E=(0,g.WQX)(S1);return()=>{E.setUpLocationChangeListener()}}},{provide:h0,useValue:2}]).\u0275providers:[],"enabledBlocking"===x.initialNavigation?_4(2,[{provide:h0,useValue:0},{provide:g.hnV,multi:!0,deps:[g.zZn],useFactory:E=>{const v=E.get(c2.hj,Promise.resolve());return()=>v.then(()=>new Promise(N=>{const V=E.get(S1),c1=E.get(I5);X(V,()=>{N(!0)}),E.get(U).afterPreactivation=()=>(N(!0),c1.closed?(0,_.of)(void 0):c1),V.initialNavigation()}))}}]).\u0275providers:[]]}const r5=new g.nKC("")},60:(y1,d1,y)=>{"use strict";y.d(d1,{aY:()=>U,d0:()=>a2,VA:()=>q2,dX:()=>l4});var m=y(4438);function g(P,X,J){return(X=function $(P){var X=function A(P,X){if("object"!=typeof P||!P)return P;var J=P[Symbol.toPrimitive];if(void 0!==J){var n1=J.call(P,X||"default");if("object"!=typeof n1)return n1;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===X?String:Number)(P)}(P,"string");return"symbol"==typeof X?X:X+""}(X))in P?Object.defineProperty(P,X,{value:J,enumerable:!0,configurable:!0,writable:!0}):P[X]=J,P}function p(P,X){var J=Object.keys(P);if(Object.getOwnPropertySymbols){var n1=Object.getOwnPropertySymbols(P);X&&(n1=n1.filter(function(_1){return Object.getOwnPropertyDescriptor(P,_1).enumerable})),J.push.apply(J,n1)}return J}function _(P){for(var X=1;X{};let p1={},Y={},h1=null,e1={mark:K,measure:K};try{typeof window<"u"&&(p1=window),typeof document<"u"&&(Y=document),typeof MutationObserver<"u"&&(h1=MutationObserver),typeof performance<"u"&&(e1=performance)}catch{}const{userAgent:r1=""}=p1.navigator||{},M1=p1,f1=Y,$1=h1,o2=e1,c2=!!f1.documentElement&&!!f1.head&&"function"==typeof f1.addEventListener&&"function"==typeof f1.createElement,G1=~r1.indexOf("MSIE")||~r1.indexOf("Trident/");var d2={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},w2=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],v2="classic",t0="duotone",B4=[v2,t0,"sharp","sharp-duotone"],v1=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),C2=["fak","fa-kit","fakd","fa-kit-duotone"],H1=["fak","fakd"],Q={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},s2=["fak","fa-kit","fakd","fa-kit-duotone"],D0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},y0=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],m2=[1,2,3,4,5,6,7,8,9,10],N4=m2.concat([11,12,13,14,15,16,17,18,19,20]),m4=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Q.GROUP,Q.SWAP_OPACITY,Q.PRIMARY,Q.SECONDARY].concat(m2.map(P=>"".concat(P,"x"))).concat(N4.map(P=>"w-".concat(P)));const t3="___FONT_AWESOME___",E6=16,q4="fa",c0="svg-inline--fa",f0="data-fa-i2svg",X4="data-fa-pseudo-element",T4="data-fa-pseudo-element-pending",Y2="data-prefix",n3="data-icon",y4="fontawesome-i2svg",H4="async",u0=["HTML","HEAD","STYLE","SCRIPT"],$4=(()=>{try{return!0}catch{return!1}})();function L0(P){return new Proxy(P,{get:(X,J)=>J in X?X[J]:X[v2]})}const S0=_({},d2);S0[v2]=_(_(_(_({},{"fa-duotone":"duotone"}),d2[v2]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const l3=L0(S0),T0=_({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});T0[v2]=_(_(_(_({},{duotone:"fad"}),T0[v2]),{kit:"fak"}),{"kit-duotone":"fakd"});const V4=L0(T0),s3=_({},D0);s3[v2]=_(_({},s3[v2]),{fak:"fa-kit"});const F3=L0(s3),J2=_({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});J2[v2]=_(_({},J2[v2]),{"fa-kit":"fak"}),L0(J2);const x1=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,m1="fa-layers-text",D1=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,b2=(L0(_({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),U0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},m0=["kit",...m4],t4=M1.FontAwesomeConfig||{};f1&&"function"==typeof f1.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(X=>{let[J,n1]=X;const _1=function z4(P){return""===P||"false"!==P&&("true"===P||P)}(function N3(P){var X=f1.querySelector("script["+P+"]");if(X)return X.getAttribute(P)}(J));null!=_1&&(t4[n1]=_1)});const r4={styleDefault:"solid",familyDefault:v2,cssPrefix:q4,replacementClass:c0,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};t4.familyPrefix&&(t4.cssPrefix=t4.familyPrefix);const F4=_(_({},r4),t4);F4.autoReplaceSvg||(F4.observeMutations=!1);const I2={};Object.keys(r4).forEach(P=>{Object.defineProperty(I2,P,{enumerable:!0,set:function(X){F4[P]=X,C0.forEach(J=>J(I2))},get:function(){return F4[P]}})}),Object.defineProperty(I2,"familyPrefix",{enumerable:!0,set:function(P){F4.cssPrefix=P,C0.forEach(X=>X(I2))},get:function(){return F4.cssPrefix}}),M1.FontAwesomeConfig=I2;const C0=[],p4=E6,M4={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},c6="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function R4(){let P=12,X="";for(;P-- >0;)X+=c6[62*Math.random()|0];return X}function z0(P){const X=[];for(let J=(P||[]).length>>>0;J--;)X[J]=P[J];return X}function m6(P){return P.classList?z0(P.classList):(P.getAttribute("class")||"").split(" ").filter(X=>X)}function Y4(P){return"".concat(P).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function E3(P){return Object.keys(P||{}).reduce((X,J)=>X+"".concat(J,": ").concat(P[J].trim(),";"),"")}function z3(P){return P.size!==M4.size||P.x!==M4.x||P.y!==M4.y||P.rotate!==M4.rotate||P.flipX||P.flipY}var o1=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';function b1(){const P=q4,X=c0,J=I2.cssPrefix,n1=I2.replacementClass;let _1=o1;if(J!==P||n1!==X){const S1=new RegExp("\\.".concat(P,"\\-"),"g"),k1=new RegExp("\\--".concat(P,"\\-"),"g"),U1=new RegExp("\\.".concat(X),"g");_1=_1.replace(S1,".".concat(J,"-")).replace(k1,"--".concat(J,"-")).replace(U1,".".concat(n1))}return _1}let F1=!1;function J1(){I2.autoAddCss&&!F1&&(function u6(P){if(!P||!c2)return;const X=f1.createElement("style");X.setAttribute("type","text/css"),X.innerHTML=P;const J=f1.head.childNodes;let n1=null;for(let _1=J.length-1;_1>-1;_1--){const S1=J[_1],k1=(S1.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(k1)>-1&&(n1=S1)}f1.head.insertBefore(X,n1)}(b1()),F1=!0)}var q1={mixout:()=>({dom:{css:b1,insertCss:J1}}),hooks:()=>({beforeDOMElementCreation(){J1()},beforeI2svg(){J1()}})};const u2=M1||{};u2[t3]||(u2[t3]={}),u2[t3].styles||(u2[t3].styles={}),u2[t3].hooks||(u2[t3].hooks={}),u2[t3].shims||(u2[t3].shims=[]);var h2=u2[t3];const M0=[],X2=function(){f1.removeEventListener("DOMContentLoaded",X2),P2=1,M0.map(P=>P())};let P2=!1;function F0(P){const{tag:X,attributes:J={},children:n1=[]}=P;return"string"==typeof P?Y4(P):"<".concat(X," ").concat(function C1(P){return Object.keys(P||{}).reduce((X,J)=>X+"".concat(J,'="').concat(Y4(P[J]),'" '),"").trim()}(J),">").concat(n1.map(F0).join(""),"")}function P0(P,X,J){if(P&&P[X]&&P[X][J])return{prefix:X,iconName:J,icon:P[X][J]}}c2&&(P2=(f1.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(f1.readyState),P2||f1.addEventListener("DOMContentLoaded",X2));var v4=function(X,J,n1,_1){var y2,R2,j2,S1=Object.keys(X),k1=S1.length,U1=void 0!==_1?function(X,J){return function(n1,_1,S1,k1){return X.call(J,n1,_1,S1,k1)}}(J,_1):J;for(void 0===n1?(y2=1,j2=X[S1[0]]):(y2=0,j2=n1);y2=55296&&_1<=56319&&J{const n1=P[J];return n1.icon?X[n1.iconName]=n1.icon:X[J]=n1,X},{})}function d4(P,X){let J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:n1=!1}=J,_1=W4(X);"function"!=typeof h2.hooks.addPack||n1?h2.styles[P]=_(_({},h2.styles[P]||{}),_1):h2.hooks.addPack(P,W4(X)),"fas"===P&&d4("fa",X)}const{styles:I4,shims:U4}=h2,a0=Object.keys(F3),H2=a0.reduce((P,X)=>(P[X]=Object.keys(F3[X]),P),{});let p8=null,a3={},h6={},T6={},R8={},t6={};const Q2=()=>{const P=n1=>v4(I4,(_1,S1,k1)=>(_1[k1]=v4(S1,n1,{}),_1),{});a3=P((n1,_1,S1)=>(_1[3]&&(n1[_1[3]]=S1),_1[2]&&_1[2].filter(U1=>"number"==typeof U1).forEach(U1=>{n1[U1.toString(16)]=S1}),n1)),h6=P((n1,_1,S1)=>(n1[S1]=S1,_1[2]&&_1[2].filter(U1=>"string"==typeof U1).forEach(U1=>{n1[U1]=S1}),n1)),t6=P((n1,_1,S1)=>{const k1=_1[2];return n1[S1]=S1,k1.forEach(U1=>{n1[U1]=S1}),n1});const X="far"in I4||I2.autoFetchSvg,J=v4(U4,(n1,_1)=>{const S1=_1[0];let k1=_1[1];const U1=_1[2];return"far"===k1&&!X&&(k1="fas"),"string"==typeof S1&&(n1.names[S1]={prefix:k1,iconName:U1}),"number"==typeof S1&&(n1.unicodes[S1.toString(16)]={prefix:k1,iconName:U1}),n1},{names:{},unicodes:{}});T6=J.names,R8=J.unicodes,p8=V0(I2.styleDefault,{family:I2.familyDefault})};function g2(P,X){return(a3[P]||{})[X]}function J4(P,X){return(t6[P]||{})[X]}function R6(P){return T6[P]||{prefix:null,iconName:null}}function P4(){return p8}(function B2(P){C0.push(P)})(P=>{p8=V0(P.styleDefault,{family:I2.familyDefault})}),Q2();const D3=()=>({prefix:null,iconName:null,rest:[]});function V0(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:J=v2}=X;return J!==t0||P?V4[J][P]||V4[J][l3[J][P]]||(P in h2.styles?P:null)||null:"fad"}function A6(P){return P.sort().filter((X,J,n1)=>n1.indexOf(X)===J)}function M3(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:J=!1}=X;let n1=null;const _1=y0.concat(s2),S1=A6(P.filter(g0=>_1.includes(g0))),k1=A6(P.filter(g0=>!y0.includes(g0))),U1=S1.filter(g0=>(n1=g0,!w2.includes(g0))),[y2=null]=U1,R2=function n6(P){let X=v2;const J=a0.reduce((n1,_1)=>(n1[_1]="".concat(I2.cssPrefix,"-").concat(_1),n1),{});return B4.forEach(n1=>{(P.includes(J[n1])||P.some(_1=>H2[n1].includes(_1)))&&(X=n1)}),X}(S1),j2=_(_({},function g6(P){let X=[],J=null;return P.forEach(n1=>{const _1=function y6(P,X){const J=X.split("-"),n1=J[0],_1=J.slice(1).join("-");return n1!==P||""===_1||function b0(P){return~m0.indexOf(P)}(_1)?null:_1}(I2.cssPrefix,n1);_1?J=_1:n1&&X.push(n1)}),{iconName:J,rest:X}}(k1)),{},{prefix:V0(y2,{family:R2})});return _(_(_({},j2),function k4(P){const{values:X,family:J,canonical:n1,givenPrefix:_1="",styles:S1={},config:k1={}}=P,U1=J===t0,y2=X.includes("fa-duotone")||X.includes("fad");if(!U1&&(y2||"duotone"===k1.familyDefault||("fad"===n1.prefix||"fa-duotone"===n1.prefix))&&(n1.prefix="fad"),(X.includes("fa-brands")||X.includes("fab"))&&(n1.prefix="fab"),!n1.prefix&&v3.includes(J)&&(Object.keys(S1).find(q0=>g8.includes(q0))||k1.autoFetchSvg)){const q0=v1.get(J).defaultShortPrefixId;n1.prefix=q0,n1.iconName=J4(n1.prefix,n1.iconName)||n1.iconName}return("fa"===n1.prefix||"fa"===_1)&&(n1.prefix=P4()||"fas"),n1}({values:P,family:R2,styles:I4,config:I2,canonical:j2,givenPrefix:n1})),function h8(P,X,J){let{prefix:n1,iconName:_1}=J;if(P||!n1||!_1)return{prefix:n1,iconName:_1};const S1="fa"===X?R6(_1):{},k1=J4(n1,_1);return _1=S1.iconName||k1||_1,n1=S1.prefix||n1,"far"===n1&&!I4.far&&I4.fas&&!I2.autoFetchSvg&&(n1="fas"),{prefix:n1,iconName:_1}}(J,n1,j2))}const v3=B4.filter(P=>P!==v2||P!==t0),g8=Object.keys(D0).filter(P=>P!==v2).map(P=>Object.keys(D0[P])).flat();let p0=[],g3={};const T3={},U3=Object.keys(T3);function Q6(P,X){for(var J=arguments.length,n1=new Array(J>2?J-2:0),_1=2;_1{X=k1.apply(null,[X,...n1])}),X}function x3(P){for(var X=arguments.length,J=new Array(X>1?X-1:0),n1=1;n1{S1.apply(null,J)})}function d3(){const P=arguments[0],X=Array.prototype.slice.call(arguments,1);return T3[P]?T3[P].apply(null,X):void 0}function G0(P){"fa"===P.prefix&&(P.prefix="fas");let{iconName:X}=P;const J=P.prefix||P4();if(X)return X=J4(J,X)||X,P0(l6.definitions,J,X)||P0(h2.styles,J,X)}const l6=new class V3{constructor(){this.definitions={}}add(){for(var X=arguments.length,J=new Array(X),n1=0;n1{this.definitions[S1]=_(_({},this.definitions[S1]||{}),_1[S1]),d4(S1,_1[S1]);const k1=F3[v2][S1];k1&&d4(k1,_1[S1]),Q2()})}reset(){this.definitions={}}_pullDefinitions(X,J){const n1=J.prefix&&J.iconName&&J.icon?{0:J}:J;return Object.keys(n1).map(_1=>{const{prefix:S1,iconName:k1,icon:U1}=n1[_1],y2=U1[2];X[S1]||(X[S1]={}),y2.length>0&&y2.forEach(R2=>{"string"==typeof R2&&(X[S1][R2]=U1)}),X[S1][k1]=U1}),X}},f3={noAuto:()=>{I2.autoReplaceSvg=!1,I2.observeMutations=!1,x3("noAuto")},config:I2,dom:{i2svg:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c2?(x3("beforeI2svg",P),d3("pseudoElements2svg",P),d3("i2svg",P)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X}=P;!1===I2.autoReplaceSvg&&(I2.autoReplaceSvg=!0),I2.observeMutations=!0,function e4(P){c2&&(P2?setTimeout(P,0):M0.push(P))}(()=>{o3({autoReplaceSvgRoot:X}),x3("watch",P)})}},parse:{icon:P=>{if(null===P)return null;if("object"==typeof P&&P.prefix&&P.iconName)return{prefix:P.prefix,iconName:J4(P.prefix,P.iconName)||P.iconName};if(Array.isArray(P)&&2===P.length){const X=0===P[1].indexOf("fa-")?P[1].slice(3):P[1],J=V0(P[0]);return{prefix:J,iconName:J4(J,X)||X}}if("string"==typeof P&&(P.indexOf("".concat(I2.cssPrefix,"-"))>-1||P.match(x1))){const X=M3(P.split(" "),{skipLookups:!0});return{prefix:X.prefix||P4(),iconName:J4(X.prefix,X.iconName)||X.iconName}}if("string"==typeof P){const X=P4();return{prefix:X,iconName:J4(X,P)||P}}}},library:l6,findIconDefinition:G0,toHtml:F0},o3=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:X=f1}=P;(Object.keys(h2.styles).length>0||I2.autoFetchSvg)&&c2&&I2.autoReplaceSvg&&f3.dom.i2svg({node:X})};function Q4(P,X){return Object.defineProperty(P,"abstract",{get:X}),Object.defineProperty(P,"html",{get:function(){return P.abstract.map(J=>F0(J))}}),Object.defineProperty(P,"node",{get:function(){if(!c2)return;const J=f1.createElement("div");return J.innerHTML=P.html,J.children}}),P}function k3(P){const{icons:{main:X,mask:J},prefix:n1,iconName:_1,transform:S1,symbol:k1,title:U1,maskId:y2,titleId:R2,extra:j2,watchable:g0=!1}=P,{width:q0,height:Y0}=J.found?J:X,b4=H1.includes(n1),E0=[I2.replacementClass,_1?"".concat(I2.cssPrefix,"-").concat(_1):""].filter(o0=>-1===j2.classes.indexOf(o0)).filter(o0=>""!==o0||!!o0).concat(j2.classes).join(" ");let n0={children:[],attributes:_(_({},j2.attributes),{},{"data-prefix":n1,"data-icon":_1,class:E0,role:j2.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(q0," ").concat(Y0)})};const L3=b4&&!~j2.classes.indexOf("fa-fw")?{width:"".concat(q0/Y0*16*.0625,"em")}:{};g0&&(n0.attributes[f0]=""),U1&&(n0.children.push({tag:"title",attributes:{id:n0.attributes["aria-labelledby"]||"title-".concat(R2||R4())},children:[U1]}),delete n0.attributes.title);const z2=_(_({},n0),{},{prefix:n1,iconName:_1,main:X,mask:J,maskId:y2,transform:S1,symbol:k1,styles:_(_({},L3),j2.styles)}),{children:_4,attributes:x0}=J.found&&X.found?d3("generateAbstractMask",z2)||{children:[],attributes:{}}:d3("generateAbstractIcon",z2)||{children:[],attributes:{}};return z2.children=_4,z2.attributes=x0,k1?function Z6(P){let{prefix:X,iconName:J,children:n1,attributes:_1,symbol:S1}=P;const k1=!0===S1?"".concat(X,"-").concat(I2.cssPrefix,"-").concat(J):S1;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_(_({},_1),{},{id:k1}),children:n1}]}]}(z2):function R3(P){let{children:X,main:J,mask:n1,attributes:_1,styles:S1,transform:k1}=P;if(z3(k1)&&J.found&&!n1.found){const{width:U1,height:y2}=J,R2={x:U1/y2/2,y:.5};_1.style=E3(_(_({},S1),{},{"transform-origin":"".concat(R2.x+k1.x/16,"em ").concat(R2.y+k1.y/16,"em")}))}return[{tag:"svg",attributes:_1,children:X}]}(z2)}function N0(P){const{content:X,width:J,height:n1,transform:_1,title:S1,extra:k1,watchable:U1=!1}=P,y2=_(_(_({},k1.attributes),S1?{title:S1}:{}),{},{class:k1.classes.join(" ")});U1&&(y2[f0]="");const R2=_({},k1.styles);z3(_1)&&(R2.transform=function D6(P){let{transform:X,width:J=E6,height:n1=E6,startCentered:_1=!1}=P,S1="";return S1+=_1&&G1?"translate(".concat(X.x/p4-J/2,"em, ").concat(X.y/p4-n1/2,"em) "):_1?"translate(calc(-50% + ".concat(X.x/p4,"em), calc(-50% + ").concat(X.y/p4,"em)) "):"translate(".concat(X.x/p4,"em, ").concat(X.y/p4,"em) "),S1+="scale(".concat(X.size/p4*(X.flipX?-1:1),", ").concat(X.size/p4*(X.flipY?-1:1),") "),S1+="rotate(".concat(X.rotate,"deg) "),S1}({transform:_1,startCentered:!0,width:J,height:n1}),R2["-webkit-transform"]=R2.transform);const j2=E3(R2);j2.length>0&&(y2.style=j2);const g0=[];return g0.push({tag:"span",attributes:y2,children:[X]}),S1&&g0.push({tag:"span",attributes:{class:"sr-only"},children:[S1]}),g0}const{styles:e8}=h2;function c8(P){const X=P[0],J=P[1],[n1]=P.slice(4);let _1=null;return _1=Array.isArray(n1)?{tag:"g",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.GROUP)},children:[{tag:"path",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.SECONDARY),fill:"currentColor",d:n1[0]}},{tag:"path",attributes:{class:"".concat(I2.cssPrefix,"-").concat(U0.PRIMARY),fill:"currentColor",d:n1[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n1}},{found:!0,width:X,height:J,icon:_1}}const i3={found:!1,width:512,height:512};function x4(P,X){let J=X;return"fa"===X&&null!==I2.styleDefault&&(X=P4()),new Promise((n1,_1)=>{if("fa"===J){const S1=R6(P)||{};P=S1.iconName||P,X=S1.prefix||X}if(P&&X&&e8[X]&&e8[X][P])return n1(c8(e8[X][P]));(function s6(P,X){!$4&&!I2.showMissingIcons&&P&&console.error('Icon with name "'.concat(P,'" and prefix "').concat(X,'" is missing.'))})(P,X),n1(_(_({},i3),{},{icon:I2.showMissingIcons&&P&&d3("missingIconAbstract")||{}}))})}const P6=()=>{},a6=I2.measurePerformance&&o2&&o2.mark&&o2.measure?o2:{mark:P6,measure:P6},u3='FA "6.7.2"',m3=P=>{a6.mark("".concat(u3," ").concat(P," ends")),a6.measure("".concat(u3," ").concat(P),"".concat(u3," ").concat(P," begins"),"".concat(u3," ").concat(P," ends"))};var _6={begin:P=>(a6.mark("".concat(u3," ").concat(P," begins")),()=>m3(P)),end:m3};const w3=()=>{};function j6(P){return"string"==typeof(P.getAttribute?P.getAttribute(f0):null)}function O6(P){return f1.createElementNS("http://www.w3.org/2000/svg",P)}function o6(P){return f1.createElement(P)}function B(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:J=("svg"===P.tag?O6:o6)}=X;if("string"==typeof P)return f1.createTextNode(P);const n1=J(P.tag);return Object.keys(P.attributes||[]).forEach(function(S1){n1.setAttribute(S1,P.attributes[S1])}),(P.children||[]).forEach(function(S1){n1.appendChild(B(S1,{ceFn:J}))}),n1}const D={replace:function(P){const X=P[0];if(X.parentNode)if(P[1].forEach(J=>{X.parentNode.insertBefore(B(J),X)}),null===X.getAttribute(f0)&&I2.keepOriginalSource){let J=f1.createComment(function G(P){let X=" ".concat(P.outerHTML," ");return X="".concat(X,"Font Awesome fontawesome.com "),X}(X));X.parentNode.replaceChild(J,X)}else X.remove()},nest:function(P){const X=P[0],J=P[1];if(~m6(X).indexOf(I2.replacementClass))return D.replace(P);const n1=new RegExp("".concat(I2.cssPrefix,"-.*"));if(delete J[0].attributes.id,J[0].attributes.class){const S1=J[0].attributes.class.split(" ").reduce((k1,U1)=>(U1===I2.replacementClass||U1.match(n1)?k1.toSvg.push(U1):k1.toNode.push(U1),k1),{toNode:[],toSvg:[]});J[0].attributes.class=S1.toSvg.join(" "),0===S1.toNode.length?X.removeAttribute("class"):X.setAttribute("class",S1.toNode.join(" "))}const _1=J.map(S1=>F0(S1)).join("\n");X.setAttribute(f0,""),X.innerHTML=_1}};function t1(P){P()}function w1(P,X){const J="function"==typeof X?X:w3;if(0===P.length)J();else{let n1=t1;I2.mutateApproach===H4&&(n1=M1.requestAnimationFrame||t1),n1(()=>{const _1=function Z4(){return!0===I2.autoReplaceSvg?D.replace:D[I2.autoReplaceSvg]||D.replace}(),S1=_6.begin("mutate");P.map(_1),S1(),J()})}}let V2=!1;function v0(){V2=!0}function b3(){V2=!1}let A3=null;function O4(P){if(!$1||!I2.observeMutations)return;const{treeCallback:X=w3,nodeCallback:J=w3,pseudoElementsCallback:n1=w3,observeMutationsRoot:_1=f1}=P;A3=new $1(S1=>{if(V2)return;const k1=P4();z0(S1).forEach(U1=>{if("childList"===U1.type&&U1.addedNodes.length>0&&!j6(U1.addedNodes[0])&&(I2.searchPseudoElements&&n1(U1.target),X(U1.target)),"attributes"===U1.type&&U1.target.parentNode&&I2.searchPseudoElements&&n1(U1.target.parentNode),"attributes"===U1.type&&j6(U1.target)&&~b2.indexOf(U1.attributeName))if("class"===U1.attributeName&&function $6(P){const X=P.getAttribute?P.getAttribute(Y2):null,J=P.getAttribute?P.getAttribute(n3):null;return X&&J}(U1.target)){const{prefix:y2,iconName:R2}=M3(m6(U1.target));U1.target.setAttribute(Y2,y2||k1),R2&&U1.target.setAttribute(n3,R2)}else(function _3(P){return P&&P.classList&&P.classList.contains&&P.classList.contains(I2.replacementClass)})(U1.target)&&J(U1.target)})}),c2&&A3.observe(_1,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Ie(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:J,prefix:n1,rest:_1}=function ge(P){const X=P.getAttribute("data-prefix"),J=P.getAttribute("data-icon"),n1=void 0!==P.innerText?P.innerText.trim():"";let _1=M3(m6(P));return _1.prefix||(_1.prefix=P4()),X&&J&&(_1.prefix=X,_1.iconName=J),_1.iconName&&_1.prefix||(_1.prefix&&n1.length>0&&(_1.iconName=function h3(P,X){return(h6[P]||{})[X]}(_1.prefix,P.innerText)||g2(_1.prefix,A0(P.innerText))),!_1.iconName&&I2.autoFetchSvg&&P.firstChild&&P.firstChild.nodeType===Node.TEXT_NODE&&(_1.iconName=P.firstChild.data)),_1}(P),S1=function _e(P){const X=z0(P.attributes).reduce((_1,S1)=>("class"!==_1.name&&"style"!==_1.name&&(_1[S1.name]=S1.value),_1),{}),J=P.getAttribute("title"),n1=P.getAttribute("data-fa-title-id");return I2.autoA11y&&(J?X["aria-labelledby"]="".concat(I2.replacementClass,"-title-").concat(n1||R4()):(X["aria-hidden"]="true",X.focusable="false")),X}(P),k1=Q6("parseNodeAttributes",{},P);let U1=X.styleParser?function h4(P){const X=P.getAttribute("style");let J=[];return X&&(J=X.split(";").reduce((n1,_1)=>{const S1=_1.split(":"),k1=S1[0],U1=S1.slice(1);return k1&&U1.length>0&&(n1[k1]=U1.join(":").trim()),n1},{})),J}(P):[];return _({iconName:J,title:P.getAttribute("title"),titleId:P.getAttribute("data-fa-title-id"),prefix:n1,transform:M4,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:_1,styles:U1,attributes:S1}},k1)}const{styles:Pe}=h2;function Le(P){const X="nest"===I2.autoReplaceSvg?Ie(P,{styleParser:!1}):Ie(P);return~X.extra.classes.indexOf(m1)?d3("generateLayersText",P,X):d3("generateSvgReplacementMutation",P,X)}function L8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!c2)return Promise.resolve();const J=f1.documentElement.classList,n1=j2=>J.add("".concat(y4,"-").concat(j2)),_1=j2=>J.remove("".concat(y4,"-").concat(j2)),S1=I2.autoFetchSvg?function _8(){return[...C2,...y0]}():w2.concat(Object.keys(Pe));S1.includes("fa")||S1.push("fa");const k1=[".".concat(m1,":not([").concat(f0,"])")].concat(S1.map(j2=>".".concat(j2,":not([").concat(f0,"])"))).join(", ");if(0===k1.length)return Promise.resolve();let U1=[];try{U1=z0(P.querySelectorAll(k1))}catch{}if(!(U1.length>0))return Promise.resolve();n1("pending"),_1("complete");const y2=_6.begin("onTree"),R2=U1.reduce((j2,g0)=>{try{const q0=Le(g0);q0&&j2.push(q0)}catch(q0){$4||"MissingIcon"===q0.name&&console.error(q0)}return j2},[]);return new Promise((j2,g0)=>{Promise.all(R2).then(q0=>{w1(q0,()=>{n1("active"),n1("complete"),_1("pending"),"function"==typeof X&&X(),y2(),j2()})}).catch(q0=>{y2(),g0(q0)})})}function W8(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Le(P).then(J=>{J&&w1([J],X)})}const t8=function(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:J=M4,symbol:n1=!1,mask:_1=null,maskId:S1=null,title:k1=null,titleId:U1=null,classes:y2=[],attributes:R2={},styles:j2={}}=X;if(!P)return;const{prefix:g0,iconName:q0,icon:Y0}=P;return Q4(_({type:"icon"},P),()=>(x3("beforeDOMElementCreation",{iconDefinition:P,params:X}),I2.autoA11y&&(k1?R2["aria-labelledby"]="".concat(I2.replacementClass,"-title-").concat(U1||R4()):(R2["aria-hidden"]="true",R2.focusable="false")),k3({icons:{main:c8(Y0),mask:_1?c8(_1.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g0,iconName:q0,transform:_(_({},M4),J),symbol:n1,title:k1,maskId:S1,titleId:U1,extra:{attributes:R2,styles:j2,classes:y2}})))};var B6={mixout(){return{icon:(P=t8,function(X){let J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n1=(X||{}).icon?X:G0(X||{});let{mask:_1}=J;return _1&&(_1=(_1||{}).icon?_1:G0(_1||{})),P(n1,_(_({},J),{},{mask:_1}))})};var P},hooks:()=>({mutationObserverCallbacks:P=>(P.treeCallback=L8,P.nodeCallback=W8,P)}),provides(P){P.i2svg=function(X){const{node:J=f1,callback:n1=(()=>{})}=X;return L8(J,n1)},P.generateSvgReplacementMutation=function(X,J){const{iconName:n1,title:_1,titleId:S1,prefix:k1,transform:U1,symbol:y2,mask:R2,maskId:j2,extra:g0}=J;return new Promise((q0,Y0)=>{Promise.all([x4(n1,k1),R2.iconName?x4(R2.iconName,R2.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(b4=>{let[E0,n0]=b4;q0([X,k3({icons:{main:E0,mask:n0},prefix:k1,iconName:n1,transform:U1,symbol:y2,maskId:j2,title:_1,titleId:S1,extra:g0,watchable:!0})])}).catch(Y0)})},P.generateAbstractIcon=function(X){let{children:J,attributes:n1,main:_1,transform:S1,styles:k1}=X;const U1=E3(k1);let y2;return U1.length>0&&(n1.style=U1),z3(S1)&&(y2=d3("generateAbstractTransformGrouping",{main:_1,transform:S1,containerWidth:_1.width,iconWidth:_1.width})),J.push(y2||_1.icon),{children:J,attributes:n1}}}},L6={mixout:()=>({layer(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:J=[]}=X;return Q4({type:"layer"},()=>{x3("beforeDOMElementCreation",{assembler:P,params:X});let n1=[];return P(_1=>{Array.isArray(_1)?_1.map(S1=>{n1=n1.concat(S1.abstract)}):n1=n1.concat(_1.abstract)}),[{tag:"span",attributes:{class:["".concat(I2.cssPrefix,"-layers"),...J].join(" ")},children:n1}]})}})},s5={mixout:()=>({counter(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:J=null,classes:n1=[],attributes:_1={},styles:S1={}}=X;return Q4({type:"counter",content:P},()=>(x3("beforeDOMElementCreation",{content:P,params:X}),function K6(P){const{content:X,title:J,extra:n1}=P,_1=_(_(_({},n1.attributes),J?{title:J}:{}),{},{class:n1.classes.join(" ")}),S1=E3(n1.styles);S1.length>0&&(_1.style=S1);const k1=[];return k1.push({tag:"span",attributes:_1,children:[X]}),J&&k1.push({tag:"span",attributes:{class:"sr-only"},children:[J]}),k1}({content:P.toString(),title:J,extra:{attributes:_1,styles:S1,classes:["".concat(I2.cssPrefix,"-layers-counter"),...n1]}})))}})},V6={mixout:()=>({text(P){let X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:J=M4,title:n1=null,classes:_1=[],attributes:S1={},styles:k1={}}=X;return Q4({type:"text",content:P},()=>(x3("beforeDOMElementCreation",{content:P,params:X}),N0({content:P,transform:_(_({},M4),J),title:n1,extra:{attributes:S1,styles:k1,classes:["".concat(I2.cssPrefix,"-layers-text"),..._1]}})))}}),provides(P){P.generateLayersText=function(X,J){const{title:n1,transform:_1,extra:S1}=J;let k1=null,U1=null;if(G1){const y2=parseInt(getComputedStyle(X).fontSize,10),R2=X.getBoundingClientRect();k1=R2.width/y2,U1=R2.height/y2}return I2.autoA11y&&!n1&&(S1.attributes["aria-hidden"]="true"),Promise.resolve([X,N0({content:X.innerHTML,width:k1,height:U1,transform:_1,title:n1,extra:S1,watchable:!0})])}}};const j0=new RegExp('"',"ug"),E4=[1105920,1112319],w4=_(_(_(_({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),p3=Object.keys(w4).reduce((P,X)=>(P[X.toLowerCase()]=w4[X],P),{}),K4=Object.keys(p3).reduce((P,X)=>{const J=p3[X];return P[X]=J[900]||[...Object.entries(J)][0][1],P},{});function n8(P,X){const J="".concat(T4).concat(X.replace(":","-"));return new Promise((n1,_1)=>{if(null!==P.getAttribute(J))return n1();const k1=z0(P.children).filter(q0=>q0.getAttribute(X4)===X)[0],U1=M1.getComputedStyle(P,X),y2=U1.getPropertyValue("font-family"),R2=y2.match(D1),j2=U1.getPropertyValue("font-weight"),g0=U1.getPropertyValue("content");if(k1&&!R2)return P.removeChild(k1),n1();if(R2&&"none"!==g0&&""!==g0){const q0=U1.getPropertyValue("content");let Y0=function A8(P,X){const J=P.replace(/^['"]|['"]$/g,"").toLowerCase(),n1=parseInt(X),_1=isNaN(n1)?"normal":n1;return(p3[J]||{})[_1]||K4[J]}(y2,j2);const{value:b4,isSecondary:E0}=function je(P){const X=P.replace(j0,""),J=function A4(P,X){const J=P.length;let _1,n1=P.charCodeAt(X);return n1>=55296&&n1<=56319&&J>X+1&&(_1=P.charCodeAt(X+1),_1>=56320&&_1<=57343)?1024*(n1-55296)+_1-56320+65536:n1}(X,0),n1=J>=E4[0]&&J<=E4[1],_1=2===X.length&&X[0]===X[1];return{value:A0(_1?X[0]:X),isSecondary:n1||_1}}(q0),n0=R2[0].startsWith("FontAwesome");let L3=g2(Y0,b4),z2=L3;if(n0){const _4=function n4(P){const X=R8[P],J=g2("fas",P);return X||(J?{prefix:"fas",iconName:J}:null)||{prefix:null,iconName:null}}(b4);_4.iconName&&_4.prefix&&(L3=_4.iconName,Y0=_4.prefix)}if(!L3||E0||k1&&k1.getAttribute(Y2)===Y0&&k1.getAttribute(n3)===z2)n1();else{P.setAttribute(J,z2),k1&&P.removeChild(k1);const _4=function i4(){return{iconName:null,title:null,titleId:null,prefix:null,transform:M4,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),{extra:x0}=_4;x0.attributes[X4]=X,x4(L3,Y0).then(o0=>{const q3=k3(_(_({},_4),{},{icons:{main:o0,mask:D3()},prefix:Y0,iconName:z2,extra:x0,watchable:!0})),M6=f1.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===X?P.insertBefore(M6,P.firstChild):P.appendChild(M6),M6.outerHTML=q3.map($8=>F0($8)).join("\n"),P.removeAttribute(J),n1()}).catch(_1)}}else n1()})}function $e(P){return Promise.all([n8(P,"::before"),n8(P,"::after")])}function a5(P){return!(P.parentNode===document.head||~u0.indexOf(P.tagName.toUpperCase())||P.getAttribute(X4)||P.parentNode&&"svg"===P.parentNode.tagName)}function C8(P){if(c2)return new Promise((X,J)=>{const n1=z0(P.querySelectorAll("*")).filter(a5).map($e),_1=_6.begin("searchPseudoElements");v0(),Promise.all(n1).then(()=>{_1(),b3(),X()}).catch(()=>{_1(),b3(),J()})})}let M8=!1;const I8=P=>P.toLowerCase().split(" ").reduce((J,n1)=>{const _1=n1.toLowerCase().split("-"),S1=_1[0];let k1=_1.slice(1).join("-");if(S1&&"h"===k1)return J.flipX=!0,J;if(S1&&"v"===k1)return J.flipY=!0,J;if(k1=parseFloat(k1),isNaN(k1))return J;switch(S1){case"grow":J.size=J.size+k1;break;case"shrink":J.size=J.size-k1;break;case"left":J.x=J.x-k1;break;case"right":J.x=J.x+k1;break;case"up":J.y=J.y-k1;break;case"down":J.y=J.y+k1;break;case"rotate":J.rotate=J.rotate+k1}return J},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),P8={x:0,y:0,width:"100%",height:"100%"};function i6(P){return P.attributes&&(P.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(P.attributes.fill="black"),P}function v6(P){return"g"===P.tag?P.children:[P]}!function I6(P,X){let{mixoutsTo:J}=X;p0=P,g3={},Object.keys(T3).forEach(n1=>{-1===U3.indexOf(n1)&&delete T3[n1]}),p0.forEach(n1=>{const _1=n1.mixout?n1.mixout():{};if(Object.keys(_1).forEach(S1=>{"function"==typeof _1[S1]&&(J[S1]=_1[S1]),"object"==typeof _1[S1]&&Object.keys(_1[S1]).forEach(k1=>{J[S1]||(J[S1]={}),J[S1][k1]=_1[S1][k1]})}),n1.hooks){const S1=n1.hooks();Object.keys(S1).forEach(k1=>{g3[k1]||(g3[k1]=[]),g3[k1].push(S1[k1])})}n1.provides&&n1.provides(T3)})}([q1,B6,L6,s5,V6,{hooks:()=>({mutationObserverCallbacks:P=>(P.pseudoElementsCallback=C8,P)}),provides(P){P.pseudoElements2svg=function(X){const{node:J=f1}=X;I2.searchPseudoElements&&C8(J)}}},{mixout:()=>({dom:{unwatch(){v0(),M8=!0}}}),hooks:()=>({bootstrap(){O4(Q6("mutationObserverCallbacks",{}))},noAuto(){!function F6(){A3&&A3.disconnect()}()},watch(P){const{observeMutationsRoot:X}=P;M8?b3():O4(Q6("mutationObserverCallbacks",{observeMutationsRoot:X}))}})},{mixout:()=>({parse:{transform:P=>I8(P)}}),hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-transform");return J&&(P.transform=I8(J)),P}}),provides(P){P.generateAbstractTransformGrouping=function(X){let{main:J,transform:n1,containerWidth:_1,iconWidth:S1}=X;const k1={transform:"translate(".concat(_1/2," 256)")},U1="translate(".concat(32*n1.x,", ").concat(32*n1.y,") "),y2="scale(".concat(n1.size/16*(n1.flipX?-1:1),", ").concat(n1.size/16*(n1.flipY?-1:1),") "),R2="rotate(".concat(n1.rotate," 0 0)"),q0={outer:k1,inner:{transform:"".concat(U1," ").concat(y2," ").concat(R2)},path:{transform:"translate(".concat(S1/2*-1," -256)")}};return{tag:"g",attributes:_({},q0.outer),children:[{tag:"g",attributes:_({},q0.inner),children:[{tag:J.icon.tag,children:J.icon.children,attributes:_(_({},J.icon.attributes),q0.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-mask"),n1=J?M3(J.split(" ").map(_1=>_1.trim())):D3();return n1.prefix||(n1.prefix=P4()),P.mask=n1,P.maskId=X.getAttribute("data-fa-mask-id"),P}}),provides(P){P.generateAbstractMask=function(X){let{children:J,attributes:n1,main:_1,mask:S1,maskId:k1,transform:U1}=X;const{width:y2,icon:R2}=_1,{width:j2,icon:g0}=S1,q0=function p6(P){let{transform:X,containerWidth:J,iconWidth:n1}=P;const _1={transform:"translate(".concat(J/2," 256)")},S1="translate(".concat(32*X.x,", ").concat(32*X.y,") "),k1="scale(".concat(X.size/16*(X.flipX?-1:1),", ").concat(X.size/16*(X.flipY?-1:1),") "),U1="rotate(".concat(X.rotate," 0 0)");return{outer:_1,inner:{transform:"".concat(S1," ").concat(k1," ").concat(U1)},path:{transform:"translate(".concat(n1/2*-1," -256)")}}}({transform:U1,containerWidth:j2,iconWidth:y2}),Y0={tag:"rect",attributes:_(_({},P8),{},{fill:"white"})},b4=R2.children?{children:R2.children.map(i6)}:{},E0={tag:"g",attributes:_({},q0.inner),children:[i6(_({tag:R2.tag,attributes:_(_({},R2.attributes),q0.path)},b4))]},n0={tag:"g",attributes:_({},q0.outer),children:[E0]},L3="mask-".concat(k1||R4()),z2="clip-".concat(k1||R4()),_4={tag:"mask",attributes:_(_({},P8),{},{id:L3,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Y0,n0]},x0={tag:"defs",children:[{tag:"clipPath",attributes:{id:z2},children:v6(g0)},_4]};return J.push(x0,{tag:"rect",attributes:_({fill:"currentColor","clip-path":"url(#".concat(z2,")"),mask:"url(#".concat(L3,")")},P8)}),{children:J,attributes:n1}}}},{provides(P){let X=!1;M1.matchMedia&&(X=M1.matchMedia("(prefers-reduced-motion: reduce)").matches),P.missingIconAbstract=function(){const J=[],n1={fill:"currentColor"},_1={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};J.push({tag:"path",attributes:_(_({},n1),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const S1=_(_({},_1),{},{attributeName:"opacity"}),k1={tag:"circle",attributes:_(_({},n1),{},{cx:"256",cy:"364",r:"28"}),children:[]};return X||k1.children.push({tag:"animate",attributes:_(_({},_1),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_(_({},S1),{},{values:"1;0;1;1;0;1;"})}),J.push(k1),J.push({tag:"path",attributes:_(_({},n1),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:X?[]:[{tag:"animate",attributes:_(_({},S1),{},{values:"1;0;0;0;0;1;"})}]}),X||J.push({tag:"path",attributes:_(_({},n1),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_(_({},S1),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:J}}}},{hooks:()=>({parseNodeAttributes(P,X){const J=X.getAttribute("data-fa-symbol");return P.symbol=null!==J&&(""===J||J),P}})}],{mixoutsTo:f3});const b8=f3.parse,y8=f3.icon,z6=f3.counter;var I3=y(345);const j8=["*"],F8=P=>{const X={[`fa-${P.animation}`]:null!=P.animation&&!P.animation.startsWith("spin"),"fa-spin":"spin"===P.animation||"spin-reverse"===P.animation,"fa-spin-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-spin-reverse":"spin-reverse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-pulse":"spin-pulse"===P.animation||"spin-pulse-reverse"===P.animation,"fa-fw":P.fixedWidth,"fa-border":P.border,"fa-inverse":P.inverse,"fa-layers-counter":P.counter,"fa-flip-horizontal":"horizontal"===P.flip||"both"===P.flip,"fa-flip-vertical":"vertical"===P.flip||"both"===P.flip,[`fa-${P.size}`]:null!==P.size,[`fa-rotate-${P.rotate}`]:null!==P.rotate,[`fa-pull-${P.pull}`]:null!==P.pull,[`fa-stack-${P.stackItemSize}`]:null!=P.stackItemSize};return Object.keys(X).map(J=>X[J]?J:null).filter(J=>J)};let k6=(()=>{class P{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275prov=m.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),w=(()=>{class P{constructor(){this.definitions={}}addIcons(...J){for(const n1 of J){n1.prefix in this.definitions||(this.definitions[n1.prefix]={}),this.definitions[n1.prefix][n1.iconName]=n1;for(const _1 of n1.icon[2])"string"==typeof _1&&(this.definitions[n1.prefix][_1]=n1)}}addIconPacks(...J){for(const n1 of J){const _1=Object.keys(n1).map(S1=>n1[S1]);this.addIcons(..._1)}}getIconDefinition(J,n1){return J in this.definitions&&n1 in this.definitions[J]?this.definitions[J][n1]:null}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275prov=m.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),q=(()=>{class P{constructor(){this.stackItemSize="1x"}ngOnChanges(J){if("size"in J)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')}static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275dir=m.FsC({type:P,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},standalone:!0,features:[m.OA$]})}}return P})(),R=(()=>{class P{constructor(J,n1){this.renderer=J,this.elementRef=n1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(J){"size"in J&&(null!=J.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${J.size.currentValue}`),null!=J.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${J.size.previousValue}`))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(m.sFG),m.rXU(m.aKT))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-stack"]],inputs:{size:"size"},standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:j8,decls:1,vars:0,template:function(n1,_1){1&n1&&(m.NAR(),m.SdG(0))},encapsulation:2})}}return P})(),U=(()=>{class P{set spin(J){this.animation=J?"spin":void 0}set pulse(J){this.animation=J?"spin-pulse":void 0}constructor(J,n1,_1,S1,k1){this.sanitizer=J,this.config=n1,this.iconLibrary=_1,this.stackItem=S1,this.classes=[],null!=k1&&null==S1&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(J){if(null!=this.icon||null!=this.config.fallbackIcon){if(J){const _1=this.findIconDefinition(null!=this.icon?this.icon:this.config.fallbackIcon);if(null!=_1){const S1=this.buildParams();this.renderIcon(_1,S1)}}}else(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})()}render(){this.ngOnChanges({})}findIconDefinition(J){const n1=((P,X)=>(P=>void 0!==P.prefix&&void 0!==P.iconName)(P)?P:"string"==typeof P?{prefix:X,iconName:P}:{prefix:P[0],iconName:P[1]})(J,this.config.defaultPrefix);return"icon"in n1?n1:this.iconLibrary.getIconDefinition(n1.prefix,n1.iconName)??((P=>{throw new Error(`Could not find icon with iconName=${P.iconName} and prefix=${P.prefix} in the icon library.`)})(n1),null)}buildParams(){const J={flip:this.flip,animation:this.animation,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},n1="string"==typeof this.transform?b8.transform(this.transform):this.transform;return{title:this.title,transform:n1,classes:[...F8(J),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(J,n1){const _1=y8(J,n1);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(_1.html.join("\n"))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(I3.up),m.rXU(k6),m.rXU(w),m.rXU(q,8),m.rXU(R,8))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n1,_1){2&n1&&(m.Mr5("innerHTML",_1.renderedIconHTML,m.npT),m.BMQ("title",_1.title))},inputs:{icon:"icon",title:"title",animation:"animation",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",classes:"classes",transform:"transform",a11yRole:"a11yRole"},standalone:!0,features:[m.OA$,m.aNF],decls:0,vars:0,template:function(n1,_1){},encapsulation:2})}}return P})(),a2=(()=>{class P{constructor(J,n1,_1){this.renderer=J,this.elementRef=n1,this.config=_1}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-layers"),this.fixedWidth="boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth}ngOnChanges(J){"size"in J&&(null!=J.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${J.size.currentValue}`),null!=J.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${J.size.previousValue}`))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(m.sFG),m.rXU(m.aKT),m.rXU(k6))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-layers"]],hostVars:2,hostBindings:function(n1,_1){2&n1&&m.AVh("fa-fw",_1.fixedWidth)},inputs:{size:"size",fixedWidth:"fixedWidth"},standalone:!0,features:[m.OA$,m.aNF],ngContentSelectors:j8,decls:1,vars:0,template:function(n1,_1){1&n1&&(m.NAR(),m.SdG(0))},encapsulation:2})}}return P})(),q2=(()=>{class P{constructor(J,n1){this.parent=J,this.sanitizer=n1,this.classes=[],((P,X,J)=>{if(!this.parent)throw new Error(`${this.constructor.name} should be used as child of FaLayersComponent only.`)})()}ngOnChanges(J){if(J){const n1=this.buildParams();this.updateContent(n1)}}buildParams(){const J=[];return null!=this.classes&&J.push(...this.classes),null!=this.position&&J.push(`fa-layers-${this.position}`),{title:this.title,classes:J,styles:this.styles}}updateContent(J){this.renderedHTML=this.sanitizer.bypassSecurityTrustHtml(z6(this.content||"",J).html.join(""))}static{this.\u0275fac=function(n1){return new(n1||P)(m.rXU(a2,8),m.rXU(I3.up))}}static{this.\u0275cmp=m.VBU({type:P,selectors:[["fa-layers-counter"]],hostAttrs:[1,"ng-fa-layers-counter"],hostVars:1,hostBindings:function(n1,_1){2&n1&&m.Mr5("innerHTML",_1.renderedHTML,m.npT)},inputs:{content:"content",title:"title",styles:"styles",classes:"classes",position:"position"},standalone:!0,features:[m.OA$,m.aNF],decls:0,vars:0,template:function(n1,_1){},encapsulation:2})}}return P})(),l4=(()=>{class P{static{this.\u0275fac=function(n1){return new(n1||P)}}static{this.\u0275mod=m.$C({type:P})}static{this.\u0275inj=m.G2t({})}}return P})()},5383:(y1,d1,y)=>{"use strict";y.d(d1,{IPD:()=>c7,JX9:()=>Qe,URI:()=>R_,YSf:()=>LL,Z8x:()=>f9,b6I:()=>hm,f2_:()=>bo,fLc:()=>S8,iRu:()=>uc,qIE:()=>Ya,sOt:()=>ss});const f9={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8 512 128l-.7 0-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48 0 224 28.2 0 91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM16 128c-8.8 0-16 7.2-16 16L0 352c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-224-80 0zM48 320a16 16 0 1 1 0 32 16 16 0 1 1 0-32zM544 128l0 224c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-208c0-8.8-7.2-16-16-16l-80 0zm32 208a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"]},S8={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},Ya={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},hm={prefix:"fas",iconName:"bolt-lightning",icon:[384,512,[],"e0b7","M0 256L28.5 28c2-16 15.6-28 31.8-28H228.9c15 0 27.1 12.1 27.1 27.1c0 3.2-.6 6.5-1.7 9.5L208 160H347.3c20.2 0 36.7 16.4 36.7 36.7c0 7.4-2.2 14.6-6.4 20.7l-192.2 281c-5.9 8.6-15.6 13.7-25.9 13.7h-2.9c-15.7 0-28.5-12.8-28.5-28.5c0-2.3 .3-4.6 .9-6.9L176 288H32c-17.7 0-32-14.3-32-32z"]},bo={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4l54.1 0 109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109 0-54.1c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7L352 176c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM56 432a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Qe={prefix:"fas",iconName:"file-shield",icon:[576,512,[],"e4f0","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 47-92.8 37.1c-21.3 8.5-35.2 29.1-35.2 52c0 56.6 18.9 148 94.2 208.3c-9 4.8-19.3 7.6-30.2 7.6L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zm39.1 97.7c5.7-2.3 12.1-2.3 17.8 0l120 48C570 277.4 576 286.2 576 296c0 63.3-25.9 168.8-134.8 214.2c-5.9 2.5-12.6 2.5-18.5 0C313.9 464.8 288 359.3 288 296c0-9.8 6-18.6 15.1-22.3l120-48zM527.4 312L432 273.8l0 187.8c68.2-33 91.5-99 95.4-149.7z"]},c7={prefix:"fas",iconName:"landmark",icon:[512,512,[127963],"f66f","M240.1 4.2c9.8-5.6 21.9-5.6 31.8 0l171.8 98.1L448 104l0 .9 47.9 27.4c12.6 7.2 18.8 22 15.1 36s-16.4 23.8-30.9 23.8L32 192c-14.5 0-27.2-9.8-30.9-23.8s2.5-28.8 15.1-36L64 104.9l0-.9 4.4-1.6L240.1 4.2zM64 224l64 0 0 192 40 0 0-192 64 0 0 192 48 0 0-192 64 0 0 192 40 0 0-192 64 0 0 196.3c.6 .3 1.2 .7 1.8 1.1l48 32c11.7 7.8 17 22.4 12.9 35.9S494.1 512 480 512L32 512c-14.1 0-26.5-9.2-30.6-22.7s1.1-28.1 12.9-35.9l48-32c.6-.4 1.2-.7 1.8-1.1L64 224z"]},ss={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 192 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-192 0 0 16c0 1.7-.1 3.4-.3 5L272 288l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-1.7 .1-3.4 .3-5L144 224l-96 0c-26.5 0-48-21.5-48-48L0 80z"]},R_={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},uc={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3L352 448l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288l144.9 0L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320l144.9 0L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},LL={prefix:"fas",iconName:"earth-europe",icon:[512,512,["globe-europe"],"f7a2","M266.3 48.3L232.5 73.6c-5.4 4-8.5 10.4-8.5 17.1l0 9.1c0 6.8 5.5 12.3 12.3 12.3c2.4 0 4.8-.7 6.8-2.1l41.8-27.9c2-1.3 4.4-2.1 6.8-2.1l1 0c6.2 0 11.3 5.1 11.3 11.3c0 3-1.2 5.9-3.3 8l-19.9 19.9c-5.8 5.8-12.9 10.2-20.7 12.8l-26.5 8.8c-5.8 1.9-9.6 7.3-9.6 13.4c0 3.7-1.5 7.3-4.1 10l-17.9 17.9c-6.4 6.4-9.9 15-9.9 24l0 4.3c0 16.4 13.6 29.7 29.9 29.7c11 0 21.2-6.2 26.1-16l4-8.1c2.4-4.8 7.4-7.9 12.8-7.9c4.5 0 8.7 2.1 11.4 5.7l16.3 21.7c2.1 2.9 5.5 4.5 9.1 4.5c8.4 0 13.9-8.9 10.1-16.4l-1.1-2.3c-3.5-7 0-15.5 7.5-18l21.2-7.1c7.6-2.5 12.7-9.6 12.7-17.6c0-10.3 8.3-18.6 18.6-18.6l29.4 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-20.7 0c-7.2 0-14.2 2.9-19.3 8l-4.7 4.7c-2.1 2.1-3.3 5-3.3 8c0 6.2 5.1 11.3 11.3 11.3l11.3 0c6 0 11.8 2.4 16 6.6l6.5 6.5c1.8 1.8 2.8 4.3 2.8 6.8s-1 5-2.8 6.8l-7.5 7.5C386 262 384 266.9 384 272s2 10 5.7 13.7L408 304c10.2 10.2 24.1 16 38.6 16l7.3 0c6.5-20.2 10-41.7 10-64c0-111.4-87.6-202.4-197.7-207.7zm172 307.9c-3.7-2.6-8.2-4.1-13-4.1c-6 0-11.8-2.4-16-6.6L396 332c-7.7-7.7-18-12-28.9-12c-9.7 0-19.2-3.5-26.6-9.8L314 287.4c-11.6-9.9-26.4-15.4-41.7-15.4l-20.9 0c-12.6 0-25 3.7-35.5 10.7L188.5 301c-17.8 11.9-28.5 31.9-28.5 53.3l0 3.2c0 17 6.7 33.3 18.7 45.3l16 16c8.5 8.5 20 13.3 32 13.3l21.3 0c13.3 0 24 10.7 24 24c0 2.5 .4 5 1.1 7.3c71.3-5.8 132.5-47.6 165.2-107.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM187.3 100.7c-6.2-6.2-16.4-6.2-22.6 0l-32 32c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l32-32c6.2-6.2 6.2-16.4 0-22.6z"]}},604:(y1,d1,y)=>{"use strict";y.d(d1,{$O8:()=>pN,$UM:()=>FN,APe:()=>Aw,BH7:()=>kS,Bwz:()=>km,BzA:()=>Cg,D6w:()=>el,Dwc:()=>kk,EEq:()=>Qh,EZy:()=>zS,FJA:()=>NI,GQu:()=>KV,Jt$:()=>Zj,KMJ:()=>tO,LBj:()=>fV,LP:()=>vS,MT7:()=>W7,OM7:()=>M7,PKn:()=>AL,QLR:()=>$N,QRE:()=>$l,QtJ:()=>Rc,Qux:()=>q_,R1H:()=>w9,RSf:()=>I2,SZt:()=>ke,Wcv:()=>vE,WfV:()=>ou,Wzs:()=>fO,X46:()=>wo,XYS:()=>tN,XkK:()=>hO,Z8x:()=>Qt,Zsp:()=>gD,_2z:()=>FR,_Xl:()=>oL,a5l:()=>V1,bLf:()=>y0,cKG:()=>YS,cbP:()=>TI,dmS:()=>o,e4L:()=>$z,fLc:()=>hs,hSh:()=>oT,hem:()=>kV,hzq:()=>r2,iRu:()=>dE,jBL:()=>be,jTw:()=>uc,k1j:()=>aS,l8N:()=>On,p7g:()=>Bu,pS3:()=>JD,q9c:()=>DB,qIE:()=>gn,s6x:()=>qs,tNR:()=>WS,tP3:()=>Ns,w2A:()=>g9,yYc:()=>U$,zm_:()=>aN});const y0={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},I2={prefix:"fas",iconName:"atom",icon:[512,512,[9883],"f5d2","M256 398.8c-11.8 5.1-23.4 9.7-34.9 13.5c16.7 33.8 31 35.7 34.9 35.7s18.1-1.9 34.9-35.7c-11.4-3.9-23.1-8.4-34.9-13.5zM446 256c33 45.2 44.3 90.9 23.6 128c-20.2 36.3-62.5 49.3-115.2 43.2c-22 52.1-55.6 84.8-98.4 84.8s-76.4-32.7-98.4-84.8c-52.7 6.1-95-6.8-115.2-43.2C21.7 346.9 33 301.2 66 256c-33-45.2-44.3-90.9-23.6-128c20.2-36.3 62.5-49.3 115.2-43.2C179.6 32.7 213.2 0 256 0s76.4 32.7 98.4 84.8c52.7-6.1 95 6.8 115.2 43.2c20.7 37.1 9.4 82.8-23.6 128zm-65.8 67.4c-1.7 14.2-3.9 28-6.7 41.2c31.8 1.4 38.6-8.7 40.2-11.7c2.3-4.2 7-17.9-11.9-48.1c-6.8 6.3-14 12.5-21.6 18.6zm-6.7-175.9c2.8 13.1 5 26.9 6.7 41.2c7.6 6.1 14.8 12.3 21.6 18.6c18.9-30.2 14.2-44 11.9-48.1c-1.6-2.9-8.4-13-40.2-11.7zM290.9 99.7C274.1 65.9 259.9 64 256 64s-18.1 1.9-34.9 35.7c11.4 3.9 23.1 8.4 34.9 13.5c11.8-5.1 23.4-9.7 34.9-13.5zm-159 88.9c1.7-14.3 3.9-28 6.7-41.2c-31.8-1.4-38.6 8.7-40.2 11.7c-2.3 4.2-7 17.9 11.9 48.1c6.8-6.3 14-12.5 21.6-18.6zM110.2 304.8C91.4 335 96 348.7 98.3 352.9c1.6 2.9 8.4 13 40.2 11.7c-2.8-13.1-5-26.9-6.7-41.2c-7.6-6.1-14.8-12.3-21.6-18.6zM336 256a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zm-80-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},be={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]},V1={prefix:"fas",iconName:"message-pen",icon:[512,512,["comment-alt-edit","message-edit"],"f4a4","M0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-80-96 0c-35.3 0-64-28.7-64-64L0 64zm340.8 59c-14.7-14.7-38.6-14.7-53.3 0L272.6 138l53.3 53.3 14.9-14.9c14.7-14.7 14.7-38.6 0-53.3zM178.1 232.5c-4.1 4.1-7 9.2-8.4 14.9L160.5 284c-1.4 5.5 .2 11.2 4.2 15.2s9.7 5.6 15.2 4.2l36.6-9.2c5.6-1.4 10.8-4.3 14.9-8.4l71.9-71.9L250 160.6l-71.9 71.9z"]},ke={prefix:"fas",iconName:"arrow-progress",icon:[512,512,[],"e5df","M448 128A64 64 0 1 0 448 0a64 64 0 1 0 0 128zM128 32C57.3 32 0 89.3 0 160s57.3 128 128 128l256 0c35.3 0 64 28.7 64 64c0 27.9-17.9 51.7-42.8 60.4c-11.5-17.1-31-28.4-53.2-28.4c-35.3 0-64 28.7-64 64s28.7 64 64 64c24.7 0 46.1-14 56.8-34.4C467.6 466.1 512 414.2 512 352c0-70.7-57.3-128-128-128l-256 0c-35.3 0-64-28.7-64-64s28.7-64 64-64l128 0 0 14.1c0 9.9 8 17.9 17.9 17.9c4 0 7.8-1.3 11-3.8l60.8-47.3c4-3.1 6.3-7.9 6.3-12.9s-2.3-9.8-6.3-12.9L284.8 3.8c-3.1-2.4-7-3.8-11-3.8C264 0 256 8 256 17.9L256 32 128 32zm-8.6 384c-11.1-19.1-31.7-32-55.4-32c-35.3 0-64 28.7-64 64s28.7 64 64 64c23.7 0 44.4-12.9 55.4-32l40.6 0 0 14.1c0 9.9 8 17.9 17.9 17.9c4 0 7.8-1.3 11-3.8l60.8-47.3c4-3.1 6.3-7.9 6.3-12.9s-2.3-9.8-6.3-12.9l-60.8-47.3c-3.1-2.4-7-3.8-11-3.8c-9.9 0-17.9 8-17.9 17.9l0 14.1-40.6 0z"]},On={prefix:"fas",iconName:"swatchbook",icon:[512,512,[],"f5c3","M0 32C0 14.3 14.3 0 32 0L160 0c17.7 0 32 14.3 32 32l0 384c0 53-43 96-96 96s-96-43-96-96L0 32zM223.6 425.9c.3-3.3 .4-6.6 .4-9.9l0-262 75.4-75.4c12.5-12.5 32.8-12.5 45.3 0l90.5 90.5c12.5 12.5 12.5 32.8 0 45.3L223.6 425.9zM182.8 512l192-192L480 320c17.7 0 32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-297.2 0zM128 64L64 64l0 64 64 0 0-64zM64 192l0 64 64 0 0-64-64 0zM96 440a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},qs={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]},W7={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},ou={prefix:"fas",iconName:"bag-shopping",icon:[448,512,["shopping-bag"],"f290","M160 112c0-35.3 28.7-64 64-64s64 28.7 64 64l0 48-128 0 0-48zm-48 48l-64 0c-26.5 0-48 21.5-48 48L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-208c0-26.5-21.5-48-48-48l-64 0 0-48C336 50.1 285.9 0 224 0S112 50.1 112 112l0 48zm24 48a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm152 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Rc={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},g9={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Bu={prefix:"fas",iconName:"sparkles",icon:[512,512,[10024],"f890","M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"]},w9={prefix:"fas",iconName:"shield-check",icon:[512,512,[],"f2f7","M269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2c.5 99.2 41.3 280.7 213.6 363.2c16.7 8 36.1 8 52.8 0C454.7 420.7 495.5 239.2 496 140c.1-26.2-16.3-47.9-38.3-57.2L269.4 2.9zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},wo={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},$z={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75l-8.7 0-32 0-96 0c-35.3 0-64 28.7-64 64l0 96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-128 8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-147.6c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4L480 32zm-64 76.7L416 240l0 131.3C357.2 317.8 280.5 288 200.7 288l-8.7 0 0-96 8.7 0c79.8 0 156.5-29.8 215.3-83.3z"]},km={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},el={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Qt={prefix:"fas",iconName:"handshake",icon:[640,512,[],"f2b5","M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8 512 128l-.7 0-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48 0 224 28.2 0 91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM16 128c-8.8 0-16 7.2-16 16L0 352c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-224-80 0zM48 320a16 16 0 1 1 0 32 16 16 0 1 1 0-32zM544 128l0 224c0 17.7 14.3 32 32 32l32 0c17.7 0 32-14.3 32-32l0-208c0-8.8-7.2-16-16-16l-80 0zm32 208a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"]},$l={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},Qh={prefix:"fas",iconName:"hand-holding-circle-dollar",icon:[576,512,[],"e621","M128 144a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm120.8-32.6c.6-.9 1.8-2.1 4.2-3.4c5.1-2.7 12.5-4.1 18.7-4c8.2 .1 17.1 1.8 26.4 4.1c8.6 2.1 17.3-3.1 19.4-11.7s-3.1-17.3-11.7-19.4c-5.6-1.4-11.6-2.7-17.9-3.7l0-9.4c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 9.5c-6.1 1.2-12.3 3.2-18 6.3c-11.8 6.3-23 18.4-21.8 37.2c1 16 11.7 25.3 21.6 30.7c8.8 4.7 19.7 7.8 28.6 10.3l1.8 .5c10.3 2.9 17.9 5.2 23.2 8.3c4.5 2.7 4.7 4.2 4.7 5.6c.1 2.4-.5 3.7-1 4.5c-.6 1-1.8 2.2-4 3.3c-4.7 2.5-11.8 3.8-18.5 3.6c-9.5-.3-18.5-3.1-29.9-6.8c-1.9-.6-3.8-1.2-5.8-1.8c-8.4-2.6-17.4 2.1-20 10.5s2.1 17.4 10.5 20c1.6 .5 3.3 1 5 1.6c0 0 0 0 0 0s0 0 0 0c7.1 2.3 15.1 4.9 23.7 6.6l0 11.4c0 8.8 7.2 16 16 16s16-7.2 16-16l0-10.8c6.2-1.1 12.5-3.1 18.3-6.2c12.1-6.5 22.3-18.7 21.7-36.9c-.5-16.2-10.3-26.3-20.5-32.3c-9.4-5.6-21.2-8.9-30.5-11.5l-.2 0c-10.4-2.9-18.3-5.2-23.9-8.2c-4.8-2.6-4.8-4-4.8-4.5c0 0 0 0 0-.1c-.1-1.9 .3-2.9 .8-3.6zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L192 512 32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l36.8 0 44.9-36c22.7-18.2 50.9-28 80-28l78.3 0 16 0 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l120.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384c0 0 0 0 0 0l-.9 0c.3 0 .6 0 .9 0z"]},Cg={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"]},hs={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},gn={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},M7={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8L32 224c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8l256 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},q_={prefix:"fas",iconName:"chart-network",icon:[640,512,[],"f78a","M288 64c0 13.7-4.3 26.3-11.6 36.7l29.2 62.5c9.8-2.1 20-3.2 30.4-3.2c36.1 0 69 13.3 94.3 35.2L512.4 135c-.2-2.3-.4-4.6-.4-7c0-35.3 28.7-64 64-64s64 28.7 64 64s-28.7 64-64 64c-9.2 0-17.9-1.9-25.8-5.4l-82 60.2c7.6 17.5 11.8 36.9 11.8 57.2c0 15.6-2.5 30.7-7.1 44.8l72 43.2c9.2-5.1 19.8-8 31.1-8c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64l0-1.1-72.1-43.3C413.7 431 376.8 448 336 448c-68.5 0-125.9-47.9-140.4-112l-76.1 0c-11.1 19.1-31.7 32-55.4 32c-35.3 0-64-28.7-64-64s28.7-64 64-64c23.7 0 44.4 12.9 55.4 32l76.1 0c7.5-33 26.3-61.6 52.1-81.7l-29.2-62.5C185.7 124.9 160 97.5 160 64c0-35.3 28.7-64 64-64s64 28.7 64 64zm48 288a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},oL={prefix:"fas",iconName:"puzzle-piece",icon:[512,512,[129513],"f12e","M192 104.8c0-9.2-5.8-17.3-13.2-22.8C167.2 73.3 160 61.3 160 48c0-26.5 28.7-48 64-48s64 21.5 64 48c0 13.3-7.2 25.3-18.8 34c-7.4 5.5-13.2 13.6-13.2 22.8c0 12.8 10.4 23.2 23.2 23.2l56.8 0c26.5 0 48 21.5 48 48l0 56.8c0 12.8 10.4 23.2 23.2 23.2c9.2 0 17.3-5.8 22.8-13.2c8.7-11.6 20.7-18.8 34-18.8c26.5 0 48 28.7 48 64s-21.5 64-48 64c-13.3 0-25.3-7.2-34-18.8c-5.5-7.4-13.6-13.2-22.8-13.2c-12.8 0-23.2 10.4-23.2 23.2L384 464c0 26.5-21.5 48-48 48l-56.8 0c-12.8 0-23.2-10.4-23.2-23.2c0-9.2 5.8-17.3 13.2-22.8c11.6-8.7 18.8-20.7 18.8-34c0-26.5-28.7-48-64-48s-64 21.5-64 48c0 13.3 7.2 25.3 18.8 34c7.4 5.5 13.2 13.6 13.2 22.8c0 12.8-10.4 23.2-23.2 23.2L48 512c-26.5 0-48-21.5-48-48L0 343.2C0 330.4 10.4 320 23.2 320c9.2 0 17.3 5.8 22.8 13.2C54.7 344.8 66.7 352 80 352c26.5 0 48-28.7 48-64s-21.5-64-48-64c-13.3 0-25.3 7.2-34 18.8C40.5 250.2 32.4 256 23.2 256C10.4 256 0 245.6 0 232.8L0 176c0-26.5 21.5-48 48-48l120.8 0c12.8 0 23.2-10.4 23.2-23.2z"]},uc={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Ns={prefix:"fas",iconName:"object-exclude",icon:[512,512,[],"e49c","M0 64C0 28.7 28.7 0 64 0L288 0c35.3 0 64 28.7 64 64l0 96 96 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64l0-96-96 0c-35.3 0-64-28.7-64-64L0 64zM320 192l-128 0 0 128 128 0 0-128z"]},o={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},r2={prefix:"fas",iconName:"hands-holding-heart",icon:[640,512,["hands-heart"],"f4c3","M195.9 136.9c-29.4-29.8-29.4-78.2 0-108s77-29.8 106.4 0l17.7 18 17.7-18c29.4-29.8 77-29.8 106.4 0s29.4 78.2 0 108L342.5 240.1c-6.2 6.3-14.3 9.4-22.5 9.4s-16.3-3.1-22.5-9.4L195.9 136.9zM40 64c22.1 0 40 17.9 40 40l0 40 0 80 0 40.2c0 17 6.7 33.3 18.7 45.3l51.1 51.1c8.3 8.3 21.3 9.6 31 3.1c12.9-8.6 14.7-26.9 3.7-37.8l-15.2-15.2-32-32c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l32 32 15.2 15.2c0 0 0 0 0 0l25.3 25.3c21 21 32.8 49.5 32.8 79.2l0 78.9c0 26.5-21.5 48-48 48l-66.7 0c-17 0-33.3-6.7-45.3-18.7L28.1 393.4C10.1 375.4 0 351 0 325.5L0 224l0-64 0-56C0 81.9 17.9 64 40 64zm560 0c22.1 0 40 17.9 40 40l0 56 0 64 0 101.5c0 25.5-10.1 49.9-28.1 67.9L512 493.3c-12 12-28.3 18.7-45.3 18.7L400 512c-26.5 0-48-21.5-48-48l0-78.9c0-29.7 11.8-58.2 32.8-79.2l25.3-25.3c0 0 0 0 0 0l15.2-15.2 32-32c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-32 32-15.2 15.2c-11 11-9.2 29.2 3.7 37.8c9.7 6.5 22.7 5.2 31-3.1l51.1-51.1c12-12 18.7-28.3 18.7-45.3l0-40.2 0-80 0-40c0-22.1 17.9-40 40-40z"]},gD={prefix:"fas",iconName:"badge-check",icon:[512,512,[],"f336","M256 0c36.8 0 68.8 20.7 84.9 51.1C373.8 41 411 49 437 75s34 63.3 23.9 96.1C491.3 187.2 512 219.2 512 256s-20.7 68.8-51.1 84.9C471 373.8 463 411 437 437s-63.3 34-96.1 23.9C324.8 491.3 292.8 512 256 512s-68.8-20.7-84.9-51.1C138.2 471 101 463 75 437s-34-63.3-23.9-96.1C20.7 324.8 0 292.8 0 256s20.7-68.8 51.1-84.9C41 138.2 49 101 75 75s63.3-34 96.1-23.9C187.2 20.7 219.2 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z"]},Aw={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},JD={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},oT={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},aS={prefix:"fas",iconName:"table-cells-large",icon:[512,512,["th-large"],"f009","M448 96l0 128-160 0 0-128 160 0zm0 192l0 128-160 0 0-128 160 0zM224 224L64 224 64 96l160 0 0 128zM64 288l160 0 0 128L64 416l0-128zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]},FR={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},zS={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},vS={prefix:"fas",iconName:"file-certificate",icon:[512,512,["file-award"],"f5f3","M128 64c0-35.3 28.7-64 64-64L352 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64l-226.7 0c1.8-5.1 2.7-10.5 2.7-16l0-80c1.3-.5 2.5-1 3.8-1.5c6.8-3 14.3-7.8 20.6-15.5c6.4-7.9 10.1-17.2 11.4-27.1c.5-3.6 .8-5.7 1.1-7.1c1.1-.9 2.8-2.3 5.6-4.5c19.9-15.4 27.1-42.2 17.5-65.5c-1.4-3.3-2.1-5.4-2.6-6.7c.5-1.4 1.2-3.4 2.6-6.7c9.5-23.3 2.4-50.1-17.5-65.5c-2.8-2.2-4.5-3.6-5.6-4.5c-.3-1.4-.6-3.6-1.1-7.1c-3.4-24.9-23-44.6-47.9-47.9c-3.6-.5-5.7-.8-7.1-1.1c-.9-1.1-2.3-2.8-4.5-5.6c-15.4-19.9-42.2-27.1-65.5-17.5c-2.6 1.1-5.1 2.3-6.6 3l-.1 .1L128 64zm384 64l-128 0L384 0 512 128zM109.2 161.6L125 168c1.9 .8 4.1 .8 6.1 0l15.8-6.5c10-4.1 21.5-1 28.1 7.5l10.5 13.5c1.3 1.7 3.2 2.7 5.2 3l16.9 2.3c10.7 1.5 19.1 9.9 20.5 20.5l2.3 16.9c.3 2.1 1.4 4 3 5.2l13.5 10.5c8.5 6.6 11.6 18.1 7.5 28.1L248 285c-.8 1.9-.8 4.1 0 6.1l6.5 15.8c4.1 10 1 21.5-7.5 28.1l-13.5 10.5c-1.7 1.3-2.7 3.2-3 5.2l-2.3 16.9c-1.5 10.7-9.9 19.1-20.5 20.6L192 390.2 192 496c0 5.9-3.2 11.3-8.5 14.1s-11.5 2.5-16.4-.8L128 483.2 88.9 509.3c-4.9 3.3-11.2 3.6-16.4 .8s-8.5-8.2-8.5-14.1l0-105.8-15.5-2.1c-10.7-1.5-19.1-9.9-20.5-20.6l-2.3-16.9c-.3-2.1-1.4-4-3-5.2L9.1 334.9c-8.5-6.6-11.6-18.1-7.5-28.1L8 291c.8-1.9 .8-4.1 0-6.1L1.6 269.2c-4.1-10-1-21.5 7.5-28.1l13.5-10.5c1.7-1.3 2.7-3.2 3-5.2l2.3-16.9c1.5-10.7 9.9-19.1 20.5-20.5l16.9-2.3c2.1-.3 4-1.4 5.2-3l10.5-13.5c6.6-8.5 18.1-11.6 28.1-7.5zM192 288A64 64 0 1 0 64 288a64 64 0 1 0 128 0z"]},kS={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},NI={prefix:"fas",iconName:"swap",icon:[640,512,[],"e609","M237 141.6c-5.3 11.2-16.6 18.4-29 18.4l-48 0 0 192c0 35.3 28.7 64 64 64s64-28.7 64-64l0-192c0-70.7 57.3-128 128-128s128 57.3 128 128l0 192 48 0c12.4 0 23.7 7.2 29 18.4s3.6 24.5-4.4 34.1l-80 96c-6.1 7.3-15.1 11.5-24.6 11.5s-18.5-4.2-24.6-11.5l-80-96c-7.9-9.5-9.7-22.8-4.4-34.1s16.6-18.4 29-18.4l48 0 0-192c0-35.3-28.7-64-64-64s-64 28.7-64 64l0 192c0 70.7-57.3 128-128 128s-128-57.3-128-128l0-192-48 0c-12.4 0-23.7-7.2-29-18.4s-3.6-24.5 4.4-34.1l80-96C109.5 4.2 118.5 0 128 0s18.5 4.2 24.6 11.5l80 96c7.9 9.5 9.7 22.8 4.4 34.1z"]},TI={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},YS={prefix:"fas",iconName:"id-card",icon:[576,512,[62147,"drivers-license"],"f2c2","M0 96l576 0c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zm0 32L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-288L0 128zM64 405.3c0-29.5 23.9-53.3 53.3-53.3l117.3 0c29.5 0 53.3 23.9 53.3 53.3c0 5.9-4.8 10.7-10.7 10.7L74.7 416c-5.9 0-10.7-4.8-10.7-10.7zM176 192a64 64 0 1 1 0 128 64 64 0 1 1 0-128zm176 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},WS={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},tN={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},aN={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]},kk={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},pN={prefix:"fas",iconName:"credit-card",icon:[576,512,[128179,62083,"credit-card-alt"],"f09d","M64 32C28.7 32 0 60.7 0 96l0 32 576 0 0-32c0-35.3-28.7-64-64-64L64 32zM576 224L0 224 0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-192zM112 352l64 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm112 16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"]},FN={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Zj={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},$N={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},U$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},tO={prefix:"fas",iconName:"rocket",icon:[512,512,[],"f135","M156.6 384.9L125.7 354c-8.5-8.5-11.5-20.8-7.7-32.2c3-8.9 7-20.5 11.8-33.8L24 288c-8.6 0-16.6-4.6-20.9-12.1s-4.2-16.7 .2-24.1l52.5-88.5c13-21.9 36.5-35.3 61.9-35.3l82.3 0c2.4-4 4.8-7.7 7.2-11.3C289.1-4.1 411.1-8.1 483.9 5.3c11.6 2.1 20.6 11.2 22.8 22.8c13.4 72.9 9.3 194.8-111.4 276.7c-3.5 2.4-7.3 4.8-11.3 7.2l0 82.3c0 25.4-13.4 49-35.3 61.9l-88.5 52.5c-7.4 4.4-16.6 4.5-24.1 .2s-12.1-12.2-12.1-20.9l0-107.2c-14.1 4.9-26.4 8.9-35.7 11.9c-11.2 3.6-23.4 .5-31.8-7.8zM384 168a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},fO={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},hO={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},DB={prefix:"fas",iconName:"chart-column",icon:[512,512,[],"e0e3","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zM160 224c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32zm128-64l0 160c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32s32 14.3 32 32zm64 32c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96c0-17.7 14.3-32 32-32zM480 96l0 224c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-224c0-17.7 14.3-32 32-32s32 14.3 32 32z"]},dE={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3L352 448l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288l144.9 0L512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C627.2 382 574.9 416 512 416zM126.8 195.8L54.4 320l144.9 0L126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1C242 382 189.7 416 126.8 416S11.7 382 .9 337.1z"]},fV={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},kV={prefix:"fas",iconName:"database",icon:[448,512,[],"f1c0","M448 80l0 48c0 44.2-100.3 80-224 80S0 172.2 0 128L0 80C0 35.8 100.3 0 224 0S448 35.8 448 80zM393.2 214.7c20.8-7.4 39.9-16.9 54.8-28.6L448 288c0 44.2-100.3 80-224 80S0 332.2 0 288L0 186.1c14.9 11.8 34 21.2 54.8 28.6C99.7 230.7 159.5 240 224 240s124.3-9.3 169.2-25.3zM0 346.1c14.9 11.8 34 21.2 54.8 28.6C99.7 390.7 159.5 400 224 400s124.3-9.3 169.2-25.3c20.8-7.4 39.9-16.9 54.8-28.6l0 85.9c0 44.2-100.3 80-224 80S0 476.2 0 432l0-85.9z"]},KV={prefix:"fas",iconName:"brain",icon:[512,512,[129504],"f5dc","M184 0c30.9 0 56 25.1 56 56l0 400c0 30.9-25.1 56-56 56c-28.9 0-52.7-21.9-55.7-50.1c-5.2 1.4-10.7 2.1-16.3 2.1c-35.3 0-64-28.7-64-64c0-7.4 1.3-14.6 3.6-21.2C21.4 367.4 0 338.2 0 304c0-31.9 18.7-59.5 45.8-72.3C37.1 220.8 32 207 32 192c0-30.7 21.6-56.3 50.4-62.6C80.8 123.9 80 118 80 112c0-29.9 20.6-55.1 48.3-62.1C131.3 21.9 155.1 0 184 0zM328 0c28.9 0 52.6 21.9 55.7 49.9c27.8 7 48.3 32.1 48.3 62.1c0 6-.8 11.9-2.4 17.4c28.8 6.2 50.4 31.9 50.4 62.6c0 15-5.1 28.8-13.8 39.7C493.3 244.5 512 272.1 512 304c0 34.2-21.4 63.4-51.6 74.8c2.3 6.6 3.6 13.8 3.6 21.2c0 35.3-28.7 64-64 64c-5.6 0-11.1-.7-16.3-2.1c-3 28.2-26.8 50.1-55.7 50.1c-30.9 0-56-25.1-56-56l0-400c0-30.9 25.1-56 56-56z"]},vE={prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"]},AL={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160l0 8c0 13.3 10.7 24 24 24l400 0c13.3 0 24-10.7 24-24l0-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224l-64 0 0 196.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512l448 0c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1L448 224l-64 0 0 192-40 0 0-192-64 0 0 192-48 0 0-192-64 0 0 192-40 0 0-192zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]}},3955:(y1,d1,y)=>{"use strict";y.d(d1,{D9:()=>Z0,Wr:()=>Y,c$:()=>t0,h:()=>B4});var m=y(4438),g=y(7673),e=y(4402),p=y(7468),_=y(8793),S=y(9030),A=y(6697),$=y(253),Z=y(6354),K=y(274),p1=y(5558);class Y{}let h1=(()=>{class x2 extends Y{getTranslation(v1){return(0,g.of)({})}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class e1{}let r1=(()=>{class x2{handle(v1){return v1.key}static \u0275fac=function(e2){return new(e2||x2)};static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();function M1(x2,w0){if(x2===w0)return!0;if(null===x2||null===w0)return!1;if(x2!=x2&&w0!=w0)return!0;let C2,E1,j1,v1=typeof x2;if(v1==typeof w0&&"object"==v1){if(!Array.isArray(x2)){if(Array.isArray(w0))return!1;for(E1 in j1=Object.create(null),x2){if(!M1(x2[E1],w0[E1]))return!1;j1[E1]=!0}for(E1 in w0)if(!(E1 in j1)&&typeof w0[E1]<"u")return!1;return!0}if(!Array.isArray(w0))return!1;if((C2=x2.length)==w0.length){for(E1=0;E1{$1(w0[e2])?e2 in x2?v1[e2]=o2(x2[e2],w0[e2]):Object.assign(v1,{[e2]:w0[e2]}):Object.assign(v1,{[e2]:w0[e2]})}),v1}class S2{}let c2=(()=>{class x2 extends S2{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(v1,e2){let C2;return C2="string"==typeof v1?this.interpolateString(v1,e2):"function"==typeof v1?this.interpolateFunction(v1,e2):v1,C2}getValue(v1,e2){let C2="string"==typeof e2?e2.split("."):[e2];e2="";do{e2+=C2.shift(),!f1(v1)||!f1(v1[e2])||"object"!=typeof v1[e2]&&C2.length?C2.length?e2+=".":v1=void 0:(v1=v1[e2],e2="")}while(C2.length);return v1}interpolateFunction(v1,e2){return v1(e2)}interpolateString(v1,e2){return e2?v1.replace(this.templateMatcher,(C2,E1)=>{let j1=this.getValue(e2,E1);return f1(j1)?j1:C2}):v1}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class G1{}let O1=(()=>{class x2 extends G1{compile(v1,e2){return v1}compileTranslations(v1,e2){return v1}static \u0275fac=(()=>{let v1;return function(C2){return(v1||(v1=m.xGo(x2)))(C2||x2)}})();static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})();class d0{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new m.bkB;onLangChange=new m.bkB;onDefaultLangChange=new m.bkB}const d2=new m.nKC("USE_STORE"),_2=new m.nKC("USE_DEFAULT_LANG"),w2=new m.nKC("DEFAULT_LANGUAGE"),v2=new m.nKC("USE_EXTEND");let t0=(()=>{class x2{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new m.bkB;_onLangChange=new m.bkB;_onDefaultLangChange=new m.bkB;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(v1){this.isolate?this._defaultLang=v1:this.store.defaultLang=v1}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(v1){this.isolate?this._currentLang=v1:this.store.currentLang=v1}get langs(){return this.isolate?this._langs:this.store.langs}set langs(v1){this.isolate?this._langs=v1:this.store.langs=v1}get translations(){return this.isolate?this._translations:this.store.translations}set translations(v1){this.isolate?this._translations=v1:this.store.translations=v1}constructor(v1,e2,C2,E1,j1,A1=!0,H1=!1,P1=!1,K1){this.store=v1,this.currentLoader=e2,this.compiler=C2,this.parser=E1,this.missingTranslationHandler=j1,this.useDefaultLang=A1,this.isolate=H1,this.extend=P1,K1&&this.setDefaultLang(K1)}setDefaultLang(v1){if(v1===this.defaultLang)return;let e2=this.retrieveTranslations(v1);typeof e2<"u"?(null==this.defaultLang&&(this.defaultLang=v1),e2.pipe((0,A.s)(1)).subscribe(C2=>{this.changeDefaultLang(v1)})):this.changeDefaultLang(v1)}getDefaultLang(){return this.defaultLang}use(v1){if(v1===this.currentLang)return(0,g.of)(this.translations[v1]);let e2=this.retrieveTranslations(v1);return typeof e2<"u"?(this.currentLang||(this.currentLang=v1),e2.pipe((0,A.s)(1)).subscribe(C2=>{this.changeLang(v1)}),e2):(this.changeLang(v1),(0,g.of)(this.translations[v1]))}retrieveTranslations(v1){let e2;return(typeof this.translations[v1]>"u"||this.extend)&&(this._translationRequests[v1]=this._translationRequests[v1]||this.getTranslation(v1),e2=this._translationRequests[v1]),e2}getTranslation(v1){this.pending=!0;const e2=this.currentLoader.getTranslation(v1).pipe((0,$.t)(1),(0,A.s)(1));return this.loadingTranslations=e2.pipe((0,Z.T)(C2=>this.compiler.compileTranslations(C2,v1)),(0,$.t)(1),(0,A.s)(1)),this.loadingTranslations.subscribe({next:C2=>{this.translations[v1]=this.extend&&this.translations[v1]?{...C2,...this.translations[v1]}:C2,this.updateLangs(),this.pending=!1},error:C2=>{this.pending=!1}}),e2}setTranslation(v1,e2,C2=!1){e2=this.compiler.compileTranslations(e2,v1),this.translations[v1]=(C2||this.extend)&&this.translations[v1]?o2(this.translations[v1],e2):e2,this.updateLangs(),this.onTranslationChange.emit({lang:v1,translations:this.translations[v1]})}getLangs(){return this.langs}addLangs(v1){v1.forEach(e2=>{-1===this.langs.indexOf(e2)&&this.langs.push(e2)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(v1,e2,C2){let E1;if(e2 instanceof Array){let j1={},A1=!1;for(let H1 of e2)j1[H1]=this.getParsedResult(v1,H1,C2),(0,e.A)(j1[H1])&&(A1=!0);if(A1){const H1=e2.map(P1=>(0,e.A)(j1[P1])?j1[P1]:(0,g.of)(j1[P1]));return(0,p.p)(H1).pipe((0,Z.T)(P1=>{let K1={};return P1.forEach((Q,t2)=>{K1[e2[t2]]=Q}),K1}))}return j1}if(v1&&(E1=this.parser.interpolate(this.parser.getValue(v1,e2),C2)),typeof E1>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(E1=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e2),C2)),typeof E1>"u"){let j1={key:e2,translateService:this};typeof C2<"u"&&(j1.interpolateParams=C2),E1=this.missingTranslationHandler.handle(j1)}return typeof E1<"u"?E1:e2}get(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,K.H)(C2=>(C2=this.getParsedResult(C2,v1,e2),(0,e.A)(C2)?C2:(0,g.of)(C2))));{let C2=this.getParsedResult(this.translations[this.currentLang],v1,e2);return(0,e.A)(C2)?C2:(0,g.of)(C2)}}getStreamOnTranslationChange(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');return(0,_.x)((0,S.v)(()=>this.get(v1,e2)),this.onTranslationChange.pipe((0,p1.n)(C2=>{const E1=this.getParsedResult(C2.translations,v1,e2);return"function"==typeof E1.subscribe?E1:(0,g.of)(E1)})))}stream(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');return(0,_.x)((0,S.v)(()=>this.get(v1,e2)),this.onLangChange.pipe((0,p1.n)(C2=>{const E1=this.getParsedResult(C2.translations,v1,e2);return(0,e.A)(E1)?E1:(0,g.of)(E1)})))}instant(v1,e2){if(!f1(v1)||!v1.length)throw new Error('Parameter "key" required');let C2=this.getParsedResult(this.translations[this.currentLang],v1,e2);if((0,e.A)(C2)){if(v1 instanceof Array){let E1={};return v1.forEach((j1,A1)=>{E1[v1[A1]]=v1[A1]}),E1}return v1}return C2}set(v1,e2,C2=this.currentLang){this.translations[C2][v1]=this.compiler.compile(e2,C2),this.updateLangs(),this.onTranslationChange.emit({lang:C2,translations:this.translations[C2]})}changeLang(v1){this.currentLang=v1,this.onLangChange.emit({lang:v1,translations:this.translations[v1]}),null==this.defaultLang&&this.changeDefaultLang(v1)}changeDefaultLang(v1){this.defaultLang=v1,this.onDefaultLangChange.emit({lang:v1,translations:this.translations[v1]})}reloadLang(v1){return this.resetLang(v1),this.getTranslation(v1)}resetLang(v1){this._translationRequests[v1]=void 0,this.translations[v1]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let v1=window.navigator.languages?window.navigator.languages[0]:null;return v1=v1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof v1>"u"?void 0:(-1!==v1.indexOf("-")&&(v1=v1.split("-")[0]),-1!==v1.indexOf("_")&&(v1=v1.split("_")[0]),v1)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let v1=window.navigator.languages?window.navigator.languages[0]:null;return v1=v1||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,v1}static \u0275fac=function(e2){return new(e2||x2)(m.KVO(d0),m.KVO(Y),m.KVO(G1),m.KVO(S2),m.KVO(e1),m.KVO(_2),m.KVO(d2),m.KVO(v2),m.KVO(w2))};static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})(),Z0=(()=>{class x2{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(v1,e2){this.translate=v1,this._ref=e2}updateValue(v1,e2,C2){let E1=j1=>{this.value=void 0!==j1?j1:v1,this.lastKey=v1,this._ref.markForCheck()};if(C2){let j1=this.translate.getParsedResult(C2,v1,e2);(0,e.A)(j1.subscribe)?j1.subscribe(E1):E1(j1)}this.translate.get(v1,e2).subscribe(E1)}transform(v1,...e2){if(!v1||!v1.length)return v1;if(M1(v1,this.lastKey)&&M1(e2,this.lastParams))return this.value;let C2;if(f1(e2[0])&&e2.length)if("string"==typeof e2[0]&&e2[0].length){let E1=e2[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{C2=JSON.parse(E1)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e2[0]}`)}}else"object"==typeof e2[0]&&!Array.isArray(e2[0])&&(C2=e2[0]);return this.lastKey=v1,this.lastParams=e2,this.updateValue(v1,C2),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(E1=>{this.lastKey&&E1.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(v1,C2,E1.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(E1=>{this.lastKey&&(this.lastKey=null,this.updateValue(v1,C2,E1.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(v1,C2))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(e2){return new(e2||x2)(m.rXU(t0,16),m.rXU(m.gRc,16))};static \u0275pipe=m.EJ8({name:"translate",type:x2,pure:!1});static \u0275prov=m.jDH({token:x2,factory:x2.\u0275fac})}return x2})(),B4=(()=>{class x2{static forRoot(v1={}){return{ngModule:x2,providers:[v1.loader||{provide:Y,useClass:h1},v1.compiler||{provide:G1,useClass:O1},v1.parser||{provide:S2,useClass:c2},v1.missingTranslationHandler||{provide:e1,useClass:r1},d0,{provide:d2,useValue:v1.isolate},{provide:_2,useValue:v1.useDefaultLang},{provide:v2,useValue:v1.extend},{provide:w2,useValue:v1.defaultLanguage},t0]}}static forChild(v1={}){return{ngModule:x2,providers:[v1.loader||{provide:Y,useClass:h1},v1.compiler||{provide:G1,useClass:O1},v1.parser||{provide:S2,useClass:c2},v1.missingTranslationHandler||{provide:e1,useClass:r1},{provide:d2,useValue:v1.isolate},{provide:_2,useValue:v1.useDefaultLang},{provide:v2,useValue:v1.extend},{provide:w2,useValue:v1.defaultLanguage},t0]}}static \u0275fac=function(e2){return new(e2||x2)};static \u0275mod=m.$C({type:x2});static \u0275inj=m.G2t({})}return x2})()},8866:(y1,d1,y)=>{"use strict";y.d(d1,{s:()=>p});class m extends Error{}function p(_,S){if("string"!=typeof _)throw new m("Invalid token specified: must be a string");S||(S={});const A=!0===S.header?0:1,$=_.split(".")[A];if("string"!=typeof $)throw new m(`Invalid token specified: missing part #${A+1}`);let Z;try{Z=function e(_){let S=_.replace(/-/g,"+").replace(/_/g,"/");switch(S.length%4){case 0:break;case 2:S+="==";break;case 3:S+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function g(_){return decodeURIComponent(atob(_).replace(/(.)/g,(S,A)=>{let $=A.charCodeAt(0).toString(16).toUpperCase();return $.length<2&&($="0"+$),"%"+$}))}(S)}catch{return atob(S)}}($)}catch(K){throw new m(`Invalid token specified: invalid base64 for part #${A+1} (${K.message})`)}try{return JSON.parse(Z)}catch(K){throw new m(`Invalid token specified: invalid json for part #${A+1} (${K.message})`)}}m.prototype.name="InvalidTokenError"},467:(y1,d1,y)=>{"use strict";function m(e,p,_,S,A,$,Z){try{var K=e[$](Z),p1=K.value}catch(Y){return void _(Y)}K.done?p(p1):Promise.resolve(p1).then(S,A)}function g(e){return function(){var p=this,_=arguments;return new Promise(function(S,A){var $=e.apply(p,_);function Z(p1){m($,S,A,Z,K,"next",p1)}function K(p1){m($,S,A,Z,K,"throw",p1)}Z(void 0)})}}y.d(d1,{A:()=>g})},1635:(y1,d1,y)=>{"use strict";function Y(E1,j1,A1,H1){return new(A1||(A1=Promise))(function(K1,Q){function t2(l0){try{p2(H1.next(l0))}catch(s0){Q(s0)}}function s2(l0){try{p2(H1.throw(l0))}catch(s0){Q(s0)}}function p2(l0){l0.done?K1(l0.value):function P1(K1){return K1 instanceof A1?K1:new A1(function(Q){Q(K1)})}(l0.value).then(t2,s2)}p2((H1=H1.apply(E1,j1||[])).next())})}function c2(E1){return this instanceof c2?(this.v=E1,this):new c2(E1)}function G1(E1,j1,A1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var P1,H1=A1.apply(E1,j1||[]),K1=[];return P1=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),t2("next"),t2("throw"),t2("return",function Q(K2){return function(y0){return Promise.resolve(y0).then(K2,s0)}}),P1[Symbol.asyncIterator]=function(){return this},P1;function t2(K2,y0){H1[K2]&&(P1[K2]=function(C4){return new Promise(function(m2,N4){K1.push([K2,C4,m2,N4])>1||s2(K2,C4)})},y0&&(P1[K2]=y0(P1[K2])))}function s2(K2,y0){try{!function p2(K2){K2.value instanceof c2?Promise.resolve(K2.value.v).then(l0,s0):D0(K1[0][2],K2)}(H1[K2](y0))}catch(C4){D0(K1[0][3],C4)}}function l0(K2){s2("next",K2)}function s0(K2){s2("throw",K2)}function D0(K2,y0){K2(y0),K1.shift(),K1.length&&s2(K1[0][0],K1[0][1])}}function d0(E1){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var A1,j1=E1[Symbol.asyncIterator];return j1?j1.call(E1):(E1=function M1(E1){var j1="function"==typeof Symbol&&Symbol.iterator,A1=j1&&E1[j1],H1=0;if(A1)return A1.call(E1);if(E1&&"number"==typeof E1.length)return{next:function(){return E1&&H1>=E1.length&&(E1=void 0),{value:E1&&E1[H1++],done:!E1}}};throw new TypeError(j1?"Object is not iterable.":"Symbol.iterator is not defined.")}(E1),A1={},H1("next"),H1("throw"),H1("return"),A1[Symbol.asyncIterator]=function(){return this},A1);function H1(K1){A1[K1]=E1[K1]&&function(Q){return new Promise(function(t2,s2){!function P1(K1,Q,t2,s2){Promise.resolve(s2).then(function(p2){K1({value:p2,done:t2})},Q)}(t2,s2,(Q=E1[K1](Q)).done,Q.value)})}}}y.d(d1,{AQ:()=>G1,N3:()=>c2,sH:()=>Y,xN:()=>d0}),"function"==typeof SuppressedError&&SuppressedError},8184:y1=>{"use strict";y1.exports=JSON.parse('[{"name":"US Dollar","symbol":"$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"USD","namePlural":"US dollars"},{"name":"Canadian Dollar","symbol":"CA$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"CAD","namePlural":"Canadian dollars"},{"name":"Euro","symbol":"\u20ac","symbolNative":"\u20ac","decimalDigits":2,"rounding":0,"code":"EUR","namePlural":"euros"},{"name":"United Arab Emirates Dirham","symbol":"AED","symbolNative":"\u062f.\u0625.\u200f","decimalDigits":2,"rounding":0,"code":"AED","namePlural":"UAE dirhams"},{"name":"Afghan Afghani","symbol":"Af","symbolNative":"\u060b","decimalDigits":0,"rounding":0,"code":"AFN","namePlural":"Afghan Afghanis"},{"name":"Albanian Lek","symbol":"ALL","symbolNative":"Lek","decimalDigits":0,"rounding":0,"code":"ALL","namePlural":"Albanian lek\xeb"},{"name":"Armenian Dram","symbol":"AMD","symbolNative":"\u0564\u0580.","decimalDigits":0,"rounding":0,"code":"AMD","namePlural":"Armenian drams"},{"name":"Argentine Peso","symbol":"AR$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"ARS","namePlural":"Argentine pesos"},{"name":"Australian Dollar","symbol":"AU$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"AUD","namePlural":"Australian dollars"},{"name":"Azerbaijani Manat","symbol":"man.","symbolNative":"\u043c\u0430\u043d.","decimalDigits":2,"rounding":0,"code":"AZN","namePlural":"Azerbaijani manats"},{"name":"Bosnia-Herzegovina Convertible Mark","symbol":"KM","symbolNative":"KM","decimalDigits":2,"rounding":0,"code":"BAM","namePlural":"Bosnia-Herzegovina convertible marks"},{"name":"Bangladeshi Taka","symbol":"Tk","symbolNative":"\u09f3","decimalDigits":2,"rounding":0,"code":"BDT","namePlural":"Bangladeshi takas"},{"name":"Bulgarian Lev","symbol":"BGN","symbolNative":"\u043b\u0432.","decimalDigits":2,"rounding":0,"code":"BGN","namePlural":"Bulgarian leva"},{"name":"Bahraini Dinar","symbol":"BD","symbolNative":"\u062f.\u0628.\u200f","decimalDigits":3,"rounding":0,"code":"BHD","namePlural":"Bahraini dinars"},{"name":"Burundian Franc","symbol":"FBu","symbolNative":"FBu","decimalDigits":0,"rounding":0,"code":"BIF","namePlural":"Burundian francs"},{"name":"Brunei Dollar","symbol":"BN$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"BND","namePlural":"Brunei dollars"},{"name":"Bolivian Boliviano","symbol":"Bs","symbolNative":"Bs","decimalDigits":2,"rounding":0,"code":"BOB","namePlural":"Bolivian bolivianos"},{"name":"Brazilian Real","symbol":"R$","symbolNative":"R$","decimalDigits":2,"rounding":0,"code":"BRL","namePlural":"Brazilian reals"},{"name":"Botswanan Pula","symbol":"BWP","symbolNative":"P","decimalDigits":2,"rounding":0,"code":"BWP","namePlural":"Botswanan pulas"},{"name":"Belarusian Ruble","symbol":"Br","symbolNative":"\u0440\u0443\u0431.","decimalDigits":2,"rounding":0,"code":"BYN","namePlural":"Belarusian rubles"},{"name":"Belize Dollar","symbol":"BZ$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"BZD","namePlural":"Belize dollars"},{"name":"Congolese Franc","symbol":"CDF","symbolNative":"FrCD","decimalDigits":2,"rounding":0,"code":"CDF","namePlural":"Congolese francs"},{"name":"Swiss Franc","symbol":"CHF","symbolNative":"CHF","decimalDigits":2,"rounding":0.05,"code":"CHF","namePlural":"Swiss francs"},{"name":"Chilean Peso","symbol":"CL$","symbolNative":"$","decimalDigits":0,"rounding":0,"code":"CLP","namePlural":"Chilean pesos"},{"name":"Chinese Yuan","symbol":"CN\xa5","symbolNative":"CN\xa5","decimalDigits":2,"rounding":0,"code":"CNY","namePlural":"Chinese yuan"},{"name":"Colombian Peso","symbol":"CO$","symbolNative":"$","decimalDigits":0,"rounding":0,"code":"COP","namePlural":"Colombian pesos"},{"name":"Costa Rican Col\xf3n","symbol":"\u20a1","symbolNative":"\u20a1","decimalDigits":0,"rounding":0,"code":"CRC","namePlural":"Costa Rican col\xf3ns"},{"name":"Cape Verdean Escudo","symbol":"CV$","symbolNative":"CV$","decimalDigits":2,"rounding":0,"code":"CVE","namePlural":"Cape Verdean escudos"},{"name":"Czech Republic Koruna","symbol":"K\u010d","symbolNative":"K\u010d","decimalDigits":2,"rounding":0,"code":"CZK","namePlural":"Czech Republic korunas"},{"name":"Djiboutian Franc","symbol":"Fdj","symbolNative":"Fdj","decimalDigits":0,"rounding":0,"code":"DJF","namePlural":"Djiboutian francs"},{"name":"Danish Krone","symbol":"Dkr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"DKK","namePlural":"Danish kroner"},{"name":"Dominican Peso","symbol":"RD$","symbolNative":"RD$","decimalDigits":2,"rounding":0,"code":"DOP","namePlural":"Dominican pesos"},{"name":"Algerian Dinar","symbol":"DA","symbolNative":"\u062f.\u062c.\u200f","decimalDigits":2,"rounding":0,"code":"DZD","namePlural":"Algerian dinars"},{"name":"Estonian Kroon","symbol":"Ekr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"EEK","namePlural":"Estonian kroons"},{"name":"Egyptian Pound","symbol":"EGP","symbolNative":"\u062c.\u0645.\u200f","decimalDigits":2,"rounding":0,"code":"EGP","namePlural":"Egyptian pounds"},{"name":"Eritrean Nakfa","symbol":"Nfk","symbolNative":"Nfk","decimalDigits":2,"rounding":0,"code":"ERN","namePlural":"Eritrean nakfas"},{"name":"Ethiopian Birr","symbol":"Br","symbolNative":"Br","decimalDigits":2,"rounding":0,"code":"ETB","namePlural":"Ethiopian birrs"},{"name":"British Pound Sterling","symbol":"\xa3","symbolNative":"\xa3","decimalDigits":2,"rounding":0,"code":"GBP","namePlural":"British pounds sterling"},{"name":"Georgian Lari","symbol":"GEL","symbolNative":"GEL","decimalDigits":2,"rounding":0,"code":"GEL","namePlural":"Georgian laris"},{"name":"Ghanaian Cedi","symbol":"GH\u20b5","symbolNative":"GH\u20b5","decimalDigits":2,"rounding":0,"code":"GHS","namePlural":"Ghanaian cedis"},{"name":"Guinean Franc","symbol":"FG","symbolNative":"FG","decimalDigits":0,"rounding":0,"code":"GNF","namePlural":"Guinean francs"},{"name":"Guatemalan Quetzal","symbol":"GTQ","symbolNative":"Q","decimalDigits":2,"rounding":0,"code":"GTQ","namePlural":"Guatemalan quetzals"},{"name":"Hong Kong Dollar","symbol":"HK$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"HKD","namePlural":"Hong Kong dollars"},{"name":"Honduran Lempira","symbol":"HNL","symbolNative":"L","decimalDigits":2,"rounding":0,"code":"HNL","namePlural":"Honduran lempiras"},{"name":"Croatian Kuna","symbol":"kn","symbolNative":"kn","decimalDigits":2,"rounding":0,"code":"HRK","namePlural":"Croatian kunas"},{"name":"Hungarian Forint","symbol":"Ft","symbolNative":"Ft","decimalDigits":0,"rounding":0,"code":"HUF","namePlural":"Hungarian forints"},{"name":"Indonesian Rupiah","symbol":"Rp","symbolNative":"Rp","decimalDigits":0,"rounding":0,"code":"IDR","namePlural":"Indonesian rupiahs"},{"name":"Israeli New Sheqel","symbol":"\u20aa","symbolNative":"\u20aa","decimalDigits":2,"rounding":0,"code":"ILS","namePlural":"Israeli new sheqels"},{"name":"Indian Rupee","symbol":"\u20b9","symbolNative":"\u099f\u0995\u09be","decimalDigits":2,"rounding":0,"code":"INR","namePlural":"Indian rupees"},{"name":"Iraqi Dinar","symbol":"IQD","symbolNative":"\u062f.\u0639.\u200f","decimalDigits":0,"rounding":0,"code":"IQD","namePlural":"Iraqi dinars"},{"name":"Iranian Rial","symbol":"IRR","symbolNative":"\ufdfc","decimalDigits":0,"rounding":0,"code":"IRR","namePlural":"Iranian rials"},{"name":"Icelandic Kr\xf3na","symbol":"Ikr","symbolNative":"kr","decimalDigits":0,"rounding":0,"code":"ISK","namePlural":"Icelandic kr\xf3nur"},{"name":"Jamaican Dollar","symbol":"J$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"JMD","namePlural":"Jamaican dollars"},{"name":"Jordanian Dinar","symbol":"JD","symbolNative":"\u062f.\u0623.\u200f","decimalDigits":3,"rounding":0,"code":"JOD","namePlural":"Jordanian dinars"},{"name":"Japanese Yen","symbol":"\xa5","symbolNative":"\uffe5","decimalDigits":0,"rounding":0,"code":"JPY","namePlural":"Japanese yen"},{"name":"Kenyan Shilling","symbol":"Ksh","symbolNative":"Ksh","decimalDigits":2,"rounding":0,"code":"KES","namePlural":"Kenyan shillings"},{"name":"Cambodian Riel","symbol":"KHR","symbolNative":"\u17db","decimalDigits":2,"rounding":0,"code":"KHR","namePlural":"Cambodian riels"},{"name":"Comorian Franc","symbol":"CF","symbolNative":"FC","decimalDigits":0,"rounding":0,"code":"KMF","namePlural":"Comorian francs"},{"name":"South Korean Won","symbol":"\u20a9","symbolNative":"\u20a9","decimalDigits":0,"rounding":0,"code":"KRW","namePlural":"South Korean won"},{"name":"Kuwaiti Dinar","symbol":"KD","symbolNative":"\u062f.\u0643.\u200f","decimalDigits":3,"rounding":0,"code":"KWD","namePlural":"Kuwaiti dinars"},{"name":"Kazakhstani Tenge","symbol":"KZT","symbolNative":"\u0442\u04a3\u0433.","decimalDigits":2,"rounding":0,"code":"KZT","namePlural":"Kazakhstani tenges"},{"name":"Lebanese Pound","symbol":"LB\xa3","symbolNative":"\u0644.\u0644.\u200f","decimalDigits":0,"rounding":0,"code":"LBP","namePlural":"Lebanese pounds"},{"name":"Sri Lankan Rupee","symbol":"SLRs","symbolNative":"SL Re","decimalDigits":2,"rounding":0,"code":"LKR","namePlural":"Sri Lankan rupees"},{"name":"Lithuanian Litas","symbol":"Lt","symbolNative":"Lt","decimalDigits":2,"rounding":0,"code":"LTL","namePlural":"Lithuanian litai"},{"name":"Latvian Lats","symbol":"Ls","symbolNative":"Ls","decimalDigits":2,"rounding":0,"code":"LVL","namePlural":"Latvian lati"},{"name":"Libyan Dinar","symbol":"LD","symbolNative":"\u062f.\u0644.\u200f","decimalDigits":3,"rounding":0,"code":"LYD","namePlural":"Libyan dinars"},{"name":"Moroccan Dirham","symbol":"MAD","symbolNative":"\u062f.\u0645.\u200f","decimalDigits":2,"rounding":0,"code":"MAD","namePlural":"Moroccan dirhams"},{"name":"Moldovan Leu","symbol":"MDL","symbolNative":"MDL","decimalDigits":2,"rounding":0,"code":"MDL","namePlural":"Moldovan lei"},{"name":"Malagasy Ariary","symbol":"MGA","symbolNative":"MGA","decimalDigits":0,"rounding":0,"code":"MGA","namePlural":"Malagasy Ariaries"},{"name":"Macedonian Denar","symbol":"MKD","symbolNative":"MKD","decimalDigits":2,"rounding":0,"code":"MKD","namePlural":"Macedonian denari"},{"name":"Myanma Kyat","symbol":"MMK","symbolNative":"K","decimalDigits":0,"rounding":0,"code":"MMK","namePlural":"Myanma kyats"},{"name":"Macanese Pataca","symbol":"MOP$","symbolNative":"MOP$","decimalDigits":2,"rounding":0,"code":"MOP","namePlural":"Macanese patacas"},{"name":"Mauritian Rupee","symbol":"MURs","symbolNative":"MURs","decimalDigits":0,"rounding":0,"code":"MUR","namePlural":"Mauritian rupees"},{"name":"Mexican Peso","symbol":"MX$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"MXN","namePlural":"Mexican pesos"},{"name":"Malaysian Ringgit","symbol":"RM","symbolNative":"RM","decimalDigits":2,"rounding":0,"code":"MYR","namePlural":"Malaysian ringgits"},{"name":"Mozambican Metical","symbol":"MTn","symbolNative":"MTn","decimalDigits":2,"rounding":0,"code":"MZN","namePlural":"Mozambican meticals"},{"name":"Namibian Dollar","symbol":"N$","symbolNative":"N$","decimalDigits":2,"rounding":0,"code":"NAD","namePlural":"Namibian dollars"},{"name":"Nigerian Naira","symbol":"\u20a6","symbolNative":"\u20a6","decimalDigits":2,"rounding":0,"code":"NGN","namePlural":"Nigerian nairas"},{"name":"Nicaraguan C\xf3rdoba","symbol":"C$","symbolNative":"C$","decimalDigits":2,"rounding":0,"code":"NIO","namePlural":"Nicaraguan c\xf3rdobas"},{"name":"Norwegian Krone","symbol":"Nkr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"NOK","namePlural":"Norwegian kroner"},{"name":"Nepalese Rupee","symbol":"NPRs","symbolNative":"\u0928\u0947\u0930\u0942","decimalDigits":2,"rounding":0,"code":"NPR","namePlural":"Nepalese rupees"},{"name":"New Zealand Dollar","symbol":"NZ$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"NZD","namePlural":"New Zealand dollars"},{"name":"Omani Rial","symbol":"OMR","symbolNative":"\u0631.\u0639.\u200f","decimalDigits":3,"rounding":0,"code":"OMR","namePlural":"Omani rials"},{"name":"Panamanian Balboa","symbol":"B/.","symbolNative":"B/.","decimalDigits":2,"rounding":0,"code":"PAB","namePlural":"Panamanian balboas"},{"name":"Peruvian Nuevo Sol","symbol":"S/.","symbolNative":"S/.","decimalDigits":2,"rounding":0,"code":"PEN","namePlural":"Peruvian nuevos soles"},{"name":"Philippine Peso","symbol":"\u20b1","symbolNative":"\u20b1","decimalDigits":2,"rounding":0,"code":"PHP","namePlural":"Philippine pesos"},{"name":"Pakistani Rupee","symbol":"PKRs","symbolNative":"\u20a8","decimalDigits":0,"rounding":0,"code":"PKR","namePlural":"Pakistani rupees"},{"name":"Polish Zloty","symbol":"z\u0142","symbolNative":"z\u0142","decimalDigits":2,"rounding":0,"code":"PLN","namePlural":"Polish zlotys"},{"name":"Paraguayan Guarani","symbol":"\u20b2","symbolNative":"\u20b2","decimalDigits":0,"rounding":0,"code":"PYG","namePlural":"Paraguayan guaranis"},{"name":"Qatari Rial","symbol":"QR","symbolNative":"\u0631.\u0642.\u200f","decimalDigits":2,"rounding":0,"code":"QAR","namePlural":"Qatari rials"},{"name":"Romanian Leu","symbol":"RON","symbolNative":"RON","decimalDigits":2,"rounding":0,"code":"RON","namePlural":"Romanian lei"},{"name":"Serbian Dinar","symbol":"din.","symbolNative":"\u0434\u0438\u043d.","decimalDigits":0,"rounding":0,"code":"RSD","namePlural":"Serbian dinars"},{"name":"Russian Ruble","symbol":"RUB","symbolNative":"\u20bd.","decimalDigits":2,"rounding":0,"code":"RUB","namePlural":"Russian rubles"},{"name":"Rwandan Franc","symbol":"RWF","symbolNative":"FR","decimalDigits":0,"rounding":0,"code":"RWF","namePlural":"Rwandan francs"},{"name":"Saudi Riyal","symbol":"SR","symbolNative":"\u0631.\u0633.\u200f","decimalDigits":2,"rounding":0,"code":"SAR","namePlural":"Saudi riyals"},{"name":"Sudanese Pound","symbol":"SDG","symbolNative":"SDG","decimalDigits":2,"rounding":0,"code":"SDG","namePlural":"Sudanese pounds"},{"name":"Swedish Krona","symbol":"Skr","symbolNative":"kr","decimalDigits":2,"rounding":0,"code":"SEK","namePlural":"Swedish kronor"},{"name":"Singapore Dollar","symbol":"S$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"SGD","namePlural":"Singapore dollars"},{"name":"Somali Shilling","symbol":"Ssh","symbolNative":"Ssh","decimalDigits":0,"rounding":0,"code":"SOS","namePlural":"Somali shillings"},{"name":"Syrian Pound","symbol":"SY\xa3","symbolNative":"\u0644.\u0633.\u200f","decimalDigits":0,"rounding":0,"code":"SYP","namePlural":"Syrian pounds"},{"name":"Thai Baht","symbol":"\u0e3f","symbolNative":"\u0e3f","decimalDigits":2,"rounding":0,"code":"THB","namePlural":"Thai baht"},{"name":"Tunisian Dinar","symbol":"DT","symbolNative":"\u062f.\u062a.\u200f","decimalDigits":3,"rounding":0,"code":"TND","namePlural":"Tunisian dinars"},{"name":"Tongan Pa\u02bbanga","symbol":"T$","symbolNative":"T$","decimalDigits":2,"rounding":0,"code":"TOP","namePlural":"Tongan pa\u02bbanga"},{"name":"Turkish Lira","symbol":"TL","symbolNative":"TL","decimalDigits":2,"rounding":0,"code":"TRY","namePlural":"Turkish Lira"},{"name":"Trinidad and Tobago Dollar","symbol":"TT$","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"TTD","namePlural":"Trinidad and Tobago dollars"},{"name":"New Taiwan Dollar","symbol":"NT$","symbolNative":"NT$","decimalDigits":2,"rounding":0,"code":"TWD","namePlural":"New Taiwan dollars"},{"name":"Tanzanian Shilling","symbol":"TSh","symbolNative":"TSh","decimalDigits":0,"rounding":0,"code":"TZS","namePlural":"Tanzanian shillings"},{"name":"Ukrainian Hryvnia","symbol":"\u20b4","symbolNative":"\u20b4","decimalDigits":2,"rounding":0,"code":"UAH","namePlural":"Ukrainian hryvnias"},{"name":"Ugandan Shilling","symbol":"USh","symbolNative":"USh","decimalDigits":0,"rounding":0,"code":"UGX","namePlural":"Ugandan shillings"},{"name":"Uruguayan Peso","symbol":"$U","symbolNative":"$","decimalDigits":2,"rounding":0,"code":"UYU","namePlural":"Uruguayan pesos"},{"name":"Uzbekistan Som","symbol":"UZS","symbolNative":"UZS","decimalDigits":0,"rounding":0,"code":"UZS","namePlural":"Uzbekistan som"},{"name":"Venezuelan Bol\xedvar","symbol":"Bs.F.","symbolNative":"Bs.F.","decimalDigits":2,"rounding":0,"code":"VEF","namePlural":"Venezuelan bol\xedvars"},{"name":"Vietnamese Dong","symbol":"\u20ab","symbolNative":"\u20ab","decimalDigits":0,"rounding":0,"code":"VND","namePlural":"Vietnamese dong"},{"name":"CFA Franc BEAC","symbol":"FCFA","symbolNative":"FCFA","decimalDigits":0,"rounding":0,"code":"XAF","namePlural":"CFA francs BEAC"},{"name":"CFA Franc BCEAO","symbol":"CFA","symbolNative":"CFA","decimalDigits":0,"rounding":0,"code":"XOF","namePlural":"CFA francs BCEAO"},{"name":"Yemeni Rial","symbol":"YR","symbolNative":"\u0631.\u064a.\u200f","decimalDigits":0,"rounding":0,"code":"YER","namePlural":"Yemeni rials"},{"name":"South African Rand","symbol":"R","symbolNative":"R","decimalDigits":2,"rounding":0,"code":"ZAR","namePlural":"South African rand"},{"name":"Zambian Kwacha","symbol":"ZK","symbolNative":"ZK","decimalDigits":0,"rounding":0,"code":"ZMK","namePlural":"Zambian kwachas"},{"name":"Zimbabwean Dollar","symbol":"ZWL$","symbolNative":"ZWL$","decimalDigits":0,"rounding":0,"code":"ZWL","namePlural":"Zimbabwean Dollar"}]')}},y1=>{y1(y1.s=3449)}]); \ No newline at end of file diff --git a/portal/bae-frontend/runtime.0992c3ee06235509.js b/portal/bae-frontend/runtime.0992c3ee06235509.js deleted file mode 100644 index 3e8712f7..00000000 --- a/portal/bae-frontend/runtime.0992c3ee06235509.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,o)=>{if(!t){var a=1/0;for(f=0;f=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[t,i,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{51:"ce5b63cd2ee1d862",76:"3870fd15b728f51e",342:"766a1bd1f42b33d7",826:"4c957d8027ea0960",949:"b7393316f357ce17",981:"193dea7bcbed3c10"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bae-frontend:";r.l=(t,i,o,f)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,o)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)o.push(f[2]);else if(121!=i){var a=new Promise((l,s)=>f=e[i]=[l,s]);o.push(f[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,l=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;d.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,f[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,o)=>{var d,u,[f,a,c]=o,l=0;if(f.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(i&&i(o);l{"use strict";var e,v={},m={};function r(e){var n=m[e];if(void 0!==n)return n.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,d)=>{if(!t){var a=1/0;for(f=0;f=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[t,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{51:"ce5b63cd2ee1d862",76:"3870fd15b728f51e",342:"766a1bd1f42b33d7",826:"4c957d8027ea0960",949:"b7393316f357ce17",981:"14a8d16b6c8a952f"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bae-frontend:";r.l=(t,i,d,f)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==d)for(var o=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var _=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),_&&_.forEach(h=>h(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=i){var a=new Promise((l,c)=>f=e[i]=[l,c]);d.push(f[2]=a);var s=r.p+r.u(i),o=new Error;r.l(s,l=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;o.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,f[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var o,u,[f,a,s]=d,l=0;if(f.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(i&&i(d);l